{
  "openapi": "3.1.1",
  "info": {
    "title": "chatobserver public API",
    "version": "2026-09-09",
    "description": "Track AI visibility, manage prompts, inspect collected answers and citations, and integrate workspace data with your own tools. Visibility endpoints use workspace API keys. Data endpoints use scoped service-account keys; spreadsheet client endpoints use authorised client sessions. See the authentication guide for each credential type.",
    "contact": {
      "name": "chatobserver support",
      "url": "https://chatobserver.com/contact",
      "email": "support@chatobserver.com"
    }
  },
  "servers": [
    {
      "url": "https://app.chatobserver.com",
      "description": "Production API"
    }
  ],
  "security": [
    {
      "WorkspaceKey": []
    },
    {
      "BearerKey": []
    }
  ],
  "tags": [
    {
      "name": "Workspace",
      "description": "Validate access and list the workspace project and available platforms."
    },
    {
      "name": "Prompts",
      "description": "Create, schedule, organise, activate and retrieve tracked prompts."
    },
    {
      "name": "Answers",
      "description": "Retrieve collected AI answers, their analysis and visibility trends."
    },
    {
      "name": "Brands",
      "description": "Manage brands and compare their visibility in AI answers."
    },
    {
      "name": "Sources and citations",
      "description": "Analyse cited domains, pages and ownership across answers."
    },
    {
      "name": "Visitor analytics",
      "description": "Read website visitor and crawler analytics for the workspace."
    },
    {
      "name": "Content opportunities",
      "description": "Retrieve content-gap findings and recommendations for tracked prompts."
    },
    {
      "name": "Usage",
      "description": "Read workspace consumption and allowance summaries."
    },
    {
      "name": "Data connections",
      "description": "Discover authorised connections, source accounts and connector catalogues."
    },
    {
      "name": "Data queries",
      "description": "Create versioned queries, publish definitions and inspect integration contracts."
    },
    {
      "name": "Data operations",
      "description": "Execute, validate, cancel and inspect operations and page through result rows."
    },
    {
      "name": "Data delivery",
      "description": "Manage schedules, transfers, destinations and import workflows."
    },
    {
      "name": "Data definitions",
      "description": "Manage reusable definitions and their immutable versions."
    },
    {
      "name": "Data webhooks",
      "description": "Configure event delivery, inspect deliveries, replay events and rotate secrets."
    },
    {
      "name": "Client authorisation",
      "description": "Authorise spreadsheet clients using a user-approved challenge exchange."
    },
    {
      "name": "Spreadsheet clients",
      "description": "Access document-bound client sessions, queries, schedules, bindings and write claims."
    },
    {
      "name": "AI visibility audits",
      "description": "Create website visibility audits and retrieve their report links."
    },
    {
      "name": "Version 1",
      "description": "Integrate with the version 1 visibility and analytics endpoints."
    },
    {
      "name": "Tracked coverage",
      "description": "Track published coverage, maintain its metadata and inspect exact-page citation evidence with the same workspace feature access as the dashboard."
    },
    {
      "name": "Reports",
      "description": "Discover accessible native reports and assess exact saved revisions using measured, context-specific evidence."
    },
    {
      "name": "SEO",
      "description": "Use authorized workspace SEO tools through the stateless MCP endpoint. Availability follows native workspace access and rollout controls; paid tools require a separately configured SEO allowance and spending admission. OpenSEO AI visibility tools remain unavailable."
    }
  ],
  "paths": {
    "/api/v1/audits": {
      "post": {
        "operationId": "postV1Audits",
        "tags": ["AI visibility audits"],
        "summary": "Create an AI visibility audit",
        "description": "Create a website visibility audit and retrieve its report link. Workspace API keys require write access; publishable embed keys require an allowed Origin.",
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "Required for publishable embed keys; must match an allowed origin."
          }
        ],
        "responses": {
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV1AuditsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditError"
                }
              }
            }
          }
        },
        "security": [
          {
            "AuditKey": []
          },
          {
            "BearerKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV1AuditsRequest"
              },
              "example": {
                "website": "https://example.com"
              }
            }
          }
        }
      }
    },
    "/api/v1/brand-visibility": {
      "get": {
        "operationId": "getV1BrandVisibility",
        "tags": ["Version 1"],
        "summary": "Get brand visibility",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 500,
              "default": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1BrandVisibilityResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/prompt-runs": {
      "get": {
        "operationId": "getV1PromptRuns",
        "tags": ["Version 1"],
        "summary": "List collected answers",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["queued", "running", "succeeded", "failed"],
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "analysisStatus",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["failed", "pending", "complete"],
              "type": "string"
            }
          },
          {
            "name": "trigger",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["schedule", "manual"],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1PromptRunsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/prompts": {
      "get": {
        "operationId": "getV1Prompts",
        "tags": ["Version 1"],
        "summary": "List monitoring prompts",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["active", "inactive", "archived"],
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "updatedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "updatedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "personaId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1PromptsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/brands": {
      "get": {
        "operationId": "getV2Brands",
        "tags": ["Brands"],
        "summary": "List brands",
        "description": "Manage brands and compare their visibility in AI answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2BrandsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      },
      "post": {
        "operationId": "postV2Brands",
        "tags": ["Brands"],
        "summary": "Create a brand",
        "description": "Manage brands and compare their visibility in AI answers. Required scopes: `read`, `write`. MCP requires competitors:write and current workspace admin permission. An Idempotency-Key replays the same successful change for 24 hours without repeating attribution.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2BrandsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 150
                  },
                  "rootDomain": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "aliases": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 150
                    },
                    "maxItems": 25
                  },
                  "isOwnBrand": {
                    "type": "boolean"
                  }
                },
                "required": ["name"],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/v2/competitor-heatmap": {
      "get": {
        "operationId": "getV2CompetitorHeatmap",
        "tags": ["Brands"],
        "summary": "Get competitor heatmap",
        "description": "Manage brands and compare their visibility in AI answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CompetitorHeatmapResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/models": {
      "get": {
        "operationId": "getV2Models",
        "tags": ["Workspace"],
        "summary": "List AI platforms",
        "description": "Validate access and list the workspace project and available platforms. Required scopes: `read`.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ModelsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/personas": {
      "get": {
        "operationId": "getV2Personas",
        "tags": ["Prompts"],
        "summary": "List personas",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2PersonasResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      },
      "post": {
        "operationId": "postV2Personas",
        "tags": ["Prompts"],
        "summary": "Create a persona",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2PersonasResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2PersonasRequest"
              },
              "example": {
                "name": "Daily commuter",
                "occupation": "Office worker"
              }
            }
          }
        }
      }
    },
    "/api/v2/projects": {
      "get": {
        "operationId": "getV2Projects",
        "tags": ["Workspace"],
        "summary": "List workspace projects",
        "description": "Validate access and list the workspace project and available platforms. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ProjectsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/prompts": {
      "get": {
        "operationId": "getV2Prompts",
        "tags": ["Prompts"],
        "summary": "List monitoring prompts",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`. Delegated MCP connections require prompts:read. Current membership and workspace permissions are checked on every request.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["active", "inactive", "archived"],
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "updatedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "updatedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "personaId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "tagId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "An explicitly selected workspace authorized for this connection. Required for MCP connections; API keys remain workspace-bound."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2PromptsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"],
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      },
      "post": {
        "operationId": "postV2Prompts",
        "tags": ["Prompts"],
        "summary": "Create a monitoring prompt",
        "description": "Create a monitoring question with its platforms, regions, groups, and schedule. Delegated MCP connections require prompts:read and prompts:create, plus an Idempotency-Key. Current membership and workspace permissions are checked on every request.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          },
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "An explicitly selected workspace authorized for this connection. Required for MCP connections; API keys remain workspace-bound."
          }
        ],
        "responses": {
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2PromptsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2PromptsRequest"
              },
              "example": {
                "promptText": "Which waterproof jackets are best for commuting?",
                "targetPlatforms": ["chatgpt"],
                "targetRegions": ["United Kingdom"],
                "schedule": {
                  "frequency": "daily",
                  "timezone": "Europe/London",
                  "hour": 9,
                  "minute": 0
                }
              }
            }
          }
        },
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/query-fanouts": {
      "get": {
        "operationId": "getV2QueryFanouts",
        "tags": ["Content opportunities"],
        "summary": "List query fan-outs",
        "description": "Retrieve content-gap findings and recommendations for tracked prompts. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["ai_overview", "related_search", "people_also_ask"],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2QueryFanoutsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/responses": {
      "get": {
        "operationId": "getV2Responses",
        "tags": ["Answers"],
        "summary": "List AI answers",
        "description": "Retrieve collected AI answers, their analysis and visibility trends. Required scopes: `read`.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["queued", "running", "failed", "complete"],
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "analysisStatus",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["failed", "pending", "complete"],
              "type": "string"
            }
          },
          {
            "name": "trigger",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["schedule", "manual"],
              "type": "string"
            }
          },
          {
            "name": "model",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "sentiment",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["positive", "neutral", "negative"],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ResponsesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/tags": {
      "get": {
        "operationId": "getV2Tags",
        "tags": ["Prompts"],
        "summary": "List prompt groups",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2TagsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      },
      "post": {
        "operationId": "postV2Tags",
        "tags": ["Prompts"],
        "summary": "Create a prompt group",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2TagsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2TagsRequest"
              },
              "example": {
                "tags": [
                  {
                    "name": "Product comparisons"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/api/v2/validate": {
      "get": {
        "operationId": "getV2Validate",
        "tags": ["Workspace"],
        "summary": "Validate API access",
        "description": "Validate access and list the workspace project and available platforms. Required scopes: `read`.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ValidateResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/visibility-time-series": {
      "get": {
        "operationId": "getV2VisibilityTimeSeries",
        "tags": ["Brands"],
        "summary": "Get visibility over time",
        "description": "Manage brands and compare their visibility in AI answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "brandId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2VisibilityTimeSeriesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/analytics/visitor-metrics": {
      "get": {
        "operationId": "getV1AnalyticsVisitorMetrics",
        "tags": ["Version 1"],
        "summary": "Get visitor metrics",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1AnalyticsVisitorMetricsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/audits/{id}": {
      "get": {
        "operationId": "getV1AuditsId",
        "tags": ["AI visibility audits"],
        "summary": "Get an AI visibility audit",
        "description": "Retrieve the status and report link of an audit owned by this workspace. Workspace API keys require read access; publishable embed keys require an allowed Origin.",
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "Required for publishable embed keys; must match an allowed origin."
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1AuditsIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditError"
                }
              }
            }
          }
        },
        "security": [
          {
            "AuditKey": []
          },
          {
            "BearerKey": []
          }
        ]
      }
    },
    "/api/v1/crawler-logs/events": {
      "get": {
        "operationId": "getV1CrawlerLogsEvents",
        "tags": ["Version 1"],
        "summary": "Get AI crawler events",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "manual",
                "cloudflare_worker",
                "cloudflare_logpush",
                "cloudfront",
                "akamai",
                "fastly",
                "gcp",
                "gocache",
                "netlify",
                "vercel"
              ],
              "type": "string"
            }
          },
          {
            "name": "integrationId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hostname",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "crawlerVendor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "crawlerName",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "verificationStatus",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["unknown", "verified", "probable", "ua_only", "rejected"],
              "type": "string"
            }
          },
          {
            "name": "verificationMethod",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["ip_range", "reverse_dns", "asn", "provider_oidc", "ua_heuristic"],
              "type": "string"
            }
          },
          {
            "name": "statusCode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 100,
              "maximum": 599
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1CrawlerLogsEventsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/crawler-logs/integrations": {
      "get": {
        "operationId": "getV1CrawlerLogsIntegrations",
        "tags": ["Version 1"],
        "summary": "Get crawler log integrations",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["active", "draft", "paused", "error", "revoked"],
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "updatedAfter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "updatedBefore",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "manual",
                "cloudflare_worker",
                "cloudflare_logpush",
                "cloudfront",
                "akamai",
                "fastly",
                "gcp",
                "gocache",
                "netlify",
                "vercel"
              ],
              "type": "string"
            }
          },
          {
            "name": "hostname",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "verificationStatus",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["failed", "pending", "partial", "verified"],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1CrawlerLogsIntegrationsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/metrics/summary": {
      "get": {
        "operationId": "getV1MetricsSummary",
        "tags": ["Version 1"],
        "summary": "Get workspace metrics",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "sourcesWindowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            }
          },
          {
            "name": "visitorLookback",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 30,
              "default": 7
            }
          },
          {
            "name": "usageAsOf",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "runsSinceDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365
            }
          },
          {
            "name": "includeVisitor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean",
                  "const": false
                },
                {
                  "type": "boolean",
                  "const": true
                }
              ],
              "default": true
            }
          },
          {
            "name": "includeUsage",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean",
                  "const": false
                },
                {
                  "type": "boolean",
                  "const": true
                }
              ],
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1MetricsSummaryResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/prompt-runs/{id}": {
      "get": {
        "operationId": "getV1PromptRunsId",
        "tags": ["Version 1"],
        "summary": "Get a collected answer",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1PromptRunsIdResponse200"
                }
              }
            }
          },
          "400": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1PromptRunsIdResponse400"
                }
              }
            }
          },
          "404": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1PromptRunsIdResponse404"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/sources/domains": {
      "get": {
        "operationId": "getV1SourcesDomains",
        "tags": ["Version 1"],
        "summary": "Get source domains",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "minMentions",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1SourcesDomainsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/sources/overview": {
      "get": {
        "operationId": "getV1SourcesOverview",
        "tags": ["Version 1"],
        "summary": "Get source overview",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["mentions", "influence"],
              "default": "mentions",
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1SourcesOverviewResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v1/usage/monthly": {
      "get": {
        "operationId": "getV1UsageMonthly",
        "tags": ["Version 1"],
        "summary": "Get monthly answer usage",
        "description": "Integrate with the version 1 visibility and analytics endpoints. Required scopes: `read`.",
        "parameters": [
          {
            "name": "history",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 12,
              "default": 3
            }
          },
          {
            "name": "asOf",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV1UsageMonthlyResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/brand-visibility-over-time": {
      "get": {
        "operationId": "getV2AnalyticsBrandVisibilityOverTime",
        "tags": ["Brands"],
        "summary": "Get brand visibility over time",
        "description": "Manage brands and compare their visibility in AI answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "brandId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsBrandVisibilityOverTimeResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/crawler-activity-trends": {
      "get": {
        "operationId": "getV2AnalyticsCrawlerActivityTrends",
        "tags": ["Visitor analytics"],
        "summary": "Get crawler activity trends",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsCrawlerActivityTrendsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/referrer-stats": {
      "get": {
        "operationId": "getV2AnalyticsReferrerStats",
        "tags": ["Visitor analytics"],
        "summary": "Get referrer statistics",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "projectDomain",
            "in": "query",
            "required": false,
            "description": "Select one workspace-owned first-party analytics project by domain. Required when the workspace has more than one project; omission is accepted when exactly one exists.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsReferrerStatsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/sentiment-time-series": {
      "get": {
        "operationId": "getV2AnalyticsSentimentTimeSeries",
        "tags": ["Visitor analytics"],
        "summary": "Get sentiment time series",
        "description": "Alias of /api/v2/responses/sentiment-over-time. Daily buckets count only prompt runs with a recognized positive, neutral or negative answer-level sentiment by UTC creation date; netScore is (positive - negative) / total and is null with no classified runs. This is not a website visitor measure or the four-tone passage-level Sentiment dashboard. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsSentimentTimeSeriesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/top-browsers": {
      "get": {
        "operationId": "getV2AnalyticsTopBrowsers",
        "tags": ["Visitor analytics"],
        "summary": "Get top browsers",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "projectDomain",
            "in": "query",
            "required": false,
            "description": "Select one workspace-owned first-party analytics project by domain. Required when the workspace has more than one project; omission is accepted when exactly one exists.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsTopBrowsersResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/top-crawler-pages": {
      "get": {
        "operationId": "getV2AnalyticsTopCrawlerPages",
        "tags": ["Visitor analytics"],
        "summary": "Get top crawler pages",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsTopCrawlerPagesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/top-devices": {
      "get": {
        "operationId": "getV2AnalyticsTopDevices",
        "tags": ["Visitor analytics"],
        "summary": "Get top devices",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "projectDomain",
            "in": "query",
            "required": false,
            "description": "Select one workspace-owned first-party analytics project by domain. Required when the workspace has more than one project; omission is accepted when exactly one exists.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsTopDevicesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/top-locations": {
      "get": {
        "operationId": "getV2AnalyticsTopLocations",
        "tags": ["Visitor analytics"],
        "summary": "Get top locations",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "projectDomain",
            "in": "query",
            "required": false,
            "description": "Select one workspace-owned first-party analytics project by domain. Required when the workspace has more than one project; omission is accepted when exactly one exists.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsTopLocationsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/top-pages": {
      "get": {
        "operationId": "getV2AnalyticsTopPages",
        "tags": ["Visitor analytics"],
        "summary": "Get top pages",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "projectDomain",
            "in": "query",
            "required": false,
            "description": "Select one workspace-owned first-party analytics project by domain. Required when the workspace has more than one project; omission is accepted when exactly one exists.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsTopPagesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/top-sources": {
      "get": {
        "operationId": "getV2AnalyticsTopSources",
        "tags": ["Visitor analytics"],
        "summary": "Get top sources",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "projectDomain",
            "in": "query",
            "required": false,
            "description": "Select one workspace-owned first-party analytics project by domain. Required when the workspace has more than one project; omission is accepted when exactly one exists.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsTopSourcesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/total-visits": {
      "get": {
        "operationId": "getV2AnalyticsTotalVisits",
        "tags": ["Visitor analytics"],
        "summary": "Get total visits",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "projectDomain",
            "in": "query",
            "required": false,
            "description": "Select one workspace-owned first-party analytics project by domain. Required when the workspace has more than one project; omission is accepted when exactly one exists.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsTotalVisitsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/analytics/visitor-trends": {
      "get": {
        "operationId": "getV2AnalyticsVisitorTrends",
        "tags": ["Visitor analytics"],
        "summary": "Get visitor trends",
        "description": "Read website visitor and crawler analytics for the workspace. Required scopes: `read`.",
        "parameters": [
          {
            "name": "projectDomain",
            "in": "query",
            "required": false,
            "description": "Select one workspace-owned first-party analytics project by domain. Required when the workspace has more than one project; omission is accepted when exactly one exists.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AnalyticsVisitorTrendsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/brands/{id}": {
      "put": {
        "operationId": "putV2BrandsId",
        "tags": ["Brands"],
        "summary": "Update a brand",
        "description": "Manage brands and compare their visibility in AI answers. Required scopes: `read`, `write`. MCP requires competitors:write and current workspace admin permission. An Idempotency-Key replays the same successful change for 24 hours without repeating attribution.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/putV2BrandsIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 150
                  },
                  "rootDomain": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "aliases": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 150
                    },
                    "maxItems": 25
                  },
                  "isOwnBrand": {
                    "type": "boolean"
                  },
                  "status": {
                    "type": "string",
                    "enum": ["active", "archived"]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        }
      },
      "get": {
        "operationId": "getV2BrandsId",
        "tags": ["Brands"],
        "summary": "Read a competitor or own brand",
        "description": "Reads the current workspace only, subject to current product access. MCP requires the matching sources or competitors read permission.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^brd_[1-9][0-9]*$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "rootDomain": {
                          "type": ["string", "null"]
                        },
                        "aliases": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "isOwnBrand": {
                          "type": "boolean"
                        },
                        "status": {
                          "type": "string",
                          "enum": ["active", "archived"]
                        },
                        "createdAt": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "rootDomain",
                        "aliases",
                        "isOwnBrand",
                        "status",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Record not found in this workspace."
          },
          "409": {
            "description": "Conflict with an existing alias or retry receipt."
          }
        }
      }
    },
    "/api/v2/citations/analytics": {
      "get": {
        "operationId": "getV2CitationsAnalytics",
        "tags": ["Sources and citations"],
        "summary": "Get citation analytics",
        "description": "Analyse cited domains, pages and ownership across answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "domains",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CitationsAnalyticsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/citations/citation-rank-analysis": {
      "get": {
        "operationId": "getV2CitationsCitationRankAnalysis",
        "tags": ["Sources and citations"],
        "summary": "Analyse citation positions",
        "description": "Analyse cited domains, pages and ownership across answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CitationsCitationRankAnalysisResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/citations/domain-citations-over-time": {
      "get": {
        "operationId": "getV2CitationsDomainCitationsOverTime",
        "tags": ["Sources and citations"],
        "summary": "Track domain citations over time",
        "description": "Analyse cited domains, pages and ownership across answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CitationsDomainCitationsOverTimeResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/citations/domains-by-llm": {
      "get": {
        "operationId": "getV2CitationsDomainsByLlm",
        "tags": ["Sources and citations"],
        "summary": "Compare cited domains by AI platform",
        "description": "Analyse cited domains, pages and ownership across answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CitationsDomainsByLlmResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/citations/llm-sources": {
      "get": {
        "operationId": "getV2CitationsLlmSources",
        "tags": ["Sources and citations"],
        "summary": "Compare sources by AI platform",
        "description": "Analyse cited domains, pages and ownership across answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CitationsLlmSourcesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/citations/self-citation-frequency": {
      "get": {
        "operationId": "getV2CitationsSelfCitationFrequency",
        "tags": ["Sources and citations"],
        "summary": "Measure citations to your own domain",
        "description": "Analyse cited domains, pages and ownership across answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CitationsSelfCitationFrequencyResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/citations/top-cited-pages": {
      "get": {
        "operationId": "getV2CitationsTopCitedPages",
        "tags": ["Sources and citations"],
        "summary": "List the most cited pages",
        "description": "Analyse cited domains, pages and ownership across answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "identity",
            "in": "query",
            "required": false,
            "description": "Use clean to group recognized tracking-tag variants by clean page identity. The default raw mode preserves exact-address grouping for existing clients.",
            "schema": {
              "enum": ["raw", "clean"],
              "type": "string",
              "default": "raw"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CitationsTopCitedPagesResponse200"
                }
              }
            }
          },
          "422": {
            "description": "The clean-page cohort exceeds 25,000 distinct observed addresses. Narrow the date range; raw identity mode is unaffected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/content-gap/prompts": {
      "get": {
        "operationId": "getV2ContentGapPrompts",
        "tags": ["Content opportunities"],
        "summary": "List prompt content gaps",
        "description": "Retrieve content-gap findings and recommendations for tracked prompts. Required scopes: `read`.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["active", "inactive", "archived"],
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 50,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ContentGapPromptsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/content-gap/stats": {
      "get": {
        "operationId": "getV2ContentGapStats",
        "tags": ["Content opportunities"],
        "summary": "Get content gap statistics",
        "description": "Retrieve content-gap findings and recommendations for tracked prompts. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ContentGapStatsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/metrics/account-tags": {
      "get": {
        "operationId": "getV2MetricsAccountTags",
        "tags": ["Data connections"],
        "summary": "List source account tags",
        "description": "Discover authorised connections, source accounts and connector catalogues. Required scopes: `metrics:read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsAccountTagsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      },
      "post": {
        "operationId": "postV2MetricsAccountTags",
        "tags": ["Data connections"],
        "summary": "Create a source account tag",
        "description": "Discover authorised connections, source accounts and connector catalogues. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsAccountTagsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsAccountTagsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsAccountTagsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/analysis-views": {
      "get": {
        "operationId": "getV2MetricsAnalysisViews",
        "tags": ["Data definitions"],
        "summary": "List analysis views",
        "description": "Manage reusable definitions and their immutable versions. Required scopes: `metrics:read`.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsAnalysisViewsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      },
      "post": {
        "operationId": "postV2MetricsAnalysisViews",
        "tags": ["Data definitions"],
        "summary": "Create an analysis view",
        "description": "Manage reusable definitions and their immutable versions. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsAnalysisViewsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsAnalysisViewsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsAnalysisViewsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/catalogues": {
      "get": {
        "operationId": "getV2MetricsCatalogues",
        "tags": ["Data connections"],
        "summary": "List source catalogues",
        "description": "Discover authorised connections, source accounts and connector catalogues. Required scopes: `metrics:read`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsCataloguesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"],
        "x-mcp-scopes": ["data:read"],
        "x-mcp-response-schema": "#/components/schemas/McpDataCataloguesV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/connections": {
      "get": {
        "operationId": "getV2MetricsConnections",
        "tags": ["Data connections"],
        "summary": "List data connections",
        "description": "Discover authorised connections, source accounts and connector catalogues. Required scopes: `metrics:read`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsConnectionsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"],
        "x-mcp-scopes": ["data:read"],
        "x-mcp-response-schema": "#/components/schemas/McpDataConnectionsV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/connectors": {
      "get": {
        "operationId": "getV2MetricsConnectors",
        "tags": ["Data connections"],
        "summary": "List data connectors",
        "description": "Discover authorised connections, source accounts and connector catalogues. Required scopes: `metrics:read`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsConnectorsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"],
        "x-mcp-scopes": ["data:read"],
        "x-mcp-response-schema": "#/components/schemas/McpDataConnectorsV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/destinations": {
      "get": {
        "operationId": "getV2MetricsDestinations",
        "tags": ["Data delivery"],
        "summary": "List delivery destinations",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsDestinationsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      },
      "post": {
        "operationId": "postV2MetricsDestinations",
        "tags": ["Data delivery"],
        "summary": "Create a delivery destination",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDestinationsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDestinationsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsDestinationsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/import-email-intakes": {
      "post": {
        "operationId": "postV2MetricsImportEmailIntakes",
        "tags": ["Data delivery"],
        "summary": "Create an email import intake",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportEmailIntakesResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportEmailIntakesResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsImportEmailIntakesRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/import-sources": {
      "post": {
        "operationId": "postV2MetricsImportSources",
        "tags": ["Data delivery"],
        "summary": "Create an import source",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportSourcesResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportSourcesResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsImportSourcesRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/imports": {
      "get": {
        "operationId": "getV2MetricsImports",
        "tags": ["Data delivery"],
        "summary": "List imported datasets",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:read`.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsImportsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      },
      "post": {
        "operationId": "postV2MetricsImports",
        "tags": ["Data delivery"],
        "summary": "Create an imported dataset",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsImportsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/integration-clients": {
      "get": {
        "operationId": "getV2MetricsIntegrationClients",
        "tags": ["Data connections"],
        "summary": "List integration clients",
        "description": "Discover authorised connections, source accounts and connector catalogues. Required scopes: `metrics:read`.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsIntegrationClientsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      }
    },
    "/api/v2/metrics/mcp": {
      "post": {
        "operationId": "postV2MetricsMcp",
        "tags": ["Data operations"],
        "summary": "Read saved data with MCP",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:read`.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsMcpResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsMcpRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/operations": {
      "get": {
        "operationId": "getV2MetricsOperations",
        "tags": ["Data operations"],
        "summary": "List operations",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsOperationsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      },
      "post": {
        "operationId": "postV2MetricsOperations",
        "tags": ["Data operations"],
        "summary": "Create an operation",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:execute`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Follow the returned operation or answer state to determine the final outcome.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsOperationsResponse202"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:execute"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsOperationsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/queries": {
      "get": {
        "operationId": "getV2MetricsQueries",
        "tags": ["Data queries"],
        "summary": "List saved queries",
        "description": "Create versioned queries, publish definitions and inspect integration contracts. Required scopes: `metrics:read`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsQueriesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"],
        "x-mcp-scopes": ["data:read"],
        "x-mcp-response-schema": "#/components/schemas/McpDataQueriesV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      },
      "post": {
        "operationId": "postV2MetricsQueries",
        "tags": ["Data queries"],
        "summary": "Create a query",
        "description": "Create versioned queries, publish definitions and inspect integration contracts. Required scopes: `metrics:write`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsQueriesResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsQueriesResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsQueriesRequest"
              }
            }
          }
        },
        "x-mcp-scopes": ["data:write"],
        "x-mcp-response-schema": "#/components/schemas/McpDataQueryMutationV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/schedules": {
      "get": {
        "operationId": "getV2MetricsSchedules",
        "tags": ["Data delivery"],
        "summary": "List refresh schedules",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsSchedulesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      },
      "post": {
        "operationId": "postV2MetricsSchedules",
        "tags": ["Data delivery"],
        "summary": "Create a refresh schedule",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsSchedulesResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsSchedulesResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsSchedulesRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/templates": {
      "get": {
        "operationId": "getV2MetricsTemplates",
        "tags": ["Data definitions"],
        "summary": "List query templates",
        "description": "Manage reusable definitions and their immutable versions. Required scopes: `metrics:read`.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsTemplatesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      }
    },
    "/api/v2/metrics/transfers": {
      "get": {
        "operationId": "getV2MetricsTransfers",
        "tags": ["Data delivery"],
        "summary": "List data transfers",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsTransfersResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      },
      "post": {
        "operationId": "postV2MetricsTransfers",
        "tags": ["Data delivery"],
        "summary": "Create a data transfer",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsTransfersResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsTransfersResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsTransfersRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/usage": {
      "get": {
        "operationId": "getV2MetricsUsage",
        "tags": ["Data definitions"],
        "summary": "Get usage",
        "description": "Manage reusable definitions and their immutable versions. Required scopes: `metrics:usage`.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsUsageResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:usage"]
      }
    },
    "/api/v2/metrics/webhooks": {
      "get": {
        "operationId": "getV2MetricsWebhooks",
        "tags": ["Data webhooks"],
        "summary": "List webhook endpoints",
        "description": "Configure event delivery, inspect deliveries, replay events and rotate secrets. Required scopes: `metrics:webhooks`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsWebhooksResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:webhooks"]
      },
      "post": {
        "operationId": "postV2MetricsWebhooks",
        "tags": ["Data webhooks"],
        "summary": "Create a webhook endpoint",
        "description": "Configure event delivery, inspect deliveries, replay events and rotate secrets. Required scopes: `metrics:webhooks`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsWebhooksResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsWebhooksResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:webhooks"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsWebhooksRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/personas/{id}": {
      "get": {
        "operationId": "getV2PersonasId",
        "tags": ["Prompts"],
        "summary": "Get a persona",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2PersonasIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      },
      "put": {
        "operationId": "putV2PersonasId",
        "tags": ["Prompts"],
        "summary": "Update a persona",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/putV2PersonasIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putV2PersonasIdRequest"
              },
              "example": {
                "name": "Urban commuter",
                "occupation": "Office worker"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteV2PersonasId",
        "tags": ["Prompts"],
        "summary": "Delete a persona",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted. No response body."
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"]
      }
    },
    "/api/v2/prompts/{id}": {
      "get": {
        "operationId": "getV2PromptsId",
        "tags": ["Prompts"],
        "summary": "Get a monitoring prompt",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2PromptsIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      },
      "put": {
        "operationId": "putV2PromptsId",
        "tags": ["Prompts"],
        "summary": "Update a monitoring prompt",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`. An optional Idempotency-Key retains the successful response for 24 hours. Retrying the same command returns the recorded response without applying the change again. The mutation and receipt commit atomically.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/putV2PromptsIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putV2PromptsIdRequest"
              },
              "example": {
                "schedule": {
                  "frequency": "weekly",
                  "timezone": "Europe/London",
                  "hour": 9,
                  "minute": 0,
                  "daysOfWeek": [1, 3]
                },
                "promptText": "Which waterproof jackets are best for cycling to work?"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteV2PromptsId",
        "tags": ["Prompts"],
        "summary": "Delete a monitoring prompt",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`. An optional Idempotency-Key retains the successful response for 24 hours. Retrying the same command returns the recorded response without applying the change again. The mutation and receipt commit atomically. Both the original success and a successful replay return 204 with no response body. Historical answers are retained; deletion removes the prompt from the active inventory.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted. No response body."
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"]
      }
    },
    "/api/v2/prompts/activate": {
      "patch": {
        "operationId": "patchV2PromptsActivate",
        "tags": ["Prompts"],
        "summary": "Activate monitoring prompts",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`. An optional Idempotency-Key retains the successful response for 24 hours. Retrying the same command returns the recorded response without applying the change again. The mutation and receipt commit atomically. All matching prompts change in one transaction. Duplicate IDs count once; unknown or other-workspace IDs are unaffected. A failure rolls back the whole batch.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patchV2PromptsActivateResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchV2PromptsActivateRequest"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ]
      }
    },
    "/api/v2/prompts/bulk": {
      "post": {
        "operationId": "postV2PromptsBulk",
        "tags": ["Prompts"],
        "summary": "Create multiple monitoring prompts",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2PromptsBulkResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2PromptsBulkRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteV2PromptsBulk",
        "tags": ["Prompts"],
        "summary": "Delete multiple monitoring prompts",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/deleteV2PromptsBulkResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/deleteV2PromptsBulkRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/prompts/deactivate": {
      "patch": {
        "operationId": "patchV2PromptsDeactivate",
        "tags": ["Prompts"],
        "summary": "Pause monitoring prompts",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`. An optional Idempotency-Key retains the successful response for 24 hours. Retrying the same command returns the recorded response without applying the change again. The mutation and receipt commit atomically. All matching prompts change in one transaction. Duplicate IDs count once; unknown or other-workspace IDs are unaffected. A failure rolls back the whole batch.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patchV2PromptsDeactivateResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchV2PromptsDeactivateRequest"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ]
      }
    },
    "/api/v2/responses/{id}": {
      "get": {
        "operationId": "getV2ResponsesId",
        "tags": ["Answers"],
        "summary": "Get an AI answer",
        "description": "Retrieve collected AI answers, their analysis and visibility trends. Required scopes: `read`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ResponsesIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/responses/competitors": {
      "get": {
        "operationId": "getV2ResponsesCompetitors",
        "tags": ["Answers"],
        "summary": "Compare competitors in AI answers",
        "description": "Retrieve collected AI answers, their analysis and visibility trends. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 50,
              "default": 10
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ResponsesCompetitorsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/responses/mentions-time-series": {
      "get": {
        "operationId": "getV2ResponsesMentionsTimeSeries",
        "tags": ["Answers"],
        "summary": "Track brand mentions over time",
        "description": "Retrieve collected AI answers, their analysis and visibility trends. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "brandId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ResponsesMentionsTimeSeriesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/responses/sentiment-distribution": {
      "get": {
        "operationId": "getV2ResponsesSentimentDistribution",
        "tags": ["Answers"],
        "summary": "Get the sentiment distribution",
        "description": "Three-tone answer-level sentiment distribution over runs with a recognized positive, neutral or negative label. Each share uses the sum of those classified runs, not all stored runs; /api/v2/responses/summary exposes that denominator. This differs from the four-tone passage-level Sentiment dashboard. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ResponsesSentimentDistributionResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/responses/sentiment-over-time": {
      "get": {
        "operationId": "getV2ResponsesSentimentOverTime",
        "tags": ["Answers"],
        "summary": "Track sentiment over time",
        "description": "Daily UTC creation-date buckets of runs with a recognized positive, neutral or negative answer-level sentiment. netScore is (positive - negative) / total and is null without classified runs. This is the same dataset as /api/v2/analytics/sentiment-time-series, not the four-tone passage-level Sentiment dashboard. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ResponsesSentimentOverTimeResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/responses/summary": {
      "get": {
        "operationId": "getV2ResponsesSummary",
        "tags": ["Answers"],
        "summary": "Get an AI answer summary",
        "description": "Summarize non-archived prompt runs by creation time. The three-tone answer-level sentiment mix uses only runs with a recognized sentiment label, so its denominator can be smaller than totalResponses. This differs from the four-tone, passage-level Sentiment overview. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "brandId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ResponsesSummaryResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/share-of-voice/comparison": {
      "get": {
        "operationId": "getV2ShareOfVoiceComparison",
        "tags": ["Brands"],
        "summary": "Get a share of voice comparison",
        "description": "Manage brands and compare their visibility in AI answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ShareOfVoiceComparisonResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/share-of-voice/time-series": {
      "get": {
        "operationId": "getV2ShareOfVoiceTimeSeries",
        "tags": ["Brands"],
        "summary": "Get share of voice over time",
        "description": "Manage brands and compare their visibility in AI answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ShareOfVoiceTimeSeriesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/sources/domains": {
      "get": {
        "operationId": "getV2SourcesDomains",
        "tags": ["Sources and citations"],
        "summary": "Get source domains",
        "description": "Analyse cited domains, pages and ownership across answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "minMentions",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2SourcesDomainsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/sources/overview": {
      "get": {
        "operationId": "getV2SourcesOverview",
        "tags": ["Sources and citations"],
        "summary": "Get source overview",
        "description": "Analyse cited domains, pages and ownership across answers. Required scopes: `read`.",
        "parameters": [
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["mentions", "influence"],
              "default": "mentions",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2SourcesOverviewResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/tags/{id}": {
      "patch": {
        "operationId": "patchV2TagsId",
        "tags": ["Prompts"],
        "summary": "Update a prompt group",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patchV2TagsIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchV2TagsIdRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteV2TagsId",
        "tags": ["Prompts"],
        "summary": "Delete a prompt group",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted. No response body."
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"]
      }
    },
    "/api/v2/usage/summary": {
      "get": {
        "operationId": "getV2UsageSummary",
        "tags": ["Usage"],
        "summary": "Get answer allowance usage",
        "description": "Read workspace consumption and allowance summaries. Required scopes: `read`.",
        "parameters": [
          {
            "name": "history",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 12,
              "default": 3
            }
          },
          {
            "name": "asOf",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2UsageSummaryResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/visibility/domain-rollups": {
      "get": {
        "operationId": "getV2VisibilityDomainRollups",
        "tags": ["Workspace"],
        "summary": "Get domain visibility totals",
        "description": "Validate access and list the workspace project and available platforms. Required scopes: `read`.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 500,
              "default": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2VisibilityDomainRollupsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/metrics/account-tags/{accountTagId}": {
      "put": {
        "operationId": "putV2MetricsAccountTagsAccountTagId",
        "tags": ["Data connections"],
        "summary": "Update a source account tag",
        "description": "Discover authorised connections, source accounts and connector catalogues. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "accountTagId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/putV2MetricsAccountTagsAccountTagIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putV2MetricsAccountTagsAccountTagIdRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/bindings": {
      "get": {
        "operationId": "getV2MetricsClientBindings",
        "tags": ["Spreadsheet clients"],
        "summary": "List spreadsheet bindings",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientBindingsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      },
      "post": {
        "operationId": "postV2MetricsClientBindings",
        "tags": ["Spreadsheet clients"],
        "summary": "Create a spreadsheet binding",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientBindingsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientBindingsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientBindingsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/catalogues": {
      "get": {
        "operationId": "getV2MetricsClientCatalogues",
        "tags": ["Spreadsheet clients"],
        "summary": "List source catalogues",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientCataloguesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/connections": {
      "get": {
        "operationId": "getV2MetricsClientConnections",
        "tags": ["Spreadsheet clients"],
        "summary": "List data connections",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientConnectionsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/connectors": {
      "get": {
        "operationId": "getV2MetricsClientConnectors",
        "tags": ["Spreadsheet clients"],
        "summary": "List data connectors",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientConnectorsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/members": {
      "get": {
        "operationId": "getV2MetricsClientMembers",
        "tags": ["Spreadsheet clients"],
        "summary": "List workspace members",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientMembersResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/operations": {
      "get": {
        "operationId": "getV2MetricsClientOperations",
        "tags": ["Spreadsheet clients"],
        "summary": "List operations",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientOperationsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      },
      "post": {
        "operationId": "postV2MetricsClientOperations",
        "tags": ["Spreadsheet clients"],
        "summary": "Create an operation",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:execute`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Follow the returned operation or answer state to determine the final outcome.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientOperationsResponse202"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:execute"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientOperationsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/queries": {
      "get": {
        "operationId": "getV2MetricsClientQueries",
        "tags": ["Spreadsheet clients"],
        "summary": "List saved queries",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientQueriesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      },
      "post": {
        "operationId": "postV2MetricsClientQueries",
        "tags": ["Spreadsheet clients"],
        "summary": "Create a query",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientQueriesResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientQueriesResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientQueriesRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/schedules": {
      "get": {
        "operationId": "getV2MetricsClientSchedules",
        "tags": ["Spreadsheet clients"],
        "summary": "List refresh schedules",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientSchedulesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      },
      "post": {
        "operationId": "postV2MetricsClientSchedules",
        "tags": ["Spreadsheet clients"],
        "summary": "Create a refresh schedule",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientSchedulesResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientSchedulesResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientSchedulesRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/session": {
      "get": {
        "operationId": "getV2MetricsClientSession",
        "tags": ["Spreadsheet clients"],
        "summary": "Inspect the spreadsheet session",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientSessionResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      },
      "delete": {
        "operationId": "deleteV2MetricsClientSession",
        "tags": ["Spreadsheet clients"],
        "summary": "Revoke the spreadsheet session",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/deleteV2MetricsClientSessionResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/templates": {
      "get": {
        "operationId": "getV2MetricsClientTemplates",
        "tags": ["Spreadsheet clients"],
        "summary": "List query templates",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientTemplatesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/writes": {
      "post": {
        "operationId": "postV2MetricsClientWrites",
        "tags": ["Spreadsheet clients"],
        "summary": "Create a spreadsheet write claim",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientWritesResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientWritesResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientWritesRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client-auth/challenges": {
      "post": {
        "operationId": "postV2MetricsClientAuthChallenges",
        "tags": ["Client authorisation"],
        "summary": "Create an authorisation challenge",
        "description": "Authorise spreadsheet clients using a user-approved challenge exchange.",
        "responses": {
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientAuthChallengesResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientAuthChallengesRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/commands/batch-create": {
      "post": {
        "operationId": "postV2MetricsCommandsBatchCreate",
        "tags": ["Data operations"],
        "summary": "Create definitions in a batch",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsCommandsBatchCreateResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsCommandsBatchCreateResponse201"
                }
              }
            }
          },
          "207": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsCommandsBatchCreateResponse207"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsCommandsBatchCreateRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/commands/clone": {
      "post": {
        "operationId": "postV2MetricsCommandsClone",
        "tags": ["Data operations"],
        "summary": "Clone a reusable definition",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsCommandsCloneResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsCommandsCloneResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsCommandsCloneRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/commands/validate": {
      "post": {
        "operationId": "postV2MetricsCommandsValidate",
        "tags": ["Data operations"],
        "summary": "Validate a definition command",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:execute`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Follow the returned operation or answer state to determine the final outcome.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsCommandsValidateResponse202"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:execute"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsCommandsValidateRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/definitions/{resourceType}": {
      "get": {
        "operationId": "getV2MetricsDefinitionsResourceType",
        "tags": ["Data definitions"],
        "summary": "List reusable definitions",
        "description": "Manage reusable definitions and their immutable versions. Required scopes: `metrics:read`.",
        "parameters": [
          {
            "name": "resourceType",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "custom-fields",
                "blends",
                "models",
                "table-groups",
                "imported-datasets",
                "client-bindings"
              ],
              "type": "string"
            },
            "description": "The definition collection. The definition body must match this resource type."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsDefinitionsResourceTypeResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      },
      "post": {
        "operationId": "postV2MetricsDefinitionsResourceType",
        "tags": ["Data definitions"],
        "summary": "Create a reusable definition",
        "description": "Manage reusable definitions and their immutable versions. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "resourceType",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "custom-fields",
                "blends",
                "models",
                "table-groups",
                "imported-datasets",
                "client-bindings"
              ],
              "type": "string"
            },
            "description": "The definition collection. The definition body must match this resource type."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDefinitionsResourceTypeResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDefinitionsResourceTypeResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsDefinitionsResourceTypeRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/operations/{operationId}": {
      "get": {
        "operationId": "getV2MetricsOperationsOperationId",
        "tags": ["Data operations"],
        "summary": "Get an operation",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:read`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsOperationsOperationIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"],
        "x-mcp-scopes": ["data:read"],
        "x-mcp-response-schema": "#/components/schemas/McpDataOperationV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/webhooks/{endpointId}": {
      "patch": {
        "operationId": "patchV2MetricsWebhooksEndpointId",
        "tags": ["Data webhooks"],
        "summary": "Update a webhook endpoint",
        "description": "Configure event delivery, inspect deliveries, replay events and rotate secrets. Required scopes: `metrics:webhooks`.",
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patchV2MetricsWebhooksEndpointIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:webhooks"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchV2MetricsWebhooksEndpointIdRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteV2MetricsWebhooksEndpointId",
        "tags": ["Data webhooks"],
        "summary": "Delete a webhook endpoint",
        "description": "Configure event delivery, inspect deliveries, replay events and rotate secrets. Required scopes: `metrics:webhooks`.",
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/deleteV2MetricsWebhooksEndpointIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:webhooks"]
      }
    },
    "/api/v2/prompts/{id}/rerun": {
      "post": {
        "operationId": "postV2PromptsIdRerun",
        "tags": ["Prompts"],
        "summary": "Run a prompt now",
        "description": "Queue one manual run through the same workspace execution policy as the dashboard. An optional Idempotency-Key retains the successful response for 24 hours; reusing it returns that response without another execution request, including after the original run completes. The execution request and retry receipt commit atomically. Omit the key only when you do not need retry guarantees. Queuing is not proof that an answer is complete.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Follow the returned operation or answer state to determine the final outcome.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2PromptsIdRerunResponse202"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"]
      }
    },
    "/api/v2/prompts/{id}/tags": {
      "post": {
        "operationId": "postV2PromptsIdTags",
        "tags": ["Prompts"],
        "summary": "Assign groups to a prompt",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2PromptsIdTagsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2PromptsIdTagsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/prompts/tags/bulk": {
      "post": {
        "operationId": "postV2PromptsTagsBulk",
        "tags": ["Prompts"],
        "summary": "Assign groups to multiple prompts",
        "description": "Create, schedule, organise, activate and retrieve tracked prompts. Required scopes: `read`, `write`.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2PromptsTagsBulkResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2PromptsTagsBulkRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/content-gap/prompts/{promptId}/latest": {
      "get": {
        "operationId": "getV2ContentGapPromptsPromptIdLatest",
        "tags": ["Content opportunities"],
        "summary": "Get the latest content gap analysis",
        "description": "Retrieve content-gap findings and recommendations for tracked prompts. Required scopes: `read`.",
        "parameters": [
          {
            "name": "promptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ContentGapPromptsPromptIdLatestResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/metrics/client/bindings/{bindingId}": {
      "delete": {
        "operationId": "deleteV2MetricsClientBindingsBindingId",
        "tags": ["Spreadsheet clients"],
        "summary": "Delete a spreadsheet binding",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/deleteV2MetricsClientBindingsBindingIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/operations/{operationId}": {
      "get": {
        "operationId": "getV2MetricsClientOperationsOperationId",
        "tags": ["Spreadsheet clients"],
        "summary": "Get an operation",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientOperationsOperationIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/writes/{writeClaimId}": {
      "delete": {
        "operationId": "deleteV2MetricsClientWritesWriteClaimId",
        "tags": ["Spreadsheet clients"],
        "summary": "Delete a spreadsheet write claim",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "writeClaimId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/deleteV2MetricsClientWritesWriteClaimIdResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/destinations/{destinationId}/versions": {
      "post": {
        "operationId": "postV2MetricsDestinationsDestinationIdVersions",
        "tags": ["Data delivery"],
        "summary": "Create a version of a delivery destination",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "destinationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDestinationsDestinationIdVersionsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDestinationsDestinationIdVersionsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsDestinationsDestinationIdVersionsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/import-email-intakes/{intakeId}/attachments": {
      "post": {
        "operationId": "postV2MetricsImportEmailIntakesIntakeIdAttachments",
        "tags": ["Data delivery"],
        "summary": "Register an email import attachment",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "intakeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportEmailIntakesIntakeIdAttachmentsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportEmailIntakesIntakeIdAttachmentsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsImportEmailIntakesIntakeIdAttachmentsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/import-sources/{sourceObjectId}/finalize": {
      "post": {
        "operationId": "postV2MetricsImportSourcesSourceObjectIdFinalize",
        "tags": ["Data delivery"],
        "summary": "Finalise an import source",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "sourceObjectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportSourcesSourceObjectIdFinalizeResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"]
      }
    },
    "/api/v2/metrics/import-sources/{sourceObjectId}/profile": {
      "post": {
        "operationId": "postV2MetricsImportSourcesSourceObjectIdProfile",
        "tags": ["Data delivery"],
        "summary": "Profile an import source",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:read`, `metrics:write`.",
        "parameters": [
          {
            "name": "sourceObjectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportSourcesSourceObjectIdProfileResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read", "metrics:write"],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsImportSourcesSourceObjectIdProfileRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/import-sources/{sourceObjectId}/upload-session": {
      "post": {
        "operationId": "postV2MetricsImportSourcesSourceObjectIdUploadSession",
        "tags": ["Data delivery"],
        "summary": "Create an import upload session",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "sourceObjectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportSourcesSourceObjectIdUploadSessionResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"]
      }
    },
    "/api/v2/metrics/imports/{importedDatasetId}/deletion": {
      "post": {
        "operationId": "postV2MetricsImportsImportedDatasetIdDeletion",
        "tags": ["Data delivery"],
        "summary": "Request dataset deletion",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:admin`.",
        "parameters": [
          {
            "name": "importedDatasetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Follow the returned operation or answer state to determine the final outcome.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportsImportedDatasetIdDeletionResponse202"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:admin"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsImportsImportedDatasetIdDeletionRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteV2MetricsImportsImportedDatasetIdDeletion",
        "tags": ["Data delivery"],
        "summary": "Cancel dataset deletion",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:admin`.",
        "parameters": [
          {
            "name": "importedDatasetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/deleteV2MetricsImportsImportedDatasetIdDeletionResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:admin"]
      }
    },
    "/api/v2/metrics/imports/{importedDatasetId}/operations": {
      "post": {
        "operationId": "postV2MetricsImportsImportedDatasetIdOperations",
        "tags": ["Data operations"],
        "summary": "Create an operation",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:execute`.",
        "parameters": [
          {
            "name": "importedDatasetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Follow the returned operation or answer state to determine the final outcome.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsImportsImportedDatasetIdOperationsResponse202"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:execute"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsImportsImportedDatasetIdOperationsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/operations/{operationId}/cancel": {
      "post": {
        "operationId": "postV2MetricsOperationsOperationIdCancel",
        "tags": ["Data operations"],
        "summary": "Cancel an operation",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:execute`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsOperationsOperationIdCancelResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:execute"],
        "x-mcp-scopes": ["data:execute"],
        "x-mcp-response-schema": "#/components/schemas/McpDataOperationMutationV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/operations/{operationId}/results": {
      "get": {
        "operationId": "getV2MetricsOperationsOperationIdResults",
        "tags": ["Data operations"],
        "summary": "Read operation results",
        "description": "Execute, validate, cancel and inspect operations and page through result rows. Required scopes: `metrics:read`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Result-page cursor from the previous response."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000,
              "default": 500
            },
            "description": "Maximum rows in the result page."
          },
          {
            "name": "includeOutput",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Opt into immutable output/schema identity, expiry and bounded pagination metadata. MCP requests this. Cursor exhaustion alone does not prove provider completeness."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsOperationsOperationIdResultsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"],
        "x-mcp-scopes": ["data:read"],
        "x-mcp-response-schema": "#/components/schemas/McpDataResultsV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/queries/{queryId}/insights": {
      "get": {
        "operationId": "getV2MetricsQueriesQueryIdInsights",
        "tags": ["Data queries"],
        "summary": "Read query insights",
        "description": "Create versioned queries, publish definitions and inspect integration contracts. Required scopes: `metrics:read`.",
        "parameters": [
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Query version identifier. Omit to use the current version."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsQueriesQueryIdInsightsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"]
      }
    },
    "/api/v2/metrics/queries/{queryId}/integration-contract": {
      "get": {
        "operationId": "getV2MetricsQueriesQueryIdIntegrationContract",
        "tags": ["Data queries"],
        "summary": "Inspect the query integration contract",
        "description": "Create versioned queries, publish definitions and inspect integration contracts. Required scopes: `metrics:read`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Query version identifier. Omit to use the current version."
          },
          {
            "name": "includeDefinition",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Opt into the complete authorized native definition, validation and catalogue IDs. MCP always requests this and pins versionId; ordinary client responses retain their existing shape."
          },
          {
            "name": "outputsCursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Next cursor for up to 50 readable completed output identities, pinned to the exact query version. Requires includeDefinition."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsQueriesQueryIdIntegrationContractResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:read"],
        "x-mcp-scopes": ["data:read"],
        "x-mcp-response-schema": "#/components/schemas/McpDataQueryContractV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/queries/{queryId}/integration-runs": {
      "post": {
        "operationId": "postV2MetricsQueriesQueryIdIntegrationRuns",
        "tags": ["Data queries"],
        "summary": "Execute a query for an integration",
        "description": "Create versioned queries, publish definitions and inspect integration contracts. Required scopes: `metrics:execute`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Follow the returned operation or answer state to determine the final outcome.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsQueriesQueryIdIntegrationRunsResponse202"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:execute"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsQueriesQueryIdIntegrationRunsRequest"
              }
            }
          }
        },
        "x-mcp-scopes": ["data:execute"],
        "x-mcp-response-schema": "#/components/schemas/McpDataOperationMutationV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/queries/{queryId}/versions": {
      "post": {
        "operationId": "postV2MetricsQueriesQueryIdVersions",
        "tags": ["Data queries"],
        "summary": "Create a version of a query",
        "description": "Create versioned queries, publish definitions and inspect integration contracts. Required scopes: `metrics:write`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsQueriesQueryIdVersionsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsQueriesQueryIdVersionsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsQueriesQueryIdVersionsRequest"
              }
            }
          }
        },
        "x-mcp-scopes": ["data:write"],
        "x-mcp-response-schema": "#/components/schemas/McpDataQueryMutationV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/schedules/{scheduleId}/status": {
      "put": {
        "operationId": "putV2MetricsSchedulesScheduleIdStatus",
        "tags": ["Data delivery"],
        "summary": "Update the status of a refresh schedule",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:execute`.",
        "parameters": [
          {
            "name": "scheduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/putV2MetricsSchedulesScheduleIdStatusResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:execute"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putV2MetricsSchedulesScheduleIdStatusRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/schedules/{scheduleId}/versions": {
      "post": {
        "operationId": "postV2MetricsSchedulesScheduleIdVersions",
        "tags": ["Data delivery"],
        "summary": "Create a version of a refresh schedule",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "scheduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsSchedulesScheduleIdVersionsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsSchedulesScheduleIdVersionsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsSchedulesScheduleIdVersionsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/source-accounts/{sourceAccountId}/exclusion": {
      "put": {
        "operationId": "putV2MetricsSourceAccountsSourceAccountIdExclusion",
        "tags": ["Data connections"],
        "summary": "Update source account exclusion",
        "description": "Discover authorised connections, source accounts and connector catalogues. Required scopes: `metrics:manage`.",
        "parameters": [
          {
            "name": "sourceAccountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/putV2MetricsSourceAccountsSourceAccountIdExclusionResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:manage"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putV2MetricsSourceAccountsSourceAccountIdExclusionRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/transfers/{transferId}/status": {
      "put": {
        "operationId": "putV2MetricsTransfersTransferIdStatus",
        "tags": ["Data delivery"],
        "summary": "Update the status of a data transfer",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:execute`.",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/putV2MetricsTransfersTransferIdStatusResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:execute"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putV2MetricsTransfersTransferIdStatusRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/transfers/{transferId}/versions": {
      "post": {
        "operationId": "postV2MetricsTransfersTransferIdVersions",
        "tags": ["Data delivery"],
        "summary": "Create a version of a data transfer",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsTransfersTransferIdVersionsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsTransfersTransferIdVersionsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsTransfersTransferIdVersionsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/webhooks/{endpointId}/deliveries": {
      "get": {
        "operationId": "getV2MetricsWebhooksEndpointIdDeliveries",
        "tags": ["Data webhooks"],
        "summary": "List webhook deliveries",
        "description": "Configure event delivery, inspect deliveries, replay events and rotate secrets. Required scopes: `metrics:webhooks`.",
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            },
            "description": "Maximum records in the page."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Opaque cursor returned by the previous page. Keep it unchanged."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsWebhooksEndpointIdDeliveriesResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:webhooks"]
      }
    },
    "/api/v2/metrics/webhooks/{endpointId}/rotate": {
      "post": {
        "operationId": "postV2MetricsWebhooksEndpointIdRotate",
        "tags": ["Data webhooks"],
        "summary": "Rotate the webhook signing secret",
        "description": "Configure event delivery, inspect deliveries, replay events and rotate secrets. Required scopes: `metrics:webhooks`.",
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsWebhooksEndpointIdRotateResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:webhooks"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsWebhooksEndpointIdRotateRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/content-gap/prompts/{promptId}/latest/recommendations": {
      "get": {
        "operationId": "getV2ContentGapPromptsPromptIdLatestRecommendations",
        "tags": ["Content opportunities"],
        "summary": "Read content gap recommendations",
        "description": "Retrieve content-gap findings and recommendations for tracked prompts. Required scopes: `read`.",
        "parameters": [
          {
            "name": "promptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2ContentGapPromptsPromptIdLatestRecommendationsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"]
      }
    },
    "/api/v2/metrics/client/bindings/{bindingId}/ownership": {
      "post": {
        "operationId": "postV2MetricsClientBindingsBindingIdOwnership",
        "tags": ["Spreadsheet clients"],
        "summary": "Transfer spreadsheet resource ownership",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientBindingsBindingIdOwnershipResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientBindingsBindingIdOwnershipRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/bindings/{bindingId}/versions": {
      "post": {
        "operationId": "postV2MetricsClientBindingsBindingIdVersions",
        "tags": ["Spreadsheet clients"],
        "summary": "Create a version of a spreadsheet binding",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientBindingsBindingIdVersionsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientBindingsBindingIdVersionsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientBindingsBindingIdVersionsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/operations/{operationId}/cancel": {
      "post": {
        "operationId": "postV2MetricsClientOperationsOperationIdCancel",
        "tags": ["Spreadsheet clients"],
        "summary": "Cancel an operation",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:execute`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientOperationsOperationIdCancelResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:execute"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/operations/{operationId}/results": {
      "get": {
        "operationId": "getV2MetricsClientOperationsOperationIdResults",
        "tags": ["Spreadsheet clients"],
        "summary": "Read operation results",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 2048
            },
            "description": "Result-page cursor from the previous response."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000,
              "default": 500
            },
            "description": "Maximum rows in the result page."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientOperationsOperationIdResultsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/queries/{queryId}/insights": {
      "get": {
        "operationId": "getV2MetricsClientQueriesQueryIdInsights",
        "tags": ["Spreadsheet clients"],
        "summary": "Read query insights",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:read`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Query version identifier. Omit to use the current version."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2MetricsClientQueriesQueryIdInsightsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:read"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/queries/{queryId}/versions": {
      "post": {
        "operationId": "postV2MetricsClientQueriesQueryIdVersions",
        "tags": ["Spreadsheet clients"],
        "summary": "Create a version of a query",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientQueriesQueryIdVersionsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientQueriesQueryIdVersionsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientQueriesQueryIdVersionsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/schedules/{scheduleId}/ownership": {
      "post": {
        "operationId": "postV2MetricsClientSchedulesScheduleIdOwnership",
        "tags": ["Spreadsheet clients"],
        "summary": "Transfer spreadsheet resource ownership",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "scheduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientSchedulesScheduleIdOwnershipResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientSchedulesScheduleIdOwnershipRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/schedules/{scheduleId}/status": {
      "put": {
        "operationId": "putV2MetricsClientSchedulesScheduleIdStatus",
        "tags": ["Spreadsheet clients"],
        "summary": "Update the status of a refresh schedule",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "scheduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/putV2MetricsClientSchedulesScheduleIdStatusResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/putV2MetricsClientSchedulesScheduleIdStatusRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/schedules/{scheduleId}/versions": {
      "post": {
        "operationId": "postV2MetricsClientSchedulesScheduleIdVersions",
        "tags": ["Spreadsheet clients"],
        "summary": "Create a version of a refresh schedule",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "scheduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientSchedulesScheduleIdVersionsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientSchedulesScheduleIdVersionsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientSchedulesScheduleIdVersionsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/writes/{writeClaimId}/checkpoints": {
      "post": {
        "operationId": "postV2MetricsClientWritesWriteClaimIdCheckpoints",
        "tags": ["Spreadsheet clients"],
        "summary": "Record a spreadsheet write checkpoint",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "writeClaimId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientWritesWriteClaimIdCheckpointsResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientWritesWriteClaimIdCheckpointsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client/writes/{writeClaimId}/commit": {
      "post": {
        "operationId": "postV2MetricsClientWritesWriteClaimIdCommit",
        "tags": ["Spreadsheet clients"],
        "summary": "Commit a spreadsheet write",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "writeClaimId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientWritesWriteClaimIdCommitResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientWritesWriteClaimIdCommitRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client-auth/challenges/{challengeId}/exchange": {
      "post": {
        "operationId": "postV2MetricsClientAuthChallengesChallengeIdExchange",
        "tags": ["Client authorisation"],
        "summary": "Exchange an approved authorisation challenge",
        "description": "Authorise spreadsheet clients using a user-approved challenge exchange.",
        "parameters": [
          {
            "name": "challengeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          }
        ],
        "responses": {
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientAuthChallengesChallengeIdExchangeResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientAuthChallengesChallengeIdExchangeRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/definitions/{resourceType}/{resourceId}/versions": {
      "post": {
        "operationId": "postV2MetricsDefinitionsResourceTypeResourceIdVersions",
        "tags": ["Data definitions"],
        "summary": "Create a version of a reusable definition",
        "description": "Manage reusable definitions and their immutable versions. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "resourceType",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "custom-fields",
                "blends",
                "models",
                "table-groups",
                "imported-datasets",
                "client-bindings"
              ],
              "type": "string"
            },
            "description": "The definition collection. The definition body must match this resource type."
          },
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDefinitionsResourceTypeResourceIdVersionsResponse200"
                }
              }
            }
          },
          "201": {
            "description": "Created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDefinitionsResourceTypeResourceIdVersionsResponse201"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsDefinitionsResourceTypeResourceIdVersionsRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/destinations/{destinationId}/versions/{versionId}/publish": {
      "post": {
        "operationId": "postV2MetricsDestinationsDestinationIdVersionsVersionIdPublish",
        "tags": ["Data delivery"],
        "summary": "Publish a version of a delivery destination",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "destinationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDestinationsDestinationIdVersionsVersionIdPublishResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"]
      }
    },
    "/api/v2/metrics/queries/{queryId}/versions/{versionId}/publish": {
      "post": {
        "operationId": "postV2MetricsQueriesQueryIdVersionsVersionIdPublish",
        "tags": ["Data queries"],
        "summary": "Publish a version of a query",
        "description": "Create versioned queries, publish definitions and inspect integration contracts. Required scopes: `metrics:write`.\n\nDelegated MCP access uses current native Data permissions and the exact Data consent scope; there is no separate MCP Data pilot gate. Connections and queries live independently of reports. Service-account Metrics scopes remain unchanged. Reading metadata/results and saving versions never executes or schedules a provider query. Explicit integration runs use normal provider costs and quotas; preserve the same complete request and idempotency key after uncertainty. Query visibility grants consumption, not authorship. Parameterized result reads recheck original query and connection grants.",
        "parameters": [
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsQueriesQueryIdVersionsVersionIdPublishResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"],
        "x-mcp-scopes": ["data:write"],
        "x-mcp-response-schema": "#/components/schemas/McpDataQueryMutationV1",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/metrics/schedules/{scheduleId}/versions/{versionId}/publish": {
      "post": {
        "operationId": "postV2MetricsSchedulesScheduleIdVersionsVersionIdPublish",
        "tags": ["Data delivery"],
        "summary": "Publish a version of a refresh schedule",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "scheduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsSchedulesScheduleIdVersionsVersionIdPublishResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"]
      }
    },
    "/api/v2/metrics/transfers/{transferId}/versions/{versionId}/publish": {
      "post": {
        "operationId": "postV2MetricsTransfersTransferIdVersionsVersionIdPublish",
        "tags": ["Data delivery"],
        "summary": "Publish a version of a data transfer",
        "description": "Manage schedules, transfers, destinations and import workflows. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsTransfersTransferIdVersionsVersionIdPublishResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"]
      }
    },
    "/api/v2/metrics/webhooks/{endpointId}/deliveries/{deliveryId}/replay": {
      "post": {
        "operationId": "postV2MetricsWebhooksEndpointIdDeliveriesDeliveryIdReplay",
        "tags": ["Data webhooks"],
        "summary": "Replay a webhook delivery",
        "description": "Configure event delivery, inspect deliveries, replay events and rotate secrets. Required scopes: `metrics:webhooks`.",
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsWebhooksEndpointIdDeliveriesDeliveryIdReplayResponse200"
                }
              }
            }
          },
          "202": {
            "description": "Accepted. Follow the returned operation or answer state to determine the final outcome.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsWebhooksEndpointIdDeliveriesDeliveryIdReplayResponse202"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:webhooks"]
      }
    },
    "/api/v2/metrics/client/bindings/{bindingId}/versions/{versionId}/publish": {
      "post": {
        "operationId": "postV2MetricsClientBindingsBindingIdVersionsVersionIdPublish",
        "tags": ["Spreadsheet clients"],
        "summary": "Publish a version of a spreadsheet binding",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientBindingsBindingIdVersionsVersionIdPublishResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/queries/{queryId}/versions/{versionId}/publish": {
      "post": {
        "operationId": "postV2MetricsClientQueriesQueryIdVersionsVersionIdPublish",
        "tags": ["Spreadsheet clients"],
        "summary": "Publish a version of a query",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientQueriesQueryIdVersionsVersionIdPublishResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/client/schedules/{scheduleId}/versions/{versionId}/publish": {
      "post": {
        "operationId": "postV2MetricsClientSchedulesScheduleIdVersionsVersionIdPublish",
        "tags": ["Spreadsheet clients"],
        "summary": "Publish a version of a refresh schedule",
        "description": "Access document-bound client sessions, queries, schedules, bindings and write claims. Required scopes: `client:write`.",
        "parameters": [
          {
            "name": "x-metrics-client-audience",
            "in": "header",
            "required": true,
            "schema": {
              "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
              "type": "string"
            },
            "description": "The audience bound to the authorised client session."
          },
          {
            "name": "x-metrics-document-reference",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "The document reference hash bound to the client session."
          },
          {
            "name": "scheduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientSchedulesScheduleIdVersionsVersionIdPublishResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["client:write"],
        "security": [
          {
            "ClientSession": []
          }
        ]
      }
    },
    "/api/v2/metrics/definitions/{resourceType}/{resourceId}/versions/{versionId}/publish": {
      "post": {
        "operationId": "postV2MetricsDefinitionsResourceTypeResourceIdVersionsVersionIdPublish",
        "tags": ["Data definitions"],
        "summary": "Publish a version of a reusable definition",
        "description": "Manage reusable definitions and their immutable versions. Required scopes: `metrics:write`.",
        "parameters": [
          {
            "name": "resourceType",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "custom-fields",
                "blends",
                "models",
                "table-groups",
                "imported-datasets",
                "client-bindings"
              ],
              "type": "string"
            },
            "description": "The definition collection. The definition body must match this resource type."
          },
          {
            "name": "resourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resource identifier returned by the API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 160,
              "pattern": "^[A-Za-z0-9:_-]+$"
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsDefinitionsResourceTypeResourceIdVersionsVersionIdPublishResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DataError"
                    },
                    {
                      "$ref": "#/components/schemas/ApiError"
                    }
                  ]
                }
              }
            }
          }
        },
        "x-required-scopes": ["metrics:write"]
      }
    },
    "/api/v2/mcp/workspaces": {
      "get": {
        "operationId": "getMcpWorkspaces",
        "tags": ["MCP connections"],
        "summary": "List currently accessible authorized workspaces",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current accessible workspaces and their actual consent-filtered capabilities.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpWorkspacesResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid, expired or unauthorized request, rate limit, or temporarily unavailable service."
          }
        }
      },
      "post": {
        "operationId": "createMcpWorkspace",
        "tags": ["MCP connections"],
        "summary": "Create a client brand workspace",
        "description": "Create a standard client brand workspace in the same organization as the connected x-workspace-id. Requires explicit workspaces:create consent and current organization owner/admin membership. Uses native provisioning, memberships and commercial entitlements. The connection receives access to the workspace it creates only. Does not create prompts, run providers or connect analytics. Preserve the retry key and request after uncertainty.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["workspaces:create"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpWorkspaceCreateRequestV1"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Completed native operation; identical retries return the original result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpWorkspaceCreateResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid input, missing consent or denied native access.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/mcp/context": {
      "get": {
        "operationId": "getMcpPromptContext",
        "tags": ["MCP connections"],
        "summary": "Read prompt creation options and permission",
        "security": [
          {
            "McpConnection": []
          },
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Required for delegated MCP connections: an explicitly selected, authorized workspace. Workspace API keys are already bound to their workspace."
          },
          {
            "name": "afterPersonaId",
            "in": "query",
            "required": false,
            "description": "Use nextPersonaCursor to retrieve the next page of existing persona choices.",
            "schema": {
              "type": "string",
              "pattern": "^[1-9]\\d*$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "platforms": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "regions": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "canCreate": {
                          "type": "boolean"
                        },
                        "schedules": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "requiredForCreate": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "personas": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            },
                            "required": ["id", "name"]
                          }
                        },
                        "nextPersonaCursor": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "required": [
                        "platforms",
                        "regions",
                        "canCreate",
                        "schedules",
                        "requiredForCreate"
                      ]
                    }
                  },
                  "required": ["data"]
                }
              }
            }
          },
          "default": {
            "description": "Invalid, expired or unauthorized request, rate limit, or temporarily unavailable service."
          }
        }
      }
    },
    "/api/v2/mcp/token": {
      "post": {
        "operationId": "exchangeMcpConsentCode",
        "tags": ["MCP connections"],
        "summary": "Exchange a one-time Chatobserver consent code",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "access_token": {
                      "type": "string"
                    },
                    "token_type": {
                      "type": "string",
                      "const": "Bearer"
                    },
                    "scope": {
                      "type": "string"
                    },
                    "expires_in": {
                      "type": "integer"
                    },
                    "user_id": {
                      "type": "string"
                    }
                  },
                  "required": ["access_token", "token_type", "scope", "expires_in", "user_id"]
                }
              }
            }
          },
          "default": {
            "description": "Invalid, expired or unauthorized request, rate limit, or temporarily unavailable service."
          }
        },
        "description": "For the Chatobserver MCP connector only. Requires a short-lived consent code and its S256 PKCE verifier, and the configured connector callback. This is not the MCP client OAuth token endpoint. Codes can be exchanged once.",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "grant_type": {
                    "type": "string",
                    "const": "authorization_code"
                  },
                  "code": {
                    "type": "string"
                  },
                  "code_verifier": {
                    "type": "string",
                    "minLength": 43,
                    "maxLength": 128
                  },
                  "redirect_uri": {
                    "type": "string",
                    "format": "uri"
                  },
                  "client_id": {
                    "type": "string",
                    "const": "chatobserver-mcp"
                  }
                },
                "required": ["grant_type", "code", "code_verifier", "redirect_uri", "client_id"]
              }
            }
          }
        }
      }
    },
    "/api/v2/sentiment/overview": {
      "get": {
        "operationId": "getV2SentimentOverview",
        "tags": ["Answers"],
        "summary": "Read sentiment overview",
        "description": "Returns the same workspace-scoped overview data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the sentiment:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "allTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "chatgpt", "gemini", "perplexity", "claude", "ai_mode", "ai_overview"]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "brandScope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "workspace_brand", "competitor", "other_brand"]
            }
          },
          {
            "name": "competitorId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "sentiment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "positive", "negative", "neutral", "mixed"]
            }
          },
          {
            "name": "brandsSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "brand",
                "targetKind",
                "mentions",
                "positive",
                "negative",
                "mixed",
                "netSentiment",
                "averageRank"
              ]
            }
          },
          {
            "name": "brandsSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "occurredAt",
                "quote",
                "brand",
                "sentiment",
                "aspect",
                "prompt",
                "model",
                "region"
              ]
            }
          },
          {
            "name": "evidenceSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceAspect",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "evidenceSearch",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "seriesGranularity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["day", "week", "month"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2SentimentOverviewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/sentiment/series": {
      "get": {
        "operationId": "getV2SentimentSeries",
        "tags": ["Answers"],
        "summary": "Read sentiment series",
        "description": "Returns the same workspace-scoped series data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the sentiment:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "allTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "chatgpt", "gemini", "perplexity", "claude", "ai_mode", "ai_overview"]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "brandScope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "workspace_brand", "competitor", "other_brand"]
            }
          },
          {
            "name": "competitorId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "sentiment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "positive", "negative", "neutral", "mixed"]
            }
          },
          {
            "name": "brandsSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "brand",
                "targetKind",
                "mentions",
                "positive",
                "negative",
                "mixed",
                "netSentiment",
                "averageRank"
              ]
            }
          },
          {
            "name": "brandsSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "occurredAt",
                "quote",
                "brand",
                "sentiment",
                "aspect",
                "prompt",
                "model",
                "region"
              ]
            }
          },
          {
            "name": "evidenceSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceAspect",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "evidenceSearch",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "seriesGranularity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["day", "week", "month"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2SentimentSeriesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/sentiment/models": {
      "get": {
        "operationId": "getV2SentimentModels",
        "tags": ["Answers"],
        "summary": "Read sentiment models",
        "description": "Returns the same workspace-scoped models data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the sentiment:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "allTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "chatgpt", "gemini", "perplexity", "claude", "ai_mode", "ai_overview"]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "brandScope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "workspace_brand", "competitor", "other_brand"]
            }
          },
          {
            "name": "competitorId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "sentiment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "positive", "negative", "neutral", "mixed"]
            }
          },
          {
            "name": "brandsSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "brand",
                "targetKind",
                "mentions",
                "positive",
                "negative",
                "mixed",
                "netSentiment",
                "averageRank"
              ]
            }
          },
          {
            "name": "brandsSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "occurredAt",
                "quote",
                "brand",
                "sentiment",
                "aspect",
                "prompt",
                "model",
                "region"
              ]
            }
          },
          {
            "name": "evidenceSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceAspect",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "evidenceSearch",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "seriesGranularity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["day", "week", "month"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2SentimentModelsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/sentiment/brands": {
      "get": {
        "operationId": "getV2SentimentBrands",
        "tags": ["Answers"],
        "summary": "Read sentiment brands",
        "description": "Returns the same workspace-scoped brands data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the sentiment:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "allTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "chatgpt", "gemini", "perplexity", "claude", "ai_mode", "ai_overview"]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "brandScope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "workspace_brand", "competitor", "other_brand"]
            }
          },
          {
            "name": "competitorId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "sentiment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "positive", "negative", "neutral", "mixed"]
            }
          },
          {
            "name": "brandsSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "brand",
                "targetKind",
                "mentions",
                "positive",
                "negative",
                "mixed",
                "netSentiment",
                "averageRank"
              ]
            }
          },
          {
            "name": "brandsSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "occurredAt",
                "quote",
                "brand",
                "sentiment",
                "aspect",
                "prompt",
                "model",
                "region"
              ]
            }
          },
          {
            "name": "evidenceSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceAspect",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "evidenceSearch",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "seriesGranularity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["day", "week", "month"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2SentimentBrandsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/sentiment/aspects": {
      "get": {
        "operationId": "getV2SentimentAspects",
        "tags": ["Answers"],
        "summary": "Read sentiment aspects",
        "description": "Returns the same workspace-scoped aspects data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the sentiment:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "allTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "chatgpt", "gemini", "perplexity", "claude", "ai_mode", "ai_overview"]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "brandScope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "workspace_brand", "competitor", "other_brand"]
            }
          },
          {
            "name": "competitorId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "sentiment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "positive", "negative", "neutral", "mixed"]
            }
          },
          {
            "name": "brandsSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "brand",
                "targetKind",
                "mentions",
                "positive",
                "negative",
                "mixed",
                "netSentiment",
                "averageRank"
              ]
            }
          },
          {
            "name": "brandsSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "occurredAt",
                "quote",
                "brand",
                "sentiment",
                "aspect",
                "prompt",
                "model",
                "region"
              ]
            }
          },
          {
            "name": "evidenceSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceAspect",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "evidenceSearch",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "seriesGranularity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["day", "week", "month"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2SentimentAspectsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/sentiment/evidence": {
      "get": {
        "operationId": "getV2SentimentEvidence",
        "tags": ["Answers"],
        "summary": "Read sentiment evidence",
        "description": "Returns the same workspace-scoped evidence data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the sentiment:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "allTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "chatgpt", "gemini", "perplexity", "claude", "ai_mode", "ai_overview"]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "brandScope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "workspace_brand", "competitor", "other_brand"]
            }
          },
          {
            "name": "competitorId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "sentiment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "positive", "negative", "neutral", "mixed"]
            }
          },
          {
            "name": "brandsSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "brand",
                "targetKind",
                "mentions",
                "positive",
                "negative",
                "mixed",
                "netSentiment",
                "averageRank"
              ]
            }
          },
          {
            "name": "brandsSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceSortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "occurredAt",
                "quote",
                "brand",
                "sentiment",
                "aspect",
                "prompt",
                "model",
                "region"
              ]
            }
          },
          {
            "name": "evidenceSortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceAspect",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "evidenceSearch",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "seriesGranularity",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["day", "week", "month"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2SentimentEvidenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/ai-referrals/overview": {
      "get": {
        "operationId": "getV2AiReferralsOverview",
        "tags": ["Visitor analytics"],
        "summary": "Read ai referrals overview",
        "description": "Returns the same workspace-scoped overview data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the ai-referrals:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "chatgpt.com",
                "claude.ai",
                "copilot.microsoft.com",
                "gemini.google.com",
                "perplexity.ai",
                "unknown"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["pageview", "event", "all"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AiReferralsOverviewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/ai-referrals/series": {
      "get": {
        "operationId": "getV2AiReferralsSeries",
        "tags": ["Visitor analytics"],
        "summary": "Read ai referrals series",
        "description": "Returns the same workspace-scoped series data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the ai-referrals:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "chatgpt.com",
                "claude.ai",
                "copilot.microsoft.com",
                "gemini.google.com",
                "perplexity.ai",
                "unknown"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["pageview", "event", "all"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AiReferralsSeriesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/ai-referrals/landing-pages": {
      "get": {
        "operationId": "getV2AiReferralsLandingPages",
        "tags": ["Visitor analytics"],
        "summary": "Read ai referrals landing pages",
        "description": "Returns the same workspace-scoped landing pages data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the ai-referrals:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "chatgpt.com",
                "claude.ai",
                "copilot.microsoft.com",
                "gemini.google.com",
                "perplexity.ai",
                "unknown"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["pageview", "event", "all"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AiReferralsLandingPagesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/ai-referrals/referrers": {
      "get": {
        "operationId": "getV2AiReferralsReferrers",
        "tags": ["Visitor analytics"],
        "summary": "Read ai referrals referrers",
        "description": "Returns the same workspace-scoped referrers data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the ai-referrals:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "chatgpt.com",
                "claude.ai",
                "copilot.microsoft.com",
                "gemini.google.com",
                "perplexity.ai",
                "unknown"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["pageview", "event", "all"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AiReferralsReferrersResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/ai-referrals/devices": {
      "get": {
        "operationId": "getV2AiReferralsDevices",
        "tags": ["Visitor analytics"],
        "summary": "Read ai referrals devices",
        "description": "Returns the same workspace-scoped devices data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the ai-referrals:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "chatgpt.com",
                "claude.ai",
                "copilot.microsoft.com",
                "gemini.google.com",
                "perplexity.ai",
                "unknown"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["pageview", "event", "all"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AiReferralsDevicesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/ai-referrals/events": {
      "get": {
        "operationId": "getV2AiReferralsEvents",
        "tags": ["Visitor analytics"],
        "summary": "Read ai referrals events",
        "description": "Returns the same workspace-scoped events data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the ai-referrals:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "chatgpt.com",
                "claude.ai",
                "copilot.microsoft.com",
                "gemini.google.com",
                "perplexity.ai",
                "unknown"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["pageview", "event", "all"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AiReferralsEventsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/ai-referrals/sessions": {
      "get": {
        "operationId": "getV2AiReferralsSessions",
        "tags": ["Visitor analytics"],
        "summary": "Read ai referrals sessions",
        "description": "Returns the same workspace-scoped sessions data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the ai-referrals:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "chatgpt.com",
                "claude.ai",
                "copilot.microsoft.com",
                "gemini.google.com",
                "perplexity.ai",
                "unknown"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["pageview", "event", "all"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2AiReferralsSessionsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/crawler-logs/overview": {
      "get": {
        "operationId": "getV2CrawlerLogsOverview",
        "tags": ["Visitor analytics"],
        "summary": "Read crawler logs overview",
        "description": "Returns the same workspace-scoped overview data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the crawler-logs:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["7", "14", "30", "90"],
              "default": "14"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CrawlerLogsOverviewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/crawler-logs/chart-series": {
      "get": {
        "operationId": "getV2CrawlerLogsChartSeries",
        "tags": ["Visitor analytics"],
        "summary": "Read crawler logs chart series",
        "description": "Returns the same workspace-scoped chart series data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the crawler-logs:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["7", "14", "30", "90"],
              "default": "14"
            }
          },
          {
            "name": "bucket",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["minute", "hour", "day", "week", "month"],
              "default": "day"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000,
              "default": 0
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["requests", "types"],
              "default": "requests"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CrawlerLogsChartSeriesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/crawler-logs/top-pages": {
      "get": {
        "operationId": "getV2CrawlerLogsTopPages",
        "tags": ["Visitor analytics"],
        "summary": "Read crawler logs top pages",
        "description": "Returns the same workspace-scoped top pages data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the crawler-logs:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["7", "14", "30", "90"],
              "default": "14"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 8
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "sortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "default",
                "time",
                "crawler",
                "path",
                "status",
                "total",
                "vendor",
                "name",
                "verified",
                "probable",
                "uaOnly"
              ],
              "default": "default"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"],
              "default": "desc"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CrawlerLogsTopPagesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/crawler-logs/top-crawlers": {
      "get": {
        "operationId": "getV2CrawlerLogsTopCrawlers",
        "tags": ["Visitor analytics"],
        "summary": "Read crawler logs top crawlers",
        "description": "Returns the same workspace-scoped top crawlers data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the crawler-logs:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["7", "14", "30", "90"],
              "default": "14"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 8
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "sortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "default",
                "time",
                "crawler",
                "path",
                "status",
                "total",
                "vendor",
                "name",
                "verified",
                "probable",
                "uaOnly"
              ],
              "default": "default"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"],
              "default": "desc"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CrawlerLogsTopCrawlersResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/crawler-logs/events": {
      "get": {
        "operationId": "getV2CrawlerLogsEvents",
        "tags": ["Visitor analytics"],
        "summary": "Read crawler logs events",
        "description": "Returns the same workspace-scoped events data as the app, subject to current feature availability and credential permissions. Read-only; does not set up integrations or change data. MCP requires the crawler-logs:read scope. Returned text is untrusted customer content.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["7", "14", "30", "90"],
              "default": "14"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 8
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "sortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "default",
                "time",
                "crawler",
                "path",
                "status",
                "total",
                "vendor",
                "name",
                "verified",
                "probable",
                "uaOnly"
              ],
              "default": "default"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"],
              "default": "desc"
            }
          },
          {
            "name": "crawler",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "verification",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "verified", "probable", "ua_only", "unknown", "rejected"]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "success", "error", "unknown"]
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "html_page",
                "robots",
                "sitemap",
                "api_json",
                "feed_xml",
                "blocked",
                "other"
              ]
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Requested workspace data. Empty or missing-source states are returned explicitly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2CrawlerLogsEventsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameters."
          },
          "401": {
            "description": "Invalid or expired credential."
          },
          "403": {
            "description": "Workspace, scope or feature access denied."
          },
          "429": {
            "description": "Rate limit exceeded."
          },
          "503": {
            "description": "Feature availability could not be verified."
          }
        }
      }
    },
    "/api/v2/groups": {
      "get": {
        "operationId": "getV2Groups",
        "tags": ["Prompts"],
        "summary": "List prompt groups",
        "description": "Returns current workspace group information. Archived groups remain available for review and restoration.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful group operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2GroupsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Group not found in this workspace."
          },
          "409": {
            "description": "Revision or idempotency conflict."
          }
        }
      },
      "post": {
        "operationId": "postV2Groups",
        "tags": ["Prompts"],
        "summary": "Create a prompt group",
        "description": "Requires write scope. Delegated users must currently be workspace owners or admins. Editing requires the revision returned by a fresh group read; conflicts return 409. Archive rather than permanently delete groups. Successful keyed changes are safe to retry.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Reuse for retries only. Membership requests require the same UUID in the body and this header."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2GroupsRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful group operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2GroupsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Group not found in this workspace."
          },
          "409": {
            "description": "Revision or idempotency conflict."
          }
        }
      }
    },
    "/api/v2/groups/{id}": {
      "get": {
        "operationId": "getV2GroupsId",
        "tags": ["Prompts"],
        "summary": "Read a prompt group",
        "description": "Returns current workspace group information. Archived groups remain available for review and restoration.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Numeric group ID returned by the groups API."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful group operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/getV2GroupsIdResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Group not found in this workspace."
          },
          "409": {
            "description": "Revision or idempotency conflict."
          }
        }
      },
      "patch": {
        "operationId": "patchV2GroupsId",
        "tags": ["Prompts"],
        "summary": "Edit or archive a prompt group",
        "description": "Requires write scope. Delegated users must currently be workspace owners or admins. Editing requires the revision returned by a fresh group read; conflicts return 409. Archive rather than permanently delete groups. Successful keyed changes are safe to retry.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Numeric group ID returned by the groups API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Reuse for retries only. Membership requests require the same UUID in the body and this header."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchV2GroupsIdRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful group operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patchV2GroupsIdResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Group not found in this workspace."
          },
          "409": {
            "description": "Revision or idempotency conflict."
          }
        }
      }
    },
    "/api/v2/groups/{id}/memberships": {
      "patch": {
        "operationId": "patchV2GroupsIdMemberships",
        "tags": ["Prompts"],
        "summary": "Change prompt group membership",
        "description": "Requires write scope. Delegated users must currently be workspace owners or admins. Editing requires the revision returned by a fresh group read; conflicts return 409. Archive rather than permanently delete groups. Successful keyed changes are safe to retry.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Numeric group ID returned by the groups API."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Reuse for retries only. Membership requests require the same UUID in the body and this header."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchV2GroupsIdMembershipsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful group operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patchV2GroupsIdMembershipsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Group not found in this workspace."
          },
          "409": {
            "description": "Revision or idempotency conflict."
          }
        }
      }
    },
    "/api/v2/prompts/archive": {
      "patch": {
        "operationId": "patchV2PromptsArchive",
        "tags": ["Prompts"],
        "summary": "Archive monitoring prompts",
        "description": "Change the archived state of up to 200 prompts atomically, preserving historical records. The archived state of answers follows the prompt. Required scopes: read and write. An Idempotency-Key makes retries safe for 24 hours.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patchV2PromptsActivateResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchV2PromptsActivateRequest"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ]
      }
    },
    "/api/v2/prompts/unarchive": {
      "patch": {
        "operationId": "patchV2PromptsUnarchive",
        "tags": ["Prompts"],
        "summary": "Unarchive monitoring prompts",
        "description": "Change the archived state of up to 200 prompts atomically, preserving historical records. The archived state of answers follows the prompt. Required scopes: read and write. An Idempotency-Key makes retries safe for 24 hours.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patchV2PromptsActivateResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patchV2PromptsActivateRequest"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ]
      }
    },
    "/api/v2/sources/explorer": {
      "get": {
        "operationId": "getV2SourcesExplorer",
        "tags": ["Sources"],
        "summary": "Explore cited sources",
        "description": "Reads the current workspace only, subject to current product access. MCP requires the matching sources or competitors read permission.",
        "parameters": [
          {
            "name": "view",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": ["overview", "domains", "domain-detail", "prompt-runs", "prompt-run-count"]
            }
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 365
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["mentions", "influence"]
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "domainSearch",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "domainLimit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            }
          },
          {
            "name": "ownership",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "owned", "competitor", "third_party"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 10,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "sortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "default",
                "promptCount",
                "change",
                "rootDomain",
                "promptSummary",
                "mentionCount",
                "influenceScore",
                "citationCount",
                "linkCount",
                "firstSeenAt",
                "lastSeenAt",
                "promptRunId",
                "promptLabel",
                "runCompletedAt"
              ]
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "pagesPage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "evidencePage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "pagesSort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["default", "url", "citations", "links", "answers", "prompts", "lastSeen"]
            }
          },
          {
            "name": "evidenceSort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["default", "prompt", "date", "citations", "links"]
            }
          },
          {
            "name": "pagesDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string",
                          "const": "overview"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "window": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "string"
                                },
                                "end": {
                                  "type": "string"
                                },
                                "days": {
                                  "type": "number"
                                }
                              },
                              "required": ["start", "end", "days"],
                              "additionalProperties": false
                            },
                            "filters": {
                              "type": "object",
                              "properties": {
                                "promptId": {
                                  "type": ["number", "null"]
                                },
                                "rootDomain": {
                                  "type": ["string", "null"]
                                },
                                "platform": {
                                  "type": ["string", "null"]
                                },
                                "region": {
                                  "type": ["string", "null"]
                                },
                                "groupId": {
                                  "type": ["number", "null"]
                                },
                                "windowDays": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "promptId",
                                "rootDomain",
                                "platform",
                                "region",
                                "groupId",
                                "windowDays"
                              ],
                              "additionalProperties": false
                            },
                            "metadata": {
                              "type": "object",
                              "properties": {
                                "platformOptions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "type": "string"
                                      },
                                      "label": {
                                        "type": "string"
                                      },
                                      "count": {
                                        "type": "number"
                                      }
                                    },
                                    "required": ["value", "label", "count"],
                                    "additionalProperties": false
                                  }
                                },
                                "regionOptions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "type": "string"
                                      },
                                      "label": {
                                        "type": "string"
                                      },
                                      "count": {
                                        "type": "number"
                                      }
                                    },
                                    "required": ["value", "label", "count"],
                                    "additionalProperties": false
                                  }
                                },
                                "groupOptions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "number"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "promptCount": {
                                        "type": "number"
                                      }
                                    },
                                    "required": ["id", "name", "promptCount"],
                                    "additionalProperties": false
                                  }
                                },
                                "ownedDomains": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "competitorDomains": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "platformOptions",
                                "regionOptions",
                                "groupOptions",
                                "ownedDomains",
                                "competitorDomains"
                              ],
                              "additionalProperties": false
                            },
                            "stats": {
                              "type": "object",
                              "properties": {
                                "mentionCount": {
                                  "type": "number"
                                },
                                "influenceScore": {
                                  "type": "number"
                                },
                                "citationCount": {
                                  "type": "number"
                                },
                                "linkCount": {
                                  "type": "number"
                                },
                                "uniqueDomains": {
                                  "type": "number"
                                },
                                "activePrompts": {
                                  "type": "number"
                                },
                                "latestActivityAt": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": [
                                "mentionCount",
                                "influenceScore",
                                "citationCount",
                                "linkCount",
                                "uniqueDomains",
                                "activePrompts",
                                "latestActivityAt"
                              ],
                              "additionalProperties": false
                            },
                            "domainAggregates": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "rootDomain": {
                                    "type": "string"
                                  },
                                  "mentionCount": {
                                    "type": "number"
                                  },
                                  "influenceScore": {
                                    "type": "number"
                                  }
                                },
                                "required": ["rootDomain", "mentionCount", "influenceScore"],
                                "additionalProperties": false
                              }
                            },
                            "domainOptions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "rootDomain": {
                                    "type": "string"
                                  },
                                  "mentionCount": {
                                    "type": "number"
                                  }
                                },
                                "required": ["rootDomain", "mentionCount"],
                                "additionalProperties": false
                              }
                            },
                            "dailyTotals": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "bucketDay": {
                                    "type": "string"
                                  },
                                  "mentionCount": {
                                    "type": "number"
                                  },
                                  "influenceScore": {
                                    "type": "number"
                                  }
                                },
                                "required": ["bucketDay", "mentionCount", "influenceScore"],
                                "additionalProperties": false
                              }
                            },
                            "dailyMentions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "bucketDay": {
                                    "type": ["string", "null"]
                                  },
                                  "rootDomain": {
                                    "type": ["string", "null"]
                                  },
                                  "promptId": {
                                    "type": ["number", "null"]
                                  },
                                  "promptLabel": {
                                    "type": ["string", "null"]
                                  },
                                  "mentionCount": {
                                    "type": "number"
                                  },
                                  "influenceScore": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "bucketDay",
                                  "rootDomain",
                                  "promptId",
                                  "promptLabel",
                                  "mentionCount",
                                  "influenceScore"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "comparison": {
                              "type": "object",
                              "properties": {
                                "days": {
                                  "type": "number"
                                },
                                "hasComparison": {
                                  "type": "boolean"
                                },
                                "window": {
                                  "type": "object",
                                  "properties": {
                                    "mentionCount": {
                                      "type": "number"
                                    },
                                    "domainCount": {
                                      "type": "number"
                                    },
                                    "promptCount": {
                                      "type": "number"
                                    },
                                    "ownedMentionCount": {
                                      "type": "number"
                                    },
                                    "competitorMentionCount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "mentionCount",
                                    "domainCount",
                                    "promptCount",
                                    "ownedMentionCount",
                                    "competitorMentionCount"
                                  ],
                                  "additionalProperties": false
                                },
                                "prior": {
                                  "type": "object",
                                  "properties": {
                                    "mentionCount": {
                                      "type": "number"
                                    },
                                    "domainCount": {
                                      "type": "number"
                                    },
                                    "promptCount": {
                                      "type": "number"
                                    },
                                    "ownedMentionCount": {
                                      "type": "number"
                                    },
                                    "competitorMentionCount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "mentionCount",
                                    "domainCount",
                                    "promptCount",
                                    "ownedMentionCount",
                                    "competitorMentionCount"
                                  ],
                                  "additionalProperties": false
                                },
                                "recent": {
                                  "type": "object",
                                  "properties": {
                                    "mentionCount": {
                                      "type": "number"
                                    },
                                    "domainCount": {
                                      "type": "number"
                                    },
                                    "promptCount": {
                                      "type": "number"
                                    },
                                    "ownedMentionCount": {
                                      "type": "number"
                                    },
                                    "competitorMentionCount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "mentionCount",
                                    "domainCount",
                                    "promptCount",
                                    "ownedMentionCount",
                                    "competitorMentionCount"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["days", "hasComparison", "window", "prior", "recent"],
                              "additionalProperties": false
                            },
                            "insights": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "const": "top-domain"
                                      },
                                      "rootDomain": {
                                        "type": "string"
                                      },
                                      "mentionCount": {
                                        "type": "number"
                                      },
                                      "share": {
                                        "type": ["number", "null"]
                                      }
                                    },
                                    "required": ["id", "rootDomain", "mentionCount", "share"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "const": "rising-domain"
                                      },
                                      "rootDomain": {
                                        "type": "string"
                                      },
                                      "delta": {
                                        "type": "number"
                                      },
                                      "latest": {
                                        "type": "number"
                                      },
                                      "previous": {
                                        "type": "number"
                                      },
                                      "momentumPercent": {
                                        "type": ["number", "null"]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "rootDomain",
                                      "delta",
                                      "latest",
                                      "previous",
                                      "momentumPercent"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "const": "top-prompt"
                                      },
                                      "promptId": {
                                        "type": ["number", "null"]
                                      },
                                      "promptLabel": {
                                        "type": ["string", "null"]
                                      },
                                      "mentionCount": {
                                        "type": "number"
                                      },
                                      "share": {
                                        "type": ["number", "null"]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "promptId",
                                      "promptLabel",
                                      "mentionCount",
                                      "share"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "const": "latest-activity"
                                      },
                                      "activityAt": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["id", "activityAt"],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            },
                            "generatedAt": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "window",
                            "filters",
                            "metadata",
                            "stats",
                            "domainAggregates",
                            "domainOptions",
                            "dailyTotals",
                            "dailyMentions",
                            "comparison",
                            "insights",
                            "generatedAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": ["view", "data"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string",
                          "const": "domains"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "pageInfo": {
                              "type": "object",
                              "properties": {
                                "page": {
                                  "type": "number"
                                },
                                "pageSize": {
                                  "type": "number"
                                },
                                "total": {
                                  "type": "number"
                                },
                                "counts": {
                                  "type": "object",
                                  "properties": {
                                    "all": {
                                      "type": "number"
                                    },
                                    "owned": {
                                      "type": "number"
                                    },
                                    "competitor": {
                                      "type": "number"
                                    },
                                    "third_party": {
                                      "type": "number"
                                    }
                                  },
                                  "required": ["all", "owned", "competitor", "third_party"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["page", "pageSize", "total", "counts"],
                              "additionalProperties": false
                            },
                            "domainTotals": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "rootDomain": {
                                    "type": ["string", "null"]
                                  },
                                  "mentionCount": {
                                    "type": "number"
                                  },
                                  "influenceScore": {
                                    "type": "number"
                                  },
                                  "citationCount": {
                                    "type": "number"
                                  },
                                  "linkCount": {
                                    "type": "number"
                                  },
                                  "category": {
                                    "type": "string",
                                    "enum": [
                                      "owned",
                                      "competitor",
                                      "editorial",
                                      "community",
                                      "review",
                                      "marketplace"
                                    ]
                                  },
                                  "ownership": {
                                    "type": "string",
                                    "enum": ["owned", "competitor", "third_party"]
                                  },
                                  "classificationSource": {
                                    "type": "string",
                                    "enum": ["manual", "brand", "system"]
                                  },
                                  "isTracked": {
                                    "type": "boolean"
                                  },
                                  "targetUrl": {
                                    "type": ["string", "null"]
                                  },
                                  "notes": {
                                    "type": ["string", "null"]
                                  },
                                  "firstSeenAt": {
                                    "type": ["string", "null"]
                                  },
                                  "lastSeenAt": {
                                    "type": ["string", "null"]
                                  },
                                  "dailyMentions": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "string"
                                        },
                                        "mentionCount": {
                                          "type": "number"
                                        }
                                      },
                                      "required": ["day", "mentionCount"],
                                      "additionalProperties": false
                                    }
                                  },
                                  "prompts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": ["number", "null"]
                                        },
                                        "label": {
                                          "type": ["string", "null"]
                                        }
                                      },
                                      "required": ["id", "label"],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "rootDomain",
                                  "mentionCount",
                                  "influenceScore",
                                  "citationCount",
                                  "linkCount",
                                  "category",
                                  "ownership",
                                  "classificationSource",
                                  "isTracked",
                                  "targetUrl",
                                  "notes",
                                  "firstSeenAt",
                                  "lastSeenAt",
                                  "prompts"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "generatedAt": {
                              "type": "string"
                            }
                          },
                          "required": ["domainTotals", "generatedAt"],
                          "additionalProperties": false
                        }
                      },
                      "required": ["view", "data"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string",
                          "const": "domain-detail"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "pagination": {
                              "type": "object",
                              "properties": {
                                "pageSize": {
                                  "type": "number"
                                },
                                "pagesTotal": {
                                  "type": "number"
                                },
                                "evidenceTotal": {
                                  "type": "number"
                                }
                              },
                              "required": ["pageSize", "pagesTotal", "evidenceTotal"],
                              "additionalProperties": false
                            },
                            "domain": {
                              "type": "string"
                            },
                            "window": {
                              "type": "object",
                              "properties": {
                                "start": {
                                  "type": "string"
                                },
                                "end": {
                                  "type": "string"
                                },
                                "days": {
                                  "type": "number"
                                }
                              },
                              "required": ["start", "end", "days"],
                              "additionalProperties": false
                            },
                            "profile": {
                              "type": "object",
                              "properties": {
                                "domain": {
                                  "type": "string"
                                },
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "owned",
                                    "competitor",
                                    "editorial",
                                    "community",
                                    "review",
                                    "marketplace"
                                  ]
                                },
                                "ownership": {
                                  "type": "string",
                                  "enum": ["owned", "competitor", "third_party"]
                                },
                                "classificationSource": {
                                  "type": "string",
                                  "enum": ["manual", "brand", "system"]
                                },
                                "isTracked": {
                                  "type": "boolean"
                                },
                                "targetUrl": {
                                  "type": ["string", "null"]
                                },
                                "notes": {
                                  "type": ["string", "null"]
                                },
                                "updatedAt": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": [
                                "domain",
                                "category",
                                "ownership",
                                "classificationSource",
                                "isTracked",
                                "targetUrl",
                                "notes",
                                "updatedAt"
                              ],
                              "additionalProperties": false
                            },
                            "matchedCompetitor": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "number"
                                    },
                                    "label": {
                                      "type": "string"
                                    },
                                    "isOwnBrand": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": ["id", "label", "isOwnBrand"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "summary": {
                              "type": "object",
                              "properties": {
                                "mentionCount": {
                                  "type": "number"
                                },
                                "influenceScore": {
                                  "type": "number"
                                },
                                "citationCount": {
                                  "type": "number"
                                },
                                "linkCount": {
                                  "type": "number"
                                },
                                "promptCount": {
                                  "type": "number"
                                },
                                "answerCount": {
                                  "type": "number"
                                },
                                "firstSeenAt": {
                                  "type": ["string", "null"]
                                },
                                "lastSeenAt": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": [
                                "mentionCount",
                                "influenceScore",
                                "citationCount",
                                "linkCount",
                                "promptCount",
                                "answerCount",
                                "firstSeenAt",
                                "lastSeenAt"
                              ],
                              "additionalProperties": false
                            },
                            "daily": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "bucketDay": {
                                    "type": "string"
                                  },
                                  "mentionCount": {
                                    "type": "number"
                                  },
                                  "citationCount": {
                                    "type": "number"
                                  },
                                  "linkCount": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "bucketDay",
                                  "mentionCount",
                                  "citationCount",
                                  "linkCount"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "pages": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "pageKey": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "type": "string"
                                  },
                                  "rawUrl": {
                                    "type": "string"
                                  },
                                  "title": {
                                    "type": ["string", "null"]
                                  },
                                  "citationCount": {
                                    "type": "number"
                                  },
                                  "linkCount": {
                                    "type": "number"
                                  },
                                  "answerCount": {
                                    "type": "number"
                                  },
                                  "promptCount": {
                                    "type": "number"
                                  },
                                  "firstSeenAt": {
                                    "type": ["string", "null"]
                                  },
                                  "lastSeenAt": {
                                    "type": ["string", "null"]
                                  }
                                },
                                "required": [
                                  "pageKey",
                                  "url",
                                  "rawUrl",
                                  "title",
                                  "citationCount",
                                  "linkCount",
                                  "answerCount",
                                  "promptCount",
                                  "firstSeenAt",
                                  "lastSeenAt"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "evidence": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "promptRunId": {
                                    "type": "number"
                                  },
                                  "promptId": {
                                    "type": "number"
                                  },
                                  "promptLabel": {
                                    "type": "string"
                                  },
                                  "mentionCount": {
                                    "type": "number"
                                  },
                                  "citationCount": {
                                    "type": "number"
                                  },
                                  "linkCount": {
                                    "type": "number"
                                  },
                                  "occurredAt": {
                                    "type": ["string", "null"]
                                  }
                                },
                                "required": [
                                  "promptRunId",
                                  "promptId",
                                  "promptLabel",
                                  "mentionCount",
                                  "citationCount",
                                  "linkCount",
                                  "occurredAt"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "groups": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "number"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "answerCount": {
                                    "type": "number"
                                  },
                                  "promptCount": {
                                    "type": "number"
                                  }
                                },
                                "required": ["id", "name", "answerCount", "promptCount"],
                                "additionalProperties": false
                              }
                            },
                            "generatedAt": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "domain",
                            "window",
                            "profile",
                            "matchedCompetitor",
                            "summary",
                            "daily",
                            "pages",
                            "evidence",
                            "groups",
                            "generatedAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": ["view", "data"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string",
                          "const": "prompt-runs"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "rows": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "promptRunId": {
                                    "type": ["number", "null"]
                                  },
                                  "promptId": {
                                    "type": ["number", "null"]
                                  },
                                  "promptLabel": {
                                    "type": ["string", "null"]
                                  },
                                  "rootDomain": {
                                    "type": ["string", "null"]
                                  },
                                  "mentionCount": {
                                    "type": "number"
                                  },
                                  "influenceScore": {
                                    "type": "number"
                                  },
                                  "firstSeenAt": {
                                    "type": ["string", "null"]
                                  },
                                  "lastSeenAt": {
                                    "type": ["string", "null"]
                                  },
                                  "runCompletedAt": {
                                    "type": ["string", "null"]
                                  }
                                },
                                "required": [
                                  "promptRunId",
                                  "promptId",
                                  "promptLabel",
                                  "rootDomain",
                                  "mentionCount",
                                  "influenceScore",
                                  "firstSeenAt",
                                  "lastSeenAt",
                                  "runCompletedAt"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "pageInfo": {
                              "type": "object",
                              "properties": {
                                "limit": {
                                  "type": "number"
                                },
                                "nextCursor": {
                                  "type": ["string", "null"]
                                },
                                "hasMore": {
                                  "type": "boolean"
                                }
                              },
                              "required": ["limit", "nextCursor", "hasMore"],
                              "additionalProperties": false
                            },
                            "generatedAt": {
                              "type": "string"
                            }
                          },
                          "required": ["rows", "pageInfo", "generatedAt"],
                          "additionalProperties": false
                        }
                      },
                      "required": ["view", "data"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string",
                          "const": "prompt-run-count"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "totalItems": {
                              "type": "number"
                            },
                            "generatedAt": {
                              "type": "string"
                            }
                          },
                          "required": ["totalItems", "generatedAt"],
                          "additionalProperties": false
                        }
                      },
                      "required": ["view", "data"],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Record not found in this workspace."
          },
          "409": {
            "description": "Conflict with an existing alias or retry receipt."
          }
        }
      }
    },
    "/api/v2/sources/profile": {
      "put": {
        "operationId": "putV2SourcesProfile",
        "tags": ["Sources"],
        "summary": "Classify and track a source domain",
        "description": "Requires read and write API scopes; MCP users also need the matching consented write permission and current workspace admin role. Source profile updates replace optional tracking, target URL and notes with their defaults when omitted. Known campaign and click-attribution parameters are removed from a web target URL before saving; functional query parameters remain. Alias changes update historical attribution atomically.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Reuse only to retry the same change. Receipts remain valid for 24 hours."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "owned",
                      "competitor",
                      "editorial",
                      "community",
                      "review",
                      "marketplace"
                    ]
                  },
                  "isTracked": {
                    "type": "boolean"
                  },
                  "targetUrl": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uri"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "notes": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["domain", "category"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "domain": {
                          "type": "string"
                        },
                        "category": {
                          "type": "string",
                          "enum": [
                            "owned",
                            "competitor",
                            "editorial",
                            "community",
                            "review",
                            "marketplace"
                          ]
                        },
                        "ownership": {
                          "type": "string",
                          "enum": ["owned", "competitor", "third_party"]
                        },
                        "classificationSource": {
                          "type": "string",
                          "enum": ["manual", "brand", "system"]
                        },
                        "isTracked": {
                          "type": "boolean"
                        },
                        "targetUrl": {
                          "type": ["string", "null"]
                        },
                        "notes": {
                          "type": ["string", "null"]
                        },
                        "updatedAt": {
                          "type": ["string", "null"]
                        }
                      },
                      "required": [
                        "domain",
                        "category",
                        "ownership",
                        "classificationSource",
                        "isTracked",
                        "targetUrl",
                        "notes",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Record not found in this workspace."
          },
          "409": {
            "description": "Conflict with an existing alias or retry receipt."
          }
        }
      }
    },
    "/api/v2/brands/{id}/aliases": {
      "get": {
        "operationId": "getV2BrandsIdAliases",
        "tags": ["Brands"],
        "summary": "List brand name and domain aliases",
        "description": "Reads the current workspace only, subject to current product access. MCP requires the matching sources or competitors read permission.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^brd_[1-9][0-9]*$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "aliasType": {
                            "type": "string",
                            "enum": ["name", "domain"]
                          },
                          "aliasText": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "id": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "competitorId": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          },
                          "normalizedAlias": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "aliasType",
                          "aliasText",
                          "id",
                          "competitorId",
                          "normalizedAlias",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Record not found in this workspace."
          },
          "409": {
            "description": "Conflict with an existing alias or retry receipt."
          }
        }
      },
      "post": {
        "operationId": "postV2BrandsIdAliases",
        "tags": ["Brands"],
        "summary": "Add a brand alias",
        "description": "Requires read and write API scopes; MCP users also need the matching consented write permission and current workspace admin role. Source profile updates replace optional tracking, target URL and notes with their defaults when omitted. Alias changes update historical attribution atomically.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^brd_[1-9][0-9]*$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Reuse only to retry the same change. Receipts remain valid for 24 hours."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "aliasType": {
                    "type": "string",
                    "enum": ["name", "domain"]
                  },
                  "aliasText": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  }
                },
                "required": ["aliasType", "aliasText"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "aliasType": {
                          "type": "string",
                          "enum": ["name", "domain"]
                        },
                        "aliasText": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "id": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "competitorId": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "normalizedAlias": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "aliasType",
                        "aliasText",
                        "id",
                        "competitorId",
                        "normalizedAlias",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Record not found in this workspace."
          },
          "409": {
            "description": "Conflict with an existing alias or retry receipt."
          }
        }
      }
    },
    "/api/v2/brands/{id}/aliases/{aliasId}": {
      "delete": {
        "operationId": "deleteV2BrandsIdAliasesAliasId",
        "tags": ["Brands"],
        "summary": "Remove a brand alias",
        "description": "Requires read and write API scopes; MCP users also need the matching consented write permission and current workspace admin role. Source profile updates replace optional tracking, target URL and notes with their defaults when omitted. Alias changes update historical attribution atomically.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^brd_[1-9][0-9]*$"
            }
          },
          {
            "name": "aliasId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Reuse only to retry the same change. Receipts remain valid for 24 hours."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean"
                        }
                      },
                      "required": ["success"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role or feature access denied."
          },
          "404": {
            "description": "Record not found in this workspace."
          },
          "409": {
            "description": "Conflict with an existing alias or retry receipt."
          }
        }
      }
    },
    "/api/v2/groups/overview": {
      "get": {
        "operationId": "getV2GroupsOverview",
        "tags": ["Prompts"],
        "summary": "Read group comparisons and grouping opportunities",
        "description": "Read analytics for the authenticated workspace. Requires group feature access and groups:read for MCP. Use section and page to traverse a group detail table. Supported comparison windows: 7, 30 and 90 days.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 30
            }
          },
          {
            "name": "personaId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Group analytics.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "generatedAt": {
                          "type": "string"
                        },
                        "comparisonWindowDays": {
                          "type": "number"
                        },
                        "kpis": {
                          "type": "object",
                          "properties": {
                            "activeGroups": {
                              "type": "number"
                            },
                            "segmentationTypes": {
                              "type": "number"
                            },
                            "groupedPrompts": {
                              "type": "number"
                            },
                            "totalPrompts": {
                              "type": "number"
                            },
                            "ungroupedPrompts": {
                              "type": "number"
                            },
                            "groupedPercent": {
                              "type": "number"
                            },
                            "ungroupedPercent": {
                              "type": "number"
                            },
                            "suggestedGroups": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "activeGroups",
                            "segmentationTypes",
                            "groupedPrompts",
                            "totalPrompts",
                            "ungroupedPrompts",
                            "groupedPercent",
                            "ungroupedPercent",
                            "suggestedGroups"
                          ],
                          "additionalProperties": false
                        },
                        "groups": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "revision": {
                                "type": "number"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "type": ["string", "null"]
                              },
                              "colorHex": {
                                "type": ["string", "null"]
                              },
                              "parentGroupId": {
                                "type": ["number", "null"]
                              },
                              "pathLabel": {
                                "type": "string"
                              },
                              "groupType": {
                                "type": "string",
                                "enum": [
                                  "funnel_stage",
                                  "intent",
                                  "brand",
                                  "product",
                                  "audience",
                                  "geography",
                                  "campaign",
                                  "custom",
                                  "core",
                                  "funnel",
                                  "persona",
                                  "product_line",
                                  "suggested"
                                ]
                              },
                              "groupTypeSource": {
                                "type": "string",
                                "enum": ["manual", "inferred"]
                              },
                              "promptCount": {
                                "type": "number"
                              },
                              "averageVisibility": {
                                "type": ["number", "null"]
                              },
                              "trend": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "label": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "number"
                                    }
                                  },
                                  "required": ["label", "value"],
                                  "additionalProperties": false
                                }
                              },
                              "comparisonMetrics": {
                                "type": "object",
                                "properties": {
                                  "visibility": {
                                    "type": "object",
                                    "properties": {
                                      "latest": {
                                        "type": ["number", "null"]
                                      },
                                      "observationCount": {
                                        "type": "number"
                                      },
                                      "trend": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": ["number", "null"]
                                            }
                                          },
                                          "required": ["label", "value"],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": ["latest", "observationCount", "trend"],
                                    "additionalProperties": false
                                  },
                                  "firstPlace": {
                                    "type": "object",
                                    "properties": {
                                      "latest": {
                                        "type": ["number", "null"]
                                      },
                                      "observationCount": {
                                        "type": "number"
                                      },
                                      "trend": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": ["number", "null"]
                                            }
                                          },
                                          "required": ["label", "value"],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": ["latest", "observationCount", "trend"],
                                    "additionalProperties": false
                                  },
                                  "sentiment": {
                                    "type": "object",
                                    "properties": {
                                      "latest": {
                                        "type": ["number", "null"]
                                      },
                                      "observationCount": {
                                        "type": "number"
                                      },
                                      "trend": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": ["number", "null"]
                                            }
                                          },
                                          "required": ["label", "value"],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": ["latest", "observationCount", "trend"],
                                    "additionalProperties": false
                                  },
                                  "averagePosition": {
                                    "type": "object",
                                    "properties": {
                                      "latest": {
                                        "type": ["number", "null"]
                                      },
                                      "observationCount": {
                                        "type": "number"
                                      },
                                      "trend": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": ["number", "null"]
                                            }
                                          },
                                          "required": ["label", "value"],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": ["latest", "observationCount", "trend"],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "visibility",
                                  "firstPlace",
                                  "sentiment",
                                  "averagePosition"
                                ],
                                "additionalProperties": false
                              },
                              "status": {
                                "type": "string",
                                "enum": ["critical", "recommended", "normal", "archived"]
                              },
                              "archivedAt": {
                                "type": ["string", "null"]
                              },
                              "updatedAt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "revision",
                              "name",
                              "description",
                              "colorHex",
                              "parentGroupId",
                              "pathLabel",
                              "groupType",
                              "groupTypeSource",
                              "promptCount",
                              "averageVisibility",
                              "trend",
                              "comparisonMetrics",
                              "status",
                              "archivedAt",
                              "updatedAt"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "archivedGroups": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "revision": {
                                "type": "number"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "type": ["string", "null"]
                              },
                              "colorHex": {
                                "type": ["string", "null"]
                              },
                              "parentGroupId": {
                                "type": ["number", "null"]
                              },
                              "pathLabel": {
                                "type": "string"
                              },
                              "groupType": {
                                "type": "string",
                                "enum": [
                                  "funnel_stage",
                                  "intent",
                                  "brand",
                                  "product",
                                  "audience",
                                  "geography",
                                  "campaign",
                                  "custom",
                                  "core",
                                  "funnel",
                                  "persona",
                                  "product_line",
                                  "suggested"
                                ]
                              },
                              "groupTypeSource": {
                                "type": "string",
                                "enum": ["manual", "inferred"]
                              },
                              "promptCount": {
                                "type": "number"
                              },
                              "averageVisibility": {
                                "type": ["number", "null"]
                              },
                              "trend": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "label": {
                                      "type": "string"
                                    },
                                    "value": {
                                      "type": "number"
                                    }
                                  },
                                  "required": ["label", "value"],
                                  "additionalProperties": false
                                }
                              },
                              "comparisonMetrics": {
                                "type": "object",
                                "properties": {
                                  "visibility": {
                                    "type": "object",
                                    "properties": {
                                      "latest": {
                                        "type": ["number", "null"]
                                      },
                                      "observationCount": {
                                        "type": "number"
                                      },
                                      "trend": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": ["number", "null"]
                                            }
                                          },
                                          "required": ["label", "value"],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": ["latest", "observationCount", "trend"],
                                    "additionalProperties": false
                                  },
                                  "firstPlace": {
                                    "type": "object",
                                    "properties": {
                                      "latest": {
                                        "type": ["number", "null"]
                                      },
                                      "observationCount": {
                                        "type": "number"
                                      },
                                      "trend": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": ["number", "null"]
                                            }
                                          },
                                          "required": ["label", "value"],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": ["latest", "observationCount", "trend"],
                                    "additionalProperties": false
                                  },
                                  "sentiment": {
                                    "type": "object",
                                    "properties": {
                                      "latest": {
                                        "type": ["number", "null"]
                                      },
                                      "observationCount": {
                                        "type": "number"
                                      },
                                      "trend": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": ["number", "null"]
                                            }
                                          },
                                          "required": ["label", "value"],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": ["latest", "observationCount", "trend"],
                                    "additionalProperties": false
                                  },
                                  "averagePosition": {
                                    "type": "object",
                                    "properties": {
                                      "latest": {
                                        "type": ["number", "null"]
                                      },
                                      "observationCount": {
                                        "type": "number"
                                      },
                                      "trend": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string"
                                            },
                                            "value": {
                                              "type": ["number", "null"]
                                            }
                                          },
                                          "required": ["label", "value"],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": ["latest", "observationCount", "trend"],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "visibility",
                                  "firstPlace",
                                  "sentiment",
                                  "averagePosition"
                                ],
                                "additionalProperties": false
                              },
                              "status": {
                                "type": "string",
                                "enum": ["critical", "recommended", "normal", "archived"]
                              },
                              "archivedAt": {
                                "type": ["string", "null"]
                              },
                              "updatedAt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "revision",
                              "name",
                              "description",
                              "colorHex",
                              "parentGroupId",
                              "pathLabel",
                              "groupType",
                              "groupTypeSource",
                              "promptCount",
                              "averageVisibility",
                              "trend",
                              "comparisonMetrics",
                              "status",
                              "archivedAt",
                              "updatedAt"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "coverage": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "funnel_stage",
                                      "intent",
                                      "brand",
                                      "product",
                                      "audience",
                                      "geography",
                                      "campaign",
                                      "custom",
                                      "core",
                                      "funnel",
                                      "persona",
                                      "product_line",
                                      "suggested"
                                    ]
                                  },
                                  {
                                    "type": "string",
                                    "const": "ungrouped"
                                  }
                                ]
                              },
                              "label": {
                                "type": "string"
                              },
                              "promptCount": {
                                "type": "number"
                              },
                              "percent": {
                                "type": "number"
                              },
                              "color": {
                                "type": "string"
                              }
                            },
                            "required": ["key", "label", "promptCount", "percent", "color"],
                            "additionalProperties": false
                          }
                        },
                        "opportunities": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "copyKey": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "funnel_stage",
                                  "intent",
                                  "brand",
                                  "product",
                                  "audience",
                                  "geography",
                                  "campaign",
                                  "custom",
                                  "core",
                                  "funnel",
                                  "persona",
                                  "product_line",
                                  "suggested"
                                ]
                              },
                              "title": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "promptCount": {
                                "type": "number"
                              },
                              "promptIds": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              },
                              "promptPreview": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "number"
                                    },
                                    "label": {
                                      "type": "string"
                                    }
                                  },
                                  "required": ["id", "label"],
                                  "additionalProperties": false
                                }
                              },
                              "suggestedGroupName": {
                                "type": "string"
                              },
                              "suggestedColorHex": {
                                "type": "string"
                              },
                              "impact": {
                                "type": "string",
                                "enum": ["high", "medium", "low"]
                              },
                              "primaryAction": {
                                "type": "string",
                                "enum": ["create_group", "review_prompts"]
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "title",
                              "description",
                              "promptCount",
                              "promptIds",
                              "promptPreview",
                              "suggestedGroupName",
                              "suggestedColorHex",
                              "impact",
                              "primaryAction"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "clusters": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "copyKey": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "funnel_stage",
                                  "intent",
                                  "brand",
                                  "product",
                                  "audience",
                                  "geography",
                                  "campaign",
                                  "custom",
                                  "core",
                                  "funnel",
                                  "persona",
                                  "product_line",
                                  "suggested"
                                ]
                              },
                              "title": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "promptCount": {
                                "type": "number"
                              },
                              "promptIds": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              },
                              "promptPreview": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "number"
                                    },
                                    "label": {
                                      "type": "string"
                                    }
                                  },
                                  "required": ["id", "label"],
                                  "additionalProperties": false
                                }
                              },
                              "suggestedGroupName": {
                                "type": "string"
                              },
                              "suggestedColorHex": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "title",
                              "description",
                              "promptCount",
                              "promptIds",
                              "promptPreview",
                              "suggestedGroupName",
                              "suggestedColorHex"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "rules": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "version": {
                                "type": "number"
                              },
                              "name": {
                                "type": "string"
                              },
                              "groupId": {
                                "type": "number"
                              },
                              "groupName": {
                                "type": "string"
                              },
                              "groupType": {
                                "type": "string",
                                "enum": [
                                  "funnel_stage",
                                  "intent",
                                  "brand",
                                  "product",
                                  "audience",
                                  "geography",
                                  "campaign",
                                  "custom",
                                  "core",
                                  "funnel",
                                  "persona",
                                  "product_line",
                                  "suggested"
                                ]
                              },
                              "conditionType": {
                                "type": "string",
                                "enum": ["contains_any", "contains_all", "regex"]
                              },
                              "conditionPayload": {
                                "type": "object",
                                "properties": {
                                  "keywords": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 80
                                    },
                                    "maxItems": 20
                                  },
                                  "pattern": {
                                    "type": "string",
                                    "maxLength": 512
                                  },
                                  "caseSensitive": {
                                    "type": "boolean"
                                  },
                                  "negate": {
                                    "type": "boolean"
                                  },
                                  "platforms": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "chatgpt",
                                        "ai_overview",
                                        "ai_mode",
                                        "gemini",
                                        "perplexity",
                                        "claude"
                                      ]
                                    },
                                    "maxItems": 20
                                  },
                                  "regions": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    "maxItems": 20
                                  }
                                },
                                "additionalProperties": false
                              },
                              "applyOn": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": ["prompt_create", "prompt_update", "backfill"]
                                }
                              },
                              "conditionSummary": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string",
                                "enum": ["draft", "active", "paused", "archived"]
                              },
                              "priority": {
                                "type": "number"
                              },
                              "lastPreviewCount": {
                                "type": ["number", "null"]
                              },
                              "lastAppliedVersion": {
                                "type": ["number", "null"]
                              },
                              "lastAppliedAt": {
                                "type": ["string", "null"]
                              },
                              "backfill": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "queued",
                                          "running",
                                          "succeeded",
                                          "failed",
                                          "superseded"
                                        ]
                                      },
                                      "scannedCount": {
                                        "type": "number"
                                      },
                                      "matchedCount": {
                                        "type": "number"
                                      },
                                      "errorCode": {
                                        "type": ["string", "null"]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "status",
                                      "scannedCount",
                                      "matchedCount",
                                      "errorCode"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedAt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "version",
                              "name",
                              "groupId",
                              "groupName",
                              "groupType",
                              "conditionType",
                              "conditionPayload",
                              "applyOn",
                              "conditionSummary",
                              "status",
                              "priority",
                              "lastPreviewCount",
                              "lastAppliedVersion",
                              "lastAppliedAt",
                              "backfill",
                              "updatedAt"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "brandRuleTerms": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "generatedAt",
                        "comparisonWindowDays",
                        "kpis",
                        "groups",
                        "archivedGroups",
                        "coverage",
                        "opportunities",
                        "clusters",
                        "rules",
                        "brandRuleTerms"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid filters."
          },
          "403": {
            "description": "Feature or scope access denied."
          },
          "404": {
            "description": "Group not found."
          }
        }
      }
    },
    "/api/v2/groups/{id}/analytics": {
      "get": {
        "operationId": "getV2GroupsIdAnalytics",
        "tags": ["Prompts"],
        "summary": "Read group visibility, sources and evidence",
        "description": "Read analytics for the authenticated workspace. Requires group feature access and groups:read for MCP. Use section and page to traverse a group detail table. Supported comparison windows: 7, 30 and 90 days.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "section",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["sources", "competitors", "evidence"],
              "default": "sources"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["default", "name", "citations", "answers", "mentions", "position", "date"],
              "default": "default"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"],
              "default": "asc"
            }
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Group analytics.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "section": {
                              "type": "string",
                              "enum": ["sources", "competitors", "evidence"],
                              "default": "sources"
                            },
                            "page": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 100000,
                              "default": 1
                            },
                            "sort": {
                              "type": "string",
                              "enum": [
                                "default",
                                "name",
                                "citations",
                                "answers",
                                "mentions",
                                "position",
                                "date"
                              ],
                              "default": "default"
                            },
                            "direction": {
                              "type": "string",
                              "enum": ["asc", "desc"],
                              "default": "asc"
                            },
                            "pageSize": {
                              "type": "number"
                            },
                            "total": {
                              "type": "number"
                            }
                          },
                          "required": ["pageSize", "total"],
                          "additionalProperties": false
                        },
                        "group": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "number"
                            },
                            "revision": {
                              "type": "number"
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "type": ["string", "null"]
                            },
                            "colorHex": {
                              "type": ["string", "null"]
                            },
                            "pathLabel": {
                              "type": "string"
                            },
                            "groupType": {
                              "type": "string",
                              "enum": [
                                "funnel_stage",
                                "intent",
                                "brand",
                                "product",
                                "audience",
                                "geography",
                                "campaign",
                                "custom",
                                "core",
                                "funnel",
                                "persona",
                                "product_line",
                                "suggested"
                              ]
                            },
                            "directPromptCount": {
                              "type": "number"
                            },
                            "totalPromptCount": {
                              "type": "number"
                            },
                            "descendants": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "number"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "pathLabel": {
                                    "type": "string"
                                  },
                                  "promptCount": {
                                    "type": "number"
                                  }
                                },
                                "required": ["id", "name", "pathLabel", "promptCount"],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "id",
                            "revision",
                            "name",
                            "description",
                            "colorHex",
                            "pathLabel",
                            "groupType",
                            "directPromptCount",
                            "totalPromptCount",
                            "descendants"
                          ],
                          "additionalProperties": false
                        },
                        "window": {
                          "type": "object",
                          "properties": {
                            "days": {
                              "type": "number"
                            },
                            "from": {
                              "type": "string"
                            },
                            "to": {
                              "type": "string"
                            }
                          },
                          "required": ["days", "from", "to"],
                          "additionalProperties": false
                        },
                        "visibility": {
                          "type": "object",
                          "properties": {
                            "answerCount": {
                              "type": "number"
                            },
                            "presenceCount": {
                              "type": "number"
                            },
                            "presenceRate": {
                              "type": ["number", "null"]
                            },
                            "firstPlaceRate": {
                              "type": ["number", "null"]
                            },
                            "averagePosition": {
                              "type": ["number", "null"]
                            },
                            "points": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "date": {
                                    "type": "string"
                                  },
                                  "presenceRate": {
                                    "type": ["number", "null"]
                                  },
                                  "firstPlaceRate": {
                                    "type": ["number", "null"]
                                  }
                                },
                                "required": ["date", "presenceRate", "firstPlaceRate"],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "answerCount",
                            "presenceCount",
                            "presenceRate",
                            "firstPlaceRate",
                            "averagePosition",
                            "points"
                          ],
                          "additionalProperties": false
                        },
                        "sentiment": {
                          "type": "object",
                          "properties": {
                            "positive": {
                              "type": "number"
                            },
                            "neutral": {
                              "type": "number"
                            },
                            "negative": {
                              "type": "number"
                            },
                            "total": {
                              "type": "number"
                            },
                            "score": {
                              "type": ["number", "null"]
                            }
                          },
                          "required": ["positive", "neutral", "negative", "total", "score"],
                          "additionalProperties": false
                        },
                        "prompts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "label": {
                                "type": "string"
                              },
                              "directMembership": {
                                "type": "boolean"
                              },
                              "answerCount": {
                                "type": "number"
                              },
                              "visibility": {
                                "type": ["number", "null"]
                              }
                            },
                            "required": [
                              "id",
                              "label",
                              "directMembership",
                              "answerCount",
                              "visibility"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "sources": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "domain": {
                                "type": "string"
                              },
                              "citationCount": {
                                "type": "number"
                              },
                              "answerCount": {
                                "type": "number"
                              }
                            },
                            "required": ["domain", "citationCount", "answerCount"],
                            "additionalProperties": false
                          }
                        },
                        "competitors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "label": {
                                "type": "string"
                              },
                              "primaryDomain": {
                                "type": ["string", "null"]
                              },
                              "mentionCount": {
                                "type": "number"
                              },
                              "answerCount": {
                                "type": "number"
                              },
                              "averagePosition": {
                                "type": ["number", "null"]
                              }
                            },
                            "required": [
                              "id",
                              "label",
                              "primaryDomain",
                              "mentionCount",
                              "answerCount",
                              "averagePosition"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "rules": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "version": {
                                "type": "number"
                              },
                              "name": {
                                "type": "string"
                              },
                              "groupId": {
                                "type": "number"
                              },
                              "groupName": {
                                "type": "string"
                              },
                              "groupType": {
                                "type": "string",
                                "enum": [
                                  "funnel_stage",
                                  "intent",
                                  "brand",
                                  "product",
                                  "audience",
                                  "geography",
                                  "campaign",
                                  "custom",
                                  "core",
                                  "funnel",
                                  "persona",
                                  "product_line",
                                  "suggested"
                                ]
                              },
                              "conditionType": {
                                "type": "string",
                                "enum": ["contains_any", "contains_all", "regex"]
                              },
                              "conditionPayload": {
                                "type": "object",
                                "properties": {
                                  "keywords": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 80
                                    },
                                    "maxItems": 20
                                  },
                                  "pattern": {
                                    "type": "string",
                                    "maxLength": 512
                                  },
                                  "caseSensitive": {
                                    "type": "boolean"
                                  },
                                  "negate": {
                                    "type": "boolean"
                                  },
                                  "platforms": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "chatgpt",
                                        "ai_overview",
                                        "ai_mode",
                                        "gemini",
                                        "perplexity",
                                        "claude"
                                      ]
                                    },
                                    "maxItems": 20
                                  },
                                  "regions": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    "maxItems": 20
                                  }
                                },
                                "additionalProperties": false
                              },
                              "applyOn": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": ["prompt_create", "prompt_update", "backfill"]
                                }
                              },
                              "conditionSummary": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string",
                                "enum": ["draft", "active", "paused", "archived"]
                              },
                              "priority": {
                                "type": "number"
                              },
                              "lastPreviewCount": {
                                "type": ["number", "null"]
                              },
                              "lastAppliedVersion": {
                                "type": ["number", "null"]
                              },
                              "lastAppliedAt": {
                                "type": ["string", "null"]
                              },
                              "backfill": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string"
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "queued",
                                          "running",
                                          "succeeded",
                                          "failed",
                                          "superseded"
                                        ]
                                      },
                                      "scannedCount": {
                                        "type": "number"
                                      },
                                      "matchedCount": {
                                        "type": "number"
                                      },
                                      "errorCode": {
                                        "type": ["string", "null"]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "status",
                                      "scannedCount",
                                      "matchedCount",
                                      "errorCode"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedAt": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "version",
                              "name",
                              "groupId",
                              "groupName",
                              "groupType",
                              "conditionType",
                              "conditionPayload",
                              "applyOn",
                              "conditionSummary",
                              "status",
                              "priority",
                              "lastPreviewCount",
                              "lastAppliedVersion",
                              "lastAppliedAt",
                              "backfill",
                              "updatedAt"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "answers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "runId": {
                                "type": "number"
                              },
                              "promptId": {
                                "type": "number"
                              },
                              "promptLabel": {
                                "type": "string"
                              },
                              "occurredAt": {
                                "type": "string"
                              }
                            },
                            "required": ["runId", "promptId", "promptLabel", "occurredAt"],
                            "additionalProperties": false
                          }
                        },
                        "generatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "group",
                        "window",
                        "visibility",
                        "sentiment",
                        "prompts",
                        "sources",
                        "competitors",
                        "rules",
                        "answers",
                        "generatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid filters."
          },
          "403": {
            "description": "Feature or scope access denied."
          },
          "404": {
            "description": "Group not found."
          }
        }
      }
    },
    "/api/v2/groups/rules": {
      "get": {
        "operationId": "getV2GroupsRules",
        "tags": ["Prompts"],
        "summary": "List grouping rules",
        "description": "Rules use the same workspace group permissions and reconciliation process as the application. Preview before creating or changing matching criteria. Creation requires the preview fingerprint; edits and archive require the current version. Conflicts require rereading or previewing, not blindly retrying with a new key. Active rules may reconcile existing memberships asynchronously. Preview does not mutate records. MCP reads require groups:read; other operations require groups:write and current workspace admin permission.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "number"
                          },
                          "version": {
                            "type": "number"
                          },
                          "name": {
                            "type": "string"
                          },
                          "groupId": {
                            "type": "number"
                          },
                          "groupName": {
                            "type": "string"
                          },
                          "groupType": {
                            "type": "string",
                            "enum": [
                              "funnel_stage",
                              "intent",
                              "brand",
                              "product",
                              "audience",
                              "geography",
                              "campaign",
                              "custom",
                              "core",
                              "funnel",
                              "persona",
                              "product_line",
                              "suggested"
                            ]
                          },
                          "conditionType": {
                            "type": "string",
                            "enum": ["contains_any", "contains_all", "regex"]
                          },
                          "conditionPayload": {
                            "type": "object",
                            "properties": {
                              "keywords": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "maxItems": 20
                              },
                              "pattern": {
                                "type": "string",
                                "maxLength": 512
                              },
                              "caseSensitive": {
                                "type": "boolean"
                              },
                              "negate": {
                                "type": "boolean"
                              },
                              "platforms": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "chatgpt",
                                    "ai_overview",
                                    "ai_mode",
                                    "gemini",
                                    "perplexity",
                                    "claude"
                                  ]
                                },
                                "maxItems": 20
                              },
                              "regions": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "maxItems": 20
                              }
                            },
                            "additionalProperties": false
                          },
                          "applyOn": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": ["prompt_create", "prompt_update", "backfill"]
                            }
                          },
                          "conditionSummary": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": ["draft", "active", "paused", "archived"]
                          },
                          "priority": {
                            "type": "number"
                          },
                          "lastPreviewCount": {
                            "type": ["number", "null"]
                          },
                          "lastAppliedVersion": {
                            "type": ["number", "null"]
                          },
                          "lastAppliedAt": {
                            "type": ["string", "null"]
                          },
                          "backfill": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "queued",
                                      "running",
                                      "succeeded",
                                      "failed",
                                      "superseded"
                                    ]
                                  },
                                  "scannedCount": {
                                    "type": "number"
                                  },
                                  "matchedCount": {
                                    "type": "number"
                                  },
                                  "errorCode": {
                                    "type": ["string", "null"]
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "scannedCount",
                                  "matchedCount",
                                  "errorCode"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "version",
                          "name",
                          "groupId",
                          "groupName",
                          "groupType",
                          "conditionType",
                          "conditionPayload",
                          "applyOn",
                          "conditionSummary",
                          "status",
                          "priority",
                          "lastPreviewCount",
                          "lastAppliedVersion",
                          "lastAppliedAt",
                          "backfill",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid rule."
          },
          "403": {
            "description": "Permission denied."
          },
          "404": {
            "description": "Group or rule not found."
          },
          "409": {
            "description": "Rule version, preview or retry conflict."
          }
        }
      },
      "post": {
        "operationId": "postV2GroupsRules",
        "tags": ["Prompts"],
        "summary": "Create a reviewed grouping rule",
        "description": "Rules use the same workspace group permissions and reconciliation process as the application. Preview before creating or changing matching criteria. Creation requires the preview fingerprint; edits and archive require the current version. Conflicts require rereading or previewing, not blindly retrying with a new key. Active rules may reconcile existing memberships asynchronously. Preview does not mutate records. MCP reads require groups:read; other operations require groups:write and current workspace admin permission. Historical group-rule backfill is unavailable in the current test release. Existing prompt memberships are not reconciled automatically; use explicit membership updates.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "MCP requires this header. Reuse unchanged for retries; writes and receipts commit atomically."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "conditionType": {
                    "type": "string",
                    "enum": ["contains_any", "contains_all", "regex"]
                  },
                  "conditionPayload": {
                    "type": "object",
                    "properties": {
                      "keywords": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "maxItems": 20
                      },
                      "pattern": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "caseSensitive": {
                        "type": "boolean"
                      },
                      "negate": {
                        "type": "boolean"
                      },
                      "platforms": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "chatgpt",
                            "ai_overview",
                            "ai_mode",
                            "gemini",
                            "perplexity",
                            "claude"
                          ]
                        },
                        "maxItems": 20
                      },
                      "regions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  },
                  "applyOn": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": ["prompt_create", "prompt_update", "backfill"]
                    },
                    "minItems": 1,
                    "maxItems": 3
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 150
                  },
                  "status": {
                    "type": "string",
                    "enum": ["draft", "active", "paused"],
                    "default": "draft"
                  },
                  "priority": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "previewFingerprint": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "groupId",
                  "conditionType",
                  "conditionPayload",
                  "name",
                  "previewFingerprint"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "version": {
                          "type": "number"
                        },
                        "name": {
                          "type": "string"
                        },
                        "groupId": {
                          "type": "number"
                        },
                        "groupName": {
                          "type": "string"
                        },
                        "groupType": {
                          "type": "string",
                          "enum": [
                            "funnel_stage",
                            "intent",
                            "brand",
                            "product",
                            "audience",
                            "geography",
                            "campaign",
                            "custom",
                            "core",
                            "funnel",
                            "persona",
                            "product_line",
                            "suggested"
                          ]
                        },
                        "conditionType": {
                          "type": "string",
                          "enum": ["contains_any", "contains_all", "regex"]
                        },
                        "conditionPayload": {
                          "type": "object",
                          "properties": {
                            "keywords": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              },
                              "maxItems": 20
                            },
                            "pattern": {
                              "type": "string",
                              "maxLength": 512
                            },
                            "caseSensitive": {
                              "type": "boolean"
                            },
                            "negate": {
                              "type": "boolean"
                            },
                            "platforms": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "chatgpt",
                                  "ai_overview",
                                  "ai_mode",
                                  "gemini",
                                  "perplexity",
                                  "claude"
                                ]
                              },
                              "maxItems": 20
                            },
                            "regions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "maxItems": 20
                            }
                          },
                          "additionalProperties": false
                        },
                        "applyOn": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": ["prompt_create", "prompt_update", "backfill"]
                          }
                        },
                        "conditionSummary": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": ["draft", "active", "paused", "archived"]
                        },
                        "priority": {
                          "type": "number"
                        },
                        "lastPreviewCount": {
                          "type": ["number", "null"]
                        },
                        "lastAppliedVersion": {
                          "type": ["number", "null"]
                        },
                        "lastAppliedAt": {
                          "type": ["string", "null"]
                        },
                        "backfill": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": ["queued", "running", "succeeded", "failed", "superseded"]
                                },
                                "scannedCount": {
                                  "type": "number"
                                },
                                "matchedCount": {
                                  "type": "number"
                                },
                                "errorCode": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": [
                                "id",
                                "status",
                                "scannedCount",
                                "matchedCount",
                                "errorCode"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "version",
                        "name",
                        "groupId",
                        "groupName",
                        "groupType",
                        "conditionType",
                        "conditionPayload",
                        "applyOn",
                        "conditionSummary",
                        "status",
                        "priority",
                        "lastPreviewCount",
                        "lastAppliedVersion",
                        "lastAppliedAt",
                        "backfill",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid rule."
          },
          "403": {
            "description": "Permission denied."
          },
          "404": {
            "description": "Group or rule not found."
          },
          "409": {
            "description": "Rule version, preview or retry conflict."
          }
        }
      }
    },
    "/api/v2/groups/rules/preview": {
      "post": {
        "operationId": "postV2GroupsRulesPreview",
        "tags": ["Prompts"],
        "summary": "Preview a grouping rule",
        "description": "Rules use the same workspace group permissions and reconciliation process as the application. Preview before creating or changing matching criteria. Creation requires the preview fingerprint; edits and archive require the current version. Conflicts require rereading or previewing, not blindly retrying with a new key. Active rules may reconcile existing memberships asynchronously. Preview does not mutate records. MCP reads require groups:read; other operations require groups:write and current workspace admin permission.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "MCP requires this header. Reuse unchanged for retries; writes and receipts commit atomically."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "conditionType": {
                    "type": "string",
                    "enum": ["contains_any", "contains_all", "regex"]
                  },
                  "conditionPayload": {
                    "type": "object",
                    "properties": {
                      "keywords": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "maxItems": 20
                      },
                      "pattern": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "caseSensitive": {
                        "type": "boolean"
                      },
                      "negate": {
                        "type": "boolean"
                      },
                      "platforms": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "chatgpt",
                            "ai_overview",
                            "ai_mode",
                            "gemini",
                            "perplexity",
                            "claude"
                          ]
                        },
                        "maxItems": 20
                      },
                      "regions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  },
                  "applyOn": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": ["prompt_create", "prompt_update", "backfill"]
                    },
                    "minItems": 1,
                    "maxItems": 3
                  }
                },
                "required": ["groupId", "conditionType", "conditionPayload"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "fingerprint": {
                          "type": "string"
                        },
                        "matchedPromptCount": {
                          "type": "number"
                        },
                        "manualConflictCount": {
                          "type": "number"
                        },
                        "sample": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "label": {
                                "type": "string"
                              }
                            },
                            "required": ["id", "label"],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "fingerprint",
                        "matchedPromptCount",
                        "manualConflictCount",
                        "sample"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid rule."
          },
          "403": {
            "description": "Permission denied."
          },
          "404": {
            "description": "Group or rule not found."
          },
          "409": {
            "description": "Rule version, preview or retry conflict."
          }
        }
      }
    },
    "/api/v2/groups/rules/{ruleId}": {
      "patch": {
        "operationId": "patchV2GroupsRulesRuleId",
        "tags": ["Prompts"],
        "summary": "Edit or pause a grouping rule",
        "description": "Rules use the same workspace group permissions and reconciliation process as the application. Preview before creating or changing matching criteria. Creation requires the preview fingerprint; edits and archive require the current version. Conflicts require rereading or previewing, not blindly retrying with a new key. Active rules may reconcile existing memberships asynchronously. Preview does not mutate records. MCP reads require groups:read; other operations require groups:write and current workspace admin permission. Historical group-rule backfill is unavailable in the current test release. Existing prompt memberships are not reconciled automatically; use explicit membership updates.",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "MCP requires this header. Reuse unchanged for retries; writes and receipts commit atomically."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "conditionType": {
                    "type": "string",
                    "enum": ["contains_any", "contains_all", "regex"]
                  },
                  "conditionPayload": {
                    "type": "object",
                    "properties": {
                      "keywords": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "maxItems": 20
                      },
                      "pattern": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "caseSensitive": {
                        "type": "boolean"
                      },
                      "negate": {
                        "type": "boolean"
                      },
                      "platforms": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "chatgpt",
                            "ai_overview",
                            "ai_mode",
                            "gemini",
                            "perplexity",
                            "claude"
                          ]
                        },
                        "maxItems": 20
                      },
                      "regions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "maxItems": 20
                      }
                    },
                    "additionalProperties": false
                  },
                  "applyOn": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": ["prompt_create", "prompt_update", "backfill"]
                    },
                    "minItems": 1,
                    "maxItems": 3
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 150
                  },
                  "status": {
                    "type": "string",
                    "enum": ["draft", "active", "paused"],
                    "default": "draft"
                  },
                  "priority": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "previewFingerprint": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  }
                },
                "required": ["expectedVersion"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "version": {
                          "type": "number"
                        },
                        "name": {
                          "type": "string"
                        },
                        "groupId": {
                          "type": "number"
                        },
                        "groupName": {
                          "type": "string"
                        },
                        "groupType": {
                          "type": "string",
                          "enum": [
                            "funnel_stage",
                            "intent",
                            "brand",
                            "product",
                            "audience",
                            "geography",
                            "campaign",
                            "custom",
                            "core",
                            "funnel",
                            "persona",
                            "product_line",
                            "suggested"
                          ]
                        },
                        "conditionType": {
                          "type": "string",
                          "enum": ["contains_any", "contains_all", "regex"]
                        },
                        "conditionPayload": {
                          "type": "object",
                          "properties": {
                            "keywords": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              },
                              "maxItems": 20
                            },
                            "pattern": {
                              "type": "string",
                              "maxLength": 512
                            },
                            "caseSensitive": {
                              "type": "boolean"
                            },
                            "negate": {
                              "type": "boolean"
                            },
                            "platforms": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "chatgpt",
                                  "ai_overview",
                                  "ai_mode",
                                  "gemini",
                                  "perplexity",
                                  "claude"
                                ]
                              },
                              "maxItems": 20
                            },
                            "regions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "maxItems": 20
                            }
                          },
                          "additionalProperties": false
                        },
                        "applyOn": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": ["prompt_create", "prompt_update", "backfill"]
                          }
                        },
                        "conditionSummary": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": ["draft", "active", "paused", "archived"]
                        },
                        "priority": {
                          "type": "number"
                        },
                        "lastPreviewCount": {
                          "type": ["number", "null"]
                        },
                        "lastAppliedVersion": {
                          "type": ["number", "null"]
                        },
                        "lastAppliedAt": {
                          "type": ["string", "null"]
                        },
                        "backfill": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": ["queued", "running", "succeeded", "failed", "superseded"]
                                },
                                "scannedCount": {
                                  "type": "number"
                                },
                                "matchedCount": {
                                  "type": "number"
                                },
                                "errorCode": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": [
                                "id",
                                "status",
                                "scannedCount",
                                "matchedCount",
                                "errorCode"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "version",
                        "name",
                        "groupId",
                        "groupName",
                        "groupType",
                        "conditionType",
                        "conditionPayload",
                        "applyOn",
                        "conditionSummary",
                        "status",
                        "priority",
                        "lastPreviewCount",
                        "lastAppliedVersion",
                        "lastAppliedAt",
                        "backfill",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid rule."
          },
          "403": {
            "description": "Permission denied."
          },
          "404": {
            "description": "Group or rule not found."
          },
          "409": {
            "description": "Rule version, preview or retry conflict."
          }
        }
      }
    },
    "/api/v2/groups/rules/{ruleId}/archive": {
      "post": {
        "operationId": "postV2GroupsRulesRuleIdArchive",
        "tags": ["Prompts"],
        "summary": "Archive a grouping rule",
        "description": "Rules use the same workspace group permissions and reconciliation process as the application. Preview before creating or changing matching criteria. Creation requires the preview fingerprint; edits and archive require the current version. Conflicts require rereading or previewing, not blindly retrying with a new key. Active rules may reconcile existing memberships asynchronously. Preview does not mutate records. MCP reads require groups:read; other operations require groups:write and current workspace admin permission. Historical group-rule backfill is unavailable in the current test release. Existing prompt memberships are not reconciled automatically; use explicit membership updates.",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "MCP requires this header. Reuse unchanged for retries; writes and receipts commit atomically."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  }
                },
                "required": ["expectedVersion"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean"
                        }
                      },
                      "required": ["success"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid rule."
          },
          "403": {
            "description": "Permission denied."
          },
          "404": {
            "description": "Group or rule not found."
          },
          "409": {
            "description": "Rule version, preview or retry conflict."
          }
        }
      }
    },
    "/api/v2/sources/export": {
      "get": {
        "operationId": "getV2SourcesExport",
        "tags": ["Sources"],
        "summary": "Export source activity as CSV",
        "description": "Read-only export. The JSON response contains filename, text/csv mimeType, CSV content and rowCount; save content as the named file. Uses the same workspace filters and permissions as the app. Source exports allow at most 365 days and 10,000 output rows. Crawler exports return up to the requested 5,000 most recent matching events. No integration setup or credentials are exposed.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 365
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["mentions", "influence"]
            }
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "domainSearch",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            }
          },
          {
            "name": "domainLimit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            }
          },
          {
            "name": "ownership",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "owned", "competitor", "third_party"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 10,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "sortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "default",
                "promptCount",
                "change",
                "rootDomain",
                "promptSummary",
                "mentionCount",
                "influenceScore",
                "citationCount",
                "linkCount",
                "firstSeenAt",
                "lastSeenAt",
                "promptRunId",
                "promptLabel",
                "runCompletedAt"
              ]
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "pagesPage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "evidencePage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "pagesSort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["default", "url", "citations", "links", "answers", "prompts", "lastSeen"]
            }
          },
          {
            "name": "evidenceSort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["default", "prompt", "date", "citations", "links"]
            }
          },
          {
            "name": "pagesDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "evidenceDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "CSV file contents.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "filename": {
                          "type": "string"
                        },
                        "mimeType": {
                          "type": "string",
                          "const": "text/csv"
                        },
                        "content": {
                          "type": "string"
                        },
                        "rowCount": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": ["filename", "mimeType", "content", "rowCount"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid filters."
          },
          "403": {
            "description": "Permission denied."
          },
          "413": {
            "description": "Export too large. Narrow the filters."
          },
          "503": {
            "description": "Export unavailable. Retry with a smaller range."
          }
        }
      }
    },
    "/api/v2/crawler-logs/events/export": {
      "get": {
        "operationId": "getV2CrawlerLogsEventsExport",
        "tags": ["Visitor analytics"],
        "summary": "Export crawler events as CSV",
        "description": "Read-only export. The JSON response contains filename, text/csv mimeType, CSV content and rowCount; save content as the named file. Uses the same workspace filters and permissions as the app. Source exports allow at most 365 days and 10,000 output rows. Crawler exports return up to the requested 5,000 most recent matching events. No integration setup or credentials are exposed.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["7", "14", "30", "90"]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000,
              "default": 5000
            }
          },
          {
            "name": "crawler",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160
            }
          },
          {
            "name": "path",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "verification",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "verified", "probable", "ua_only", "unknown", "rejected"]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "success", "error", "unknown"]
            }
          },
          {
            "name": "eventType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "html_page",
                "robots",
                "sitemap",
                "api_json",
                "feed_xml",
                "blocked",
                "other"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "CSV file contents.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "filename": {
                          "type": "string"
                        },
                        "mimeType": {
                          "type": "string",
                          "const": "text/csv"
                        },
                        "content": {
                          "type": "string"
                        },
                        "rowCount": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": ["filename", "mimeType", "content", "rowCount"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid filters."
          },
          "403": {
            "description": "Permission denied."
          },
          "413": {
            "description": "Export too large. Narrow the filters."
          },
          "503": {
            "description": "Export unavailable. Retry with a smaller range."
          }
        }
      }
    },
    "/api/v2/prompts/{id}/analytics": {
      "get": {
        "operationId": "getV2PromptsIdAnalytics",
        "tags": ["Prompts"],
        "summary": "Read prompt visibility and comparisons",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Prompt ID (prm_\u2026)."
          },
          {
            "name": "view",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": ["summary", "trend", "competitors", "filters"]
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 7,
              "maximum": 90,
              "default": 30
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["chatgpt", "ai_overview", "ai_mode", "gemini", "perplexity", "claude"]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 8,
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string",
                          "const": "summary"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "window": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "to": {
                                  "type": "string"
                                },
                                "days": {
                                  "type": "number"
                                }
                              },
                              "required": ["from", "to", "days"],
                              "additionalProperties": false
                            },
                            "generatedAt": {
                              "type": "string"
                            },
                            "stats": {
                              "type": "object",
                              "properties": {
                                "answerCount": {
                                  "type": "number"
                                },
                                "presenceRate": {
                                  "type": "number"
                                },
                                "firstPlaceRate": {
                                  "type": "number"
                                },
                                "ownAverageBestRank": {
                                  "type": ["number", "null"]
                                },
                                "bestCompetitorAverageRank": {
                                  "type": ["number", "null"]
                                },
                                "deltaPresenceRate": {
                                  "type": ["number", "null"]
                                },
                                "deltaFirstPlaceRate": {
                                  "type": ["number", "null"]
                                },
                                "deltaOwnAverageBestRank": {
                                  "type": ["number", "null"]
                                },
                                "deltaBestCompetitorAverageRank": {
                                  "type": ["number", "null"]
                                },
                                "lastAnalyzedRunAt": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": [
                                "answerCount",
                                "presenceRate",
                                "firstPlaceRate",
                                "ownAverageBestRank",
                                "bestCompetitorAverageRank",
                                "deltaPresenceRate",
                                "deltaFirstPlaceRate",
                                "deltaOwnAverageBestRank",
                                "deltaBestCompetitorAverageRank",
                                "lastAnalyzedRunAt"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": ["window", "generatedAt", "stats"],
                          "additionalProperties": false
                        }
                      },
                      "required": ["view", "data"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string",
                          "const": "trend"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "window": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "to": {
                                  "type": "string"
                                },
                                "days": {
                                  "type": "number"
                                }
                              },
                              "required": ["from", "to", "days"],
                              "additionalProperties": false
                            },
                            "generatedAt": {
                              "type": "string"
                            },
                            "points": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "bucketDate": {
                                    "type": "string"
                                  },
                                  "answerCount": {
                                    "type": "number"
                                  },
                                  "presenceRate": {
                                    "type": "number"
                                  },
                                  "firstPlaceRate": {
                                    "type": "number"
                                  },
                                  "ownAverageBestRank": {
                                    "type": ["number", "null"]
                                  },
                                  "bestCompetitorAverageRank": {
                                    "type": ["number", "null"]
                                  }
                                },
                                "required": [
                                  "bucketDate",
                                  "answerCount",
                                  "presenceRate",
                                  "firstPlaceRate",
                                  "ownAverageBestRank",
                                  "bestCompetitorAverageRank"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": ["window", "generatedAt", "points"],
                          "additionalProperties": false
                        }
                      },
                      "required": ["view", "data"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string",
                          "const": "competitors"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "window": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "to": {
                                  "type": "string"
                                },
                                "days": {
                                  "type": "number"
                                }
                              },
                              "required": ["from", "to", "days"],
                              "additionalProperties": false
                            },
                            "generatedAt": {
                              "type": "string"
                            },
                            "competitors": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "competitorId": {
                                    "type": "number"
                                  },
                                  "label": {
                                    "type": "string"
                                  },
                                  "answerCount": {
                                    "type": "number"
                                  },
                                  "avgRank": {
                                    "type": ["number", "null"]
                                  },
                                  "firstPlaceCount": {
                                    "type": "number"
                                  },
                                  "deltaAvgRank": {
                                    "type": ["number", "null"]
                                  },
                                  "points": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "bucketDate": {
                                          "type": "string"
                                        },
                                        "answerCount": {
                                          "type": "number"
                                        },
                                        "avgRank": {
                                          "type": ["number", "null"]
                                        },
                                        "firstPlaceCount": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "bucketDate",
                                        "answerCount",
                                        "avgRank",
                                        "firstPlaceCount"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "competitorId",
                                  "label",
                                  "answerCount",
                                  "avgRank",
                                  "firstPlaceCount",
                                  "deltaAvgRank",
                                  "points"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": ["window", "generatedAt", "competitors"],
                          "additionalProperties": false
                        }
                      },
                      "required": ["view", "data"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "view": {
                          "type": "string",
                          "const": "filters"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "window": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "to": {
                                  "type": "string"
                                },
                                "days": {
                                  "type": "number"
                                }
                              },
                              "required": ["from", "to", "days"],
                              "additionalProperties": false
                            },
                            "refreshedAt": {
                              "type": "string"
                            },
                            "availablePlatforms": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "availableRegions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "lastAnalyzedRunAt": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": [
                            "window",
                            "refreshedAt",
                            "availablePlatforms",
                            "availableRegions",
                            "lastAnalyzedRunAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": ["view", "data"],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/prompts/popularity": {
      "get": {
        "operationId": "getV2PromptsPopularity",
        "tags": ["Prompts"],
        "summary": "Read prompt source popularity",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 7,
              "maximum": 180,
              "default": 30
            }
          },
          {
            "name": "promptIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 8000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "popularity": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "promptId": {
                                "type": "number"
                              },
                              "mentionCount": {
                                "type": "number"
                              },
                              "lastMentionedAt": {
                                "type": ["string", "null"]
                              }
                            },
                            "required": ["promptId", "mentionCount", "lastMentionedAt"],
                            "additionalProperties": false
                          }
                        },
                        "windowDays": {
                          "type": "number"
                        },
                        "generatedAt": {
                          "type": "string"
                        }
                      },
                      "required": ["popularity", "windowDays", "generatedAt"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/suggestions": {
      "get": {
        "operationId": "getV2BrandsSuggestions",
        "tags": ["Brands"],
        "summary": "Discover competitor identities",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "candidate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 600
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "sortKey",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "aliasText",
                "aliasType",
                "mentionCount",
                "suggested",
                "examplePromptTitle",
                "confidenceScore"
              ]
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "high", "needs", "new"],
              "default": "all"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "candidate": {
                          "type": "object",
                          "properties": {
                            "key": {
                              "type": "string"
                            },
                            "competitorId": {
                              "type": ["number", "null"]
                            }
                          },
                          "required": ["key", "competitorId"],
                          "additionalProperties": false
                        },
                        "suggestions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "candidateKey": {
                                "type": "string"
                              },
                              "candidateRevision": {
                                "type": "string"
                              },
                              "aliasType": {
                                "type": "string",
                                "enum": ["name", "domain"]
                              },
                              "aliasText": {
                                "type": "string"
                              },
                              "normalizedAlias": {
                                "type": "string"
                              },
                              "mentionCount": {
                                "type": "number"
                              },
                              "examplePromptTitle": {
                                "type": ["string", "null"]
                              },
                              "suggestedCompetitorId": {
                                "type": ["number", "null"]
                              },
                              "suggestedCompetitorLabel": {
                                "type": ["string", "null"]
                              },
                              "suggestedCompetitorIsOwnBrand": {
                                "type": "boolean"
                              },
                              "confidenceScore": {
                                "type": "number"
                              },
                              "confidenceLevel": {
                                "type": "string",
                                "enum": ["high", "medium", "low", "none"]
                              }
                            },
                            "required": [
                              "candidateKey",
                              "candidateRevision",
                              "aliasType",
                              "aliasText",
                              "normalizedAlias",
                              "mentionCount",
                              "examplePromptTitle",
                              "suggestedCompetitorId",
                              "suggestedCompetitorLabel",
                              "suggestedCompetitorIsOwnBrand",
                              "confidenceScore",
                              "confidenceLevel"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "filterCounts": {
                          "type": "object",
                          "properties": {
                            "all": {
                              "type": "number"
                            },
                            "high": {
                              "type": "number"
                            },
                            "needs": {
                              "type": "number"
                            },
                            "new": {
                              "type": "number"
                            }
                          },
                          "required": ["all", "high", "needs", "new"],
                          "additionalProperties": false
                        },
                        "pageInfo": {
                          "type": "object",
                          "properties": {
                            "page": {
                              "type": "number"
                            },
                            "limit": {
                              "type": "number"
                            },
                            "totalCount": {
                              "type": "number"
                            },
                            "totalPages": {
                              "type": "number"
                            },
                            "filter": {
                              "type": "string",
                              "enum": ["all", "high", "needs", "new"]
                            }
                          },
                          "required": ["page", "limit", "totalCount", "totalPages", "filter"],
                          "additionalProperties": false
                        }
                      },
                      "required": ["suggestions", "filterCounts", "pageInfo"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/metrics": {
      "get": {
        "operationId": "getV2BrandsMetrics",
        "tags": ["Brands"],
        "summary": "Compare competitor visibility",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 7,
              "maximum": 180,
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "metrics": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "name": {
                                "type": "string"
                              },
                              "domain": {
                                "type": "string"
                              },
                              "totalMentions": {
                                "type": "number"
                              },
                              "shareOfVoice": {
                                "type": "number"
                              },
                              "points": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": "string"
                                    },
                                    "mentions": {
                                      "type": "number"
                                    },
                                    "shareOfVoice": {
                                      "type": "number"
                                    }
                                  },
                                  "required": ["day", "mentions", "shareOfVoice"],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "domain",
                              "totalMentions",
                              "shareOfVoice",
                              "points"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "windowDays": {
                          "type": "number"
                        },
                        "generatedAt": {
                          "type": "string"
                        }
                      },
                      "required": ["metrics", "windowDays", "generatedAt"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/positions": {
      "get": {
        "operationId": "getV2BrandsPositions",
        "tags": ["Brands"],
        "summary": "Compare competitor answer positions",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "metrics": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "competitorId": {
                                "type": "number"
                              },
                              "avgPosition": {
                                "type": "number"
                              },
                              "runCount": {
                                "type": "number"
                              }
                            },
                            "required": ["competitorId", "avgPosition", "runCount"],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": ["metrics"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/{id}/analytics": {
      "get": {
        "operationId": "getV2BrandsIdAnalytics",
        "tags": ["Brands"],
        "summary": "Read competitor evidence and analytics",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Brand ID (brd_\u2026)."
          },
          {
            "name": "windowDays",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 7,
              "maximum": 180,
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "competitor": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "number"
                            },
                            "name": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            },
                            "primaryDomain": {
                              "type": ["string", "null"]
                            },
                            "isOwnBrand": {
                              "type": "boolean"
                            },
                            "ownBrandConfirmedAt": {
                              "type": ["string", "null"]
                            },
                            "aliasCount": {
                              "type": "number"
                            },
                            "aliases": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "aliasType": {
                                    "type": "string",
                                    "enum": ["name", "domain"]
                                  },
                                  "aliasText": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "id": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "competitorId": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "normalizedAlias": {
                                    "type": "string"
                                  },
                                  "createdAt": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "aliasType",
                                  "aliasText",
                                  "id",
                                  "competitorId",
                                  "normalizedAlias",
                                  "createdAt"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "archivedAt": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "label",
                            "primaryDomain",
                            "isOwnBrand",
                            "ownBrandConfirmedAt",
                            "aliasCount",
                            "aliases",
                            "createdAt",
                            "updatedAt",
                            "archivedAt"
                          ],
                          "additionalProperties": false
                        },
                        "window": {
                          "type": "object",
                          "properties": {
                            "days": {
                              "type": "number"
                            },
                            "from": {
                              "type": "string"
                            },
                            "to": {
                              "type": "string"
                            }
                          },
                          "required": ["days", "from", "to"],
                          "additionalProperties": false
                        },
                        "visibility": {
                          "type": "object",
                          "properties": {
                            "totalMentions": {
                              "type": "number"
                            },
                            "shareOfVoice": {
                              "type": "number"
                            },
                            "averagePosition": {
                              "type": ["number", "null"]
                            },
                            "observedAnswerCount": {
                              "type": "number"
                            },
                            "points": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "day": {
                                    "type": "string"
                                  },
                                  "mentions": {
                                    "type": "number"
                                  },
                                  "shareOfVoice": {
                                    "type": "number"
                                  }
                                },
                                "required": ["day", "mentions", "shareOfVoice"],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "totalMentions",
                            "shareOfVoice",
                            "averagePosition",
                            "observedAnswerCount",
                            "points"
                          ],
                          "additionalProperties": false
                        },
                        "sentiment": {
                          "type": "object",
                          "properties": {
                            "overview": {
                              "type": "object",
                              "properties": {
                                "window": {
                                  "type": "object",
                                  "properties": {
                                    "from": {
                                      "type": "string"
                                    },
                                    "to": {
                                      "type": "string"
                                    },
                                    "compareFrom": {
                                      "type": ["string", "null"]
                                    },
                                    "compareTo": {
                                      "type": ["string", "null"]
                                    }
                                  },
                                  "required": ["from", "to", "compareFrom", "compareTo"],
                                  "additionalProperties": false
                                },
                                "generatedAt": {
                                  "type": "string"
                                },
                                "summary": {
                                  "type": "object",
                                  "properties": {
                                    "totalMentions": {
                                      "type": "number"
                                    },
                                    "distinctRuns": {
                                      "type": "number"
                                    },
                                    "positiveCount": {
                                      "type": "number"
                                    },
                                    "negativeCount": {
                                      "type": "number"
                                    },
                                    "neutralCount": {
                                      "type": "number"
                                    },
                                    "mixedCount": {
                                      "type": "number"
                                    },
                                    "positiveShare": {
                                      "type": "number"
                                    },
                                    "negativeShare": {
                                      "type": "number"
                                    },
                                    "netSentiment": {
                                      "type": "number"
                                    },
                                    "ownBrandNegativeMentions": {
                                      "type": "number"
                                    },
                                    "competitorPositiveMentions": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "totalMentions",
                                    "distinctRuns",
                                    "positiveCount",
                                    "negativeCount",
                                    "neutralCount",
                                    "mixedCount",
                                    "positiveShare",
                                    "negativeShare",
                                    "netSentiment",
                                    "ownBrandNegativeMentions",
                                    "competitorPositiveMentions"
                                  ],
                                  "additionalProperties": false
                                },
                                "comparison": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "totalMentions": {
                                          "type": "number"
                                        },
                                        "distinctRuns": {
                                          "type": "number"
                                        },
                                        "positiveCount": {
                                          "type": "number"
                                        },
                                        "negativeCount": {
                                          "type": "number"
                                        },
                                        "neutralCount": {
                                          "type": "number"
                                        },
                                        "mixedCount": {
                                          "type": "number"
                                        },
                                        "positiveShare": {
                                          "type": "number"
                                        },
                                        "negativeShare": {
                                          "type": "number"
                                        },
                                        "netSentiment": {
                                          "type": "number"
                                        },
                                        "ownBrandNegativeMentions": {
                                          "type": "number"
                                        },
                                        "competitorPositiveMentions": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "totalMentions",
                                        "distinctRuns",
                                        "positiveCount",
                                        "negativeCount",
                                        "neutralCount",
                                        "mixedCount",
                                        "positiveShare",
                                        "negativeShare",
                                        "netSentiment",
                                        "ownBrandNegativeMentions",
                                        "competitorPositiveMentions"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": ["window", "generatedAt", "summary", "comparison"],
                              "additionalProperties": false
                            },
                            "series": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "bucketDate": {
                                    "type": "string"
                                  },
                                  "totalMentions": {
                                    "type": "number"
                                  },
                                  "positiveCount": {
                                    "type": "number"
                                  },
                                  "negativeCount": {
                                    "type": "number"
                                  },
                                  "neutralCount": {
                                    "type": "number"
                                  },
                                  "mixedCount": {
                                    "type": "number"
                                  },
                                  "ownBrandNegativeMentions": {
                                    "type": "number"
                                  },
                                  "competitorPositiveMentions": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "bucketDate",
                                  "totalMentions",
                                  "positiveCount",
                                  "negativeCount",
                                  "neutralCount",
                                  "mixedCount",
                                  "ownBrandNegativeMentions",
                                  "competitorPositiveMentions"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "evidence": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "mentionId": {
                                    "type": "number"
                                  },
                                  "promptRunId": {
                                    "type": "number"
                                  },
                                  "promptId": {
                                    "type": "number"
                                  },
                                  "promptLabel": {
                                    "type": "string"
                                  },
                                  "platform": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "chatgpt",
                                          "gemini",
                                          "perplexity",
                                          "claude",
                                          "ai_mode",
                                          "ai_overview",
                                          "google_ai_mode",
                                          "google_ai_overview",
                                          "unknown"
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "regionCode": {
                                    "type": ["string", "null"]
                                  },
                                  "occurredAt": {
                                    "type": ["string", "null"]
                                  },
                                  "targetLabel": {
                                    "type": "string"
                                  },
                                  "targetKind": {
                                    "type": "string",
                                    "enum": ["workspace_brand", "competitor", "other_brand"]
                                  },
                                  "competitorId": {
                                    "type": ["number", "null"]
                                  },
                                  "isOwnBrand": {
                                    "type": "boolean"
                                  },
                                  "sentiment": {
                                    "type": "string",
                                    "enum": ["positive", "negative", "neutral", "mixed"]
                                  },
                                  "aspect": {
                                    "type": ["string", "null"]
                                  },
                                  "quote": {
                                    "type": "string"
                                  },
                                  "quoteStart": {
                                    "type": ["number", "null"]
                                  },
                                  "quoteEnd": {
                                    "type": ["number", "null"]
                                  },
                                  "excerpt": {
                                    "type": "string"
                                  },
                                  "excerptHighlightStart": {
                                    "type": "number"
                                  },
                                  "excerptHighlightEnd": {
                                    "type": "number"
                                  },
                                  "position": {
                                    "type": "number"
                                  },
                                  "confidence": {
                                    "type": ["string", "null"]
                                  }
                                },
                                "required": [
                                  "mentionId",
                                  "promptRunId",
                                  "promptId",
                                  "promptLabel",
                                  "platform",
                                  "regionCode",
                                  "occurredAt",
                                  "targetLabel",
                                  "targetKind",
                                  "competitorId",
                                  "isOwnBrand",
                                  "sentiment",
                                  "aspect",
                                  "quote",
                                  "quoteStart",
                                  "quoteEnd",
                                  "excerpt",
                                  "excerptHighlightStart",
                                  "excerptHighlightEnd",
                                  "position",
                                  "confidence"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": ["overview", "series", "evidence"],
                          "additionalProperties": false
                        },
                        "sources": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "domain": {
                                "type": "string"
                              },
                              "citationCount": {
                                "type": "number"
                              },
                              "answerCount": {
                                "type": "number"
                              },
                              "lastSeenAt": {
                                "type": ["string", "null"]
                              }
                            },
                            "required": ["domain", "citationCount", "answerCount", "lastSeenAt"],
                            "additionalProperties": false
                          }
                        },
                        "groups": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "name": {
                                "type": "string"
                              },
                              "answerCount": {
                                "type": "number"
                              },
                              "promptCount": {
                                "type": "number"
                              }
                            },
                            "required": ["id", "name", "answerCount", "promptCount"],
                            "additionalProperties": false
                          }
                        },
                        "answers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "promptRunId": {
                                "type": "number"
                              },
                              "promptId": {
                                "type": "number"
                              },
                              "promptLabel": {
                                "type": "string"
                              },
                              "platform": {
                                "type": ["string", "null"]
                              },
                              "regionCode": {
                                "type": ["string", "null"]
                              },
                              "rank": {
                                "type": ["number", "null"]
                              },
                              "occurredAt": {
                                "type": ["string", "null"]
                              }
                            },
                            "required": [
                              "promptRunId",
                              "promptId",
                              "promptLabel",
                              "platform",
                              "regionCode",
                              "rank",
                              "occurredAt"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "generatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "competitor",
                        "window",
                        "visibility",
                        "sentiment",
                        "sources",
                        "groups",
                        "answers",
                        "generatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/decisions": {
      "post": {
        "operationId": "postV2BrandsDecisions",
        "tags": ["Brands"],
        "summary": "Resolve a discovered competitor identity",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "MCP requires this header. For identity decisions it must match the body UUID. Personal review edits use version conflict detection; reread after uncertain responses rather than assuming receipt replay."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "candidateKey": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 600
                  },
                  "candidateRevision": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "aliasType": {
                    "type": "string",
                    "enum": ["name", "domain"]
                  },
                  "aliasText": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "normalizedAlias": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "action": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "attach"
                          },
                          "competitorId": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          }
                        },
                        "required": ["kind", "competitorId"],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "create"
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 150
                          },
                          "primaryDomain": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 255
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isOwnBrand": {
                            "type": "boolean"
                          }
                        },
                        "required": ["kind"],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "exclude"
                          }
                        },
                        "required": ["kind"],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "candidateKey",
                  "candidateRevision",
                  "aliasType",
                  "aliasText",
                  "normalizedAlias",
                  "idempotencyKey",
                  "action"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Previously completed identity decision replay.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "decisionId": {
                          "type": "string"
                        },
                        "candidateKey": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": ["attach", "create", "exclude"]
                        },
                        "competitorId": {
                          "type": ["number", "null"]
                        },
                        "aliasId": {
                          "type": ["number", "null"]
                        },
                        "exclusionId": {
                          "type": ["number", "null"]
                        },
                        "created": {
                          "type": "boolean"
                        },
                        "replayed": {
                          "type": "boolean"
                        },
                        "attributedPositions": {
                          "type": "number"
                        },
                        "attributedMentions": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "decisionId",
                        "candidateKey",
                        "action",
                        "competitorId",
                        "aliasId",
                        "exclusionId",
                        "created",
                        "replayed",
                        "attributedPositions",
                        "attributedMentions"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "201": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "decisionId": {
                          "type": "string"
                        },
                        "candidateKey": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": ["attach", "create", "exclude"]
                        },
                        "competitorId": {
                          "type": ["number", "null"]
                        },
                        "aliasId": {
                          "type": ["number", "null"]
                        },
                        "exclusionId": {
                          "type": ["number", "null"]
                        },
                        "created": {
                          "type": "boolean"
                        },
                        "replayed": {
                          "type": "boolean"
                        },
                        "attributedPositions": {
                          "type": "number"
                        },
                        "attributedMentions": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "decisionId",
                        "candidateKey",
                        "action",
                        "competitorId",
                        "aliasId",
                        "exclusionId",
                        "created",
                        "replayed",
                        "attributedPositions",
                        "attributedMentions"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/reviews": {
      "post": {
        "operationId": "postV2BrandsReviews",
        "tags": ["Brands"],
        "summary": "Start or resume a personal competitor review",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "MCP requires this header. For identity decisions it must match the body UUID. Personal review edits use version conflict detection; reread after uncertain responses rather than assuming receipt replay."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "queueRevision": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "revision": {
                          "type": "number"
                        },
                        "status": {
                          "type": "string",
                          "enum": ["open", "applying", "completed", "abandoned"]
                        },
                        "queueRevision": {
                          "type": ["string", "null"]
                        },
                        "stagedCount": {
                          "type": "number"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "candidateKey": {
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 600
                              },
                              "candidateRevision": {
                                "type": "string",
                                "pattern": "^[a-f0-9]{64}$"
                              },
                              "aliasType": {
                                "type": "string",
                                "enum": ["name", "domain"]
                              },
                              "aliasText": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "normalizedAlias": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "action": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "attach"
                                      },
                                      "competitorId": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      }
                                    },
                                    "required": ["kind", "competitorId"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "create"
                                      },
                                      "label": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 150
                                      },
                                      "primaryDomain": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 255
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "isOwnBrand": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "exclude"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "staged",
                                  "applying",
                                  "applied",
                                  "conflict",
                                  "invalid",
                                  "failed"
                                ]
                              },
                              "result": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "decisionId": {
                                        "type": "string"
                                      },
                                      "candidateKey": {
                                        "type": "string"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": ["attach", "create", "exclude"]
                                      },
                                      "competitorId": {
                                        "type": ["number", "null"]
                                      },
                                      "aliasId": {
                                        "type": ["number", "null"]
                                      },
                                      "exclusionId": {
                                        "type": ["number", "null"]
                                      },
                                      "created": {
                                        "type": "boolean"
                                      },
                                      "replayed": {
                                        "type": "boolean"
                                      },
                                      "attributedPositions": {
                                        "type": "number"
                                      },
                                      "attributedMentions": {
                                        "type": "number"
                                      },
                                      "code": {
                                        "type": "string"
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "candidateKey",
                              "candidateRevision",
                              "aliasType",
                              "aliasText",
                              "normalizedAlias",
                              "action",
                              "status",
                              "result"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "revision",
                        "status",
                        "queueRevision",
                        "stagedCount",
                        "items",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/reviews/{sessionId}": {
      "get": {
        "operationId": "getV2BrandsReviewsSessionId",
        "tags": ["Brands"],
        "summary": "Read your competitor review",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "revision": {
                          "type": "number"
                        },
                        "status": {
                          "type": "string",
                          "enum": ["open", "applying", "completed", "abandoned"]
                        },
                        "queueRevision": {
                          "type": ["string", "null"]
                        },
                        "stagedCount": {
                          "type": "number"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "candidateKey": {
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 600
                              },
                              "candidateRevision": {
                                "type": "string",
                                "pattern": "^[a-f0-9]{64}$"
                              },
                              "aliasType": {
                                "type": "string",
                                "enum": ["name", "domain"]
                              },
                              "aliasText": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "normalizedAlias": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "action": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "attach"
                                      },
                                      "competitorId": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      }
                                    },
                                    "required": ["kind", "competitorId"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "create"
                                      },
                                      "label": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 150
                                      },
                                      "primaryDomain": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 255
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "isOwnBrand": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "exclude"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "staged",
                                  "applying",
                                  "applied",
                                  "conflict",
                                  "invalid",
                                  "failed"
                                ]
                              },
                              "result": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "decisionId": {
                                        "type": "string"
                                      },
                                      "candidateKey": {
                                        "type": "string"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": ["attach", "create", "exclude"]
                                      },
                                      "competitorId": {
                                        "type": ["number", "null"]
                                      },
                                      "aliasId": {
                                        "type": ["number", "null"]
                                      },
                                      "exclusionId": {
                                        "type": ["number", "null"]
                                      },
                                      "created": {
                                        "type": "boolean"
                                      },
                                      "replayed": {
                                        "type": "boolean"
                                      },
                                      "attributedPositions": {
                                        "type": "number"
                                      },
                                      "attributedMentions": {
                                        "type": "number"
                                      },
                                      "code": {
                                        "type": "string"
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "candidateKey",
                              "candidateRevision",
                              "aliasType",
                              "aliasText",
                              "normalizedAlias",
                              "action",
                              "status",
                              "result"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "revision",
                        "status",
                        "queueRevision",
                        "stagedCount",
                        "items",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      },
      "patch": {
        "operationId": "patchV2BrandsReviewsSessionId",
        "tags": ["Brands"],
        "summary": "Stage competitor review decisions",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "MCP requires this header. For identity decisions it must match the body UUID. Personal review edits use version conflict detection; reread after uncertain responses rather than assuming receipt replay."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "decisions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "candidateKey": {
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 600
                        },
                        "candidateRevision": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "aliasType": {
                          "type": "string",
                          "enum": ["name", "domain"]
                        },
                        "aliasText": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "normalizedAlias": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "action": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "attach"
                                    },
                                    "competitorId": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0
                                    }
                                  },
                                  "required": ["kind", "competitorId"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "create"
                                    },
                                    "label": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 150
                                    },
                                    "primaryDomain": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 255
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "isOwnBrand": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": ["kind"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "exclude"
                                    }
                                  },
                                  "required": ["kind"],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "candidateKey",
                        "candidateRevision",
                        "aliasType",
                        "aliasText",
                        "normalizedAlias",
                        "action"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 500
                  }
                },
                "required": ["expectedRevision", "decisions"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "revision": {
                          "type": "number"
                        },
                        "status": {
                          "type": "string",
                          "enum": ["open", "applying", "completed", "abandoned"]
                        },
                        "queueRevision": {
                          "type": ["string", "null"]
                        },
                        "stagedCount": {
                          "type": "number"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "candidateKey": {
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 600
                              },
                              "candidateRevision": {
                                "type": "string",
                                "pattern": "^[a-f0-9]{64}$"
                              },
                              "aliasType": {
                                "type": "string",
                                "enum": ["name", "domain"]
                              },
                              "aliasText": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "normalizedAlias": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "action": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "attach"
                                      },
                                      "competitorId": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      }
                                    },
                                    "required": ["kind", "competitorId"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "create"
                                      },
                                      "label": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 150
                                      },
                                      "primaryDomain": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 255
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "isOwnBrand": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "exclude"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "staged",
                                  "applying",
                                  "applied",
                                  "conflict",
                                  "invalid",
                                  "failed"
                                ]
                              },
                              "result": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "decisionId": {
                                        "type": "string"
                                      },
                                      "candidateKey": {
                                        "type": "string"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": ["attach", "create", "exclude"]
                                      },
                                      "competitorId": {
                                        "type": ["number", "null"]
                                      },
                                      "aliasId": {
                                        "type": ["number", "null"]
                                      },
                                      "exclusionId": {
                                        "type": ["number", "null"]
                                      },
                                      "created": {
                                        "type": "boolean"
                                      },
                                      "replayed": {
                                        "type": "boolean"
                                      },
                                      "attributedPositions": {
                                        "type": "number"
                                      },
                                      "attributedMentions": {
                                        "type": "number"
                                      },
                                      "code": {
                                        "type": "string"
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "candidateKey",
                              "candidateRevision",
                              "aliasType",
                              "aliasText",
                              "normalizedAlias",
                              "action",
                              "status",
                              "result"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "revision",
                        "status",
                        "queueRevision",
                        "stagedCount",
                        "items",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/reviews/{sessionId}/apply": {
      "post": {
        "operationId": "postV2BrandsReviewsSessionIdApply",
        "tags": ["Brands"],
        "summary": "Apply reviewed competitor decisions",
        "description": "Workspace-scoped app capability through the customer API. MCP requires the matching prompts or competitors permission. Competitor writes require current admin permission. Personal review sessions additionally require user-authorized OAuth and are unavailable to workspace service keys. Identity decisions verify the discovered candidate revision and replay by UUID. Review applications report per-item outcomes; inspect conflicts before continuing.",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "MCP requires this header. For identity decisions it must match the body UUID. Personal review edits use version conflict detection; reread after uncertain responses rather than assuming receipt replay."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  }
                },
                "required": ["expectedRevision"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "revision": {
                          "type": "number"
                        },
                        "status": {
                          "type": "string",
                          "enum": ["open", "applying", "completed", "abandoned"]
                        },
                        "queueRevision": {
                          "type": ["string", "null"]
                        },
                        "stagedCount": {
                          "type": "number"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "candidateKey": {
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 600
                              },
                              "candidateRevision": {
                                "type": "string",
                                "pattern": "^[a-f0-9]{64}$"
                              },
                              "aliasType": {
                                "type": "string",
                                "enum": ["name", "domain"]
                              },
                              "aliasText": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "normalizedAlias": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "action": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "attach"
                                      },
                                      "competitorId": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0
                                      }
                                    },
                                    "required": ["kind", "competitorId"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "create"
                                      },
                                      "label": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 150
                                      },
                                      "primaryDomain": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 255
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "isOwnBrand": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "exclude"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "staged",
                                  "applying",
                                  "applied",
                                  "conflict",
                                  "invalid",
                                  "failed"
                                ]
                              },
                              "result": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "decisionId": {
                                        "type": "string"
                                      },
                                      "candidateKey": {
                                        "type": "string"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": ["attach", "create", "exclude"]
                                      },
                                      "competitorId": {
                                        "type": ["number", "null"]
                                      },
                                      "aliasId": {
                                        "type": ["number", "null"]
                                      },
                                      "exclusionId": {
                                        "type": ["number", "null"]
                                      },
                                      "created": {
                                        "type": "boolean"
                                      },
                                      "replayed": {
                                        "type": "boolean"
                                      },
                                      "attributedPositions": {
                                        "type": "number"
                                      },
                                      "attributedMentions": {
                                        "type": "number"
                                      },
                                      "code": {
                                        "type": "string"
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "candidateKey",
                              "candidateRevision",
                              "aliasType",
                              "aliasText",
                              "normalizedAlias",
                              "action",
                              "status",
                              "result"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "updatedAt": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "revision",
                        "status",
                        "queueRevision",
                        "stagedCount",
                        "items",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "403": {
            "description": "Scope, role or personal ownership denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Candidate, review revision or retry conflict."
          }
        }
      }
    },
    "/api/v2/prompts/drafts": {
      "get": {
        "operationId": "getV2PromptsDrafts",
        "tags": ["Prompts"],
        "summary": "Read your prompt drafts",
        "description": "Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically. Personal drafts require user-authorized OAuth; service API keys cannot access a member\u2019s drafts. New saves use null ID and revision; updates/removal require the current revision. Multiple-draft feature access remains enforced. Saving does not create or run a prompt.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "drafts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "string",
                                    "const": "legacy"
                                  }
                                ]
                              },
                              "revision": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200
                              },
                              "updatedAt": {
                                "type": "string"
                              },
                              "values": {
                                "type": "object",
                                "properties": {
                                  "promptText": {
                                    "type": "string",
                                    "maxLength": 399
                                  },
                                  "targetPlatforms": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "chatgpt",
                                        "ai_overview",
                                        "ai_mode",
                                        "gemini",
                                        "perplexity",
                                        "claude"
                                      ]
                                    }
                                  },
                                  "targetRegions": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    }
                                  },
                                  "analysisPolicy": {
                                    "type": "object",
                                    "properties": {
                                      "ranking": {
                                        "type": "string",
                                        "enum": ["auto", "always", "never"]
                                      },
                                      "sentiment": {
                                        "type": "string",
                                        "enum": ["auto", "always", "never"]
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  "scheduleFrequency": {
                                    "type": "string",
                                    "enum": ["daily", "weekly", "manual"]
                                  },
                                  "scheduleHour": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 23
                                  },
                                  "scheduleMinute": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 59
                                  },
                                  "scheduleTimezone": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "scheduleIntervalMinutes": {
                                    "type": "null"
                                  },
                                  "scheduleDaysOfWeek": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 6
                                        },
                                        "maxItems": 7
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "personaIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0
                                    },
                                    "maxItems": 50
                                  },
                                  "groupIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0
                                    },
                                    "maxItems": 50
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": ["id", "revision", "updatedAt", "values"],
                            "additionalProperties": false
                          }
                        },
                        "saved": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                {
                                  "type": "string",
                                  "const": "legacy"
                                }
                              ]
                            },
                            "revision": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "values": {
                              "type": "object",
                              "properties": {
                                "promptText": {
                                  "type": "string",
                                  "maxLength": 399
                                },
                                "targetPlatforms": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "chatgpt",
                                      "ai_overview",
                                      "ai_mode",
                                      "gemini",
                                      "perplexity",
                                      "claude"
                                    ]
                                  }
                                },
                                "targetRegions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100
                                  }
                                },
                                "analysisPolicy": {
                                  "type": "object",
                                  "properties": {
                                    "ranking": {
                                      "type": "string",
                                      "enum": ["auto", "always", "never"]
                                    },
                                    "sentiment": {
                                      "type": "string",
                                      "enum": ["auto", "always", "never"]
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "scheduleFrequency": {
                                  "type": "string",
                                  "enum": ["daily", "weekly", "manual"]
                                },
                                "scheduleHour": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 23
                                },
                                "scheduleMinute": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 59
                                },
                                "scheduleTimezone": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "scheduleIntervalMinutes": {
                                  "type": "null"
                                },
                                "scheduleDaysOfWeek": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 6
                                      },
                                      "maxItems": 7
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personaIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "maxItems": 50
                                },
                                "groupIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "maxItems": 50
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": ["id", "revision", "updatedAt", "values"],
                          "additionalProperties": false
                        },
                        "multipleDraftsEnabled": {
                          "type": "boolean"
                        }
                      },
                      "required": ["drafts", "multipleDraftsEnabled"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role, personal ownership or feature access denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Revision, opportunity or retry conflict."
          }
        }
      },
      "put": {
        "operationId": "putV2PromptsDrafts",
        "tags": ["Prompts"],
        "summary": "Save a personal prompt draft",
        "description": "Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically. Personal drafts require user-authorized OAuth; service API keys cannot access a member\u2019s drafts. New saves use null ID and revision; updates/removal require the current revision. Multiple-draft feature access remains enforced. Saving does not create or run a prompt.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Keep unchanged when retrying the same operation within 24 hours."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "uuid"
                          },
                          {
                            "type": "string",
                            "const": "legacy"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "expectedRevision": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "values": {
                    "type": "object",
                    "properties": {
                      "promptText": {
                        "type": "string",
                        "maxLength": 399
                      },
                      "targetPlatforms": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "chatgpt",
                            "ai_overview",
                            "ai_mode",
                            "gemini",
                            "perplexity",
                            "claude"
                          ]
                        }
                      },
                      "targetRegions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100
                        }
                      },
                      "analysisPolicy": {
                        "type": "object",
                        "properties": {
                          "ranking": {
                            "type": "string",
                            "enum": ["auto", "always", "never"]
                          },
                          "sentiment": {
                            "type": "string",
                            "enum": ["auto", "always", "never"]
                          }
                        },
                        "additionalProperties": false
                      },
                      "scheduleFrequency": {
                        "type": "string",
                        "enum": ["daily", "weekly", "manual"]
                      },
                      "scheduleHour": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 23
                      },
                      "scheduleMinute": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 59
                      },
                      "scheduleTimezone": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "scheduleIntervalMinutes": {
                        "type": "null"
                      },
                      "scheduleDaysOfWeek": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 6
                            },
                            "maxItems": 7
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "personaIds": {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "maxItems": 50
                      },
                      "groupIds": {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "maxItems": 50
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": ["id", "expectedRevision", "values"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "drafts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "string",
                                    "const": "legacy"
                                  }
                                ]
                              },
                              "revision": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200
                              },
                              "updatedAt": {
                                "type": "string"
                              },
                              "values": {
                                "type": "object",
                                "properties": {
                                  "promptText": {
                                    "type": "string",
                                    "maxLength": 399
                                  },
                                  "targetPlatforms": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "chatgpt",
                                        "ai_overview",
                                        "ai_mode",
                                        "gemini",
                                        "perplexity",
                                        "claude"
                                      ]
                                    }
                                  },
                                  "targetRegions": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    }
                                  },
                                  "analysisPolicy": {
                                    "type": "object",
                                    "properties": {
                                      "ranking": {
                                        "type": "string",
                                        "enum": ["auto", "always", "never"]
                                      },
                                      "sentiment": {
                                        "type": "string",
                                        "enum": ["auto", "always", "never"]
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  "scheduleFrequency": {
                                    "type": "string",
                                    "enum": ["daily", "weekly", "manual"]
                                  },
                                  "scheduleHour": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 23
                                  },
                                  "scheduleMinute": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 59
                                  },
                                  "scheduleTimezone": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "scheduleIntervalMinutes": {
                                    "type": "null"
                                  },
                                  "scheduleDaysOfWeek": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 6
                                        },
                                        "maxItems": 7
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "personaIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0
                                    },
                                    "maxItems": 50
                                  },
                                  "groupIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0
                                    },
                                    "maxItems": 50
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": ["id", "revision", "updatedAt", "values"],
                            "additionalProperties": false
                          }
                        },
                        "saved": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                {
                                  "type": "string",
                                  "const": "legacy"
                                }
                              ]
                            },
                            "revision": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "values": {
                              "type": "object",
                              "properties": {
                                "promptText": {
                                  "type": "string",
                                  "maxLength": 399
                                },
                                "targetPlatforms": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "chatgpt",
                                      "ai_overview",
                                      "ai_mode",
                                      "gemini",
                                      "perplexity",
                                      "claude"
                                    ]
                                  }
                                },
                                "targetRegions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100
                                  }
                                },
                                "analysisPolicy": {
                                  "type": "object",
                                  "properties": {
                                    "ranking": {
                                      "type": "string",
                                      "enum": ["auto", "always", "never"]
                                    },
                                    "sentiment": {
                                      "type": "string",
                                      "enum": ["auto", "always", "never"]
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "scheduleFrequency": {
                                  "type": "string",
                                  "enum": ["daily", "weekly", "manual"]
                                },
                                "scheduleHour": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 23
                                },
                                "scheduleMinute": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 59
                                },
                                "scheduleTimezone": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "scheduleIntervalMinutes": {
                                  "type": "null"
                                },
                                "scheduleDaysOfWeek": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 6
                                      },
                                      "maxItems": 7
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personaIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "maxItems": 50
                                },
                                "groupIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "maxItems": 50
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": ["id", "revision", "updatedAt", "values"],
                          "additionalProperties": false
                        },
                        "multipleDraftsEnabled": {
                          "type": "boolean"
                        }
                      },
                      "required": ["drafts", "multipleDraftsEnabled"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role, personal ownership or feature access denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Revision, opportunity or retry conflict."
          }
        }
      },
      "delete": {
        "operationId": "deleteV2PromptsDrafts",
        "tags": ["Prompts"],
        "summary": "Remove a personal prompt draft",
        "description": "Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically. Personal drafts require user-authorized OAuth; service API keys cannot access a member\u2019s drafts. New saves use null ID and revision; updates/removal require the current revision. Multiple-draft feature access remains enforced. Saving does not create or run a prompt.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Keep unchanged when retrying the same operation within 24 hours."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "string",
                        "const": "legacy"
                      }
                    ]
                  },
                  "expectedRevision": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": ["id", "expectedRevision"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "drafts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "string",
                                    "const": "legacy"
                                  }
                                ]
                              },
                              "revision": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200
                              },
                              "updatedAt": {
                                "type": "string"
                              },
                              "values": {
                                "type": "object",
                                "properties": {
                                  "promptText": {
                                    "type": "string",
                                    "maxLength": 399
                                  },
                                  "targetPlatforms": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "chatgpt",
                                        "ai_overview",
                                        "ai_mode",
                                        "gemini",
                                        "perplexity",
                                        "claude"
                                      ]
                                    }
                                  },
                                  "targetRegions": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    }
                                  },
                                  "analysisPolicy": {
                                    "type": "object",
                                    "properties": {
                                      "ranking": {
                                        "type": "string",
                                        "enum": ["auto", "always", "never"]
                                      },
                                      "sentiment": {
                                        "type": "string",
                                        "enum": ["auto", "always", "never"]
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  "scheduleFrequency": {
                                    "type": "string",
                                    "enum": ["daily", "weekly", "manual"]
                                  },
                                  "scheduleHour": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 23
                                  },
                                  "scheduleMinute": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 59
                                  },
                                  "scheduleTimezone": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "scheduleIntervalMinutes": {
                                    "type": "null"
                                  },
                                  "scheduleDaysOfWeek": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 6
                                        },
                                        "maxItems": 7
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "personaIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0
                                    },
                                    "maxItems": 50
                                  },
                                  "groupIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0
                                    },
                                    "maxItems": 50
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": ["id", "revision", "updatedAt", "values"],
                            "additionalProperties": false
                          }
                        },
                        "saved": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                {
                                  "type": "string",
                                  "const": "legacy"
                                }
                              ]
                            },
                            "revision": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "values": {
                              "type": "object",
                              "properties": {
                                "promptText": {
                                  "type": "string",
                                  "maxLength": 399
                                },
                                "targetPlatforms": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "chatgpt",
                                      "ai_overview",
                                      "ai_mode",
                                      "gemini",
                                      "perplexity",
                                      "claude"
                                    ]
                                  }
                                },
                                "targetRegions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100
                                  }
                                },
                                "analysisPolicy": {
                                  "type": "object",
                                  "properties": {
                                    "ranking": {
                                      "type": "string",
                                      "enum": ["auto", "always", "never"]
                                    },
                                    "sentiment": {
                                      "type": "string",
                                      "enum": ["auto", "always", "never"]
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "scheduleFrequency": {
                                  "type": "string",
                                  "enum": ["daily", "weekly", "manual"]
                                },
                                "scheduleHour": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 23
                                },
                                "scheduleMinute": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 59
                                },
                                "scheduleTimezone": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "scheduleIntervalMinutes": {
                                  "type": "null"
                                },
                                "scheduleDaysOfWeek": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 6
                                      },
                                      "maxItems": 7
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "personaIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "maxItems": 50
                                },
                                "groupIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0
                                  },
                                  "maxItems": 50
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": ["id", "revision", "updatedAt", "values"],
                          "additionalProperties": false
                        },
                        "multipleDraftsEnabled": {
                          "type": "boolean"
                        }
                      },
                      "required": ["drafts", "multipleDraftsEnabled"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role, personal ownership or feature access denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Revision, opportunity or retry conflict."
          }
        }
      }
    },
    "/api/v2/prompts/inventory": {
      "get": {
        "operationId": "getV2PromptsInventory",
        "tags": ["Prompts"],
        "summary": "Read the filtered prompt inventory",
        "description": "Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically. List filters use comma-separated values. Follow nextCursor or previousCursor with navigationDirection to paginate. Rows contain numeric prompt, group and persona IDs. Applied state reports the normalized filters.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "statusTab",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "needs_attention", "scheduled", "paused", "completed"]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "runState",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 150
            }
          },
          {
            "name": "platforms",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "regions",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2000
            }
          },
          {
            "name": "groups",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "personas",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "default",
                "prompt",
                "visibility",
                "groups",
                "models",
                "regions",
                "lastRunAt",
                "updatedAt",
                "status",
                "operationalStatus",
                "resultSyncStatus"
              ]
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["asc", "desc"]
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 8192
            }
          },
          {
            "name": "navigationDirection",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["next", "prev"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "number"
                              },
                              "label": {
                                "type": "string"
                              },
                              "excerpt": {
                                "type": "string"
                              },
                              "promptText": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string",
                                "enum": ["active", "inactive", "archived"]
                              },
                              "lastRunAt": {
                                "type": ["string", "null"]
                              },
                              "nextRunAt": {
                                "type": ["string", "null"]
                              },
                              "resultSyncStatus": {
                                "type": "string",
                                "enum": [
                                  "pending",
                                  "queued",
                                  "running",
                                  "complete",
                                  "failed",
                                  "credit_hold"
                                ]
                              },
                              "isRunning": {
                                "type": "boolean"
                              },
                              "targetPlatforms": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "chatgpt",
                                    "ai_overview",
                                    "ai_mode",
                                    "gemini",
                                    "perplexity",
                                    "claude"
                                  ]
                                }
                              },
                              "targetRegions": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "analysisPolicy": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "ranking": {
                                        "type": "string",
                                        "enum": ["auto", "always", "never"]
                                      },
                                      "sentiment": {
                                        "type": "string",
                                        "enum": ["auto", "always", "never"]
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "personaIds": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              },
                              "groupIds": {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              },
                              "scheduleFrequency": {
                                "type": "string"
                              },
                              "scheduleHour": {
                                "type": "number"
                              },
                              "scheduleMinute": {
                                "type": "number"
                              },
                              "scheduleTimezone": {
                                "type": "string"
                              },
                              "scheduleIntervalMinutes": {
                                "type": ["number", "null"]
                              },
                              "scheduleDaysOfWeek": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "number"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "type": "string"
                              },
                              "updatedAt": {
                                "type": "string"
                              },
                              "archivedAt": {
                                "type": ["string", "null"]
                              },
                              "visibility": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "windowDays": {
                                        "type": "number"
                                      },
                                      "answerCount": {
                                        "type": "number"
                                      },
                                      "rankingEligibleAnswerCount": {
                                        "type": "number"
                                      },
                                      "presenceCount": {
                                        "type": "number"
                                      },
                                      "firstPlaceCount": {
                                        "type": "number"
                                      },
                                      "presenceRate": {
                                        "type": ["number", "null"]
                                      },
                                      "firstPlaceRate": {
                                        "type": ["number", "null"]
                                      },
                                      "ownAverageBestRank": {
                                        "type": ["number", "null"]
                                      },
                                      "bestCompetitorAverageRank": {
                                        "type": ["number", "null"]
                                      }
                                    },
                                    "required": [
                                      "windowDays",
                                      "answerCount",
                                      "presenceCount",
                                      "firstPlaceCount",
                                      "presenceRate",
                                      "firstPlaceRate",
                                      "ownAverageBestRank",
                                      "bestCompetitorAverageRank"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "label",
                              "excerpt",
                              "status",
                              "lastRunAt",
                              "nextRunAt",
                              "resultSyncStatus",
                              "targetPlatforms",
                              "targetRegions",
                              "analysisPolicy",
                              "personaIds",
                              "groupIds",
                              "scheduleFrequency",
                              "scheduleHour",
                              "scheduleMinute",
                              "scheduleTimezone",
                              "scheduleIntervalMinutes",
                              "scheduleDaysOfWeek",
                              "createdAt",
                              "updatedAt",
                              "archivedAt",
                              "visibility"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "totalCount": {
                          "type": ["number", "null"]
                        },
                        "summary": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "totalCount": {
                                  "type": "number"
                                },
                                "hasCompletedAnswer": {
                                  "type": "boolean"
                                },
                                "scheduledToday": {
                                  "type": "number"
                                },
                                "needsAttention": {
                                  "type": "number"
                                },
                                "averageVisibility": {
                                  "type": ["number", "null"]
                                },
                                "paused": {
                                  "type": "number"
                                },
                                "completed": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "totalCount",
                                "hasCompletedAnswer",
                                "scheduledToday",
                                "needsAttention",
                                "averageVisibility",
                                "paused",
                                "completed"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "pageSize": {
                          "type": "number"
                        },
                        "nextCursor": {
                          "type": ["string", "null"]
                        },
                        "previousCursor": {
                          "type": ["string", "null"]
                        },
                        "appliedState": {
                          "type": "object",
                          "properties": {
                            "searchTerm": {
                              "type": "string"
                            },
                            "statusTab": {
                              "type": "string",
                              "enum": ["all", "needs_attention", "scheduled", "paused", "completed"]
                            },
                            "statusFilters": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["active", "inactive", "archived"]
                              }
                            },
                            "runStateFilters": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "pending",
                                  "queued",
                                  "running",
                                  "complete",
                                  "failed",
                                  "credit_hold"
                                ]
                              }
                            },
                            "platformFilters": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "chatgpt",
                                  "ai_overview",
                                  "ai_mode",
                                  "gemini",
                                  "perplexity",
                                  "claude"
                                ]
                              }
                            },
                            "regionFilters": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "groupFilters": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              }
                            },
                            "personaFilters": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              }
                            },
                            "sortKey": {
                              "type": "string",
                              "enum": [
                                "default",
                                "prompt",
                                "visibility",
                                "groups",
                                "models",
                                "regions",
                                "lastRunAt",
                                "updatedAt",
                                "status",
                                "operationalStatus",
                                "resultSyncStatus"
                              ]
                            },
                            "sortDirection": {
                              "type": "string",
                              "enum": ["asc", "desc"]
                            },
                            "pageSize": {
                              "type": "number"
                            },
                            "page": {
                              "type": "number"
                            },
                            "paginationDirection": {
                              "type": "string",
                              "enum": ["next", "prev"]
                            },
                            "cursor": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": [
                            "searchTerm",
                            "statusTab",
                            "statusFilters",
                            "runStateFilters",
                            "platformFilters",
                            "regionFilters",
                            "groupFilters",
                            "personaFilters",
                            "sortKey",
                            "sortDirection",
                            "pageSize",
                            "page",
                            "paginationDirection",
                            "cursor"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "rows",
                        "totalCount",
                        "summary",
                        "pageSize",
                        "nextCursor",
                        "previousCursor",
                        "appliedState"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role, personal ownership or feature access denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Revision, opportunity or retry conflict."
          }
        }
      }
    },
    "/api/v2/groups/opportunities": {
      "post": {
        "operationId": "postV2GroupsOpportunities",
        "tags": ["Prompts"],
        "summary": "Apply or dismiss a grouping opportunity",
        "description": "Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically. Read the group overview first. Creating requires a name, reuses an existing active group with that name and adds suggested prompts atomically. Archived groups must be restored first. A stale opportunity returns 409.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Keep unchanged when retrying the same operation within 24 hours."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "opportunityId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "action": {
                    "type": "string",
                    "enum": ["create_group", "dismiss"]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 150
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["opportunityId", "action"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean"
                        },
                        "groupId": {
                          "type": ["number", "null"]
                        },
                        "reused": {
                          "type": "boolean"
                        }
                      },
                      "required": ["success", "groupId", "reused"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "201": {
            "description": "Group created with suggested membership.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean"
                        },
                        "groupId": {
                          "type": ["number", "null"]
                        },
                        "reused": {
                          "type": "boolean"
                        }
                      },
                      "required": ["success", "groupId", "reused"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role, personal ownership or feature access denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Revision, opportunity or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/own-brand": {
      "get": {
        "operationId": "getV2BrandsOwnBrand",
        "tags": ["Brands"],
        "summary": "Read the workspace brand",
        "description": "Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "ownBrand": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "number"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "primaryDomain": {
                                  "type": ["string", "null"]
                                },
                                "ownBrandConfirmedAt": {
                                  "type": ["string", "null"]
                                },
                                "aliases": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "number"
                                      },
                                      "aliasType": {
                                        "type": "string",
                                        "enum": ["name", "domain"]
                                      },
                                      "aliasText": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["id", "aliasType", "aliasText"],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "label",
                                "primaryDomain",
                                "ownBrandConfirmedAt",
                                "aliases"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "suggestion": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "primaryDomain": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": ["name", "primaryDomain"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": ["ownBrand"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role, personal ownership or feature access denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Revision, opportunity or retry conflict."
          }
        }
      },
      "put": {
        "operationId": "putV2BrandsOwnBrand",
        "tags": ["Brands"],
        "summary": "Configure and confirm the workspace brand",
        "description": "Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Keep unchanged when retrying the same operation within 24 hours."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "primaryDomain": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  }
                },
                "required": ["name", "primaryDomain"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "ownBrand": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "number"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "primaryDomain": {
                                  "type": ["string", "null"]
                                },
                                "ownBrandConfirmedAt": {
                                  "type": ["string", "null"]
                                },
                                "aliases": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "number"
                                      },
                                      "aliasType": {
                                        "type": "string",
                                        "enum": ["name", "domain"]
                                      },
                                      "aliasText": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["id", "aliasType", "aliasText"],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "label",
                                "primaryDomain",
                                "ownBrandConfirmedAt",
                                "aliases"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "suggestion": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "primaryDomain": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": ["name", "primaryDomain"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": ["ownBrand"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role, personal ownership or feature access denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Revision, opportunity or retry conflict."
          }
        }
      }
    },
    "/api/v2/brands/own-brand/confirm": {
      "post": {
        "operationId": "postV2BrandsOwnBrandConfirm",
        "tags": ["Brands"],
        "summary": "Confirm the existing workspace brand",
        "description": "Same workspace feature and role permissions as the app. Writes commit their successful retry receipt atomically. Acknowledges the existing identity without editing it. Every current workspace member can confirm; MCP requires the separate competitors:confirm permission. Configuring the identity requires admin access and competitors:write.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Required for MCP writes. Keep unchanged when retrying the same operation within 24 hours."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "ownBrand": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "number"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "primaryDomain": {
                                  "type": ["string", "null"]
                                },
                                "ownBrandConfirmedAt": {
                                  "type": ["string", "null"]
                                },
                                "aliases": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "number"
                                      },
                                      "aliasType": {
                                        "type": "string",
                                        "enum": ["name", "domain"]
                                      },
                                      "aliasText": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["id", "aliasType", "aliasText"],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "label",
                                "primaryDomain",
                                "ownBrandConfirmedAt",
                                "aliases"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "suggestion": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "primaryDomain": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": ["name", "primaryDomain"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": ["ownBrand"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["data"],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid input."
          },
          "403": {
            "description": "Scope, role, personal ownership or feature access denied."
          },
          "404": {
            "description": "Record not found."
          },
          "409": {
            "description": "Revision, opportunity or retry conflict."
          }
        }
      }
    },
    "/api/v2/coverage": {
      "get": {
        "operationId": "getV2Coverage",
        "tags": ["Tracked coverage"],
        "summary": "List tracked coverage",
        "description": "Coverage requires Sources access and the coverage feature to be enabled for the workspace. API keys remain workspace-bound. Delegated MCP connections require coverage:read. Includes uncited records. Active and archived collections are queried separately. Page pagination reflects current data and is not a frozen export snapshot.",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            },
            "description": "One-based page; out-of-range pages clamp to the last available page. Page size is 20."
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "archived",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": ["true", "false"],
              "default": "false"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageListResponse"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"],
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      },
      "post": {
        "operationId": "postV2Coverage",
        "tags": ["Tracked coverage"],
        "summary": "Add tracked coverage",
        "description": "Coverage requires Sources access and the coverage feature to be enabled for the workspace. API keys remain workspace-bound. Delegated MCP connections require coverage:write and a stable idempotency key. Only url is required. Optional metadata defaults to empty values, article and unclassified. Duplicate exact-page identity returns duplicate_url (409), including archived records. Reuse Idempotency-Key for retries within 24 hours. No answer execution or external URL fetch is triggered. JSON request bodies are limited to 64 KiB.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "201": {
            "description": "Successful result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageRecordResponse"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CoverageCreate"
              }
            }
          }
        }
      }
    },
    "/api/v2/coverage/{coverageId}": {
      "get": {
        "operationId": "getV2CoverageDetail",
        "tags": ["Tracked coverage"],
        "summary": "Get tracked coverage and evidence",
        "description": "Coverage requires Sources access and the coverage feature to be enabled for the workspace. API keys remain workspace-bound. Delegated MCP connections require coverage:read. Returns the record, a page of matching cited answers and the 20 latest history entries. Evidence is citation-only across retained history; it does not establish causation. Inaccessible records return not_found (404).",
        "parameters": [
          {
            "name": "coverageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            },
            "description": "One-based page; out-of-range pages clamp to the last available page. Page size is 20."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageDetailResponse"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"],
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      },
      "patch": {
        "operationId": "patchV2Coverage",
        "tags": ["Tracked coverage"],
        "summary": "Update, archive or restore tracked coverage",
        "description": "Coverage requires Sources access and the coverage feature to be enabled for the workspace. API keys remain workspace-bound. Delegated MCP connections require coverage:write and a stable idempotency key. Supply the current version and an explicit action. Update replaces all metadata fields. A stale version returns version_conflict (409); archived records must be restored before editing. Reuse Idempotency-Key for retries within 24 hours. JSON request bodies are limited to 64 KiB.",
        "parameters": [
          {
            "name": "coverageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Unique key for one logical command. Reuse it only when retrying the same request and payload."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageRecordResponse"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read", "write"],
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CoverageMutation"
              }
            }
          }
        }
      }
    },
    "/api/v2/coverage/measurement": {
      "get": {
        "operationId": "getV2CoverageMeasurement",
        "tags": ["Tracked coverage"],
        "summary": "Measure tracked coverage citation evidence",
        "description": "Measure the same coverage-observations-v2 populations as the dashboard. Supply an inclusive UTC calendar range of at most 366 days; comparison uses the preceding equal-length range. Cohort shared restricts observations to prompt/platform/region cells present in both periods. Citation and brand assessment denominators remain distinct; absent assessments return null rates, not zero. These observations do not establish causation. Items and citation evidence paginate independently, 20 per page. Each request has one database snapshot; later pages may reflect later changes. Requires Sources and coverage availability. Delegated MCP connections require coverage:read.",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "attribution",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["all", "our_team", "external", "unclassified"],
              "default": "all"
            }
          },
          {
            "name": "cohort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["shared", "all"],
              "default": "all"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["day", "week"],
              "default": "week"
            }
          },
          {
            "name": "coverageId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["true", "false"]
            }
          },
          {
            "name": "rootDomain",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 253
            }
          },
          {
            "name": "promptId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^prm_[1-9][0-9]*$"
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^tag_[1-9][0-9]*$"
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Supported product platform identifier.",
              "enum": ["chatgpt", "ai_overview", "ai_mode", "gemini", "perplexity", "claude"]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "evidencePage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "itemsPage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "default": 1
            }
          },
          {
            "name": "evidenceStart",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "evidenceEnd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageMeasurementResponse"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"],
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ]
      }
    },
    "/api/v2/coverage/lookup": {
      "post": {
        "operationId": "postV2CoverageLookup",
        "tags": ["Tracked coverage"],
        "summary": "Find existing coverage by published URL",
        "description": "Read-only lookup of up to 50 page URLs, including archived records. Matching ignores protocol, www host prefix and fragment, and preserves path case, query parameters and trailing slash. Results contain only existing matches in the credential workspace. No URL is fetched and no record is created. Requires Sources and coverage availability. Delegated MCP connections require coverage:read. JSON request bodies are limited to 64 KiB.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageLookupResponse"
                }
              }
            }
          },
          "default": {
            "description": "Request failed. Inspect the error code and request identifier; retry only when the failure is retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["read"],
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CoverageLookupRequest"
              }
            }
          }
        }
      }
    },
    "/api/v2/reports": {
      "post": {
        "operationId": "createNativeReportDraft",
        "tags": ["Reports"],
        "summary": "Create a private native empty report draft",
        "description": "Requires delegated reports:write consent, native workspace create permission and current authoring availability. Workspace service keys are unsupported. A stable client report UUID and Idempotency-Key bind the original command before resolving defaults. An identical retry returns the initial native manifest after later edits and still checks current permissions. Creates an initial native V4 page, checkpoint and owner grant atomically. Complete page, theme and print settings are accepted through their native schemas. No Data attachment, connector query, provider run, share or schedule is created. Visual validation is a later measured composition step. Request maximum 512 KiB. layoutMode defaults to fixed; responsive remains explicitly selectable.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportCreateDraftRequestV1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Original creation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportCreateDraftResponseV1"
                }
              }
            }
          },
          "201": {
            "description": "Native empty draft created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportCreateDraftResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid native command, denied permission or conflicting creation identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "getCanvasReports",
        "tags": ["Reports"],
        "summary": "Find accessible reports",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CanvasReportListResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}": {
      "get": {
        "operationId": "getCanvasReport",
        "tags": ["Reports"],
        "summary": "Read the exact report identity and assessment pages",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revision",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "documentHash",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            }
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["manifest", "configuration"]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CanvasReportDetailsResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/canvas/capabilities": {
      "get": {
        "operationId": "getCanvasCapabilities",
        "tags": ["Reports"],
        "summary": "Discover native assessment targets, contexts and profiles",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "x-chatobserver-report-workflow",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["1"]
            },
            "description": "Request the compatible workflow-readiness extension. The MCP sends this automatically; older clients retain their original response shape."
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CanvasCapabilitiesResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/assessments": {
      "post": {
        "operationId": "postCanvasAssessment",
        "tags": ["Reports"],
        "summary": "Assess an exact saved report revision",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Identical idempotent replay.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CanvasJobResponseV1"
                }
              }
            }
          },
          "202": {
            "description": "Derived assessment admitted; poll the job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CanvasJobResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CanvasSavedAssessmentRequestV1"
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/canvas/jobs/{jobId}": {
      "get": {
        "operationId": "getCanvasJob",
        "tags": ["Reports"],
        "summary": "Read assessment or composition progress",
        "description": "The entry point accepts reports:read or reports:write. The owning job requires its exact current family consent: reports:read for assessment, reports:write for composition, plus current workspace and report permission. Derived progress is not a rendered-quality verdict. Workspace service keys are unsupported.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": [],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CanvasJobResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scope-alternatives": [["reports:read"], ["reports:write"]]
      }
    },
    "/api/v2/reports/canvas/jobs/{jobId}/cancel": {
      "post": {
        "operationId": "cancelCanvasJob",
        "tags": ["Reports"],
        "summary": "Cancel assessment or composition work",
        "description": "Cancel derived work under its exact current family consent: reports:read for assessment or reports:write for composition. The original owner, current workspace/report permission and feature availability are rechecked. Preserve a UUID Idempotency-Key across uncertain retries; cancellation is functionally idempotent and late worker writes are fenced. Does not edit a saved report or affect Data or publication. Workspace service keys are unsupported.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": [],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CanvasJobResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scope-alternatives": [["reports:read"], ["reports:write"]]
      }
    },
    "/api/v2/reports/canvas/assessments/{assessmentId}": {
      "get": {
        "operationId": "getCanvasAssessment",
        "tags": ["Reports"],
        "summary": "Read assessment readiness and pageable findings",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "assessmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CanvasAssessmentResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/capabilities": {
      "get": {
        "operationId": "getReportCapabilityIndex",
        "tags": ["Reports"],
        "summary": "Discover granular native configuration contracts",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "family",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "element",
                "theme",
                "style",
                "layout",
                "text",
                "control",
                "semantic",
                "interaction",
                "print",
                "viewer",
                "data_binding",
                "policy",
                "operation"
              ]
            }
          },
          {
            "name": "elementKind",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportCapabilityIndexResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/capabilities/{schemaId}": {
      "get": {
        "operationId": "getReportCapabilitySchema",
        "tags": ["Reports"],
        "summary": "Read one versioned native configuration schema",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "schemaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9._-]{0,127}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/change-sets": {
      "post": {
        "operationId": "createReportChangeSet",
        "tags": ["Reports"],
        "summary": "Begin exact private native authoring",
        "description": "Requires delegated reports:write consent, current native report edit permission and workspace authoring availability. Workspace service keys are unsupported. These private stages never alter the saved report, run Data, publish a share or certify rendered layout. Requests stream at most 512 KiB. Stages retain at most 256 batches, 8192 operations and 32 MiB for 24 hours. Create binds its UUID retry key to the exact base. Append binds the batch ID, sequence and confirmed cumulative hash to the entire typed command. Seal and discard are functionally idempotent at the exact cumulative hash. Sealed means validated native configuration and references; measured composition and commit are separate.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Confirmed private stage or identical retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportChangeSetResponseV2"
                }
              }
            }
          },
          "201": {
            "description": "Private stage created at the exact saved base.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportChangeSetResponseV2"
                }
              }
            }
          },
          "default": {
            "description": "Access revoked, unsupported input, stale revision/hash, changed retry, unfinished native graph, expired stage, byte budget or bounded admission capacity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportChangeSetRequestV2"
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/change-sets/{changeSetId}": {
      "get": {
        "operationId": "readReportChangeSet",
        "tags": ["Reports"],
        "summary": "Read confirmed private authoring receipts",
        "description": "Requires delegated reports:write consent, current native report edit permission and workspace authoring availability. Workspace service keys are unsupported. These private stages never alter the saved report, run Data, publish a share or certify rendered layout. Requests stream at most 512 KiB. Stages retain at most 256 batches, 8192 operations and 32 MiB for 24 hours. Create binds its UUID retry key to the exact base. Append binds the batch ID, sequence and confirmed cumulative hash to the entire typed command. Seal and discard are functionally idempotent at the exact cumulative hash. Sealed means validated native configuration and references; measured composition and commit are separate.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "changeSetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Confirmed private stage or identical retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportChangeSetResponseV2"
                }
              }
            }
          },
          "default": {
            "description": "Access revoked, unsupported input, stale revision/hash, changed retry, unfinished native graph, expired stage, byte budget or bounded admission capacity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "discardReportChangeSet",
        "tags": ["Reports"],
        "summary": "Discard uncommitted private authoring",
        "description": "Requires delegated reports:write consent, current native report edit permission and workspace authoring availability. Workspace service keys are unsupported. These private stages never alter the saved report, run Data, publish a share or certify rendered layout. Requests stream at most 512 KiB. Stages retain at most 256 batches, 8192 operations and 32 MiB for 24 hours. Create binds its UUID retry key to the exact base. Append binds the batch ID, sequence and confirmed cumulative hash to the entire typed command. Seal and discard are functionally idempotent at the exact cumulative hash. Sealed means validated native configuration and references; measured composition and commit are separate.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "changeSetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Confirmed private stage or identical retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportChangeSetResponseV2"
                }
              }
            }
          },
          "default": {
            "description": "Access revoked, unsupported input, stale revision/hash, changed retry, unfinished native graph, expired stage, byte budget or bounded admission capacity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportStageHashRequestV2"
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/change-sets/{changeSetId}/batches": {
      "post": {
        "operationId": "appendReportChanges",
        "tags": ["Reports"],
        "summary": "Append typed native changes",
        "description": "Requires delegated reports:write consent, current native report edit permission and workspace authoring availability. Workspace service keys are unsupported. These private stages never alter the saved report, run Data, publish a share or certify rendered layout. Requests stream at most 512 KiB. Stages retain at most 256 batches, 8192 operations and 32 MiB for 24 hours. Create binds its UUID retry key to the exact base. Append binds the batch ID, sequence and confirmed cumulative hash to the entire typed command. Seal and discard are functionally idempotent at the exact cumulative hash. Sealed means validated native configuration and references; measured composition and commit are separate.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "changeSetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Confirmed private stage or identical retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportChangeSetResponseV2"
                }
              }
            }
          },
          "default": {
            "description": "Access revoked, unsupported input, stale revision/hash, changed retry, unfinished native graph, expired stage, byte budget or bounded admission capacity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportAuthoringBatchV2"
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/change-sets/{changeSetId}/seal": {
      "post": {
        "operationId": "sealReportChangeSet",
        "tags": ["Reports"],
        "summary": "Validate and freeze the native stage",
        "description": "Requires delegated reports:write consent, current native report edit permission and workspace authoring availability. Workspace service keys are unsupported. These private stages never alter the saved report, run Data, publish a share or certify rendered layout. Requests stream at most 512 KiB. Stages retain at most 256 batches, 8192 operations and 32 MiB for 24 hours. Create binds its UUID retry key to the exact base. Append binds the batch ID, sequence and confirmed cumulative hash to the entire typed command. Seal and discard are functionally idempotent at the exact cumulative hash. Sealed means validated native configuration and references; measured composition and commit are separate.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "changeSetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Confirmed private stage or identical retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportChangeSetResponseV2"
                }
              }
            }
          },
          "default": {
            "description": "Access revoked, unsupported input, stale revision/hash, changed retry, unfinished native graph, expired stage, byte budget or bounded admission capacity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportStageHashRequestV2"
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/canvas/compositions": {
      "post": {
        "operationId": "postCanvasComposition",
        "tags": ["Reports"],
        "summary": "Compose a sealed native change set",
        "description": "Requires delegated reports:write consent, current native edit permission and workspace authoring availability. Data is independently authorized: composition consumes readable pinned outputs and never executes providers. A sealed stage is composed and measured in its declared fixed or responsive mode; the saved report changes only through atomic measured-plan commit. Read all finding pages and explicitly acknowledge required advisories. Creation streams at most 16 KiB; commit streams at most 32 MiB. Current-input checks and exact revision/hash guards reject moved inputs without rebasing. Identical commit retries return the original receipt after later edits or temporary-plan cleanup. Publication is separate. Workspace service keys are unsupported.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Plan, committed receipt or identical creation retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportCompositionJobResponseV1"
                }
              }
            }
          },
          "202": {
            "description": "Composition admitted; poll its job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportCompositionJobResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid request, denied access, changed inputs, semantic failure, expired plan or unavailable renderer. Preserve identical retry keys.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportCompositionRequestV1"
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/canvas/plans/{planId}": {
      "get": {
        "operationId": "getCanvasPlan",
        "tags": ["Reports"],
        "summary": "Read measured plan and bounded placements/findings",
        "description": "Requires delegated reports:write consent, current native edit permission and workspace authoring availability. Data is independently authorized: composition consumes readable pinned outputs and never executes providers. A sealed stage is composed and measured in its declared fixed or responsive mode; the saved report changes only through atomic measured-plan commit. Read all finding pages and explicitly acknowledge required advisories. Creation streams at most 16 KiB; commit streams at most 32 MiB. Current-input checks and exact revision/hash guards reject moved inputs without rebasing. Identical commit retries return the original receipt after later edits or temporary-plan cleanup. Publication is separate. Workspace service keys are unsupported.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "planId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 256
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "findingsOffset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Plan, committed receipt or identical creation retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportCompositionPlanResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid request, denied access, changed inputs, semantic failure, expired plan or unavailable renderer. Preserve identical retry keys.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/canvas/plans/{planId}/commit": {
      "post": {
        "operationId": "commitCanvasPlan",
        "tags": ["Reports"],
        "summary": "Install the exact measured native candidate atomically",
        "description": "Requires delegated reports:write consent, current native edit permission and workspace authoring availability. Data is independently authorized: composition consumes readable pinned outputs and never executes providers. A sealed stage is composed and measured in its declared fixed or responsive mode; the saved report changes only through atomic measured-plan commit. Read all finding pages and explicitly acknowledge required advisories. Creation streams at most 16 KiB; commit streams at most 32 MiB. Current-input checks and exact revision/hash guards reject moved inputs without rebasing. Identical commit retries return the original receipt after later edits or temporary-plan cleanup. Publication is separate. Workspace service keys are unsupported.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "planId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Plan, committed receipt or identical creation retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportCompositionCommitResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid request, denied access, changed inputs, semantic failure, expired plan or unavailable renderer. Preserve identical retry keys.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportCompositionCommitRequestV1"
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/authoring-context": {
      "get": {
        "operationId": "getReportAuthoringContext",
        "tags": ["Reports"],
        "summary": "Read workspace branding, fonts and authoring guide",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "x-chatobserver-report-workflow",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["1"]
            },
            "description": "Request the compatible workflow-readiness extension. The MCP sends this automatically; older clients retain their original response shape."
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportAuthoringContextResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/publication-state": {
      "get": {
        "operationId": "getReportPublicationState",
        "tags": ["Reports"],
        "summary": "Compare private document and existing shared artifact identities",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revision",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "documentHash",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportPublicationStateResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/pages/{pageId}": {
      "get": {
        "operationId": "getNativeReportPage",
        "tags": ["Reports"],
        "summary": "Read complete native page elements and optional surface provenance",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "revision",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "documentHash",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["effectiveConfiguration"]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportNativePageResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/data-sources": {
      "get": {
        "operationId": "getNativeReportDataSources",
        "tags": ["Reports"],
        "summary": "Read independently authorized source contracts without executing Data",
        "description": "Requires user-authorized Chatobserver MCP consent, reports:read, current native membership and report access, and workspace feature availability. Workspace service keys are unsupported. Cached report outputs additionally require independent Data access and data:read consent. Report discovery and assessment do not run queries, refresh Data, edit reports or publish shares. Unknown or unsupported evidence is not a pass.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "revision",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "documentHash",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 4096
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviewed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportNativeConfigurationResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Authentication, changed inputs, unsupported target, incomplete assessment or unavailable dispatcher. Preserve the UUID idempotency key on uncertain retries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "attachReportQuery",
        "tags": ["Reports"],
        "summary": "Attach a Data query to a report",
        "description": "Create a native report-owned reference to a readable published Metrics V2 query/version. Delegated OAuth only; reports:write, data:read, native report edit and current query/connection/network access are required. Returns immutable attachment and semantic catalogue identities. UUID retries preserve the native request. No provider execution, saved report edit or publication.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write", "data:read"],
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Native attachment readiness.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportQueryAttachmentResponseV1"
                }
              }
            }
          },
          "400": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachReportQueryRequestV1"
              }
            }
          }
        }
      }
    },
    "/api/seo/mcp": {
      "post": {
        "operationId": "postSeoMcp",
        "tags": ["SEO"],
        "summary": "Call authorized SEO tools with MCP",
        "description": "Stateless MCP JSON-RPC over HTTP POST. Use a workspace service-account API key or a delegated MCP application credential. Legacy keys with the read scope retain read-only access; SEO mutation and execution tools additionally require seo:write and seo:run respectively. A delegated credential selecting more than one workspace must send its permitted public workspace ID in x-workspace-id. The tool catalogue is scope-filtered. Tool refusals can return an MCP result with isError=true. Paid execution remains disabled until native SEO allowances and spending policies are configured; ordinary AI answer credits cannot fund it. OpenSEO AI visibility is unwired. No long-lived GET stream or DELETE session operation is supported.",
        "security": [
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          },
          {
            "McpConnection": []
          }
        ],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": false,
            "description": "Permitted public workspace ID for delegated credentials with multiple authorized workspaces. An API key retains its own workspace boundary.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "idempotency-key",
            "in": "header",
            "required": false,
            "description": "A stable request identity for a safely retried tool invocation. Reuse the same identity and arguments after an uncertain response.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "required": true,
            "description": "The MCP transport requires support for both response media types.",
            "schema": {
              "type": "string",
              "example": "application/json, text/event-stream"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SeoMcpRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP JSON-RPC result or protocol error; inspect tool result isError before using its content.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeoMcpResponse"
                }
              }
            }
          },
          "202": {
            "description": "Accepted MCP notification; no response body."
          },
          "400": {
            "description": "Invalid request, unsupported protocol input, or a body exceeding the 1 MiB limit.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SeoHttpError"
                    },
                    {
                      "$ref": "#/components/schemas/SeoMcpResponse"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SeoHttpError"
                    },
                    {
                      "$ref": "#/components/schemas/SeoMcpResponse"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Workspace, origin, scope or rollout access denied.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SeoHttpError"
                    },
                    {
                      "$ref": "#/components/schemas/SeoMcpResponse"
                    }
                  ]
                }
              }
            }
          },
          "406": {
            "description": "The MCP transport cannot satisfy the requested response media type."
          },
          "415": {
            "description": "Unsupported request media type."
          },
          "429": {
            "description": "Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SeoHttpError"
                    },
                    {
                      "$ref": "#/components/schemas/SeoMcpResponse"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "A safe internal error response.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SeoHttpError"
                    },
                    {
                      "$ref": "#/components/schemas/SeoMcpResponse"
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Required service or access authority unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SeoHttpError"
                    },
                    {
                      "$ref": "#/components/schemas/SeoMcpResponse"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "getSeoMcpUnsupported",
        "tags": ["SEO"],
        "summary": "Reject unsupported SEO MCP GET",
        "description": "The SEO MCP transport is stateless and accepts POST only. This method returns 405 without executing a tool or opening a session.",
        "security": [],
        "responses": {
          "405": {
            "description": "Method not allowed; empty response body.",
            "headers": {
              "Allow": {
                "schema": {
                  "type": "string",
                  "const": "POST"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteSeoMcpUnsupported",
        "tags": ["SEO"],
        "summary": "Reject unsupported SEO MCP DELETE",
        "description": "The SEO MCP transport is stateless and accepts POST only. This method returns 405 without executing a tool or opening a session.",
        "security": [],
        "responses": {
          "405": {
            "description": "Method not allowed; empty response body.",
            "headers": {
              "Allow": {
                "schema": {
                  "type": "string",
                  "const": "POST"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/images": {
      "post": {
        "operationId": "uploadReportImage",
        "tags": ["Reports"],
        "summary": "Upload a report image",
        "description": "Upload a public HTTPS image or canonical base64 PNG, JPEG or WebP (maximum 1MB) to the selected workspace. Requires reports:write, current author permission and report-authoring availability. The UUID Idempotency-Key identifies one immutable upload. Preserve the identical request on retries: completed uploads reuse stored bytes; a conflicting command or changed reserved content returns 409. The result is an active native image asset usable through settings.assetId; it is distinct from a workspace logoId. Authorized sealed drafts can use the upload before saving; native commit installs report bindings atomically. Does not change workspace branding, report content, Data, sharing or PDF state.",
        "security": [
          {
            "McpConnection": []
          },
          {
            "WorkspaceKey": []
          },
          {
            "BearerKey": []
          }
        ],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportImageUploadRequestV1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Replayed existing upload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportImageUploadResponseV1"
                }
              }
            }
          },
          "201": {
            "description": "Image uploaded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportImageUploadResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid native command, denied permission or conflicting creation identity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["reports:write"]
      }
    },
    "/api/v2/reports/{reportId}/shares": {
      "post": {
        "operationId": "createReportShare",
        "tags": ["Reports"],
        "summary": "Create a native report share",
        "description": "Publish the exact saved report identity through the native shared report pipeline. Delegated user OAuth only; requires reports:publish, native publish permission and independent Data access. UUID retries preserve one atomic publication and do not publish later edits. An unlisted link is available to anyone who has it. Snapshot delivery; no Data execution or PDF generation. Requires a delegated MCP user connection; workspace API keys cannot impersonate a publishing user.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReportShareRequestV1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Native report share.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportShareResponseV1"
                }
              }
            }
          },
          "201": {
            "description": "Native report share.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportShareResponseV1"
                }
              }
            }
          },
          "400": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["reports:publish"]
      }
    },
    "/api/v2/reports/{reportId}/shares/{shareId}/revoke": {
      "post": {
        "operationId": "revokeReportShare",
        "tags": ["Reports"],
        "summary": "Revoke a native report share",
        "description": "Revoke this exact report share using current delegated reports:publish consent and native manage permission. Repeated revocation is safe. Preserves the private report, datasets and uploaded assets. Requires a delegated MCP user connection; workspace API keys cannot impersonate a publishing user.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shareId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Native report share.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportShareResponseV1"
                }
              }
            }
          },
          "400": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-scopes": ["reports:publish"]
      }
    },
    "/api/v2/reports/{reportId}/data-sources/{sourceId}/adopt": {
      "post": {
        "operationId": "adoptReportQueryOutput",
        "tags": ["Reports"],
        "summary": "Adopt cached query output for a report",
        "description": "Materialize only the retained successful output of an exact pinned Metrics V2 query version. Requires reports:write, data:read and current report/query/connection/network permissions. UUID retries reconcile the original cached generation. Missing or expired output remains explicit. No provider execution or saved-document edits. Retained outputs include native saved-query runs and MCP parameterized runs linked to that exact version. Check adoption.state: only complete with a non-null generationId and generation metadata means the report data is ready. Failed or needs_repair adoption is returned as an MCP tool error even when the API operation returns HTTP 200.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write", "data:read"],
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sourceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Native attachment readiness.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportQueryAttachmentResponseV1"
                }
              }
            }
          },
          "400": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Rejected request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/save": {
      "post": {
        "operationId": "saveNativeReport",
        "tags": ["Reports"],
        "summary": "Save native report edits using a revision",
        "description": "Atomically save typed native operations in freeform or responsive mode. Semantic regions compile into editable native placements; preserve retains complete authored geometry. Requires reports:write and current native edit permission. Data attachments remain report-owned and require independent Data access. No stage, hashes, renderer job, assessment or measured-plan commit is required. The result explicitly remains not_assessed. Does not execute Data or publish. Reuse the same UUID Idempotency-Key and complete command on uncertain retries. Plain text can use {kind: \"append_text\", id: \"text-1\", text: \"your text\"}; the server supplies native defaults, first-page membership and desktop composition in fixed or responsive mode. Optional pageId, regionId and textStyle select a destination and text role. Full native operations remain supported. OPTIONS returns public protocol support in Chatobserver-Report-Save-Commands without reading any report.",
        "security": [
          {
            "McpConnection": []
          },
          {
            "WorkspaceKey": []
          }
        ],
        "x-required-scopes": ["reports:write"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            },
            "description": "Explicit workspace selected for the delegated account."
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportSaveRequestV1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved revision or identical retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportSaveResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid configuration, permission denied or revision conflict.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/native-datasets": {
      "get": {
        "operationId": "listNativeReportDatasets",
        "tags": ["Reports"],
        "summary": "List built-in report datasets",
        "description": "Discover active native Chatobserver datasets, including AI visibility and the existing branded/unbranded comparison, with field identities and supported views. Requires independent Data read consent. No external connector or provider run.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:read", "data:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Search dataset IDs, labels and descriptions; use branded for the existing comparison."
          }
        ],
        "responses": {
          "200": {
            "description": "Completed native operation; identical retries return the original result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportNativeDatasetsResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid input, missing consent or denied native access.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/reports/{reportId}/native-data-sources": {
      "post": {
        "operationId": "attachNativeReportDataset",
        "tags": ["Reports"],
        "summary": "Attach and snapshot native report evidence",
        "description": "Attach a built-in dataset from the native catalogue to this report and materialize an immutable generation using its saved date range. Returns report-owned attachment and semantic field identities for native charts, KPIs and tables. Requires current report edit and independent Data access. External analytics remains a reusable Data query; this operation never runs a provider.",
        "security": [
          {
            "McpConnection": []
          }
        ],
        "x-required-scopes": ["reports:write", "data:read"],
        "parameters": [
          {
            "name": "x-workspace-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ws_[a-f0-9]{32}$"
            }
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportNativeDatasetRequestV1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Completed native operation; identical retries return the original result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportQueryAttachmentResponseV1"
                }
              }
            }
          },
          "default": {
            "description": "Invalid input, missing consent or denied native access.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client-auth/sessions/{sessionId}/renew": {
      "post": {
        "operationId": "postV2MetricsClientAuthSessionsSessionIdRenew",
        "tags": ["Client authorisation"],
        "summary": "Renew a spreadsheet connection",
        "description": "Use only near access-session expiry, on actual add-on use. Persist the complete command before sending; a lost reply must retry the identical request and next credentials. Successful renewal rotates both credentials and extends the connection inactivity window to 180 days. Reusing a consumed credential for a different command revokes the connection. Current workspace membership, document binding, scopes, network policy and rollout are checked. No idle renewal runs.",
        "security": [],
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientAuthSessionsSessionIdRenewRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response. Credential replies must not be cached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientAuthSessionsSessionIdRenewResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Inspect the error code and request identifier. Retry only retryable failures, respecting retryAfterSeconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/metrics/client-auth/sessions/{sessionId}/revoke": {
      "post": {
        "operationId": "postV2MetricsClientAuthSessionsSessionIdRevoke",
        "tags": ["Client authorisation"],
        "summary": "Revoke a spreadsheet connection",
        "description": "Revoke a document-bound renewable connection even after the access session expires or renewal rollout is disabled. Retrying revocation is safe; retain the private revocation intent after a lost response. This also revokes document formula grants belonging to the actor.",
        "security": [],
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/postV2MetricsClientAuthSessionsSessionIdRevokeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response. Credential replies must not be cached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/postV2MetricsClientAuthSessionsSessionIdRevokeResponse200"
                }
              }
            }
          },
          "default": {
            "description": "Inspect the error code and request identifier. Retry only retryable failures, respecting retryAfterSeconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "WorkspaceKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-chatobserver-key",
        "description": "A workspace API key. Data endpoints require a service-account key with the specified scopes."
      },
      "BearerKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "The workspace or service-account API key as a bearer token."
      },
      "AuditKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "A workspace API key or a publishable audit embed key. Embed keys require an allowlisted Origin."
      },
      "ClientSession": {
        "type": "http",
        "scheme": "bearer",
        "description": "A client session token obtained through the client authorisation challenge flow."
      },
      "McpConnection": {
        "type": "http",
        "scheme": "bearer",
        "description": "Delegated application credential issued after Chatobserver account consent. Restricted to selected workspaces and explicitly supported MCP operations. The MCP server access token is a separate credential and cannot be used here."
      }
    },
    "schemas": {
      "ContractType54286": {
        "anyOf": [
          {
            "type": "null"
          },
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean",
            "const": false
          },
          {
            "type": "boolean",
            "const": true
          },
          {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContractType54286"
            }
          },
          {
            "type": "object",
            "properties": {},
            "additionalProperties": {
              "$ref": "#/components/schemas/ContractType54286"
            }
          }
        ]
      },
      "ContractType54284": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ContractType54286"
        }
      },
      "ContractType54285": {
        "type": "object",
        "properties": {},
        "additionalProperties": {
          "$ref": "#/components/schemas/ContractType54286"
        }
      },
      "ContractType94867": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "group"
          },
          "conjunction": {
            "enum": ["and", "or"],
            "type": "string"
          },
          "children": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "condition"
                    },
                    "fieldId": {
                      "type": "string"
                    },
                    "operator": {
                      "enum": [
                        "equals",
                        "not_equals",
                        "contains",
                        "greater_than",
                        "less_than",
                        "in",
                        "between",
                        "is_null",
                        "is_not_null",
                        "not_in",
                        "not_contains",
                        "starts_with",
                        "ends_with",
                        "regex",
                        "not_regex",
                        "greater_than_or_equal",
                        "less_than_or_equal"
                      ],
                      "type": "string"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        },
                        {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        }
                      ]
                    },
                    "execution": {
                      "enum": ["pushdown_required", "pushdown_preferred", "platform_allowed"],
                      "type": "string"
                    }
                  },
                  "required": ["kind", "fieldId", "operator", "value", "execution"]
                },
                {
                  "$ref": "#/components/schemas/ContractType94867"
                }
              ]
            }
          }
        },
        "required": ["kind", "conjunction", "children"]
      },
      "ContractType152093": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "literal"
              },
              "valueType": {
                "enum": [
                  "string",
                  "number",
                  "boolean",
                  "integer",
                  "date",
                  "json",
                  "duration",
                  "url",
                  "percent",
                  "currency",
                  "datetime",
                  "decimal",
                  "image_url"
                ],
                "type": "string"
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  },
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/ContractType54286"
                    }
                  },
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {
                      "$ref": "#/components/schemas/ContractType54286"
                    }
                  }
                ]
              }
            },
            "required": ["kind", "valueType", "value"]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "field"
              },
              "fieldId": {
                "type": "string"
              }
            },
            "required": ["kind", "fieldId"]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "custom_field"
              },
              "customFieldVersionId": {
                "type": "string"
              }
            },
            "required": ["kind", "customFieldVersionId"]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "call"
              },
              "function": {
                "enum": [
                  "minimum",
                  "maximum",
                  "concat",
                  "replace",
                  "substring",
                  "trim",
                  "if",
                  "equals",
                  "not_equals",
                  "greater_than",
                  "less_than",
                  "absolute",
                  "and",
                  "or",
                  "lowercase",
                  "uppercase",
                  "add",
                  "subtract",
                  "multiply",
                  "divide",
                  "modulo",
                  "round",
                  "coalesce",
                  "case",
                  "not",
                  "regex_extract",
                  "date_add",
                  "date_difference",
                  "date_truncate",
                  "extract_date_part",
                  "ratio",
                  "percentage",
                  "currency_convert",
                  "lookup"
                ],
                "type": "string"
              },
              "arguments": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ContractType152093"
                }
              },
              "options": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    },
                    {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContractType54286"
                      }
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {
                        "$ref": "#/components/schemas/ContractType54286"
                      }
                    }
                  ]
                }
              }
            },
            "required": ["kind", "function", "arguments", "options"]
          }
        ]
      },
      "ContractType156929": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ContractType152093"
        }
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "details": {}
            },
            "required": ["code", "message"]
          },
          "requestId": {
            "type": "string"
          }
        },
        "required": ["error", "requestId"]
      },
      "DataError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "enum": [
                  "internal",
                  "validation_failed",
                  "authentication_required",
                  "forbidden",
                  "not_found",
                  "conflict",
                  "precondition_failed",
                  "idempotency_conflict",
                  "capability_unavailable",
                  "connection_unavailable",
                  "reauthentication_required",
                  "rate_limited",
                  "provider_rate_limited",
                  "workspace_limit_exceeded",
                  "result_expired",
                  "operation_failed",
                  "temporarily_unavailable"
                ],
                "type": "string"
              },
              "fieldPath": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "parameters": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "repairActions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 96
                },
                "maxItems": 10
              },
              "requestId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "retryable": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "retryAfterSeconds": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  }
                ]
              }
            },
            "required": [
              "code",
              "fieldPath",
              "parameters",
              "repairActions",
              "requestId",
              "retryable",
              "retryAfterSeconds"
            ],
            "additionalProperties": false
          }
        },
        "required": ["error"],
        "additionalProperties": false
      },
      "AuditError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": ["code", "message"]
          }
        },
        "required": ["error"]
      },
      "postV1AuditsRequest": {
        "type": "object",
        "properties": {
          "website": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          }
        },
        "required": ["website"],
        "additionalProperties": false
      },
      "postV1AuditsResponse201": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "statusStage": {
            "type": "string"
          },
          "progressPercent": {
            "type": "number"
          },
          "estimatedReadyAt": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "reportUrl": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "deduped": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "statusStage",
          "progressPercent",
          "estimatedReadyAt",
          "reportUrl",
          "deduped"
        ]
      },
      "getV1BrandVisibilityResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucketDay": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "rootDomain": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "promptId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "mentionCount": {
                  "type": "number"
                }
              },
              "required": ["bucketDay", "rootDomain", "promptId", "mentionCount"]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV1PromptRunsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "promptId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "promptTitle": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "status": {
                  "enum": ["queued", "running", "succeeded", "failed"],
                  "type": "string"
                },
                "trigger": {
                  "type": "string"
                },
                "startedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "deprecated": true,
                  "description": "Reserved nullable field; always null. Use the answer creation and completion timestamps to follow its status."
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "analysisStatus": {
                  "type": "string"
                },
                "errorReason": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "description": "A stable product-facing failure message, or null. Answer collection failed. indicates collection failure; Answer analysis failed. indicates analysis failure. Never contains provider diagnostics."
                },
                "createdAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "promptId",
                "promptTitle",
                "status",
                "trigger",
                "startedAt",
                "completedAt",
                "analysisStatus",
                "errorReason",
                "createdAt"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV1PromptsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "title": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "promptText": {
                  "type": "string"
                },
                "status": {
                  "enum": ["active", "inactive", "archived"],
                  "type": "string"
                },
                "resultSyncStatus": {
                  "type": "string"
                },
                "targetPlatforms": {
                  "type": "array",
                  "items": {
                    "enum": ["chatgpt", "ai_overview", "ai_mode", "gemini", "perplexity", "claude"],
                    "type": "string"
                  }
                },
                "schedule": {
                  "type": "object",
                  "properties": {
                    "frequency": {
                      "type": "string"
                    },
                    "hour": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "minute": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "intervalMinutes": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "daysOfWeek": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        }
                      ]
                    }
                  },
                  "required": [
                    "frequency",
                    "hour",
                    "minute",
                    "timezone",
                    "intervalMinutes",
                    "daysOfWeek"
                  ]
                },
                "nextRunAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastRunAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "personaCount": {
                  "type": "number"
                },
                "groupCount": {
                  "type": "number"
                },
                "analysisPolicy": {
                  "type": "object",
                  "nullable": true,
                  "properties": {
                    "ranking": {
                      "type": "string",
                      "enum": ["auto", "always", "never"]
                    },
                    "sentiment": {
                      "type": "string",
                      "enum": ["auto", "always", "never"]
                    }
                  },
                  "description": "Choose automatic, always-on or disabled ranking and sentiment analysis. Null restores the default policy."
                }
              },
              "required": [
                "id",
                "title",
                "description",
                "promptText",
                "status",
                "resultSyncStatus",
                "targetPlatforms",
                "schedule",
                "nextRunAt",
                "lastRunAt",
                "createdAt",
                "updatedAt",
                "personaCount",
                "groupCount"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV2BrandsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "rootDomain": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "aliases": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "isOwnBrand": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                },
                "status": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "rootDomain",
                "aliases",
                "isOwnBrand",
                "status",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "postV2BrandsRequest": {
        "type": "object",
        "properties": {
          "rootDomain": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 150
            },
            "maxItems": 25
          },
          "isOwnBrand": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["rootDomain", "name"]
      },
      "postV2BrandsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "rootDomain": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "aliases": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "isOwnBrand": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "status": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "rootDomain",
              "aliases",
              "isOwnBrand",
              "status",
              "createdAt",
              "updatedAt"
            ]
          }
        },
        "required": ["data"]
      },
      "getV2CompetitorHeatmapResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "row": {
                  "type": "string"
                },
                "column": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                }
              },
              "required": ["row", "column", "value"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2ModelsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "provider": {
                  "type": "string"
                },
                "family": {
                  "type": "string"
                },
                "platform": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "isDefault": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "required": ["id", "provider", "family", "platform", "status", "isDefault"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2PersonasResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "occupation": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "const": "active"
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "occupation",
                "description",
                "status",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "postV2PersonasRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "occupation": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ]
          }
        },
        "required": ["name", "occupation"]
      },
      "postV2PersonasResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "occupation": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "type": "string",
                "const": "active"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "occupation",
              "description",
              "status",
              "createdAt",
              "updatedAt"
            ]
          }
        },
        "required": ["data"]
      },
      "getV2ProjectsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "workspaceId": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "timezone": {
                  "type": "string"
                },
                "status": {
                  "enum": ["active", "archived"],
                  "type": "string"
                },
                "defaultBrandId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "primaryDomain": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "workspaceType": {
                  "enum": ["brand", "agency"],
                  "type": "string"
                }
              },
              "required": [
                "id",
                "workspaceId",
                "name",
                "slug",
                "timezone",
                "status",
                "defaultBrandId",
                "createdAt",
                "updatedAt",
                "primaryDomain",
                "workspaceType"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "type": "boolean",
                "const": false
              },
              "nextCursor": {
                "type": "null"
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV2PromptsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "promptText": {
                  "type": "string"
                },
                "status": {
                  "enum": ["active", "inactive", "archived"],
                  "type": "string"
                },
                "resultSyncStatus": {
                  "type": "string"
                },
                "tagIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "personaIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "personaCount": {
                  "type": "number"
                },
                "targetPlatforms": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "targetRegions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "schedule": {
                  "type": "object",
                  "properties": {
                    "frequency": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "hour": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "minute": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "intervalMinutes": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "daysOfWeek": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        }
                      ]
                    }
                  },
                  "required": [
                    "frequency",
                    "timezone",
                    "hour",
                    "minute",
                    "intervalMinutes",
                    "daysOfWeek"
                  ]
                },
                "nextRunAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastRunAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "updatedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "analysisPolicy": {
                  "type": "object",
                  "nullable": true,
                  "properties": {
                    "ranking": {
                      "type": "string",
                      "enum": ["auto", "always", "never"]
                    },
                    "sentiment": {
                      "type": "string",
                      "enum": ["auto", "always", "never"]
                    }
                  },
                  "description": "Choose automatic, always-on or disabled ranking and sentiment analysis. Null restores the default policy."
                }
              },
              "required": [
                "id",
                "title",
                "description",
                "promptText",
                "status",
                "resultSyncStatus",
                "tagIds",
                "personaIds",
                "personaCount",
                "targetPlatforms",
                "targetRegions",
                "schedule",
                "nextRunAt",
                "lastRunAt",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "postV2PromptsRequest": {
        "type": "object",
        "properties": {
          "promptText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 399,
            "description": "Leading and trailing whitespace is removed before validation."
          },
          "schedule": {
            "type": "object",
            "properties": {
              "frequency": {
                "enum": ["manual", "daily", "weekly"],
                "default": "daily",
                "type": "string"
              },
              "timezone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "default": "UTC"
              },
              "hour": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 23
                  }
                ]
              },
              "minute": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 59
                  }
                ]
              },
              "daysOfWeek": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    },
                    "maxItems": 7
                  }
                ]
              }
            },
            "description": "Weekly schedules require at least one day (0 is Sunday). Non-weekly schedules must omit daysOfWeek or use null or an empty array.",
            "allOf": [
              {
                "if": {
                  "properties": {
                    "frequency": {
                      "const": "weekly"
                    }
                  },
                  "required": ["frequency"]
                },
                "then": {
                  "required": ["daysOfWeek"],
                  "properties": {
                    "daysOfWeek": {
                      "type": "array",
                      "minItems": 1
                    }
                  }
                },
                "else": {
                  "properties": {
                    "daysOfWeek": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "array",
                          "maxItems": 0
                        }
                      ]
                    }
                  }
                }
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ]
          },
          "personaIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "maxItems": 50
          },
          "targetPlatforms": {
            "type": "array",
            "items": {
              "enum": ["chatgpt", "ai_overview", "ai_mode", "gemini", "perplexity", "claude"],
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 6
          },
          "targetRegions": {
            "type": "array",
            "items": {
              "enum": [
                "United States",
                "Canada",
                "Brazil",
                "Mexico",
                "United Kingdom",
                "Germany",
                "France",
                "Spain",
                "Italy",
                "Netherlands",
                "India",
                "South Korea",
                "Japan",
                "Australia",
                "Singapore",
                "Switzerland",
                "United Arab Emirates",
                "Saudi Arabia",
                "Poland"
              ],
              "type": "string"
            },
            "minItems": 1
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "maxItems": 50
          },
          "analysisPolicy": {
            "type": "object",
            "nullable": true,
            "properties": {
              "ranking": {
                "type": "string",
                "enum": ["auto", "always", "never"]
              },
              "sentiment": {
                "type": "string",
                "enum": ["auto", "always", "never"]
              }
            },
            "description": "Choose automatic, always-on or disabled ranking and sentiment analysis. Null restores the default policy."
          }
        },
        "required": ["promptText"]
      },
      "postV2PromptsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "promptText": {
                "type": "string"
              },
              "status": {
                "enum": ["active", "inactive", "archived"],
                "type": "string"
              },
              "resultSyncStatus": {
                "type": "string"
              },
              "tagIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "personaIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "personaCount": {
                "type": "number"
              },
              "targetPlatforms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "targetRegions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "schedule": {
                "type": "object",
                "properties": {
                  "frequency": {
                    "type": "string"
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "hour": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "minute": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "intervalMinutes": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "daysOfWeek": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    ]
                  }
                },
                "required": [
                  "frequency",
                  "timezone",
                  "hour",
                  "minute",
                  "intervalMinutes",
                  "daysOfWeek"
                ]
              },
              "nextRunAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "lastRunAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "createdAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "updatedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "analysisPolicy": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "ranking": {
                    "type": "string",
                    "enum": ["auto", "always", "never"]
                  },
                  "sentiment": {
                    "type": "string",
                    "enum": ["auto", "always", "never"]
                  }
                },
                "description": "Choose automatic, always-on or disabled ranking and sentiment analysis. Null restores the default policy."
              }
            },
            "required": [
              "id",
              "title",
              "description",
              "promptText",
              "status",
              "resultSyncStatus",
              "tagIds",
              "personaIds",
              "personaCount",
              "targetPlatforms",
              "targetRegions",
              "schedule",
              "nextRunAt",
              "lastRunAt",
              "createdAt",
              "updatedAt"
            ]
          }
        },
        "required": ["data"]
      },
      "getV2QueryFanoutsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "promptId": {
                  "type": "string"
                },
                "sourceQuery": {
                  "type": "string"
                },
                "expandedQuery": {
                  "type": "string"
                },
                "kind": {
                  "enum": ["ai_overview", "related_search", "people_also_ask"],
                  "type": "string"
                },
                "frequency": {
                  "type": "number"
                },
                "firstSeenAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastSeenAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "promptId",
                "sourceQuery",
                "expandedQuery",
                "kind",
                "frequency",
                "firstSeenAt",
                "lastSeenAt"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV2ResponsesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "promptId": {
                  "type": "string"
                },
                "promptTitle": {
                  "type": "string"
                },
                "model": {
                  "type": "string"
                },
                "platform": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "trigger": {
                  "type": "string"
                },
                "analysisStatus": {
                  "type": "string"
                },
                "startedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "deprecated": true,
                  "description": "Reserved nullable field; always null. Use the answer creation and completion timestamps to follow its status."
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "errorReason": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ],
                  "description": "A stable product-facing failure message, or null. Answer collection failed. indicates collection failure; Answer analysis failed. indicates analysis failure. Never contains provider diagnostics."
                },
                "contentExcerpt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "sentiment": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "citationCount": {
                  "type": "number"
                },
                "occurredAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "promptId",
                "promptTitle",
                "model",
                "platform",
                "status",
                "trigger",
                "analysisStatus",
                "startedAt",
                "completedAt",
                "errorReason",
                "contentExcerpt",
                "sentiment",
                "citationCount",
                "occurredAt"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV2TagsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "color": {
                  "type": "string"
                }
              },
              "required": ["id", "name", "color"]
            }
          }
        },
        "required": ["data"]
      },
      "postV2TagsRequest": {
        "type": "object",
        "properties": {
          "tags": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "color": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 24
                }
              },
              "required": ["name"]
            },
            "minItems": 1,
            "maxItems": 50
          }
        },
        "required": ["tags"]
      },
      "postV2TagsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "color": {
                  "type": "string"
                }
              },
              "required": ["id", "name", "color"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2ValidateResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "valid": {
                "type": "boolean",
                "const": true
              },
              "scope": {
                "type": "string"
              },
              "projectSelectionRequired": {
                "type": "boolean",
                "const": false
              },
              "defaultProjectId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "scopes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "capabilities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "valid",
              "scope",
              "projectSelectionRequired",
              "defaultProjectId",
              "scopes",
              "capabilities"
            ]
          }
        },
        "required": ["data"]
      },
      "getV2VisibilityTimeSeriesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "series": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "bucket": {
                      "type": "string"
                    },
                    "value": {
                      "type": "number",
                      "description": "Own-brand answer presence as a percentage of analyzed answers for this day. A zero value with analyzedAnswers equal to zero is unavailable, not a measured absence."
                    },
                    "ownBrandAnswers": {
                      "type": "number",
                      "description": "Analyzed answers mentioning the workspace brand on this day."
                    },
                    "analyzedAnswers": {
                      "type": "number",
                      "description": "Eligible analyzed answers on this day; the denominator for value."
                    },
                    "available": {
                      "type": "boolean",
                      "description": "False when this day has no eligible analyzed answers; the legacy numeric value is then unavailable."
                    }
                  },
                  "required": ["bucket", "value"]
                }
              },
              "totals": {
                "type": "object",
                "properties": {
                  "visibilityScore": {
                    "type": "number",
                    "description": "Own-brand answer presence as a percentage of analyzed answers in the requested window. Consult analyzedAnswers before interpreting zero."
                  },
                  "shareOfVoice": {
                    "type": "number",
                    "description": "Own-brand appearances divided by all tracked-brand appearances in the requested window. One answer can contribute an appearance for multiple brands; consult trackedBrandAppearances before interpreting zero."
                  },
                  "ownBrandAnswers": {
                    "type": "number",
                    "description": "Analyzed answers mentioning the workspace brand; numerator for visibilityScore."
                  },
                  "analyzedAnswers": {
                    "type": "number",
                    "description": "Eligible analyzed answers; denominator for visibilityScore."
                  },
                  "ownBrandAppearances": {
                    "type": "number",
                    "description": "Own-brand answer appearances; numerator for shareOfVoice."
                  },
                  "trackedBrandAppearances": {
                    "type": "number",
                    "description": "All active tracked-brand answer appearances; denominator for shareOfVoice."
                  }
                },
                "required": ["visibilityScore", "shareOfVoice"]
              }
            },
            "required": ["series", "totals"]
          },
          "cohort": {
            "type": "string",
            "enum": ["visibility_daily_rollups"],
            "description": "Legacy analysis-service daily rollups, not the dashboard Competitors assessed-answer cohort."
          }
        },
        "required": ["data"]
      },
      "getV1AnalyticsVisitorMetricsResponse200": {
        "type": "object",
        "properties": {
          "metrics": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "enum": [
                    "chatgpt.com",
                    "claude.ai",
                    "copilot.microsoft.com",
                    "gemini.google.com",
                    "perplexity.ai"
                  ],
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "count": {
                  "type": "number"
                }
              },
              "required": ["key", "label", "count"]
            }
          },
          "hasData": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          },
          "lastEventAt": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["metrics", "hasData", "lastEventAt"]
      },
      "getV1AuditsIdResponse200": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "statusStage": {
            "type": "string"
          },
          "progressPercent": {
            "type": "number"
          },
          "estimatedReadyAt": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "reportUrl": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "deduped": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": [
          "id",
          "status",
          "statusStage",
          "progressPercent",
          "estimatedReadyAt",
          "reportUrl",
          "deduped"
        ]
      },
      "getV1CrawlerLogsEventsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "integrationId": {
                  "type": "string"
                },
                "integrationName": {
                  "type": "string"
                },
                "provider": {
                  "enum": [
                    "manual",
                    "cloudflare_worker",
                    "cloudflare_logpush",
                    "cloudfront",
                    "akamai",
                    "fastly",
                    "gcp",
                    "gocache",
                    "netlify",
                    "vercel"
                  ],
                  "type": "string"
                },
                "occurredAt": {
                  "type": "string"
                },
                "hostname": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "requestMethod": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "requestPath": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "crawlerVendor": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "crawlerName": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "verificationStatus": {
                  "enum": ["unknown", "verified", "probable", "ua_only", "rejected"],
                  "type": "string"
                },
                "verificationMethod": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string",
                      "const": "ip_range"
                    },
                    {
                      "type": "string",
                      "const": "reverse_dns"
                    },
                    {
                      "type": "string",
                      "const": "asn"
                    },
                    {
                      "type": "string",
                      "const": "provider_oidc"
                    },
                    {
                      "type": "string",
                      "const": "ua_heuristic"
                    }
                  ]
                },
                "statusCode": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "integrationId",
                "integrationName",
                "provider",
                "occurredAt",
                "hostname",
                "requestMethod",
                "requestPath",
                "crawlerVendor",
                "crawlerName",
                "verificationStatus",
                "verificationMethod",
                "statusCode"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV1CrawlerLogsIntegrationsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "provider": {
                  "enum": [
                    "manual",
                    "cloudflare_worker",
                    "cloudflare_logpush",
                    "cloudfront",
                    "akamai",
                    "fastly",
                    "gcp",
                    "gocache",
                    "netlify",
                    "vercel"
                  ],
                  "type": "string"
                },
                "mode": {
                  "enum": ["manual", "native", "worker"],
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "enum": ["active", "draft", "paused", "error", "revoked"],
                  "type": "string"
                },
                "verificationStatus": {
                  "enum": ["failed", "pending", "partial", "verified"],
                  "type": "string"
                },
                "hostnames": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "counts": {
                  "type": "object",
                  "properties": {
                    "uaOnlyEventCount": {
                      "type": "number"
                    },
                    "probableEventCount": {
                      "type": "number"
                    },
                    "verifiedEventCount": {
                      "type": "number"
                    }
                  },
                  "required": ["uaOnlyEventCount", "probableEventCount", "verifiedEventCount"]
                },
                "lastSeenAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastSuccessAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastErrorAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastErrorCode": {
                  "description": "Stable product error code. Unrecognized internal diagnostics are returned as crawler_import_failed.",
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastErrorMessage": {
                  "description": "Product-facing guidance, never raw provider or infrastructure diagnostics.",
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "provider",
                "mode",
                "name",
                "status",
                "verificationStatus",
                "hostnames",
                "counts",
                "lastSeenAt",
                "lastSuccessAt",
                "lastErrorAt",
                "lastErrorCode",
                "lastErrorMessage",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV1MetricsSummaryResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "promptRuns": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "number"
                  },
                  "succeeded": {
                    "type": "number"
                  },
                  "failed": {
                    "type": "number"
                  },
                  "running": {
                    "type": "number"
                  },
                  "queued": {
                    "type": "number"
                  },
                  "lastCreatedAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "lastCompletedAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "total",
                  "succeeded",
                  "failed",
                  "running",
                  "queued",
                  "lastCreatedAt",
                  "lastCompletedAt"
                ]
              },
              "sources": {
                "type": "object",
                "properties": {
                  "mentionCount": {
                    "type": "number"
                  },
                  "citationCount": {
                    "type": "number"
                  },
                  "linkCount": {
                    "type": "number"
                  },
                  "uniqueDomains": {
                    "type": "number"
                  },
                  "lastCaptureAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "mentionCount",
                  "citationCount",
                  "linkCount",
                  "uniqueDomains",
                  "lastCaptureAt"
                ]
              },
              "usage": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "tier": {
                        "type": "string"
                      },
                      "prompts": {
                        "type": "object",
                        "properties": {
                          "used": {
                            "type": "number"
                          },
                          "limit": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          },
                          "remaining": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          }
                        },
                        "required": ["used", "limit", "remaining"]
                      },
                      "analysis": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "enum": ["active", "disabled"],
                            "type": "string"
                          },
                          "used": {
                            "type": "number"
                          },
                          "limit": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          },
                          "remaining": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          },
                          "periodStart": {
                            "type": "string"
                          },
                          "periodEnd": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "used",
                          "limit",
                          "remaining",
                          "periodStart",
                          "periodEnd"
                        ]
                      }
                    },
                    "required": ["tier", "prompts", "analysis"]
                  }
                ]
              },
              "visitorAnalytics": {
                "type": "object",
                "properties": {
                  "metrics": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "enum": [
                            "chatgpt.com",
                            "claude.ai",
                            "copilot.microsoft.com",
                            "gemini.google.com",
                            "perplexity.ai"
                          ],
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "count": {
                          "type": "number"
                        }
                      },
                      "required": ["key", "label", "count"]
                    }
                  },
                  "hasData": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "lastEventAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["metrics", "hasData", "lastEventAt"]
              }
            },
            "required": ["promptRuns", "sources", "usage", "visitorAnalytics"]
          },
          "generatedAt": {
            "type": "string"
          }
        },
        "required": ["data", "generatedAt"]
      },
      "getV1PromptRunsIdResponse400": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": ["error"]
      },
      "getV1PromptRunsIdResponse404": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": ["error"]
      },
      "getV1PromptRunsIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "promptId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "promptTitle": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "trigger": {
                "type": "string"
              },
              "startedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ],
                "deprecated": true,
                "description": "Reserved nullable field; always null. Use the answer creation and completion timestamps to follow its status."
              },
              "completedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "analysisStatus": {
                "type": "string"
              },
              "analysisSummary": {
                "description": "Approved answer content, citations, links and sentiment only, or null. Internal analysis and provider metadata are not returned."
              },
              "analysisCompletedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ],
                "deprecated": true,
                "description": "Reserved nullable field; always null. Use the answer creation and completion timestamps to follow its status."
              },
              "errorReason": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ],
                "description": "A stable product-facing failure message, or null. Answer collection failed. indicates collection failure; Answer analysis failed. indicates analysis failure. Never contains provider diagnostics."
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "position": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "url": {
                      "type": "string"
                    },
                    "cleanPageUrl": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "description": "The observed source address with recognized tracking parameters removed. Functional query parameters and fragments remain. Use cleanPageKey for grouping; url retains the exact observed address as provenance. Null means the address could not be validated as a web page."
                    },
                    "cleanPageKey": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "description": "Shared page identity for comparison and grouping, with recognized tracking parameters and fragments omitted while functional query parameters remain distinct. Null means the observed address could not be validated as a web page."
                    },
                    "rootDomain": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "path": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "anchorText": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "section": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "createdAt": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "position",
                    "url",
                    "rootDomain",
                    "path",
                    "title",
                    "anchorText",
                    "section",
                    "description",
                    "createdAt"
                  ]
                }
              },
              "commerce": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "extractionStatus": {
                        "enum": ["complete", "invalid_payload", "unsupported"],
                        "type": "string"
                      },
                      "shoppingProductCount": {
                        "type": "number"
                      },
                      "sponsoredAdCount": {
                        "type": "number"
                      },
                      "observedAt": {
                        "type": "string"
                      },
                      "placements": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "number"
                            },
                            "kind": {
                              "enum": ["shopping_product", "sponsored_ad"],
                              "type": "string"
                            },
                            "position": {
                              "type": "number"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "targetUrl": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "targetDomain": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "price": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "number"
                                }
                              ]
                            },
                            "priceDisplay": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "rating": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "number"
                                }
                              ]
                            },
                            "advertiserName": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "advertiserUrl": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "advertiserDomain": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "matchKind": {
                              "enum": [
                                "unmatched",
                                "workspace_brand",
                                "competitor",
                                "catalog_product"
                              ],
                              "type": "string"
                            },
                            "isOwnBrand": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "kind",
                            "position",
                            "title",
                            "description",
                            "targetUrl",
                            "targetDomain",
                            "price",
                            "priceDisplay",
                            "currency",
                            "rating",
                            "advertiserName",
                            "advertiserUrl",
                            "advertiserDomain",
                            "matchKind",
                            "isOwnBrand"
                          ]
                        }
                      }
                    },
                    "required": [
                      "extractionStatus",
                      "shoppingProductCount",
                      "sponsoredAdCount",
                      "observedAt",
                      "placements"
                    ]
                  }
                ]
              }
            },
            "required": [
              "id",
              "promptId",
              "promptTitle",
              "status",
              "trigger",
              "startedAt",
              "completedAt",
              "analysisStatus",
              "analysisSummary",
              "analysisCompletedAt",
              "errorReason",
              "createdAt",
              "updatedAt",
              "sources",
              "commerce"
            ]
          }
        },
        "required": ["data"]
      },
      "getV1SourcesDomainsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rootDomain": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "mentionCount": {
                  "type": "number"
                },
                "citationCount": {
                  "type": "number"
                },
                "linkCount": {
                  "type": "number"
                },
                "firstSeenAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastSeenAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "prompts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "label": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["id", "label"]
                  }
                }
              },
              "required": [
                "rootDomain",
                "mentionCount",
                "citationCount",
                "linkCount",
                "firstSeenAt",
                "lastSeenAt",
                "prompts"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV1SourcesOverviewResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "window": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "days": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "days"]
              },
              "filters": {
                "type": "object",
                "properties": {
                  "promptId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "rootDomain": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "windowDays": {
                    "type": "number"
                  },
                  "metric": {
                    "enum": ["mentions", "influence"],
                    "type": "string"
                  }
                },
                "required": ["promptId", "rootDomain", "windowDays", "metric"]
              },
              "stats": {
                "type": "object",
                "properties": {
                  "mentionCount": {
                    "type": "number"
                  },
                  "influenceScore": {
                    "type": "number"
                  },
                  "citationCount": {
                    "type": "number"
                  },
                  "linkCount": {
                    "type": "number"
                  },
                  "uniqueDomains": {
                    "type": "number"
                  },
                  "activePrompts": {
                    "type": "number"
                  },
                  "latestActivityAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "mentionCount",
                  "influenceScore",
                  "citationCount",
                  "linkCount",
                  "uniqueDomains",
                  "activePrompts",
                  "latestActivityAt"
                ]
              },
              "topDomains": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rootDomain": {
                      "type": "string"
                    },
                    "mentionCount": {
                      "type": "number"
                    },
                    "influenceScore": {
                      "type": "number"
                    }
                  },
                  "required": ["rootDomain", "mentionCount", "influenceScore"]
                }
              },
              "dailyTotals": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "bucketDay": {
                      "type": "string"
                    },
                    "mentionCount": {
                      "type": "number"
                    },
                    "influenceScore": {
                      "type": "number"
                    }
                  },
                  "required": ["bucketDay", "mentionCount", "influenceScore"]
                }
              },
              "generatedAt": {
                "type": "string"
              },
              "insights": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "const": "top-domain"
                        },
                        "rootDomain": {
                          "type": "string"
                        },
                        "mentionCount": {
                          "type": "number"
                        },
                        "share": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": ["id", "rootDomain", "mentionCount", "share"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "const": "rising-domain"
                        },
                        "rootDomain": {
                          "type": "string"
                        },
                        "delta": {
                          "type": "number"
                        },
                        "latest": {
                          "type": "number"
                        },
                        "previous": {
                          "type": "number"
                        },
                        "momentumPercent": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "rootDomain",
                        "delta",
                        "latest",
                        "previous",
                        "momentumPercent"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "const": "top-prompt"
                        },
                        "promptId": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        "promptLabel": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "mentionCount": {
                          "type": "number"
                        },
                        "share": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": ["id", "promptId", "promptLabel", "mentionCount", "share"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "const": "latest-activity"
                        },
                        "activityAt": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "activityAt"]
                    }
                  ]
                }
              }
            },
            "required": [
              "window",
              "filters",
              "stats",
              "topDomains",
              "dailyTotals",
              "generatedAt",
              "insights"
            ]
          }
        },
        "required": ["data"]
      },
      "getV1UsageMonthlyResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "tier": {
                "type": "string"
              },
              "prompts": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number"
                  },
                  "limit": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "remaining": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  }
                },
                "required": ["used", "limit", "remaining"]
              },
              "analysis": {
                "type": "object",
                "properties": {
                  "status": {
                    "enum": ["active", "disabled"],
                    "type": "string"
                  },
                  "used": {
                    "type": "number"
                  },
                  "limit": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "remaining": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "periodStart": {
                    "type": "string"
                  },
                  "periodEnd": {
                    "type": "string"
                  }
                },
                "required": ["status", "used", "limit", "remaining", "periodStart", "periodEnd"]
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "periodStart": {
                      "type": "string"
                    },
                    "periodEnd": {
                      "type": "string"
                    },
                    "analysisCreditsUsed": {
                      "type": "number"
                    }
                  },
                  "required": ["periodStart", "periodEnd", "analysisCreditsUsed"]
                }
              }
            },
            "required": ["tier", "prompts", "analysis", "history"]
          }
        },
        "required": ["data"]
      },
      "getV2AnalyticsBrandVisibilityOverTimeResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "ownBrandAnswers": {
                  "type": "number"
                },
                "analyzedAnswers": {
                  "type": "number"
                },
                "available": {
                  "type": "boolean",
                  "description": "False when this day has no analyzed answers; a legacy zero value is then unavailable."
                }
              },
              "required": ["bucket", "value"]
            }
          },
          "cohort": {
            "type": "string",
            "enum": ["visibility_daily_rollups"]
          }
        },
        "required": ["data"]
      },
      "getV2AnalyticsCrawlerActivityTrendsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                }
              },
              "required": ["bucket", "value"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2AnalyticsReferrerStatsResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "share": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": ["key", "label", "value", "share"]
            }
          }
        }
      },
      "getV2AnalyticsSentimentTimeSeriesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "type": "string"
                },
                "positive": {
                  "type": "number"
                },
                "neutral": {
                  "type": "number"
                },
                "negative": {
                  "type": "number"
                },
                "total": {
                  "type": "number"
                },
                "netScore": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": ["bucket", "positive", "neutral", "negative", "total", "netScore"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2AnalyticsTopBrowsersResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "share": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": ["key", "label", "value", "share"]
            }
          }
        }
      },
      "getV2AnalyticsTopCrawlerPagesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "title": {
                  "type": "null"
                },
                "value": {
                  "type": "number"
                }
              },
              "required": ["url", "title", "value"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2AnalyticsTopDevicesResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "share": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": ["key", "label", "value", "share"]
            }
          }
        }
      },
      "getV2AnalyticsTopLocationsResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "share": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": ["key", "label", "value", "share"]
            }
          }
        }
      },
      "getV2AnalyticsTopPagesResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "Legacy representative observed URL for a path-level row; it may contain attribution parameters and is not the identity of every event in the row."
                },
                "pagePath": {
                  "type": "string",
                  "description": "Pathname used for this aggregate; captured attribution query values do not split its count."
                },
                "population": {
                  "type": "string",
                  "enum": ["path"]
                },
                "distinctCleanPages": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Count of distinct valid clean page identities within the path aggregate. Null when cleanIdentityStatus is cohort_too_large."
                },
                "cleanIdentityStatus": {
                  "type": "string",
                  "enum": ["available", "cohort_too_large"],
                  "description": "Whether raw addresses for the returned path cohort were fully validated within the 25,000-address request bound."
                },
                "cleanPageKey": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Available only when every recorded event in this path aggregate resolves to one clean page identity."
                },
                "cleanPageUrl": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "A clean representative link, available only for a single valid page identity."
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "value": {
                  "type": "number"
                }
              },
              "required": ["url", "title", "value"]
            }
          }
        }
      },
      "getV2AnalyticsTopSourcesResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "share": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": ["key", "label", "value", "share"]
            }
          }
        }
      },
      "getV2AnalyticsTotalVisitsResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "total": {
                "type": "number"
              },
              "delta": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "number"
                  }
                ]
              }
            },
            "required": ["total", "delta"]
          }
        }
      },
      "getV2AnalyticsVisitorTrendsResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                }
              },
              "required": ["bucket", "value"]
            }
          }
        }
      },
      "putV2BrandsIdRequest": {
        "type": "object",
        "properties": {
          "status": {
            "enum": ["active", "archived"],
            "type": "string"
          },
          "rootDomain": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 150
            },
            "maxItems": 25
          },
          "isOwnBrand": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        }
      },
      "putV2BrandsIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "rootDomain": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "aliases": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "isOwnBrand": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "status": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "rootDomain",
              "aliases",
              "isOwnBrand",
              "status",
              "createdAt",
              "updatedAt"
            ]
          }
        },
        "required": ["data"]
      },
      "getV2CitationsAnalyticsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "domains": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rootDomain": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    }
                  },
                  "required": ["rootDomain", "count"]
                }
              },
              "urls": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Exact observed citation URL; raw-address grouping remains for compatibility."
                    },
                    "cleanPageUrl": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Validated tracking-clean navigation address; null when invalid."
                    },
                    "cleanPageKey": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Tracking-clean page identity; functional query variants remain distinct."
                    },
                    "count": {
                      "type": "number"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": ["url", "count", "title"]
                }
              },
              "cleanPages": {
                "type": "array",
                "description": "Top 50 validated clean-page identities across all citation rows in the selected scope when cleanPageStatus is available. Tagged variants of one page are counted together; invalid addresses are excluded. Empty when the distinct-address cohort exceeds the clean grouping limit; this is separate from the legacy raw urls list.",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "cleanPageUrl": {
                      "type": "string"
                    },
                    "cleanPageKey": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["url", "cleanPageUrl", "cleanPageKey", "count", "title"]
                }
              },
              "cleanPageEligibleCitations": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Citation rows in the selected scope with a validated clean-page identity, including pages below the top-50 cleanPages limit. Null when cleanPageStatus is cohort_too_large; invalid historical addresses are excluded."
              },
              "cleanPageStatus": {
                "type": "string",
                "enum": ["available", "cohort_too_large"],
                "description": "Whether the full distinct-address cohort could be validated within the bounded clean-grouping request. Narrow the date range if the cohort is too large."
              },
              "totalCitations": {
                "type": "number"
              }
            },
            "required": ["domains", "urls", "totalCitations"]
          }
        },
        "required": ["data"]
      },
      "getV2CitationsCitationRankAnalysisResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "averageRank": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "citationCount": {
                  "type": "number"
                }
              },
              "required": ["key", "averageRank", "citationCount"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2CitationsDomainCitationsOverTimeResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                }
              },
              "required": ["bucket", "value"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2CitationsDomainsByLlmResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "llm": {
                  "type": "string"
                },
                "domains": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "rootDomain": {
                        "type": "string"
                      },
                      "count": {
                        "type": "number"
                      }
                    },
                    "required": ["rootDomain", "count"]
                  }
                }
              },
              "required": ["llm", "domains"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2CitationsLlmSourcesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "llm": {
                  "type": "string"
                },
                "count": {
                  "type": "number"
                }
              },
              "required": ["llm", "count"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2CitationsSelfCitationFrequencyResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "share": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": ["key", "label", "value", "share"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2CitationsTopCitedPagesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "Exact observed citation URL; raw-address grouping remains for compatibility."
                },
                "cleanPageUrl": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Validated tracking-clean navigation address; null when invalid."
                },
                "cleanPageKey": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Tracking-clean page identity; functional query variants remain distinct."
                },
                "count": {
                  "type": "number"
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": ["url", "count", "title"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2ContentGapPromptsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "promptId": {
                  "type": "string"
                },
                "promptTitle": {
                  "type": "string"
                },
                "coverageScore": {
                  "type": "number"
                },
                "uncoveredSubtopics": {
                  "type": "number"
                },
                "lastAnalyzedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "promptId",
                "promptTitle",
                "coverageScore",
                "uncoveredSubtopics",
                "lastAnalyzedAt"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV2ContentGapStatsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "totalPrompts": {
                "type": "number"
              },
              "averageCoverageScore": {
                "type": "number"
              },
              "recommendationsPending": {
                "type": "number"
              }
            },
            "required": ["totalPrompts", "averageCoverageScore", "recommendationsPending"]
          }
        },
        "required": ["data"]
      },
      "getV2MetricsAccountTagsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sourceAccountIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "colorToken": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "sourceAccountIds",
                "createdAt",
                "updatedAt",
                "id",
                "name",
                "description",
                "colorToken",
                "currentVersionId"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsAccountTagsRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 96
          },
          "sourceAccountIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 2000
              }
            ],
            "default": null
          }
        },
        "required": ["name", "sourceAccountIds"],
        "additionalProperties": false
      },
      "postV2MetricsAccountTagsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "accountTagId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "canonicalHash": {
                "type": "string"
              }
            },
            "required": ["actorId", "accountTagId", "versionId", "versionNumber", "canonicalHash"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsAccountTagsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "accountTagId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "canonicalHash": {
                "type": "string"
              }
            },
            "required": ["actorId", "accountTagId", "versionId", "versionNumber", "canonicalHash"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsAnalysisViewsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "definition": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "schemaVersion": {
                          "type": "number",
                          "const": 1
                        },
                        "source": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "query"
                                },
                                "queryVersionId": {
                                  "type": "string"
                                },
                                "queryId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "queryVersionId", "queryId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "model"
                                },
                                "modelVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "modelVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "table_group"
                                },
                                "tableGroupVersionId": {
                                  "type": "string"
                                },
                                "tableId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "tableGroupVersionId", "tableId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "managed_dataset"
                                },
                                "tableId": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    }
                                  ]
                                },
                                "managedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "tableId", "managedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "imported_dataset"
                                },
                                "importedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "importedDatasetVersionId"]
                            }
                          ]
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string"
                              },
                              "role": {
                                "enum": ["date", "metric", "dimension", "identifier", "attribute"],
                                "type": "string"
                              },
                              "fieldId": {
                                "type": "string"
                              },
                              "format": {
                                "enum": [
                                  "number",
                                  "date",
                                  "automatic",
                                  "percent",
                                  "currency",
                                  "datetime",
                                  "text"
                                ],
                                "type": "string"
                              }
                            },
                            "required": ["label", "role", "fieldId", "format"]
                          }
                        },
                        "filters": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "values": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                }
                              },
                              "fieldId": {
                                "type": "string"
                              },
                              "operator": {
                                "enum": [
                                  "equals",
                                  "not_equals",
                                  "contains",
                                  "greater_than",
                                  "less_than",
                                  "in",
                                  "between",
                                  "is_null",
                                  "is_not_null"
                                ],
                                "type": "string"
                              }
                            },
                            "required": ["values", "fieldId", "operator"]
                          }
                        },
                        "comparison": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "enum": ["none", "previous_period", "previous_year", "saved_run"],
                              "type": "string"
                            },
                            "baselineRunId": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": ["mode", "baselineRunId"]
                        },
                        "presentation": {
                          "type": "object",
                          "properties": {
                            "description": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "title": {
                              "type": "string"
                            },
                            "chartType": {
                              "enum": [
                                "map",
                                "table",
                                "scorecard",
                                "line",
                                "bar",
                                "area",
                                "pie",
                                "scatter",
                                "pivot"
                              ],
                              "type": "string"
                            },
                            "theme": {
                              "enum": [
                                "workspace",
                                "editorial",
                                "executive",
                                "contrast",
                                "minimal"
                              ],
                              "type": "string"
                            },
                            "showLegend": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "showLabels": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            }
                          },
                          "required": [
                            "description",
                            "title",
                            "chartType",
                            "theme",
                            "showLegend",
                            "showLabels"
                          ]
                        },
                        "refresh": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "enum": ["manual", "latest_saved_result"],
                              "type": "string"
                            },
                            "artifactId": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": ["mode", "artifactId"]
                        }
                      },
                      "required": [
                        "schemaVersion",
                        "source",
                        "fields",
                        "filters",
                        "comparison",
                        "presentation",
                        "refresh"
                      ]
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "visibility": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "versionNumber": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "versionStatus": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "definition",
                "createdAt",
                "updatedAt",
                "id",
                "name",
                "description",
                "visibility",
                "status",
                "currentVersionId",
                "versionNumber",
                "versionStatus"
              ]
            }
          }
        },
        "required": ["data"]
      },
      "postV2MetricsAnalysisViewsRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "definition": {
            "type": "object",
            "properties": {
              "schemaVersion": {
                "type": "number",
                "const": 1
              },
              "source": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "query"
                      },
                      "queryVersionId": {
                        "type": "string"
                      },
                      "queryId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "queryVersionId", "queryId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "model"
                      },
                      "modelVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "modelVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "table_group"
                      },
                      "tableGroupVersionId": {
                        "type": "string"
                      },
                      "tableId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "tableGroupVersionId", "tableId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "managed_dataset"
                      },
                      "tableId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "managedDatasetVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "tableId", "managedDatasetVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "imported_dataset"
                      },
                      "importedDatasetVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "importedDatasetVersionId"]
                  }
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "role": {
                      "enum": ["date", "metric", "dimension", "identifier", "attribute"],
                      "type": "string"
                    },
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "format": {
                      "enum": [
                        "number",
                        "date",
                        "automatic",
                        "percent",
                        "currency",
                        "datetime",
                        "text"
                      ],
                      "type": "string"
                    }
                  },
                  "required": ["label", "role", "fieldId", "format"],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 200
              },
              "filters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "values": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          },
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          },
                          {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          }
                        ]
                      },
                      "maxItems": 100
                    },
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "operator": {
                      "enum": [
                        "equals",
                        "not_equals",
                        "contains",
                        "greater_than",
                        "less_than",
                        "in",
                        "between",
                        "is_null",
                        "is_not_null"
                      ],
                      "type": "string"
                    }
                  },
                  "required": ["values", "fieldId", "operator"],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "comparison": {
                "type": "object",
                "properties": {
                  "mode": {
                    "enum": ["none", "previous_period", "previous_year", "saved_run"],
                    "type": "string"
                  },
                  "baselineRunId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["mode", "baselineRunId"],
                "additionalProperties": false
              },
              "presentation": {
                "type": "object",
                "properties": {
                  "description": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string",
                        "maxLength": 2000
                      }
                    ]
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  },
                  "chartType": {
                    "enum": [
                      "map",
                      "table",
                      "scorecard",
                      "line",
                      "bar",
                      "area",
                      "pie",
                      "scatter",
                      "pivot"
                    ],
                    "type": "string"
                  },
                  "theme": {
                    "enum": ["workspace", "editorial", "executive", "contrast", "minimal"],
                    "type": "string"
                  },
                  "showLegend": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "showLabels": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  }
                },
                "required": [
                  "description",
                  "title",
                  "chartType",
                  "theme",
                  "showLegend",
                  "showLabels"
                ],
                "additionalProperties": false
              },
              "refresh": {
                "type": "object",
                "properties": {
                  "mode": {
                    "enum": ["manual", "latest_saved_result"],
                    "type": "string"
                  },
                  "artifactId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["mode", "artifactId"],
                "additionalProperties": false
              }
            },
            "required": [
              "schemaVersion",
              "source",
              "fields",
              "filters",
              "comparison",
              "presentation",
              "refresh"
            ],
            "additionalProperties": false
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ],
            "default": null
          },
          "visibility": {
            "type": "string",
            "const": "workspace",
            "description": "Service-account resources must be visible to the workspace."
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          }
        },
        "required": ["name", "definition"],
        "additionalProperties": false
      },
      "postV2MetricsAnalysisViewsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "analysisViewId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "analysisViewId",
              "versionId",
              "versionNumber",
              "versionStatus",
              "canonicalHash"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsAnalysisViewsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "analysisViewId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "analysisViewId",
              "versionId",
              "versionNumber",
              "versionStatus",
              "canonicalHash"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsCataloguesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "snapshots": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sourceAccountId": {
                      "type": "string"
                    },
                    "queryTypes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "providerResource": {
                            "type": "string"
                          },
                          "grain": {
                            "type": "string"
                          },
                          "default": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          }
                        },
                        "required": ["id", "label"]
                      }
                    },
                    "queryOptions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "type": {
                            "enum": ["boolean", "enum"],
                            "type": "string"
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "label"]
                            }
                          },
                          "required": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "defaultValue": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          }
                        },
                        "required": ["id", "label", "type"]
                      }
                    },
                    "limits": {
                      "type": "object",
                      "properties": {
                        "maximumDimensions": {
                          "type": "number"
                        },
                        "maximumMetrics": {
                          "type": "number"
                        },
                        "maximumRows": {
                          "type": "number"
                        }
                      },
                      "required": ["maximumDimensions", "maximumMetrics", "maximumRows"]
                    },
                    "capabilities": {
                      "type": "object",
                      "properties": {
                        "queryOrdering": {
                          "enum": ["provider", "none"],
                          "type": "string"
                        },
                        "supportsMetricFilters": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsMultipleDateRanges": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsComparisons": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsPivots": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsMultipleAccounts": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsNestedFilters": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        }
                      },
                      "required": [
                        "queryOrdering",
                        "supportsMetricFilters",
                        "supportsMultipleDateRanges",
                        "supportsComparisons",
                        "supportsPivots"
                      ]
                    },
                    "reportingLagDays": {
                      "type": "number"
                    },
                    "completenessNote": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "snapshot": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "workspaceId": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "fingerprint": {
                          "type": "string"
                        },
                        "connectorKey": {
                          "type": "string"
                        },
                        "discoveredAt": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "enum": [
                                  "string",
                                  "number",
                                  "boolean",
                                  "integer",
                                  "date",
                                  "json",
                                  "duration",
                                  "url",
                                  "percent",
                                  "currency",
                                  "datetime",
                                  "decimal",
                                  "image_url"
                                ],
                                "type": "string"
                              },
                              "id": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "label": {
                                "type": "string"
                              },
                              "role": {
                                "enum": ["metric", "dimension", "identifier", "attribute"],
                                "type": "string"
                              },
                              "providerFieldId": {
                                "type": "string"
                              },
                              "aggregation": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "compatibleFieldIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "supportedFilterOperators": {
                                "type": "array",
                                "items": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                }
                              },
                              "semanticTags": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "queryTypeIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "hidden": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              },
                              "deprecated": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              }
                            },
                            "required": [
                              "type",
                              "id",
                              "description",
                              "label",
                              "role",
                              "providerFieldId",
                              "aggregation",
                              "compatibleFieldIds",
                              "supportedFilterOperators",
                              "semanticTags",
                              "queryTypeIds",
                              "hidden",
                              "deprecated"
                            ]
                          }
                        },
                        "queryType": {
                          "type": "string"
                        },
                        "providerSchemaVersion": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "expiresAt",
                        "workspaceId",
                        "fingerprint",
                        "connectorKey",
                        "discoveredAt",
                        "fields",
                        "queryType",
                        "providerSchemaVersion"
                      ]
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "sourceAccountId",
                    "queryTypes",
                    "queryOptions",
                    "limits",
                    "capabilities",
                    "reportingLagDays",
                    "completenessNote",
                    "snapshot",
                    "status"
                  ]
                }
              },
              "changes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sourceAccountId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "addedFieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "removedFieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "changedFieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "affectedQueryCount": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "sourceAccountId",
                    "createdAt",
                    "id",
                    "addedFieldIds",
                    "removedFieldIds",
                    "changedFieldIds",
                    "affectedQueryCount"
                  ]
                }
              }
            },
            "required": ["snapshots", "changes"]
          }
        },
        "required": ["data"]
      },
      "getV2MetricsConnectionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "connectorKey": {
                  "type": "string"
                },
                "authenticationMethod": {
                  "enum": [
                    "basic",
                    "oauth2",
                    "oauth1",
                    "api_key",
                    "bearer_token",
                    "service_account",
                    "key_pair",
                    "database_credentials",
                    "file",
                    "none"
                  ],
                  "type": "string"
                },
                "grantedScopes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "name": {
                  "type": "string"
                },
                "visibility": {
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "pending",
                    "active",
                    "error",
                    "revoked",
                    "validating",
                    "discovering",
                    "needs_reauth"
                  ],
                  "type": "string"
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "principalLabel": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "ownerActorId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastVerifiedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "reauthenticationRequiredAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastDiscoveredAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "accounts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "providerObjectId": {
                        "type": "string"
                      },
                      "parentProviderObjectId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "displayName": {
                        "type": "string"
                      },
                      "status": {
                        "enum": ["available", "excluded", "inaccessible", "removed"],
                        "type": "string"
                      },
                      "safeMetadata": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": {}
                      },
                      "discoveredAt": {
                        "type": "string"
                      },
                      "lastSeenAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "providerObjectId",
                      "parentProviderObjectId",
                      "displayName",
                      "status",
                      "safeMetadata",
                      "discoveredAt",
                      "lastSeenAt"
                    ]
                  }
                }
              },
              "required": [
                "id",
                "connectorKey",
                "authenticationMethod",
                "grantedScopes",
                "name",
                "visibility",
                "status",
                "currentVersionId",
                "principalLabel",
                "ownerActorId",
                "lastVerifiedAt",
                "reauthenticationRequiredAt",
                "lastDiscoveredAt",
                "createdAt",
                "updatedAt",
                "accounts"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "getV2MetricsConnectorsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "category": {
                      "type": "string"
                    },
                    "connectorKey": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "buildVersion": {
                      "type": "string"
                    },
                    "documentationUrl": {
                      "type": "string"
                    },
                    "capabilities": {
                      "type": "object",
                      "properties": {
                        "contractVersion": {
                          "type": "number"
                        },
                        "connectorKey": {
                          "type": "string"
                        },
                        "availability": {
                          "enum": [
                            "preview",
                            "request_only",
                            "production",
                            "internal_fixture",
                            "retired"
                          ],
                          "type": "string"
                        },
                        "authenticationMethods": {
                          "type": "array",
                          "items": {
                            "enum": [
                              "basic",
                              "oauth2",
                              "oauth1",
                              "api_key",
                              "bearer_token",
                              "service_account",
                              "key_pair",
                              "database_credentials",
                              "file",
                              "none"
                            ],
                            "type": "string"
                          }
                        },
                        "accountDiscovery": {
                          "enum": ["flat", "none", "hierarchical"],
                          "type": "string"
                        },
                        "catalogDiscovery": {
                          "enum": ["dynamic", "static", "hybrid"],
                          "type": "string"
                        },
                        "queryTypes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "dateSemantics": {
                          "type": "object",
                          "properties": {
                            "comparison": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "absolute": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "relative": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "incremental": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "timeZone": {
                              "enum": ["provider", "query", "account"],
                              "type": "string"
                            },
                            "minimumFreshnessDelayMinutes": {
                              "type": "number"
                            },
                            "maximumHistoryDays": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "number"
                                }
                              ]
                            }
                          },
                          "required": [
                            "comparison",
                            "absolute",
                            "relative",
                            "incremental",
                            "timeZone",
                            "minimumFreshnessDelayMinutes",
                            "maximumHistoryDays"
                          ]
                        },
                        "pagination": {
                          "enum": ["cursor", "offset", "none", "page", "provider_specific"],
                          "type": "string"
                        },
                        "pushdown": {
                          "type": "object",
                          "properties": {
                            "limit": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "filters": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "comparison": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "pivot": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "aggregation": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "sorting": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "pagination": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            }
                          },
                          "required": [
                            "limit",
                            "filters",
                            "comparison",
                            "pivot",
                            "aggregation",
                            "sorting",
                            "pagination"
                          ]
                        },
                        "rateLimitModel": {
                          "enum": [
                            "none",
                            "provider_specific",
                            "fixed_window",
                            "sliding_window",
                            "quota_units"
                          ],
                          "type": "string"
                        },
                        "supportedOutputFormats": {
                          "type": "array",
                          "items": {
                            "enum": ["json", "ndjson", "csv", "parquet", "html_preview"],
                            "type": "string"
                          }
                        },
                        "compatibleDestinationKinds": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "supportsAccountTags": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsCustomFields": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsMediaFields": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsRealtime": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "limits": {
                          "type": "object",
                          "properties": {
                            "maximumRowsPerRun": {
                              "type": "number"
                            },
                            "maximumAccountsPerQuery": {
                              "type": "number"
                            },
                            "maximumFieldsPerQuery": {
                              "type": "number"
                            },
                            "maximumConcurrentRequests": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "maximumRowsPerRun",
                            "maximumAccountsPerQuery",
                            "maximumFieldsPerQuery",
                            "maximumConcurrentRequests"
                          ]
                        }
                      },
                      "required": [
                        "contractVersion",
                        "connectorKey",
                        "availability",
                        "authenticationMethods",
                        "accountDiscovery",
                        "catalogDiscovery",
                        "queryTypes",
                        "dateSemantics",
                        "pagination",
                        "pushdown",
                        "rateLimitModel",
                        "supportedOutputFormats",
                        "compatibleDestinationKinds",
                        "supportsAccountTags",
                        "supportsCustomFields",
                        "supportsMediaFields",
                        "supportsRealtime",
                        "limits"
                      ]
                    },
                    "releasedAt": {
                      "type": "string"
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "description",
                    "category",
                    "connectorKey",
                    "displayName",
                    "buildVersion",
                    "documentationUrl",
                    "capabilities",
                    "releasedAt",
                    "retiredAt"
                  ]
                },
                "readiness": {
                  "type": "object",
                  "properties": {
                    "connectorKey": {
                      "type": "string"
                    },
                    "declaredAvailability": {
                      "enum": [
                        "preview",
                        "request_only",
                        "production",
                        "internal_fixture",
                        "retired"
                      ],
                      "type": "string"
                    },
                    "selectable": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "visible": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "platformConfigured": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "conformancePassed": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "reasonCode": {
                      "enum": [
                        "retired",
                        "ready",
                        "internal_fixture_environment_only",
                        "platform_configuration_missing",
                        "conformance_evidence_missing",
                        "request_access"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "connectorKey",
                    "declaredAvailability",
                    "selectable",
                    "visible",
                    "platformConfigured",
                    "conformancePassed",
                    "reasonCode"
                  ]
                },
                "presentation": {
                  "type": "object",
                  "properties": {
                    "brandDomain": {
                      "type": "string"
                    },
                    "brandAssetPath": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "authenticationMethod": {
                      "enum": ["basic", "oauth2", "api_key", "bearer_token", "key_pair", "none"],
                      "type": "string"
                    },
                    "accountModel": {
                      "enum": ["flat", "hierarchy"],
                      "type": "string"
                    },
                    "connectPath": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "setupFields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "secret": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "required": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "minLength": {
                            "type": "number"
                          },
                          "maxLength": {
                            "type": "number"
                          },
                          "placeholder": {
                            "type": "string"
                          },
                          "format": {
                            "enum": ["email", "hostname", "text"],
                            "type": "string"
                          }
                        },
                        "required": ["key", "label", "secret", "required"]
                      }
                    }
                  },
                  "required": [
                    "brandDomain",
                    "brandAssetPath",
                    "authenticationMethod",
                    "accountModel",
                    "connectPath",
                    "setupFields"
                  ]
                }
              },
              "required": ["definition", "readiness", "presentation"]
            }
          },
          "destinations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "enum": [
                    "sftp",
                    "google_sheets",
                    "google_bigquery",
                    "google_cloud_storage",
                    "amazon_s3",
                    "google_alloydb",
                    "azure_sql",
                    "azure_blob_storage",
                    "azure_synapse",
                    "databricks",
                    "microsoft_fabric",
                    "amazon_redshift",
                    "snowflake",
                    "chatobserver_managed_dataset",
                    "fixture_object_store"
                  ],
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "brandDomain": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "credentialProviderKeys": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requiredScopes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "capability": {
                  "type": "object",
                  "properties": {
                    "contractVersion": {
                      "type": "number"
                    },
                    "availability": {
                      "enum": [
                        "preview",
                        "request_only",
                        "production",
                        "internal_fixture",
                        "retired"
                      ],
                      "type": "string"
                    },
                    "authenticationMethods": {
                      "type": "array",
                      "items": {
                        "enum": [
                          "basic",
                          "oauth2",
                          "oauth1",
                          "api_key",
                          "bearer_token",
                          "service_account",
                          "key_pair",
                          "database_credentials",
                          "file",
                          "none"
                        ],
                        "type": "string"
                      }
                    },
                    "limits": {
                      "type": "object",
                      "properties": {
                        "maximumRowsPerWrite": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        "maximumBytesPerWrite": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        "maximumConcurrentWrites": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "maximumRowsPerWrite",
                        "maximumBytesPerWrite",
                        "maximumConcurrentWrites"
                      ]
                    },
                    "destinationKind": {
                      "type": "string"
                    },
                    "writeModes": {
                      "type": "array",
                      "items": {
                        "enum": [
                          "replace",
                          "append",
                          "upsert",
                          "rolling_window",
                          "single_day_snapshot",
                          "historical_snapshot",
                          "rolling_historical_snapshot"
                        ],
                        "type": "string"
                      }
                    },
                    "schemaPolicies": {
                      "type": "array",
                      "items": {
                        "enum": ["locked", "additive", "reconcile"],
                        "type": "string"
                      }
                    },
                    "supportedFormats": {
                      "type": "array",
                      "items": {
                        "enum": ["ndjson", "csv", "parquet", "rows"],
                        "type": "string"
                      }
                    },
                    "supportsTransactions": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "supportsAtomicReplace": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "supportsPartitioning": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "supportsDelete": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "supportsTestConnection": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    }
                  },
                  "required": [
                    "contractVersion",
                    "availability",
                    "authenticationMethods",
                    "limits",
                    "destinationKind",
                    "writeModes",
                    "schemaPolicies",
                    "supportedFormats",
                    "supportsTransactions",
                    "supportsAtomicReplace",
                    "supportsPartitioning",
                    "supportsDelete",
                    "supportsTestConnection"
                  ]
                },
                "targetFields": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "type": {
                        "enum": ["select", "text"],
                        "type": "string"
                      },
                      "required": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "placeholder": {
                        "type": "string"
                      },
                      "values": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "label"]
                        }
                      }
                    },
                    "required": ["key", "label", "description", "type", "required"]
                  }
                },
                "internalOnly": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "required": [
                "kind",
                "label",
                "description",
                "brandDomain",
                "credentialProviderKeys",
                "requiredScopes",
                "capability",
                "targetFields",
                "internalOnly"
              ]
            }
          }
        },
        "required": ["data", "destinations"]
      },
      "getV2MetricsDestinationsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "workingVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "versionNumber": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "versionStatus": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "definition": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  ]
                },
                "publishedDefinition": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  ]
                },
                "ownerActorId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastValidatedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "kind": {
                  "type": "string"
                },
                "visibility": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastErrorCode": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "workingVersionId",
                "versionNumber",
                "versionStatus",
                "definition",
                "publishedDefinition",
                "ownerActorId",
                "lastValidatedAt",
                "createdAt",
                "updatedAt",
                "id",
                "name",
                "description",
                "kind",
                "visibility",
                "status",
                "currentVersionId",
                "lastErrorCode"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsDestinationsRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "definition": {
            "type": "object",
            "properties": {
              "region": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                ]
              },
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "destinationKind": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96,
                "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
              },
              "connectionVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "target": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "residency": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                ]
              },
              "capabilitySnapshot": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "testedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "defaultWriteMode": {
                "enum": [
                  "replace",
                  "append",
                  "upsert",
                  "rolling_window",
                  "single_day_snapshot",
                  "historical_snapshot",
                  "rolling_historical_snapshot"
                ],
                "type": "string"
              },
              "defaultSchemaPolicy": {
                "enum": ["locked", "additive", "reconcile"],
                "type": "string"
              },
              "safeDisplay": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "ownership": {
                "enum": ["customer", "chatobserver"],
                "default": "customer",
                "type": "string"
              },
              "durability": {
                "enum": ["managed_dataset", "external_destination"],
                "default": "external_destination",
                "type": "string"
              }
            },
            "required": [
              "region",
              "schemaVersion",
              "destinationKind",
              "connectionVersionId",
              "target",
              "residency",
              "capabilitySnapshot",
              "testedAt",
              "defaultWriteMode",
              "defaultSchemaPolicy",
              "safeDisplay"
            ],
            "additionalProperties": false
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ],
            "default": null
          },
          "visibility": {
            "type": "string",
            "const": "workspace",
            "description": "Service-account resources must be visible to the workspace."
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          }
        },
        "required": ["name", "definition"],
        "additionalProperties": false
      },
      "postV2MetricsDestinationsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "destinationId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "destinationId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsDestinationsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "destinationId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "destinationId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportEmailIntakesRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "allowedSenderDomains": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 253
            },
            "maxItems": 100
          },
          "allowedSenderHashes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "maxItems": 500
          },
          "attachmentFormats": {
            "type": "array",
            "items": {
              "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 5
          },
          "maximumAttachmentBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 10737418240
          },
          "status": {
            "enum": ["active", "paused"],
            "default": "active",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ],
            "default": null
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": true
          },
          "subjectPrefix": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            ],
            "default": null
          }
        },
        "required": [
          "name",
          "allowedSenderDomains",
          "allowedSenderHashes",
          "attachmentFormats",
          "maximumAttachmentBytes"
        ],
        "additionalProperties": false
      },
      "postV2MetricsImportEmailIntakesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "intakeId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "addressLocalPart": {
                "type": "string"
              },
              "status": {
                "enum": ["active", "paused"],
                "type": "string"
              },
              "published": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": [
              "actorId",
              "intakeId",
              "versionId",
              "addressLocalPart",
              "status",
              "published"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportEmailIntakesResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "intakeId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "addressLocalPart": {
                "type": "string"
              },
              "status": {
                "enum": ["active", "paused"],
                "type": "string"
              },
              "published": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": [
              "actorId",
              "intakeId",
              "versionId",
              "addressLocalPart",
              "status",
              "published"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportSourcesRequest": {
        "type": "object",
        "properties": {
          "format": {
            "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
            "type": "string"
          },
          "originalFileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "contentType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "byteCount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 10737418240
          },
          "retentionDays": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365,
            "default": 7
          }
        },
        "required": ["format", "originalFileName", "contentType", "byteCount"],
        "additionalProperties": false
      },
      "postV2MetricsImportSourcesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "sourceObjectId": {
                "type": "string"
              },
              "objectName": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "residency": {
                "type": "string"
              },
              "retainedUntil": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "const": "pending_upload"
              }
            },
            "required": [
              "actorId",
              "sourceObjectId",
              "objectName",
              "region",
              "residency",
              "retainedUntil",
              "status"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportSourcesResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "sourceObjectId": {
                "type": "string"
              },
              "objectName": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "residency": {
                "type": "string"
              },
              "retainedUntil": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "const": "pending_upload"
              }
            },
            "required": [
              "actorId",
              "sourceObjectId",
              "objectName",
              "region",
              "residency",
              "retainedUntil",
              "status"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsImportsResponse200": {
        "type": "object",
        "properties": {
          "importSources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": {}
            }
          },
          "importOperations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": {}
            }
          },
          "importMaterializations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": {}
            }
          },
          "importDeletionRequests": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": {}
            }
          },
          "importEmailIntakes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": {}
            }
          }
        },
        "required": [
          "importSources",
          "importOperations",
          "importMaterializations",
          "importDeletionRequests",
          "importEmailIntakes"
        ]
      },
      "postV2MetricsImportsRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "source": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "manual_upload"
                  },
                  "allowedFormats": {
                    "type": "array",
                    "items": {
                      "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
                      "type": "string"
                    }
                  }
                },
                "required": ["kind", "allowedFormats"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "authenticated_file"
                  },
                  "connectionVersionId": {
                    "type": "string"
                  },
                  "providerPath": {
                    "type": "string"
                  },
                  "expectedFormat": {
                    "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
                    "type": "string"
                  }
                },
                "required": ["kind", "connectionVersionId", "providerPath", "expectedFormat"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "email_intake"
                  },
                  "intakeId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "intakeId"]
              }
            ]
          },
          "mapping": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "definition": {
                "type": "object",
                "properties": {
                  "columns": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "enum": [
                            "string",
                            "number",
                            "boolean",
                            "integer",
                            "date",
                            "json",
                            "duration",
                            "url",
                            "percent",
                            "currency",
                            "datetime",
                            "decimal",
                            "image_url"
                          ],
                          "type": "string"
                        },
                        "trim": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "nullable": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "source": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "header"
                                }
                              },
                              "required": ["value", "kind"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "number"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "position"
                                }
                              },
                              "required": ["value", "kind"]
                            }
                          ]
                        },
                        "fieldId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "blankAsNull": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "dateFormat": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string",
                              "const": "iso"
                            },
                            {
                              "type": "string",
                              "const": "yyyy-MM-dd"
                            },
                            {
                              "type": "string",
                              "const": "MM/dd/yyyy"
                            },
                            {
                              "type": "string",
                              "const": "dd/MM/yyyy"
                            },
                            {
                              "type": "string",
                              "const": "yyyy-MM-dd HH:mm:ss"
                            },
                            {
                              "type": "string",
                              "const": "MM/dd/yyyy HH:mm:ss"
                            },
                            {
                              "type": "string",
                              "const": "dd/MM/yyyy HH:mm:ss"
                            }
                          ]
                        },
                        "locale": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 35
                            }
                          ]
                        },
                        "invalidValuePolicy": {
                          "enum": ["reject_file", "quarantine_row", "use_null", "use_default"],
                          "type": "string"
                        },
                        "defaultValue": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  },
                                  {
                                    "$ref": "#/components/schemas/ContractType54284"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {},
                                    "additionalProperties": {
                                      "$ref": "#/components/schemas/ContractType54286"
                                    }
                                  }
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "properties": {},
                              "additionalProperties": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  },
                                  {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ContractType54286"
                                    }
                                  },
                                  {
                                    "$ref": "#/components/schemas/ContractType54285"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "type",
                        "trim",
                        "nullable",
                        "label",
                        "source",
                        "fieldId",
                        "blankAsNull",
                        "dateFormat",
                        "locale",
                        "invalidValuePolicy"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 5000
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 1
                  },
                  "sheetName": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      }
                    ]
                  },
                  "headerRow": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 10000
                      }
                    ]
                  },
                  "firstDataRow": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 10001
                  },
                  "delimiter": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string",
                        "const": ","
                      },
                      {
                        "type": "string",
                        "const": "\t"
                      },
                      {
                        "type": "string",
                        "const": ";"
                      },
                      {
                        "type": "string",
                        "const": "|"
                      }
                    ]
                  },
                  "encoding": {
                    "type": "string",
                    "const": "utf-8"
                  },
                  "unknownColumnPolicy": {
                    "enum": ["ignore", "reject"],
                    "type": "string"
                  },
                  "missingColumnPolicy": {
                    "enum": ["use_null", "use_default", "reject"],
                    "type": "string"
                  },
                  "formulaInjectionPolicy": {
                    "enum": ["reject", "escape"],
                    "type": "string"
                  }
                },
                "required": [
                  "columns",
                  "schemaVersion",
                  "sheetName",
                  "headerRow",
                  "firstDataRow",
                  "delimiter",
                  "encoding",
                  "unknownColumnPolicy",
                  "missingColumnPolicy",
                  "formulaInjectionPolicy"
                ],
                "additionalProperties": false
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "maxLength": 4000
                  }
                ],
                "default": null
              }
            },
            "required": ["name", "definition"],
            "additionalProperties": false
          },
          "updatePolicy": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "definition": {
                "type": "object",
                "properties": {
                  "mode": {
                    "enum": ["replace", "append", "incremental"],
                    "type": "string"
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 1
                  },
                  "keyFieldIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "maxItems": 50
                  },
                  "cursorFieldId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    ]
                  },
                  "duplicatePolicy": {
                    "enum": ["reject", "keep_first", "keep_last"],
                    "type": "string"
                  },
                  "lateArrivalLookback": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "count": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 366
                          },
                          "unit": {
                            "enum": ["hour", "day", "week"],
                            "type": "string"
                          }
                        },
                        "required": ["count", "unit"],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "schemaDriftPolicy": {
                    "enum": ["locked", "additive", "review_required"],
                    "type": "string"
                  }
                },
                "required": [
                  "mode",
                  "schemaVersion",
                  "keyFieldIds",
                  "cursorFieldId",
                  "duplicatePolicy",
                  "lateArrivalLookback",
                  "schemaDriftPolicy"
                ],
                "additionalProperties": false
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "maxLength": 4000
                  }
                ],
                "default": null
              }
            },
            "required": ["name", "definition"],
            "additionalProperties": false
          },
          "retentionPolicy": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "definition": {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "const": 1
                  },
                  "residency": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "sourceRetentionDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  },
                  "versionRetentionDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3650
                  },
                  "quarantineRetentionDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  },
                  "maximumRetainedVersions": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000
                  },
                  "legalHold": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "deleteSourceAfterNormalization": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  }
                },
                "required": [
                  "schemaVersion",
                  "residency",
                  "sourceRetentionDays",
                  "versionRetentionDays",
                  "quarantineRetentionDays",
                  "maximumRetainedVersions",
                  "legalHold",
                  "deleteSourceAfterNormalization"
                ],
                "additionalProperties": false
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "maxLength": 4000
                  }
                ],
                "default": null
              }
            },
            "required": ["name", "definition"],
            "additionalProperties": false
          },
          "maximumRows": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 10000000
          },
          "maximumBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 10737418240
          },
          "malformedRowPolicy": {
            "enum": ["reject_file", "quarantine_rows"],
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ],
            "default": null
          },
          "visibility": {
            "type": "string",
            "const": "workspace",
            "description": "Service-account resources must be visible to the workspace."
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          },
          "qualityRules": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "const": "not_null"
                    },
                    "severity": {
                      "enum": ["error", "warning"],
                      "type": "string"
                    },
                    "fieldId": {
                      "type": "string"
                    }
                  },
                  "required": ["id", "kind", "severity", "fieldId"]
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "const": "unique"
                    },
                    "severity": {
                      "enum": ["error", "warning"],
                      "type": "string"
                    },
                    "fieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": ["id", "kind", "severity", "fieldIds"]
                },
                {
                  "type": "object",
                  "properties": {
                    "values": {
                      "type": "array",
                      "items": {}
                    },
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "const": "accepted_values"
                    },
                    "severity": {
                      "enum": ["error", "warning"],
                      "type": "string"
                    },
                    "fieldId": {
                      "type": "string"
                    }
                  },
                  "required": ["values", "id", "kind", "severity", "fieldId"]
                },
                {
                  "type": "object",
                  "properties": {
                    "minimum": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "maximum": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "const": "row_count"
                    },
                    "severity": {
                      "enum": ["error", "warning"],
                      "type": "string"
                    }
                  },
                  "required": ["minimum", "maximum", "id", "kind", "severity"]
                }
              ]
            },
            "maxItems": 250,
            "default": []
          }
        },
        "required": [
          "name",
          "source",
          "mapping",
          "updatePolicy",
          "retentionPolicy",
          "maximumRows",
          "maximumBytes",
          "malformedRowPolicy"
        ],
        "additionalProperties": false
      },
      "postV2MetricsImportsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "importedDatasetId": {
                "type": "string"
              },
              "importedDatasetVersionId": {
                "type": "string"
              },
              "mappingId": {
                "type": "string"
              },
              "mappingVersionId": {
                "type": "string"
              },
              "updatePolicyId": {
                "type": "string"
              },
              "updatePolicyVersionId": {
                "type": "string"
              },
              "retentionPolicyId": {
                "type": "string"
              },
              "retentionPolicyVersionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "importedDatasetId",
              "importedDatasetVersionId",
              "mappingId",
              "mappingVersionId",
              "updatePolicyId",
              "updatePolicyVersionId",
              "retentionPolicyId",
              "retentionPolicyVersionId",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "importedDatasetId": {
                "type": "string"
              },
              "importedDatasetVersionId": {
                "type": "string"
              },
              "mappingId": {
                "type": "string"
              },
              "mappingVersionId": {
                "type": "string"
              },
              "updatePolicyId": {
                "type": "string"
              },
              "updatePolicyVersionId": {
                "type": "string"
              },
              "retentionPolicyId": {
                "type": "string"
              },
              "retentionPolicyVersionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "importedDatasetId",
              "importedDatasetVersionId",
              "mappingId",
              "mappingVersionId",
              "updatePolicyId",
              "updatePolicyVersionId",
              "retentionPolicyId",
              "retentionPolicyVersionId",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsIntegrationClientsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "looker_studio",
                    "power_bi",
                    "qlik",
                    "azure_data_factory",
                    "alteryx",
                    "n8n",
                    "tableau",
                    "generic_rest"
                  ],
                  "type": "string"
                },
                "category": {
                  "enum": ["business_intelligence", "data_pipeline", "automation", "api"],
                  "type": "string"
                },
                "availability": {
                  "enum": ["request_only", "source_available", "documented_api"],
                  "type": "string"
                },
                "marketplaceState": {
                  "enum": [
                    "published",
                    "not_applicable",
                    "unpackaged",
                    "publisher_verification_required",
                    "certification_required"
                  ],
                  "type": "string"
                },
                "authentication": {
                  "enum": ["service_account_key", "client_session"],
                  "type": "string"
                },
                "supportedJourneys": {
                  "type": "array",
                  "items": {
                    "enum": [
                      "schedule",
                      "parameters",
                      "refresh",
                      "saved_queries",
                      "share",
                      "repair",
                      "revoke",
                      "templates",
                      "images"
                    ],
                    "type": "string"
                  }
                },
                "documentationPath": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "kind",
                "category",
                "availability",
                "marketplaceState",
                "authentication",
                "supportedJourneys",
                "documentationPath"
              ]
            }
          }
        },
        "required": ["data"]
      },
      "postV2MetricsMcpRequest": {
        "type": "object",
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "method": {
            "enum": ["initialize", "tools/list", "tools/call"],
            "type": "string"
          },
          "params": {
            "type": "object",
            "properties": {},
            "additionalProperties": {}
          },
          "id": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          }
        },
        "required": ["jsonrpc", "method"],
        "additionalProperties": false
      },
      "postV2MetricsMcpResponse200": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "jsonrpc": {
                    "type": "string"
                  },
                  "id": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "result": {
                    "type": "object",
                    "properties": {
                      "protocolVersion": {
                        "type": "string"
                      },
                      "capabilities": {
                        "type": "object",
                        "properties": {
                          "tools": {
                            "type": "object",
                            "properties": {
                              "listChanged": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              }
                            },
                            "required": ["listChanged"]
                          }
                        },
                        "required": ["tools"]
                      },
                      "serverInfo": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": ["name", "version"]
                      }
                    },
                    "required": ["protocolVersion", "capabilities", "serverInfo"]
                  }
                },
                "required": ["jsonrpc", "id", "result"]
              },
              {
                "type": "object",
                "properties": {
                  "jsonrpc": {
                    "type": "string"
                  },
                  "id": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "result": {
                    "type": "object",
                    "properties": {
                      "tools": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "const": "metrics_list_queries"
                            },
                            "description": {
                              "type": "string",
                              "const": "List visible, saved Metrics queries and their immutable published versions."
                            },
                            "inputSchema": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "const": "object"
                                },
                                "additionalProperties": {
                                  "type": "boolean",
                                  "const": false
                                },
                                "properties": {
                                  "type": "object",
                                  "properties": {}
                                }
                              },
                              "required": ["type", "additionalProperties", "properties"]
                            }
                          },
                          "required": ["name", "description", "inputSchema"]
                        }
                      }
                    },
                    "required": ["tools"]
                  }
                },
                "required": ["jsonrpc", "id", "result"]
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "type": "string"
              },
              "id": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "result": {
                "type": "object",
                "properties": {
                  "content": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        }
                      },
                      "required": ["type", "text"]
                    }
                  },
                  "structuredContent": {
                    "type": "object",
                    "properties": {
                      "data": {}
                    },
                    "required": ["data"]
                  },
                  "isError": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  }
                },
                "required": ["content", "structuredContent", "isError"]
              }
            },
            "required": ["jsonrpc", "id", "result"]
          }
        ]
      },
      "getV2MetricsOperationsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "progress": {
                  "type": "object",
                  "properties": {
                    "requestId": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "runId": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "planVersion": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "historicalRange": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  "required": ["requestId", "runId", "planVersion", "historicalRange"]
                },
                "result": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "runId": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "warningCount": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": ["runId", "warningCount"]
                    }
                  ]
                },
                "cancelRequestedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "startedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "finishedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "action": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "resourceType": {
                  "type": "string"
                },
                "resourceId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "resourceVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "errorCode": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "progress",
                "result",
                "cancelRequestedAt",
                "startedAt",
                "finishedAt",
                "createdAt",
                "id",
                "action",
                "status",
                "resourceType",
                "resourceId",
                "resourceVersionId",
                "errorCode"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsOperationsRequest": {
        "type": "object",
        "properties": {
          "target": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "query"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "query_candidate"
                  },
                  "definition": {
                    "type": "object",
                    "properties": {
                      "sort": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fieldId": {
                              "type": "string"
                            },
                            "direction": {
                              "enum": ["ascending", "descending"],
                              "type": "string"
                            },
                            "nulls": {
                              "enum": ["first", "last"],
                              "type": "string"
                            }
                          },
                          "required": ["fieldId", "direction", "nulls"]
                        }
                      },
                      "filter": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "condition"
                              },
                              "fieldId": {
                                "type": "string"
                              },
                              "operator": {
                                "enum": [
                                  "equals",
                                  "not_equals",
                                  "contains",
                                  "greater_than",
                                  "less_than",
                                  "in",
                                  "between",
                                  "is_null",
                                  "is_not_null",
                                  "not_in",
                                  "not_contains",
                                  "starts_with",
                                  "ends_with",
                                  "regex",
                                  "not_regex",
                                  "greater_than_or_equal",
                                  "less_than_or_equal"
                                ],
                                "type": "string"
                              },
                              "value": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  },
                                  {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ContractType54286"
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {},
                                    "additionalProperties": {
                                      "$ref": "#/components/schemas/ContractType54286"
                                    }
                                  }
                                ]
                              },
                              "execution": {
                                "enum": [
                                  "pushdown_required",
                                  "pushdown_preferred",
                                  "platform_allowed"
                                ],
                                "type": "string"
                              }
                            },
                            "required": ["kind", "fieldId", "operator", "value", "execution"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "group"
                              },
                              "conjunction": {
                                "enum": ["and", "or"],
                                "type": "string"
                              },
                              "children": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "condition"
                                        },
                                        "fieldId": {
                                          "type": "string"
                                        },
                                        "operator": {
                                          "enum": [
                                            "equals",
                                            "not_equals",
                                            "contains",
                                            "greater_than",
                                            "less_than",
                                            "in",
                                            "between",
                                            "is_null",
                                            "is_not_null",
                                            "not_in",
                                            "not_contains",
                                            "starts_with",
                                            "ends_with",
                                            "regex",
                                            "not_regex",
                                            "greater_than_or_equal",
                                            "less_than_or_equal"
                                          ],
                                          "type": "string"
                                        },
                                        "value": {
                                          "anyOf": [
                                            {
                                              "type": "null"
                                            },
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean",
                                              "const": false
                                            },
                                            {
                                              "type": "boolean",
                                              "const": true
                                            },
                                            {
                                              "type": "array",
                                              "items": {
                                                "$ref": "#/components/schemas/ContractType54286"
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {},
                                              "additionalProperties": {
                                                "$ref": "#/components/schemas/ContractType54286"
                                              }
                                            }
                                          ]
                                        },
                                        "execution": {
                                          "enum": [
                                            "pushdown_required",
                                            "pushdown_preferred",
                                            "platform_allowed"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "fieldId",
                                        "operator",
                                        "value",
                                        "execution"
                                      ]
                                    },
                                    {
                                      "$ref": "#/components/schemas/ContractType94867"
                                    }
                                  ]
                                }
                              }
                            },
                            "required": ["kind", "conjunction", "children"]
                          }
                        ]
                      },
                      "connectorKey": {
                        "type": "string"
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 2
                      },
                      "currency": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "alias": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "role": {
                              "enum": ["metric", "dimension", "identifier", "attribute"],
                              "type": "string"
                            },
                            "fieldId": {
                              "type": "string"
                            },
                            "aggregation": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string",
                                  "const": "minimum"
                                },
                                {
                                  "type": "string",
                                  "const": "maximum"
                                },
                                {
                                  "type": "string",
                                  "const": "count"
                                },
                                {
                                  "type": "string",
                                  "const": "none"
                                },
                                {
                                  "type": "string",
                                  "const": "sum"
                                },
                                {
                                  "type": "string",
                                  "const": "average"
                                },
                                {
                                  "type": "string",
                                  "const": "count_distinct"
                                },
                                {
                                  "type": "string",
                                  "const": "provider_default"
                                }
                              ]
                            },
                            "outputPosition": {
                              "type": "number"
                            }
                          },
                          "required": ["alias", "role", "fieldId", "aggregation", "outputPosition"]
                        }
                      },
                      "comparison": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "enum": ["custom", "previous_period", "previous_year"],
                                "type": "string"
                              },
                              "enabled": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              },
                              "customRange": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "absolute"
                                      },
                                      "start": {
                                        "type": "string"
                                      },
                                      "end": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "start", "end"]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "relative"
                                      },
                                      "count": {
                                        "type": "number"
                                      },
                                      "unit": {
                                        "enum": ["day", "week", "month", "quarter", "year"],
                                        "type": "string"
                                      },
                                      "offset": {
                                        "type": "number"
                                      },
                                      "includeCurrent": {
                                        "anyOf": [
                                          {
                                            "type": "boolean",
                                            "const": false
                                          },
                                          {
                                            "type": "boolean",
                                            "const": true
                                          }
                                        ]
                                      }
                                    },
                                    "required": ["kind", "count", "unit"]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "rolling"
                                      },
                                      "count": {
                                        "type": "number"
                                      },
                                      "unit": {
                                        "enum": ["hour", "day", "week", "month"],
                                        "type": "string"
                                      },
                                      "lag": {
                                        "type": "number"
                                      }
                                    },
                                    "required": ["kind", "count", "unit"]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "incremental"
                                      },
                                      "unit": {
                                        "enum": ["hour", "day"],
                                        "type": "string"
                                      },
                                      "cursorFieldId": {
                                        "type": "string"
                                      },
                                      "initialStart": {
                                        "type": "string"
                                      },
                                      "lookbackUnits": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "unit",
                                      "cursorFieldId",
                                      "initialStart",
                                      "lookbackUnits"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": ["mode", "enabled", "customRange"]
                          }
                        ]
                      },
                      "pivot": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "rowFieldIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "columnFieldIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "valueFieldIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "includeRowTotals": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              },
                              "includeColumnTotals": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              },
                              "emptyValue": {
                                "enum": ["null", "zero"],
                                "type": "string"
                              }
                            },
                            "required": [
                              "rowFieldIds",
                              "columnFieldIds",
                              "valueFieldIds",
                              "includeRowTotals",
                              "includeColumnTotals",
                              "emptyValue"
                            ]
                          }
                        ]
                      },
                      "queryType": {
                        "type": "string"
                      },
                      "timeZone": {
                        "type": "string"
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "pageSize": {
                            "type": "number"
                          },
                          "maximumPages": {
                            "type": "number"
                          }
                        },
                        "required": ["pageSize", "maximumPages"]
                      },
                      "locale": {
                        "type": "string"
                      },
                      "accountSelector": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "accounts"
                              },
                              "sourceAccountIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": ["kind", "sourceAccountIds"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "account_tags"
                              },
                              "accountTagIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": ["kind", "accountTagIds"]
                          }
                        ]
                      },
                      "customFieldVersionIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "dateRange": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "absolute"
                              },
                              "start": {
                                "type": "string"
                              },
                              "end": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "start", "end"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "relative"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["day", "week", "month", "quarter", "year"],
                                "type": "string"
                              },
                              "offset": {
                                "type": "number"
                              },
                              "includeCurrent": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rolling"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["hour", "day", "week", "month"],
                                "type": "string"
                              },
                              "lag": {
                                "type": "number"
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "incremental"
                              },
                              "unit": {
                                "enum": ["hour", "day"],
                                "type": "string"
                              },
                              "cursorFieldId": {
                                "type": "string"
                              },
                              "initialStart": {
                                "type": "string"
                              },
                              "lookbackUnits": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "unit",
                              "cursorFieldId",
                              "initialStart",
                              "lookbackUnits"
                            ]
                          }
                        ]
                      },
                      "rowLimit": {
                        "type": "number"
                      },
                      "sample": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRows": {
                            "type": "number"
                          }
                        },
                        "required": ["enabled", "maximumRows"]
                      },
                      "connectorOptions": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": {}
                      },
                      "requiredCapabilities": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "parameters": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "target": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "date_range_start"
                                    }
                                  },
                                  "required": ["kind"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "date_range_end"
                                    }
                                  },
                                  "required": ["kind"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "filter_value"
                                    },
                                    "fieldId": {
                                      "type": "string"
                                    },
                                    "occurrence": {
                                      "type": "number"
                                    }
                                  },
                                  "required": ["kind", "fieldId"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "connector_option"
                                    },
                                    "optionId": {
                                      "type": "string"
                                    }
                                  },
                                  "required": ["kind", "optionId"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "row_limit"
                                    }
                                  },
                                  "required": ["kind"]
                                }
                              ]
                            },
                            "defaultValue": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "required": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "id",
                            "description",
                            "target",
                            "defaultValue",
                            "valueType",
                            "required",
                            "allowViewerOverride"
                          ]
                        }
                      },
                      "includeSourceAccount": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    },
                    "required": [
                      "sort",
                      "filter",
                      "connectorKey",
                      "schemaVersion",
                      "currency",
                      "fields",
                      "comparison",
                      "pivot",
                      "queryType",
                      "timeZone",
                      "pagination",
                      "locale",
                      "accountSelector",
                      "customFieldVersionIds",
                      "dateRange",
                      "rowLimit",
                      "sample",
                      "connectorOptions",
                      "requiredCapabilities"
                    ]
                  },
                  "catalogSnapshotIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": ["resourceType", "definition", "catalogSnapshotIds"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "client_binding"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "blend"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "model"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "table_group"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "imported_dataset"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "destination"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "transfer"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "run"
                  },
                  "resourceId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "resourceId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "delivery"
                  },
                  "resourceId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "resourceId"]
              }
            ]
          },
          "action": {
            "enum": [
              "query_preview",
              "query_run",
              "client_refresh",
              "blend_materialize",
              "model_materialize",
              "table_group_materialize",
              "import_validate",
              "import_ingest",
              "transfer_refresh_now",
              "transfer_scheduled_refresh",
              "transfer_historical_load",
              "retry_failed_run",
              "replay_delivery",
              "validate_only",
              "schema_reconcile"
            ],
            "type": "string"
          },
          "historicalRange": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "sliceDays": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 366
                  },
                  "estimatedRequests": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "estimatedRows": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "integer",
                        "minimum": 0
                      }
                    ]
                  },
                  "estimatedCostMinorUnits": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "integer",
                        "minimum": 0
                      }
                    ]
                  }
                },
                "required": [
                  "start",
                  "end",
                  "sliceDays",
                  "estimatedRequests",
                  "estimatedRows",
                  "estimatedCostMinorUnits"
                ],
                "additionalProperties": false
              }
            ]
          },
          "initiator": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "query_candidate"
                  },
                  "queryCandidateId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "queryCandidateId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "query"
                  },
                  "queryVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "queryVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "blend"
                  },
                  "blendVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "blendVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "schedule_target"
                  },
                  "scheduleVersionId": {
                    "type": "string"
                  },
                  "scheduleTargetId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "scheduleVersionId", "scheduleTargetId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "client_binding"
                  },
                  "clientBindingVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "clientBindingVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "model"
                  },
                  "modelVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "modelVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "destination"
                  },
                  "destinationVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "destinationVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "table_group"
                  },
                  "tableGroupVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "tableGroupVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "transfer"
                  },
                  "transferVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "transferVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "imported_dataset"
                  },
                  "importedDatasetVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "importedDatasetVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "managed_dataset"
                  },
                  "managedDatasetVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "managedDatasetVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "activation"
                  },
                  "activationVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "activationVersionId"]
              }
            ]
          },
          "importRequest": {
            "type": "object",
            "properties": {
              "importedDatasetVersionId": {
                "type": "string"
              },
              "source": {
                "type": "object",
                "properties": {
                  "format": {
                    "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
                    "type": "string"
                  },
                  "originalFileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "contentType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "byteCount": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "sourceKind": {
                    "enum": ["manual_upload", "authenticated_file", "email_intake"],
                    "type": "string"
                  },
                  "senderReferenceHash": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    ]
                  },
                  "objectName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "objectGeneration": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "checksumSha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "receivedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "format",
                  "originalFileName",
                  "contentType",
                  "byteCount",
                  "sourceKind",
                  "senderReferenceHash",
                  "objectName",
                  "objectGeneration",
                  "checksumSha256",
                  "receivedAt"
                ],
                "additionalProperties": false
              },
              "sourceObjectId": {
                "type": "string"
              },
              "operationKind": {
                "enum": ["replace", "append", "validate", "incremental"],
                "type": "string"
              },
              "dryRun": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "mappingVersionId": {
                "type": "string"
              },
              "updatePolicyVersionId": {
                "type": "string"
              },
              "retentionPolicyVersionId": {
                "type": "string"
              },
              "expectedPreviousGeneration": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "importedDatasetVersionId",
              "source",
              "sourceObjectId",
              "operationKind",
              "dryRun",
              "mappingVersionId",
              "updatePolicyVersionId",
              "retentionPolicyVersionId",
              "expectedPreviousGeneration"
            ],
            "additionalProperties": false
          },
          "clientInvocation": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "clientBindingVersionId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "clientKind": {
                    "enum": [
                      "looker_studio",
                      "power_bi",
                      "qlik",
                      "azure_data_factory",
                      "alteryx",
                      "n8n",
                      "tableau",
                      "generic_rest"
                    ],
                    "type": "string"
                  },
                  "consumerReferenceHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "requestedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "parameterValues": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        },
                        {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        }
                      ]
                    }
                  },
                  "selectedFieldIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "maxItems": 250,
                    "default": []
                  }
                },
                "required": [
                  "clientBindingVersionId",
                  "clientKind",
                  "consumerReferenceHash",
                  "requestedAt"
                ],
                "additionalProperties": false
              }
            ],
            "default": null
          }
        },
        "required": ["target", "action", "historicalRange"],
        "additionalProperties": false
      },
      "postV2MetricsOperationsResponse202": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "operationId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "type": "string"
              }
            },
            "required": ["actorId", "operationId", "resourceId", "resourceVersionId", "status"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsQueriesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "catalogSnapshotIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "visibility": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "versionNumber": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "versionStatus": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "versionDocument": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  ]
                },
                "ownerActorId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "catalogSnapshotIds",
                "createdAt",
                "updatedAt",
                "name",
                "description",
                "visibility",
                "status",
                "currentVersionId",
                "versionNumber",
                "versionStatus",
                "versionDocument",
                "ownerActorId"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsQueriesRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "definition": {
            "type": "object",
            "properties": {
              "sort": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "direction": {
                      "enum": ["ascending", "descending"],
                      "type": "string"
                    },
                    "nulls": {
                      "enum": ["first", "last"],
                      "type": "string"
                    }
                  },
                  "required": ["fieldId", "direction", "nulls"],
                  "additionalProperties": false
                },
                "maxItems": 20
              },
              "filter": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "condition"
                      },
                      "fieldId": {
                        "type": "string"
                      },
                      "operator": {
                        "enum": [
                          "equals",
                          "not_equals",
                          "contains",
                          "greater_than",
                          "less_than",
                          "in",
                          "between",
                          "is_null",
                          "is_not_null",
                          "not_in",
                          "not_contains",
                          "starts_with",
                          "ends_with",
                          "regex",
                          "not_regex",
                          "greater_than_or_equal",
                          "less_than_or_equal"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          },
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          },
                          {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          }
                        ]
                      },
                      "execution": {
                        "enum": ["pushdown_required", "pushdown_preferred", "platform_allowed"],
                        "type": "string"
                      }
                    },
                    "required": ["kind", "fieldId", "operator", "value", "execution"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "group"
                      },
                      "conjunction": {
                        "enum": ["and", "or"],
                        "type": "string"
                      },
                      "children": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "condition"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "operator": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "execution": {
                                  "enum": [
                                    "pushdown_required",
                                    "pushdown_preferred",
                                    "platform_allowed"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "fieldId", "operator", "value", "execution"]
                            },
                            {
                              "$ref": "#/components/schemas/ContractType94867"
                            }
                          ]
                        }
                      }
                    },
                    "required": ["kind", "conjunction", "children"]
                  }
                ]
              },
              "connectorKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96,
                "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
              },
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  }
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        }
                      ]
                    },
                    "role": {
                      "enum": ["metric", "dimension", "identifier", "attribute"],
                      "type": "string"
                    },
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "aggregation": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "const": "minimum"
                        },
                        {
                          "type": "string",
                          "const": "maximum"
                        },
                        {
                          "type": "string",
                          "const": "count"
                        },
                        {
                          "type": "string",
                          "const": "none"
                        },
                        {
                          "type": "string",
                          "const": "sum"
                        },
                        {
                          "type": "string",
                          "const": "average"
                        },
                        {
                          "type": "string",
                          "const": "count_distinct"
                        },
                        {
                          "type": "string",
                          "const": "provider_default"
                        }
                      ]
                    },
                    "outputPosition": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": ["alias", "role", "fieldId", "aggregation", "outputPosition"],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 250
              },
              "comparison": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["custom", "previous_period", "previous_year"],
                        "type": "string"
                      },
                      "enabled": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "customRange": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "absolute"
                              },
                              "start": {
                                "type": "string"
                              },
                              "end": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "start", "end"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "relative"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["day", "week", "month", "quarter", "year"],
                                "type": "string"
                              },
                              "offset": {
                                "type": "number"
                              },
                              "includeCurrent": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rolling"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["hour", "day", "week", "month"],
                                "type": "string"
                              },
                              "lag": {
                                "type": "number"
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "incremental"
                              },
                              "unit": {
                                "enum": ["hour", "day"],
                                "type": "string"
                              },
                              "cursorFieldId": {
                                "type": "string"
                              },
                              "initialStart": {
                                "type": "string"
                              },
                              "lookbackUnits": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "unit",
                              "cursorFieldId",
                              "initialStart",
                              "lookbackUnits"
                            ]
                          }
                        ]
                      }
                    },
                    "required": ["mode", "enabled", "customRange"],
                    "additionalProperties": false
                  }
                ]
              },
              "pivot": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "rowFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "columnFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 10
                      },
                      "valueFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "includeRowTotals": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "includeColumnTotals": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "emptyValue": {
                        "enum": ["null", "zero"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "rowFieldIds",
                      "columnFieldIds",
                      "valueFieldIds",
                      "includeRowTotals",
                      "includeColumnTotals",
                      "emptyValue"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "queryType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "pagination": {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  },
                  "maximumPages": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  }
                },
                "required": ["pageSize", "maximumPages"],
                "additionalProperties": false
              },
              "locale": {
                "type": "string",
                "minLength": 2,
                "maxLength": 35
              },
              "accountSelector": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "accounts"
                      },
                      "sourceAccountIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": ["kind", "sourceAccountIds"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "account_tags"
                      },
                      "accountTagIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": ["kind", "accountTagIds"]
                  }
                ]
              },
              "customFieldVersionIds": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 100
              },
              "dateRange": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "absolute"
                      },
                      "start": {
                        "type": "string"
                      },
                      "end": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "start", "end"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "relative"
                      },
                      "count": {
                        "type": "number"
                      },
                      "unit": {
                        "enum": ["day", "week", "month", "quarter", "year"],
                        "type": "string"
                      },
                      "offset": {
                        "type": "number"
                      },
                      "includeCurrent": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    },
                    "required": ["kind", "count", "unit"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "rolling"
                      },
                      "count": {
                        "type": "number"
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      },
                      "lag": {
                        "type": "number"
                      }
                    },
                    "required": ["kind", "count", "unit"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "incremental"
                      },
                      "unit": {
                        "enum": ["hour", "day"],
                        "type": "string"
                      },
                      "cursorFieldId": {
                        "type": "string"
                      },
                      "initialStart": {
                        "type": "string"
                      },
                      "lookbackUnits": {
                        "type": "number"
                      }
                    },
                    "required": ["kind", "unit", "cursorFieldId", "initialStart", "lookbackUnits"]
                  }
                ]
              },
              "rowLimit": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 100000000
              },
              "sample": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "maximumRows": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": ["enabled", "maximumRows"],
                "additionalProperties": false
              },
              "connectorOptions": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "requiredCapabilities": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "maxItems": 100
              },
              "parameters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "maxLength": 1000
                        }
                      ]
                    },
                    "target": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_start"
                            }
                          },
                          "required": ["kind"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_end"
                            }
                          },
                          "required": ["kind"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "filter_value"
                            },
                            "fieldId": {
                              "type": "string"
                            },
                            "occurrence": {
                              "type": "number"
                            }
                          },
                          "required": ["kind", "fieldId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "connector_option"
                            },
                            "optionId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "optionId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "row_limit"
                            }
                          },
                          "required": ["kind"]
                        }
                      ]
                    },
                    "defaultValue": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        },
                        {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        }
                      ]
                    },
                    "valueType": {
                      "enum": ["string", "number", "boolean", "date", "datetime"],
                      "type": "string"
                    },
                    "required": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "allowViewerOverride": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "id",
                    "description",
                    "target",
                    "defaultValue",
                    "valueType",
                    "required",
                    "allowViewerOverride"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100,
                "default": []
              },
              "includeSourceAccount": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ],
                "default": true
              }
            },
            "required": [
              "sort",
              "filter",
              "connectorKey",
              "schemaVersion",
              "currency",
              "fields",
              "comparison",
              "pivot",
              "queryType",
              "timeZone",
              "pagination",
              "locale",
              "accountSelector",
              "customFieldVersionIds",
              "dateRange",
              "rowLimit",
              "sample",
              "connectorOptions",
              "requiredCapabilities"
            ],
            "additionalProperties": false
          },
          "catalogSnapshotIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 500
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ],
            "default": null
          },
          "visibility": {
            "type": "string",
            "const": "workspace",
            "description": "Service-account resources must be visible to the workspace."
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          }
        },
        "required": ["name", "definition", "catalogSnapshotIds"],
        "additionalProperties": false
      },
      "postV2MetricsQueriesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "queryId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsQueriesResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "queryId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsSchedulesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "nextEvaluationAt": {
                  "type": "string"
                },
                "lastEvaluatedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "visibility": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "versionNumber": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "versionStatus": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "definition": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  ]
                },
                "consecutiveFailureCount": {
                  "type": "number"
                },
                "lastErrorCode": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "ownerActorId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "nextEvaluationAt",
                "lastEvaluatedAt",
                "createdAt",
                "updatedAt",
                "id",
                "name",
                "description",
                "visibility",
                "status",
                "currentVersionId",
                "versionNumber",
                "versionStatus",
                "definition",
                "consecutiveFailureCount",
                "lastErrorCode",
                "ownerActorId"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsSchedulesRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "definition": {
            "type": "object",
            "properties": {
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "recurrence": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "cron"
                      },
                      "expression": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "expression"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "every": {
                        "type": "number"
                      },
                      "hour": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "minute": {
                        "type": "number"
                      },
                      "kind": {
                        "type": "string",
                        "const": "interval"
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      },
                      "dayOfWeek": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "dayOfMonth": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "required": [
                      "every",
                      "hour",
                      "minute",
                      "kind",
                      "unit",
                      "dayOfWeek",
                      "dayOfMonth"
                    ]
                  }
                ]
              },
              "daylightSavingPolicy": {
                "enum": ["wall_clock", "fixed_utc"],
                "type": "string"
              },
              "overlapPolicy": {
                "enum": ["skip", "queue_one", "allow"],
                "type": "string"
              },
              "startsAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "endsAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "freshnessDelayMinutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10080
              },
              "failurePolicy": {
                "type": "object",
                "properties": {
                  "maximumAttempts": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  },
                  "backoff": {
                    "enum": ["fixed", "exponential"],
                    "type": "string"
                  },
                  "initialDelaySeconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 86400
                  },
                  "autoPauseAfterFailures": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      }
                    ]
                  }
                },
                "required": [
                  "maximumAttempts",
                  "backoff",
                  "initialDelaySeconds",
                  "autoPauseAfterFailures"
                ],
                "additionalProperties": false
              },
              "targets": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "queryVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_query"
                        },
                        "retainResult": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        }
                      },
                      "required": ["id", "queryVersionId", "position", "action", "retainResult"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_client_binding"
                        },
                        "clientBindingVersionId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "clientBindingVersionId"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "modelVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "materialize_model"
                        }
                      },
                      "required": ["id", "modelVersionId", "position", "action"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "tableGroupVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "materialize_table_group"
                        }
                      },
                      "required": ["id", "tableGroupVersionId", "position", "action"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_transfer"
                        },
                        "transferVersionId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "transferVersionId"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_report_dataset"
                        },
                        "reportDatasetBindingId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "reportDatasetBindingId"]
                    }
                  ]
                },
                "minItems": 1,
                "maxItems": 100
              },
              "notifications": {
                "type": "object",
                "properties": {
                  "onSuccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onFailure": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onAutoPause": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "targets": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "email"
                            },
                            "address": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "address"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "slack"
                            },
                            "destinationId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "destinationId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "microsoft_teams"
                            },
                            "destinationId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "destinationId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "webhook"
                            },
                            "webhookEndpointId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "webhookEndpointId"]
                        }
                      ]
                    },
                    "maxItems": 50
                  }
                },
                "required": ["onSuccess", "onFailure", "onAutoPause", "targets"],
                "additionalProperties": false
              }
            },
            "required": [
              "schemaVersion",
              "timeZone",
              "recurrence",
              "daylightSavingPolicy",
              "overlapPolicy",
              "startsAt",
              "endsAt",
              "freshnessDelayMinutes",
              "failurePolicy",
              "targets",
              "notifications"
            ],
            "additionalProperties": false
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ],
            "default": null
          },
          "visibility": {
            "type": "string",
            "const": "workspace",
            "description": "Service-account resources must be visible to the workspace."
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          }
        },
        "required": ["name", "definition"],
        "additionalProperties": false
      },
      "postV2MetricsSchedulesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              },
              "nextEvaluationAt": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "scheduleId",
              "versionId",
              "versionNumber",
              "versionStatus",
              "nextEvaluationAt"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsSchedulesResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              },
              "nextEvaluationAt": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "scheduleId",
              "versionId",
              "versionNumber",
              "versionStatus",
              "nextEvaluationAt"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsTemplatesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "suggested": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                },
                "connectorKey": {
                  "type": "string"
                },
                "fields": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "role": {
                        "enum": ["metric", "dimension"],
                        "type": "string"
                      },
                      "fieldId": {
                        "type": "string"
                      }
                    },
                    "required": ["role", "fieldId"]
                  }
                },
                "queryType": {
                  "type": "string"
                },
                "dateRangeDays": {
                  "type": "number"
                },
                "outputMode": {
                  "enum": ["replace", "append", "incremental", "combine"],
                  "type": "string"
                }
              },
              "required": [
                "name",
                "id",
                "description",
                "suggested",
                "connectorKey",
                "fields",
                "queryType",
                "dateRangeDays",
                "outputMode"
              ]
            }
          }
        },
        "required": ["data"]
      },
      "getV2MetricsTransfersResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "workingVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "versionNumber": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "versionStatus": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "definition": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  ]
                },
                "publishedDefinition": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  ]
                },
                "ownerActorId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "schedules": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "nextEvaluationAt": {
                        "type": "string"
                      }
                    },
                    "required": ["id", "name", "status", "nextEvaluationAt"]
                  }
                },
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "visibility": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "workingVersionId",
                "versionNumber",
                "versionStatus",
                "definition",
                "publishedDefinition",
                "ownerActorId",
                "createdAt",
                "updatedAt",
                "schedules",
                "id",
                "name",
                "description",
                "visibility",
                "status",
                "currentVersionId"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsTransfersRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "definition": {
            "type": "object",
            "properties": {
              "input": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "query"
                      },
                      "queryVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "queryVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "blend"
                      },
                      "blendVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "blendVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "model"
                      },
                      "modelVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "modelVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "table_group"
                      },
                      "tableGroupVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "tableGroupVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "imported_dataset"
                      },
                      "importedDatasetVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "importedDatasetVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "managed_dataset"
                      },
                      "managedDatasetVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "managedDatasetVersionId"]
                  }
                ]
              },
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "retentionDays": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 3650
                  }
                ]
              },
              "keyFieldIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "maxItems": 50
              },
              "destinationVersionId": {
                "type": "string"
              },
              "writeMode": {
                "enum": [
                  "replace",
                  "append",
                  "upsert",
                  "rolling_window",
                  "single_day_snapshot",
                  "historical_snapshot",
                  "rolling_historical_snapshot"
                ],
                "type": "string"
              },
              "schemaPolicy": {
                "enum": ["locked", "additive", "reconcile"],
                "type": "string"
              },
              "partitionFieldIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "maxItems": 20
              },
              "lookbackWindow": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "count": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 10000
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      }
                    },
                    "required": ["count", "unit"],
                    "additionalProperties": false
                  }
                ]
              },
              "notificationPolicy": {
                "type": "object",
                "properties": {
                  "onSuccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onFailure": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onSchemaDrift": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  }
                },
                "required": ["onSuccess", "onFailure", "onSchemaDrift"],
                "additionalProperties": false
              },
              "target": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "tableTargets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "tableId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "target": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    }
                  },
                  "required": ["tableId", "target"],
                  "additionalProperties": false
                },
                "maxItems": 100,
                "default": []
              }
            },
            "required": [
              "input",
              "schemaVersion",
              "retentionDays",
              "keyFieldIds",
              "destinationVersionId",
              "writeMode",
              "schemaPolicy",
              "partitionFieldIds",
              "lookbackWindow",
              "notificationPolicy"
            ],
            "additionalProperties": false
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ],
            "default": null
          },
          "visibility": {
            "type": "string",
            "const": "workspace",
            "description": "Service-account resources must be visible to the workspace."
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          }
        },
        "required": ["name", "definition"],
        "additionalProperties": false
      },
      "postV2MetricsTransfersResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "transferId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "transferId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsTransfersResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "transferId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "transferId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsUsageResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "limits": {
                "type": "object",
                "properties": {
                  "maximumRowsPerRun": {
                    "type": "number"
                  },
                  "maximumBytesPerRun": {
                    "type": "number"
                  },
                  "maximumProviderRequestsPerRun": {
                    "type": "number"
                  },
                  "maximumPlatformTransformRows": {
                    "type": "number"
                  },
                  "maximumConcurrentRuns": {
                    "type": "number"
                  },
                  "minimumScheduleIntervalMinutes": {
                    "type": "number"
                  },
                  "maximumSchedules": {
                    "type": "number"
                  },
                  "maximumTransfers": {
                    "type": "number"
                  },
                  "maximumStoredBytes": {
                    "type": "number"
                  },
                  "maximumMonthlyProviderRequests": {
                    "type": "number"
                  },
                  "maximumMonthlyRuns": {
                    "type": "number"
                  },
                  "maximumMonthlyRows": {
                    "type": "number"
                  },
                  "maximumMonthlyArtifactBytes": {
                    "type": "number"
                  },
                  "maximumMonthlyTransferredBytes": {
                    "type": "number"
                  },
                  "warningAtPercent": {
                    "type": "number"
                  },
                  "hardStopAtPercent": {
                    "type": "number"
                  }
                },
                "required": [
                  "maximumRowsPerRun",
                  "maximumBytesPerRun",
                  "maximumProviderRequestsPerRun",
                  "maximumPlatformTransformRows",
                  "maximumConcurrentRuns",
                  "minimumScheduleIntervalMinutes",
                  "maximumSchedules",
                  "maximumTransfers",
                  "maximumStoredBytes",
                  "maximumMonthlyProviderRequests",
                  "maximumMonthlyRuns",
                  "maximumMonthlyRows",
                  "maximumMonthlyArtifactBytes",
                  "maximumMonthlyTransferredBytes",
                  "warningAtPercent",
                  "hardStopAtPercent"
                ]
              },
              "usage": {
                "type": "object",
                "properties": {
                  "month": {
                    "type": "string"
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "category": {
                          "type": "string"
                        },
                        "unit": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "string"
                        }
                      },
                      "required": ["category", "unit", "quantity"]
                    }
                  }
                },
                "required": ["month", "categories"]
              }
            },
            "required": ["limits", "usage"]
          }
        },
        "required": ["data"]
      },
      "getV2MetricsWebhooksResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "url": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "eventTypes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "signingSecretVersion": {
                  "type": "number"
                },
                "revision": {
                  "type": "number"
                },
                "lastDeliveryAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "disabledAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "description",
                "url",
                "status",
                "eventTypes",
                "signingSecretVersion",
                "revision",
                "lastDeliveryAt",
                "disabledAt",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsWebhooksRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 3,
            "maxLength": 120
          },
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048
          },
          "eventTypes": {
            "type": "array",
            "items": {
              "enum": [
                "metrics.query.created",
                "metrics.query.version_created",
                "metrics.query.published",
                "metrics.schedule.created",
                "metrics.schedule.version_created",
                "metrics.schedule.published",
                "metrics.schedule.paused",
                "metrics.schedule.resumed",
                "metrics.transfer.created",
                "metrics.transfer.version_created",
                "metrics.transfer.published",
                "metrics.transfer.paused",
                "metrics.transfer.resumed",
                "metrics.operation.accepted",
                "metrics.operation.cancel_requested",
                "metrics.operation.retried",
                "metrics.run.succeeded",
                "metrics.run.failed"
              ],
              "type": "string"
            },
            "minItems": 1
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 2000
              }
            ],
            "default": null
          }
        },
        "required": ["name", "url", "eventTypes"],
        "additionalProperties": false
      },
      "postV2MetricsWebhooksResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "endpoint": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "eventTypes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "signingSecretVersion": {
                    "type": "number"
                  },
                  "revision": {
                    "type": "number"
                  },
                  "lastDeliveryAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "disabledAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "description",
                  "url",
                  "status",
                  "eventTypes",
                  "signingSecretVersion",
                  "revision",
                  "lastDeliveryAt",
                  "disabledAt",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "signingSecret": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "secretState": {
                "type": "string"
              }
            },
            "required": ["endpoint", "signingSecret", "secretState"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsWebhooksResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "endpoint": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "eventTypes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "signingSecretVersion": {
                    "type": "number"
                  },
                  "revision": {
                    "type": "number"
                  },
                  "lastDeliveryAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "disabledAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "description",
                  "url",
                  "status",
                  "eventTypes",
                  "signingSecretVersion",
                  "revision",
                  "lastDeliveryAt",
                  "disabledAt",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "signingSecret": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "secretState": {
                "type": "string"
              }
            },
            "required": ["endpoint", "signingSecret", "secretState"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2PersonasIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "occupation": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "type": "string",
                "const": "active"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "occupation",
              "description",
              "status",
              "createdAt",
              "updatedAt"
            ]
          }
        },
        "required": ["data"]
      },
      "putV2PersonasIdRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "occupation": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ]
          }
        },
        "required": ["name", "occupation"]
      },
      "putV2PersonasIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "occupation": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "type": "string",
                "const": "active"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "occupation",
              "description",
              "status",
              "createdAt",
              "updatedAt"
            ]
          }
        },
        "required": ["data"]
      },
      "getV2PromptsIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "promptText": {
                "type": "string"
              },
              "status": {
                "enum": ["active", "inactive", "archived"],
                "type": "string"
              },
              "resultSyncStatus": {
                "type": "string"
              },
              "tagIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "personaIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "personaCount": {
                "type": "number"
              },
              "targetPlatforms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "targetRegions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "schedule": {
                "type": "object",
                "properties": {
                  "frequency": {
                    "type": "string"
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "hour": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "minute": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "intervalMinutes": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "daysOfWeek": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    ]
                  }
                },
                "required": [
                  "frequency",
                  "timezone",
                  "hour",
                  "minute",
                  "intervalMinutes",
                  "daysOfWeek"
                ]
              },
              "nextRunAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "lastRunAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "createdAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "updatedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "analysisPolicy": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "ranking": {
                    "type": "string",
                    "enum": ["auto", "always", "never"]
                  },
                  "sentiment": {
                    "type": "string",
                    "enum": ["auto", "always", "never"]
                  }
                },
                "description": "Choose automatic, always-on or disabled ranking and sentiment analysis. Null restores the default policy."
              }
            },
            "required": [
              "id",
              "title",
              "description",
              "promptText",
              "status",
              "resultSyncStatus",
              "tagIds",
              "personaIds",
              "personaCount",
              "targetPlatforms",
              "targetRegions",
              "schedule",
              "nextRunAt",
              "lastRunAt",
              "createdAt",
              "updatedAt"
            ]
          }
        },
        "required": ["data"]
      },
      "putV2PromptsIdRequest": {
        "type": "object",
        "properties": {
          "promptText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 399,
            "description": "Leading and trailing whitespace is removed before validation."
          },
          "schedule": {
            "type": "object",
            "properties": {
              "frequency": {
                "enum": ["manual", "daily", "weekly"],
                "default": "daily",
                "type": "string"
              },
              "timezone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "default": "UTC"
              },
              "hour": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 23
                  }
                ]
              },
              "minute": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 59
                  }
                ]
              },
              "daysOfWeek": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    },
                    "maxItems": 7
                  }
                ]
              }
            },
            "description": "Weekly schedules require at least one day (0 is Sunday). Non-weekly schedules must omit daysOfWeek or use null or an empty array.",
            "allOf": [
              {
                "if": {
                  "properties": {
                    "frequency": {
                      "const": "weekly"
                    }
                  },
                  "required": ["frequency"]
                },
                "then": {
                  "required": ["daysOfWeek"],
                  "properties": {
                    "daysOfWeek": {
                      "type": "array",
                      "minItems": 1
                    }
                  }
                },
                "else": {
                  "properties": {
                    "daysOfWeek": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "array",
                          "maxItems": 0
                        }
                      ]
                    }
                  }
                }
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ]
          },
          "personaIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "maxItems": 50
          },
          "targetPlatforms": {
            "type": "array",
            "items": {
              "enum": ["chatgpt", "ai_overview", "ai_mode", "gemini", "perplexity", "claude"],
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 6
          },
          "targetRegions": {
            "type": "array",
            "items": {
              "enum": [
                "United States",
                "Canada",
                "Brazil",
                "Mexico",
                "United Kingdom",
                "Germany",
                "France",
                "Spain",
                "Italy",
                "Netherlands",
                "India",
                "South Korea",
                "Japan",
                "Australia",
                "Singapore",
                "Switzerland",
                "United Arab Emirates",
                "Saudi Arabia",
                "Poland"
              ],
              "type": "string"
            },
            "minItems": 1
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "maxItems": 50
          },
          "analysisPolicy": {
            "type": "object",
            "nullable": true,
            "properties": {
              "ranking": {
                "type": "string",
                "enum": ["auto", "always", "never"]
              },
              "sentiment": {
                "type": "string",
                "enum": ["auto", "always", "never"]
              }
            },
            "description": "Choose automatic, always-on or disabled ranking and sentiment analysis. Null restores the default policy."
          }
        },
        "required": ["promptText"]
      },
      "putV2PromptsIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "promptText": {
                "type": "string"
              },
              "status": {
                "enum": ["active", "inactive", "archived"],
                "type": "string"
              },
              "resultSyncStatus": {
                "type": "string"
              },
              "tagIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "personaIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "personaCount": {
                "type": "number"
              },
              "targetPlatforms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "targetRegions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "schedule": {
                "type": "object",
                "properties": {
                  "frequency": {
                    "type": "string"
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "hour": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "minute": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "intervalMinutes": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "daysOfWeek": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    ]
                  }
                },
                "required": [
                  "frequency",
                  "timezone",
                  "hour",
                  "minute",
                  "intervalMinutes",
                  "daysOfWeek"
                ]
              },
              "nextRunAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "lastRunAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "createdAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "updatedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "analysisPolicy": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "ranking": {
                    "type": "string",
                    "enum": ["auto", "always", "never"]
                  },
                  "sentiment": {
                    "type": "string",
                    "enum": ["auto", "always", "never"]
                  }
                },
                "description": "Choose automatic, always-on or disabled ranking and sentiment analysis. Null restores the default policy."
              }
            },
            "required": [
              "id",
              "title",
              "description",
              "promptText",
              "status",
              "resultSyncStatus",
              "tagIds",
              "personaIds",
              "personaCount",
              "targetPlatforms",
              "targetRegions",
              "schedule",
              "nextRunAt",
              "lastRunAt",
              "createdAt",
              "updatedAt"
            ]
          }
        },
        "required": ["data"]
      },
      "patchV2PromptsActivateRequest": {
        "type": "object",
        "required": ["ids"],
        "properties": {
          "ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 200,
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        }
      },
      "patchV2PromptsActivateResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "object",
            "required": ["success", "affectedCount", "message"],
            "properties": {
              "success": {
                "type": "boolean"
              },
              "affectedCount": {
                "type": "integer"
              },
              "message": {
                "type": "null"
              }
            }
          }
        }
      },
      "postV2PromptsBulkRequest": {
        "type": "object",
        "properties": {
          "prompts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "promptText": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 399
                },
                "schedule": {
                  "type": "object",
                  "properties": {
                    "frequency": {
                      "enum": ["manual", "daily", "weekly"],
                      "default": "daily",
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "default": "UTC"
                    },
                    "hour": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 23
                        }
                      ]
                    },
                    "minute": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 59
                        }
                      ]
                    },
                    "daysOfWeek": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 6
                          },
                          "maxItems": 7
                        }
                      ]
                    }
                  }
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string",
                      "maxLength": 4000
                    }
                  ]
                },
                "personaIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  },
                  "maxItems": 50
                },
                "targetPlatforms": {
                  "type": "array",
                  "items": {
                    "enum": ["chatgpt", "ai_overview", "ai_mode", "gemini", "perplexity", "claude"],
                    "type": "string"
                  },
                  "minItems": 1
                },
                "targetRegions": {
                  "type": "array",
                  "items": {
                    "enum": [
                      "United States",
                      "Canada",
                      "Brazil",
                      "Mexico",
                      "United Kingdom",
                      "Germany",
                      "France",
                      "Spain",
                      "Italy",
                      "Netherlands",
                      "India",
                      "South Korea",
                      "Japan",
                      "Australia",
                      "Singapore",
                      "Switzerland",
                      "United Arab Emirates",
                      "Saudi Arabia",
                      "Poland"
                    ],
                    "type": "string"
                  },
                  "minItems": 1
                },
                "tagIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  },
                  "maxItems": 50
                },
                "analysisPolicy": {
                  "type": "object",
                  "nullable": true,
                  "properties": {
                    "ranking": {
                      "type": "string",
                      "enum": ["auto", "always", "never"]
                    },
                    "sentiment": {
                      "type": "string",
                      "enum": ["auto", "always", "never"]
                    }
                  },
                  "description": "Choose automatic, always-on or disabled ranking and sentiment analysis. Null restores the default policy."
                }
              },
              "required": ["promptText"]
            },
            "minItems": 1,
            "maxItems": 50
          }
        },
        "required": ["prompts"]
      },
      "postV2PromptsBulkResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "success": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "affectedCount": {
                "type": "number"
              },
              "message": {
                "type": "null"
              }
            },
            "required": ["success", "affectedCount", "message"]
          }
        },
        "required": ["data"]
      },
      "deleteV2PromptsBulkRequest": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1,
            "maxItems": 200
          }
        },
        "required": ["ids"]
      },
      "deleteV2PromptsBulkResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "success": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "affectedCount": {
                "type": "number"
              },
              "message": {
                "type": "null"
              }
            },
            "required": ["success", "affectedCount", "message"]
          }
        },
        "required": ["data"]
      },
      "patchV2PromptsDeactivateRequest": {
        "type": "object",
        "required": ["ids"],
        "properties": {
          "ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 200,
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        }
      },
      "patchV2PromptsDeactivateResponse200": {
        "type": "object",
        "required": ["data"],
        "properties": {
          "data": {
            "type": "object",
            "required": ["success", "affectedCount", "message"],
            "properties": {
              "success": {
                "type": "boolean"
              },
              "affectedCount": {
                "type": "integer"
              },
              "message": {
                "type": "null"
              }
            }
          }
        }
      },
      "getV2ResponsesIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "promptId": {
                "type": "string"
              },
              "promptTitle": {
                "type": "string"
              },
              "model": {
                "type": "string"
              },
              "platform": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "trigger": {
                "type": "string"
              },
              "analysisStatus": {
                "type": "string"
              },
              "startedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ],
                "deprecated": true,
                "description": "Reserved nullable field; always null. Use the answer creation and completion timestamps to follow its status."
              },
              "completedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "errorReason": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ],
                "description": "A stable product-facing failure message, or null. Answer collection failed. indicates collection failure; Answer analysis failed. indicates analysis failure. Never contains provider diagnostics."
              },
              "contentExcerpt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "sentiment": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "citationCount": {
                "type": "number"
              },
              "occurredAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "answerText": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "citations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Exact observed citation URL; raw-address grouping remains for compatibility."
                    },
                    "cleanPageUrl": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Validated tracking-clean navigation address; null when invalid."
                    },
                    "cleanPageKey": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Tracking-clean page identity; functional query variants remain distinct."
                    },
                    "count": {
                      "type": "number"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": ["url", "count", "title"]
                }
              },
              "competitors": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "commerce": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "extractionStatus": {
                        "enum": ["complete", "invalid_payload", "unsupported"],
                        "type": "string"
                      },
                      "shoppingProductCount": {
                        "type": "number"
                      },
                      "sponsoredAdCount": {
                        "type": "number"
                      },
                      "observedAt": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "placements": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "price": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "number"
                                }
                              ]
                            },
                            "rating": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "number"
                                }
                              ]
                            },
                            "id": {
                              "type": "number"
                            },
                            "kind": {
                              "enum": ["shopping_product", "sponsored_ad"],
                              "type": "string"
                            },
                            "position": {
                              "type": "number"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "targetUrl": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "targetDomain": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "priceDisplay": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "advertiserName": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "advertiserUrl": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "advertiserDomain": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "matchKind": {
                              "enum": [
                                "unmatched",
                                "workspace_brand",
                                "competitor",
                                "catalog_product"
                              ],
                              "type": "string"
                            },
                            "isOwnBrand": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            }
                          },
                          "required": [
                            "price",
                            "rating",
                            "id",
                            "kind",
                            "position",
                            "title",
                            "description",
                            "targetUrl",
                            "targetDomain",
                            "priceDisplay",
                            "currency",
                            "advertiserName",
                            "advertiserUrl",
                            "advertiserDomain",
                            "matchKind",
                            "isOwnBrand"
                          ]
                        }
                      }
                    },
                    "required": [
                      "extractionStatus",
                      "shoppingProductCount",
                      "sponsoredAdCount",
                      "observedAt",
                      "placements"
                    ]
                  }
                ]
              }
            },
            "required": [
              "id",
              "promptId",
              "promptTitle",
              "model",
              "platform",
              "status",
              "trigger",
              "analysisStatus",
              "startedAt",
              "completedAt",
              "errorReason",
              "contentExcerpt",
              "sentiment",
              "citationCount",
              "occurredAt",
              "answerText",
              "citations",
              "competitors",
              "commerce"
            ]
          }
        },
        "required": ["data"]
      },
      "getV2ResponsesCompetitorsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "share": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                }
              },
              "required": ["share", "key", "label", "value"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2ResponsesMentionsTimeSeriesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "value": {
                  "type": "number"
                }
              },
              "required": ["bucket", "value"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2ResponsesSentimentDistributionResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "share": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                }
              },
              "required": ["share", "key", "label", "value"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2ResponsesSentimentOverTimeResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "type": "string"
                },
                "positive": {
                  "type": "number"
                },
                "neutral": {
                  "type": "number"
                },
                "negative": {
                  "type": "number"
                },
                "total": {
                  "type": "number"
                },
                "netScore": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": ["bucket", "positive", "neutral", "negative", "total", "netScore"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2ResponsesSummaryResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "totalResponses": {
                "type": "number",
                "description": "Non-archived prompt runs in the selected creation-time window, including runs without a recognized answer-level sentiment."
              },
              "averageCitationCount": {
                "type": "number",
                "description": "Average stored citation count over totalResponses; runs without a citation summary contribute zero."
              },
              "sentimentClassifiedResponses": {
                "type": "number",
                "description": "Runs with a recognized positive, neutral or negative answer-level sentiment; this is the denominator of each sentimentMix share."
              },
              "sentimentMix": {
                "type": "array",
                "description": "Answer-level sentiment distribution; separate from the passage-level Sentiment dashboard and /sentiment endpoints.",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": "number"
                    },
                    "share": {
                      "description": "value divided by sentimentClassifiedResponses, or null when no run has a recognized sentiment.",
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    }
                  },
                  "required": ["key", "label", "value", "share"]
                }
              }
            },
            "required": ["totalResponses", "averageCitationCount", "sentimentMix"]
          }
        },
        "required": ["data"]
      },
      "getV2ShareOfVoiceComparisonResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "share": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "isOwnBrand": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "required": ["key", "label", "value", "share", "isOwnBrand"]
            }
          },
          "cohort": {
            "type": "string",
            "enum": ["visibility_daily_rollups"],
            "description": "Legacy daily brand-appearance rollups, not the dashboard Competitors assessed-answer cohort."
          }
        },
        "required": ["data"]
      },
      "getV2ShareOfVoiceTimeSeriesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "ownBrandAppearances": {
                  "type": "number"
                },
                "trackedBrandAppearances": {
                  "type": "number"
                },
                "available": {
                  "type": "boolean",
                  "description": "False when no tracked brand appears in this day; a legacy zero value is then unavailable."
                }
              },
              "required": ["bucket", "value"]
            }
          },
          "cohort": {
            "type": "string",
            "enum": ["visibility_daily_rollups"]
          }
        },
        "required": ["data"]
      },
      "getV2SourcesDomainsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rootDomain": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "mentionCount": {
                  "type": "number"
                },
                "citationCount": {
                  "type": "number"
                },
                "linkCount": {
                  "type": "number"
                },
                "firstSeenAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastSeenAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "prompts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "label": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["id", "label"]
                  }
                }
              },
              "required": [
                "rootDomain",
                "mentionCount",
                "citationCount",
                "linkCount",
                "firstSeenAt",
                "lastSeenAt",
                "prompts"
              ]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "getV2SourcesOverviewResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "window": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "days": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "days"]
              },
              "filters": {
                "type": "object",
                "properties": {
                  "promptId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "rootDomain": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "windowDays": {
                    "type": "number"
                  },
                  "metric": {
                    "enum": ["mentions", "influence"],
                    "type": "string"
                  }
                },
                "required": ["promptId", "rootDomain", "windowDays"]
              },
              "stats": {
                "type": "object",
                "properties": {
                  "mentionCount": {
                    "type": "number"
                  },
                  "influenceScore": {
                    "type": "number"
                  },
                  "citationCount": {
                    "type": "number"
                  },
                  "linkCount": {
                    "type": "number"
                  },
                  "uniqueDomains": {
                    "type": "number"
                  },
                  "activePrompts": {
                    "type": "number"
                  },
                  "latestActivityAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "mentionCount",
                  "influenceScore",
                  "citationCount",
                  "linkCount",
                  "uniqueDomains",
                  "activePrompts",
                  "latestActivityAt"
                ]
              },
              "topDomains": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rootDomain": {
                      "type": "string"
                    },
                    "mentionCount": {
                      "type": "number"
                    },
                    "influenceScore": {
                      "type": "number"
                    }
                  },
                  "required": ["rootDomain", "mentionCount", "influenceScore"]
                }
              },
              "dailyTotals": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "bucketDay": {
                      "type": "string"
                    },
                    "mentionCount": {
                      "type": "number"
                    },
                    "influenceScore": {
                      "type": "number"
                    }
                  },
                  "required": ["bucketDay", "mentionCount", "influenceScore"]
                }
              },
              "generatedAt": {
                "type": "string"
              },
              "insights": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "const": "top-domain"
                        },
                        "rootDomain": {
                          "type": "string"
                        },
                        "mentionCount": {
                          "type": "number"
                        },
                        "share": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": ["id", "rootDomain", "mentionCount", "share"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "const": "rising-domain"
                        },
                        "rootDomain": {
                          "type": "string"
                        },
                        "delta": {
                          "type": "number"
                        },
                        "latest": {
                          "type": "number"
                        },
                        "previous": {
                          "type": "number"
                        },
                        "momentumPercent": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "rootDomain",
                        "delta",
                        "latest",
                        "previous",
                        "momentumPercent"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "const": "latest-activity"
                        },
                        "activityAt": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "activityAt"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "promptId": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "id": {
                          "type": "string",
                          "const": "top-prompt"
                        },
                        "promptLabel": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "mentionCount": {
                          "type": "number"
                        },
                        "share": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": ["promptId", "id", "promptLabel", "mentionCount", "share"]
                    }
                  ]
                }
              }
            },
            "required": [
              "window",
              "filters",
              "stats",
              "topDomains",
              "dailyTotals",
              "generatedAt",
              "insights"
            ]
          }
        },
        "required": ["data"]
      },
      "patchV2TagsIdRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          }
        },
        "required": ["name"]
      },
      "patchV2TagsIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "color": {
                "type": "string"
              }
            },
            "required": ["id", "name", "color"]
          }
        },
        "required": ["data"]
      },
      "getV2UsageSummaryResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "tier": {
                "enum": ["trial", "starter", "pro", "business", "enterprise"],
                "type": "string"
              },
              "prompts": {
                "type": "object",
                "properties": {
                  "used": {
                    "type": "number"
                  },
                  "limit": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "remaining": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  }
                },
                "required": ["used", "limit", "remaining"]
              },
              "analysis": {
                "type": "object",
                "properties": {
                  "status": {
                    "enum": ["active", "disabled"],
                    "type": "string"
                  },
                  "used": {
                    "type": "number"
                  },
                  "limit": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "remaining": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "periodStart": {
                    "type": "string"
                  },
                  "periodEnd": {
                    "type": "string"
                  }
                },
                "required": ["status", "used", "limit", "remaining", "periodStart", "periodEnd"]
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "periodStart": {
                      "type": "string"
                    },
                    "periodEnd": {
                      "type": "string"
                    },
                    "analysisCreditsUsed": {
                      "type": "number"
                    }
                  },
                  "required": ["periodStart", "periodEnd", "analysisCreditsUsed"]
                }
              }
            },
            "required": ["tier", "prompts", "analysis", "history"]
          }
        },
        "required": ["data"]
      },
      "getV2VisibilityDomainRollupsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucketDay": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "rootDomain": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "promptId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "mentionCount": {
                  "type": "number"
                }
              },
              "required": ["bucketDay", "rootDomain", "promptId", "mentionCount"]
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number"
              },
              "hasMore": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["limit", "hasMore", "nextCursor"]
          }
        },
        "required": ["data", "pageInfo"]
      },
      "putV2MetricsAccountTagsAccountTagIdRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 96
          },
          "sourceAccountIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 2000
              }
            ],
            "default": null
          }
        },
        "required": ["name", "sourceAccountIds"],
        "additionalProperties": false
      },
      "putV2MetricsAccountTagsAccountTagIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "accountTagId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "canonicalHash": {
                "type": "string"
              }
            },
            "required": ["actorId", "accountTagId", "versionId", "versionNumber", "canonicalHash"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsClientBindingsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": {}
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsClientBindingsRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": ["name", "definition"],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "description": {
            "type": ["string", "null"],
            "maxLength": 4000,
            "default": null
          },
          "visibility": {
            "enum": ["private", "workspace", "restricted"],
            "default": "private",
            "type": "string"
          },
          "publish": {
            "type": "boolean",
            "default": false
          },
          "definition": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "google_sheets"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "sheetName": {
                        "type": "string"
                      },
                      "spreadsheetReferenceHash": {
                        "type": "string"
                      },
                      "stableSheetId": {
                        "type": "number"
                      }
                    },
                    "required": ["sheetName", "spreadsheetReferenceHash", "stableSheetId"]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "anchorRow": {
                        "type": "number"
                      },
                      "anchorColumn": {
                        "type": "number"
                      },
                      "selectedRangeA1": {
                        "type": "string"
                      },
                      "lastWrittenRangeA1": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "anchorRow",
                      "anchorColumn",
                      "selectedRangeA1",
                      "lastWrittenRangeA1"
                    ]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "excel"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "workbookReferenceHash": {
                        "type": "string"
                      },
                      "stableWorksheetId": {
                        "type": "string"
                      },
                      "worksheetName": {
                        "type": "string"
                      },
                      "storageKind": {
                        "enum": ["onedrive", "sharepoint", "local"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "workbookReferenceHash",
                      "stableWorksheetId",
                      "worksheetName",
                      "storageKind"
                    ]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "tableName": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "anchorRow": {
                        "type": "number"
                      },
                      "anchorColumn": {
                        "type": "number"
                      },
                      "selectedAddress": {
                        "type": "string"
                      },
                      "lastWrittenAddress": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "tableName",
                      "anchorRow",
                      "anchorColumn",
                      "selectedAddress",
                      "lastWrittenAddress"
                    ]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "looker_studio"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "dataSourceReferenceHash": {
                        "type": "string"
                      },
                      "reportReferenceHash": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "credentialOwnership": {
                        "enum": ["owner", "viewer"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "dataSourceReferenceHash",
                      "reportReferenceHash",
                      "credentialOwnership"
                    ]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "selectedFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "dataSourceName": {
                        "type": "string"
                      },
                      "defaultDateFieldId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["selectedFieldIds", "dataSourceName", "defaultDateFieldId"]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "performance": {
                    "type": "object",
                    "properties": {
                      "maximumRows": {
                        "type": "number"
                      },
                      "refreshMode": {
                        "enum": ["live_operation", "latest_retained_result"],
                        "type": "string"
                      },
                      "maximumWaitSeconds": {
                        "type": "number"
                      },
                      "resultPageSize": {
                        "type": "number"
                      },
                      "imagePolicy": {
                        "enum": ["url", "download"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "maximumRows",
                      "refreshMode",
                      "maximumWaitSeconds",
                      "resultPageSize",
                      "imagePolicy"
                    ]
                  },
                  "refreshFieldsOnCatalogueChange": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "sharing": {
                    "type": "object",
                    "properties": {
                      "allowCredentialSharing": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "requireWorkspaceMembership": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    },
                    "required": ["allowCredentialSharing", "requireWorkspaceMembership"]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion",
                  "performance",
                  "refreshFieldsOnCatalogueChange",
                  "sharing"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "power_bi"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "tenantReferenceHash": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "workspaceReferenceHash": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "datasetReferenceHash": {
                        "type": "string"
                      },
                      "storageMode": {
                        "type": "string",
                        "const": "import"
                      }
                    },
                    "required": [
                      "tenantReferenceHash",
                      "workspaceReferenceHash",
                      "datasetReferenceHash",
                      "storageMode"
                    ]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "tableName": {
                        "type": "string"
                      },
                      "selectedFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "semanticModelName": {
                        "type": "string"
                      }
                    },
                    "required": ["tableName", "selectedFieldIds", "semanticModelName"]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "performance": {
                    "type": "object",
                    "properties": {
                      "maximumRows": {
                        "type": "number"
                      },
                      "refreshMode": {
                        "enum": ["live_operation", "latest_retained_result"],
                        "type": "string"
                      },
                      "maximumWaitSeconds": {
                        "type": "number"
                      },
                      "resultPageSize": {
                        "type": "number"
                      },
                      "imagePolicy": {
                        "enum": ["url", "download"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "maximumRows",
                      "refreshMode",
                      "maximumWaitSeconds",
                      "resultPageSize",
                      "imagePolicy"
                    ]
                  },
                  "scheduledRefresh": {
                    "type": "object",
                    "properties": {
                      "managedBy": {
                        "enum": ["chatobserver", "power_bi"],
                        "type": "string"
                      },
                      "gatewayRequired": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "privacyLevel": {
                        "enum": ["private", "organizational"],
                        "type": "string"
                      }
                    },
                    "required": ["managedBy", "gatewayRequired", "privacyLevel"]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion",
                  "performance",
                  "scheduledRefresh"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "chatobserver_report"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "reportId": {
                        "type": "string"
                      },
                      "pageId": {
                        "type": "string"
                      },
                      "blockId": {
                        "type": "string"
                      }
                    },
                    "required": ["reportId", "pageId", "blockId"]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "anchor": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "container": {
                        "type": "string",
                        "const": "report_block"
                      },
                      "rangeOrTable": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["anchor", "container", "rangeOrTable"]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "api_export"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string"
                      },
                      "consumerReferenceHash": {
                        "type": "string"
                      },
                      "serviceAccountId": {
                        "type": "string"
                      }
                    },
                    "required": ["label", "consumerReferenceHash", "serviceAccountId"]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "anchor": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "container": {
                        "type": "string",
                        "const": "result_pages"
                      },
                      "rangeOrTable": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["anchor", "container", "rangeOrTable"]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion"
                ]
              }
            ]
          }
        }
      },
      "postV2MetricsClientBindingsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceType": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "resourceId",
              "resourceType",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientBindingsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceType": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "resourceId",
              "resourceType",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsClientCataloguesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "snapshots": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sourceAccountId": {
                      "type": "string"
                    },
                    "queryTypes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "providerResource": {
                            "type": "string"
                          },
                          "grain": {
                            "type": "string"
                          },
                          "default": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          }
                        },
                        "required": ["id", "label"]
                      }
                    },
                    "queryOptions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "type": {
                            "enum": ["boolean", "enum"],
                            "type": "string"
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "label"]
                            }
                          },
                          "required": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "defaultValue": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          }
                        },
                        "required": ["id", "label", "type"]
                      }
                    },
                    "limits": {
                      "type": "object",
                      "properties": {
                        "maximumDimensions": {
                          "type": "number"
                        },
                        "maximumMetrics": {
                          "type": "number"
                        },
                        "maximumRows": {
                          "type": "number"
                        }
                      },
                      "required": ["maximumDimensions", "maximumMetrics", "maximumRows"]
                    },
                    "capabilities": {
                      "type": "object",
                      "properties": {
                        "queryOrdering": {
                          "enum": ["provider", "none"],
                          "type": "string"
                        },
                        "supportsMetricFilters": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsMultipleDateRanges": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsComparisons": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsPivots": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsMultipleAccounts": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsNestedFilters": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        }
                      },
                      "required": [
                        "queryOrdering",
                        "supportsMetricFilters",
                        "supportsMultipleDateRanges",
                        "supportsComparisons",
                        "supportsPivots"
                      ]
                    },
                    "reportingLagDays": {
                      "type": "number"
                    },
                    "completenessNote": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "snapshot": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "workspaceId": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "fingerprint": {
                          "type": "string"
                        },
                        "connectorKey": {
                          "type": "string"
                        },
                        "discoveredAt": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "enum": [
                                  "string",
                                  "number",
                                  "boolean",
                                  "integer",
                                  "date",
                                  "json",
                                  "duration",
                                  "url",
                                  "percent",
                                  "currency",
                                  "datetime",
                                  "decimal",
                                  "image_url"
                                ],
                                "type": "string"
                              },
                              "id": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "label": {
                                "type": "string"
                              },
                              "role": {
                                "enum": ["metric", "dimension", "identifier", "attribute"],
                                "type": "string"
                              },
                              "providerFieldId": {
                                "type": "string"
                              },
                              "aggregation": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "compatibleFieldIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "supportedFilterOperators": {
                                "type": "array",
                                "items": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                }
                              },
                              "semanticTags": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "queryTypeIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "hidden": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              },
                              "deprecated": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              }
                            },
                            "required": [
                              "type",
                              "id",
                              "description",
                              "label",
                              "role",
                              "providerFieldId",
                              "aggregation",
                              "compatibleFieldIds",
                              "supportedFilterOperators",
                              "semanticTags",
                              "queryTypeIds",
                              "hidden",
                              "deprecated"
                            ]
                          }
                        },
                        "queryType": {
                          "type": "string"
                        },
                        "providerSchemaVersion": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "expiresAt",
                        "workspaceId",
                        "fingerprint",
                        "connectorKey",
                        "discoveredAt",
                        "fields",
                        "queryType",
                        "providerSchemaVersion"
                      ]
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "sourceAccountId",
                    "queryTypes",
                    "queryOptions",
                    "limits",
                    "capabilities",
                    "reportingLagDays",
                    "completenessNote",
                    "snapshot",
                    "status"
                  ]
                }
              },
              "changes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sourceAccountId": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "addedFieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "removedFieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "changedFieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "affectedQueryCount": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "sourceAccountId",
                    "createdAt",
                    "id",
                    "addedFieldIds",
                    "removedFieldIds",
                    "changedFieldIds",
                    "affectedQueryCount"
                  ]
                }
              }
            },
            "required": ["snapshots", "changes"]
          }
        },
        "required": ["data"]
      },
      "getV2MetricsClientConnectionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "connectorKey": {
                  "type": "string"
                },
                "authenticationMethod": {
                  "enum": [
                    "basic",
                    "oauth2",
                    "oauth1",
                    "api_key",
                    "bearer_token",
                    "service_account",
                    "key_pair",
                    "database_credentials",
                    "file",
                    "none"
                  ],
                  "type": "string"
                },
                "grantedScopes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "name": {
                  "type": "string"
                },
                "visibility": {
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "pending",
                    "active",
                    "error",
                    "revoked",
                    "validating",
                    "discovering",
                    "needs_reauth"
                  ],
                  "type": "string"
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "principalLabel": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "ownerActorId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastVerifiedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "reauthenticationRequiredAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "lastDiscoveredAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "canManage": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                },
                "policy": {
                  "type": "object",
                  "properties": {
                    "grants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "userId": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "name": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "email": {
                            "type": "string"
                          }
                        },
                        "required": ["userId", "role", "name", "email"]
                      }
                    },
                    "ipAllowlist": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "network": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "enabled": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          }
                        },
                        "required": ["network", "label", "enabled"]
                      }
                    }
                  },
                  "required": ["grants", "ipAllowlist"]
                },
                "accounts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "providerObjectId": {
                        "type": "string"
                      },
                      "parentProviderObjectId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "displayName": {
                        "type": "string"
                      },
                      "status": {
                        "enum": ["available", "excluded", "inaccessible", "removed"],
                        "type": "string"
                      },
                      "safeMetadata": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": {}
                      },
                      "discoveredAt": {
                        "type": "string"
                      },
                      "lastSeenAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "providerObjectId",
                      "parentProviderObjectId",
                      "displayName",
                      "status",
                      "safeMetadata",
                      "discoveredAt",
                      "lastSeenAt"
                    ]
                  }
                }
              },
              "required": [
                "id",
                "connectorKey",
                "authenticationMethod",
                "grantedScopes",
                "name",
                "visibility",
                "status",
                "currentVersionId",
                "principalLabel",
                "ownerActorId",
                "lastVerifiedAt",
                "reauthenticationRequiredAt",
                "lastDiscoveredAt",
                "createdAt",
                "updatedAt",
                "canManage",
                "policy",
                "accounts"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "getV2MetricsClientConnectorsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "category": {
                      "type": "string"
                    },
                    "connectorKey": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "buildVersion": {
                      "type": "string"
                    },
                    "documentationUrl": {
                      "type": "string"
                    },
                    "capabilities": {
                      "type": "object",
                      "properties": {
                        "contractVersion": {
                          "type": "number"
                        },
                        "connectorKey": {
                          "type": "string"
                        },
                        "availability": {
                          "enum": [
                            "preview",
                            "request_only",
                            "production",
                            "internal_fixture",
                            "retired"
                          ],
                          "type": "string"
                        },
                        "authenticationMethods": {
                          "type": "array",
                          "items": {
                            "enum": [
                              "basic",
                              "oauth2",
                              "oauth1",
                              "api_key",
                              "bearer_token",
                              "service_account",
                              "key_pair",
                              "database_credentials",
                              "file",
                              "none"
                            ],
                            "type": "string"
                          }
                        },
                        "accountDiscovery": {
                          "enum": ["flat", "none", "hierarchical"],
                          "type": "string"
                        },
                        "catalogDiscovery": {
                          "enum": ["dynamic", "static", "hybrid"],
                          "type": "string"
                        },
                        "queryTypes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "dateSemantics": {
                          "type": "object",
                          "properties": {
                            "comparison": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "absolute": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "relative": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "incremental": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "timeZone": {
                              "enum": ["provider", "query", "account"],
                              "type": "string"
                            },
                            "minimumFreshnessDelayMinutes": {
                              "type": "number"
                            },
                            "maximumHistoryDays": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "number"
                                }
                              ]
                            }
                          },
                          "required": [
                            "comparison",
                            "absolute",
                            "relative",
                            "incremental",
                            "timeZone",
                            "minimumFreshnessDelayMinutes",
                            "maximumHistoryDays"
                          ]
                        },
                        "pagination": {
                          "enum": ["cursor", "offset", "none", "page", "provider_specific"],
                          "type": "string"
                        },
                        "pushdown": {
                          "type": "object",
                          "properties": {
                            "limit": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "filters": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "comparison": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "pivot": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "aggregation": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "sorting": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "pagination": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            }
                          },
                          "required": [
                            "limit",
                            "filters",
                            "comparison",
                            "pivot",
                            "aggregation",
                            "sorting",
                            "pagination"
                          ]
                        },
                        "rateLimitModel": {
                          "enum": [
                            "none",
                            "provider_specific",
                            "fixed_window",
                            "sliding_window",
                            "quota_units"
                          ],
                          "type": "string"
                        },
                        "supportedOutputFormats": {
                          "type": "array",
                          "items": {
                            "enum": ["json", "ndjson", "csv", "parquet", "html_preview"],
                            "type": "string"
                          }
                        },
                        "compatibleDestinationKinds": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "supportsAccountTags": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsCustomFields": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsMediaFields": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "supportsRealtime": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        },
                        "limits": {
                          "type": "object",
                          "properties": {
                            "maximumRowsPerRun": {
                              "type": "number"
                            },
                            "maximumAccountsPerQuery": {
                              "type": "number"
                            },
                            "maximumFieldsPerQuery": {
                              "type": "number"
                            },
                            "maximumConcurrentRequests": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "maximumRowsPerRun",
                            "maximumAccountsPerQuery",
                            "maximumFieldsPerQuery",
                            "maximumConcurrentRequests"
                          ]
                        }
                      },
                      "required": [
                        "contractVersion",
                        "connectorKey",
                        "availability",
                        "authenticationMethods",
                        "accountDiscovery",
                        "catalogDiscovery",
                        "queryTypes",
                        "dateSemantics",
                        "pagination",
                        "pushdown",
                        "rateLimitModel",
                        "supportedOutputFormats",
                        "compatibleDestinationKinds",
                        "supportsAccountTags",
                        "supportsCustomFields",
                        "supportsMediaFields",
                        "supportsRealtime",
                        "limits"
                      ]
                    },
                    "releasedAt": {
                      "type": "string"
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    }
                  },
                  "required": [
                    "description",
                    "category",
                    "connectorKey",
                    "displayName",
                    "buildVersion",
                    "documentationUrl",
                    "capabilities",
                    "releasedAt",
                    "retiredAt"
                  ]
                },
                "readiness": {
                  "type": "object",
                  "properties": {
                    "connectorKey": {
                      "type": "string"
                    },
                    "declaredAvailability": {
                      "enum": [
                        "preview",
                        "request_only",
                        "production",
                        "internal_fixture",
                        "retired"
                      ],
                      "type": "string"
                    },
                    "selectable": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "visible": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "platformConfigured": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "conformancePassed": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "reasonCode": {
                      "enum": [
                        "retired",
                        "ready",
                        "internal_fixture_environment_only",
                        "platform_configuration_missing",
                        "conformance_evidence_missing",
                        "request_access"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "connectorKey",
                    "declaredAvailability",
                    "selectable",
                    "visible",
                    "platformConfigured",
                    "conformancePassed",
                    "reasonCode"
                  ]
                },
                "presentation": {
                  "type": "object",
                  "properties": {
                    "brandDomain": {
                      "type": "string"
                    },
                    "brandAssetPath": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "authenticationMethod": {
                      "enum": ["basic", "oauth2", "api_key", "bearer_token", "key_pair", "none"],
                      "type": "string"
                    },
                    "accountModel": {
                      "enum": ["flat", "hierarchy"],
                      "type": "string"
                    },
                    "connectPath": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "setupFields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "secret": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "required": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "minLength": {
                            "type": "number"
                          },
                          "maxLength": {
                            "type": "number"
                          },
                          "placeholder": {
                            "type": "string"
                          },
                          "format": {
                            "enum": ["email", "hostname", "text"],
                            "type": "string"
                          }
                        },
                        "required": ["key", "label", "secret", "required"]
                      }
                    }
                  },
                  "required": [
                    "brandDomain",
                    "brandAssetPath",
                    "authenticationMethod",
                    "accountModel",
                    "connectPath",
                    "setupFields"
                  ]
                }
              },
              "required": ["definition", "readiness", "presentation"]
            }
          },
          "destinations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "enum": [
                    "sftp",
                    "google_sheets",
                    "google_bigquery",
                    "google_cloud_storage",
                    "amazon_s3",
                    "google_alloydb",
                    "azure_sql",
                    "azure_blob_storage",
                    "azure_synapse",
                    "databricks",
                    "microsoft_fabric",
                    "amazon_redshift",
                    "snowflake",
                    "chatobserver_managed_dataset",
                    "fixture_object_store"
                  ],
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "brandDomain": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "credentialProviderKeys": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requiredScopes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "capability": {
                  "type": "object",
                  "properties": {
                    "contractVersion": {
                      "type": "number"
                    },
                    "availability": {
                      "enum": [
                        "preview",
                        "request_only",
                        "production",
                        "internal_fixture",
                        "retired"
                      ],
                      "type": "string"
                    },
                    "authenticationMethods": {
                      "type": "array",
                      "items": {
                        "enum": [
                          "basic",
                          "oauth2",
                          "oauth1",
                          "api_key",
                          "bearer_token",
                          "service_account",
                          "key_pair",
                          "database_credentials",
                          "file",
                          "none"
                        ],
                        "type": "string"
                      }
                    },
                    "limits": {
                      "type": "object",
                      "properties": {
                        "maximumRowsPerWrite": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        "maximumBytesPerWrite": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        "maximumConcurrentWrites": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "maximumRowsPerWrite",
                        "maximumBytesPerWrite",
                        "maximumConcurrentWrites"
                      ]
                    },
                    "destinationKind": {
                      "type": "string"
                    },
                    "writeModes": {
                      "type": "array",
                      "items": {
                        "enum": [
                          "replace",
                          "append",
                          "upsert",
                          "rolling_window",
                          "single_day_snapshot",
                          "historical_snapshot",
                          "rolling_historical_snapshot"
                        ],
                        "type": "string"
                      }
                    },
                    "schemaPolicies": {
                      "type": "array",
                      "items": {
                        "enum": ["locked", "additive", "reconcile"],
                        "type": "string"
                      }
                    },
                    "supportedFormats": {
                      "type": "array",
                      "items": {
                        "enum": ["ndjson", "csv", "parquet", "rows"],
                        "type": "string"
                      }
                    },
                    "supportsTransactions": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "supportsAtomicReplace": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "supportsPartitioning": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "supportsDelete": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "supportsTestConnection": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    }
                  },
                  "required": [
                    "contractVersion",
                    "availability",
                    "authenticationMethods",
                    "limits",
                    "destinationKind",
                    "writeModes",
                    "schemaPolicies",
                    "supportedFormats",
                    "supportsTransactions",
                    "supportsAtomicReplace",
                    "supportsPartitioning",
                    "supportsDelete",
                    "supportsTestConnection"
                  ]
                },
                "targetFields": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "type": {
                        "enum": ["select", "text"],
                        "type": "string"
                      },
                      "required": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "placeholder": {
                        "type": "string"
                      },
                      "values": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "label"]
                        }
                      }
                    },
                    "required": ["key", "label", "description", "type", "required"]
                  }
                },
                "internalOnly": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "required": [
                "kind",
                "label",
                "description",
                "brandDomain",
                "credentialProviderKeys",
                "requiredScopes",
                "capability",
                "targetFields",
                "internalOnly"
              ]
            }
          }
        },
        "required": ["data", "destinations"]
      },
      "getV2MetricsClientMembersResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "email": {
                  "type": "string"
                },
                "role": {
                  "type": "string"
                }
              },
              "required": ["id", "name", "email", "role"]
            }
          }
        },
        "required": ["data"]
      },
      "getV2MetricsClientOperationsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "progress": {
                  "type": "object",
                  "properties": {
                    "requestId": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "runId": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "planVersion": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "historicalRange": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  "required": ["requestId", "runId", "planVersion", "historicalRange"]
                },
                "result": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "runId": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            }
                          ]
                        },
                        "warningCount": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "required": ["runId", "warningCount"]
                    }
                  ]
                },
                "cancelRequestedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "startedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "finishedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "action": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "resourceType": {
                  "type": "string"
                },
                "resourceId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "resourceVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "errorCode": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "progress",
                "result",
                "cancelRequestedAt",
                "startedAt",
                "finishedAt",
                "createdAt",
                "id",
                "action",
                "status",
                "resourceType",
                "resourceId",
                "resourceVersionId",
                "errorCode"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsClientOperationsRequest": {
        "type": "object",
        "properties": {
          "target": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "query"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "query_candidate"
                  },
                  "definition": {
                    "type": "object",
                    "properties": {
                      "sort": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fieldId": {
                              "type": "string"
                            },
                            "direction": {
                              "enum": ["ascending", "descending"],
                              "type": "string"
                            },
                            "nulls": {
                              "enum": ["first", "last"],
                              "type": "string"
                            }
                          },
                          "required": ["fieldId", "direction", "nulls"]
                        }
                      },
                      "filter": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "condition"
                              },
                              "fieldId": {
                                "type": "string"
                              },
                              "operator": {
                                "enum": [
                                  "equals",
                                  "not_equals",
                                  "contains",
                                  "greater_than",
                                  "less_than",
                                  "in",
                                  "between",
                                  "is_null",
                                  "is_not_null",
                                  "not_in",
                                  "not_contains",
                                  "starts_with",
                                  "ends_with",
                                  "regex",
                                  "not_regex",
                                  "greater_than_or_equal",
                                  "less_than_or_equal"
                                ],
                                "type": "string"
                              },
                              "value": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  },
                                  {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ContractType54286"
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {},
                                    "additionalProperties": {
                                      "$ref": "#/components/schemas/ContractType54286"
                                    }
                                  }
                                ]
                              },
                              "execution": {
                                "enum": [
                                  "pushdown_required",
                                  "pushdown_preferred",
                                  "platform_allowed"
                                ],
                                "type": "string"
                              }
                            },
                            "required": ["kind", "fieldId", "operator", "value", "execution"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "group"
                              },
                              "conjunction": {
                                "enum": ["and", "or"],
                                "type": "string"
                              },
                              "children": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "condition"
                                        },
                                        "fieldId": {
                                          "type": "string"
                                        },
                                        "operator": {
                                          "enum": [
                                            "equals",
                                            "not_equals",
                                            "contains",
                                            "greater_than",
                                            "less_than",
                                            "in",
                                            "between",
                                            "is_null",
                                            "is_not_null",
                                            "not_in",
                                            "not_contains",
                                            "starts_with",
                                            "ends_with",
                                            "regex",
                                            "not_regex",
                                            "greater_than_or_equal",
                                            "less_than_or_equal"
                                          ],
                                          "type": "string"
                                        },
                                        "value": {
                                          "anyOf": [
                                            {
                                              "type": "null"
                                            },
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean",
                                              "const": false
                                            },
                                            {
                                              "type": "boolean",
                                              "const": true
                                            },
                                            {
                                              "type": "array",
                                              "items": {
                                                "$ref": "#/components/schemas/ContractType54286"
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {},
                                              "additionalProperties": {
                                                "$ref": "#/components/schemas/ContractType54286"
                                              }
                                            }
                                          ]
                                        },
                                        "execution": {
                                          "enum": [
                                            "pushdown_required",
                                            "pushdown_preferred",
                                            "platform_allowed"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "fieldId",
                                        "operator",
                                        "value",
                                        "execution"
                                      ]
                                    },
                                    {
                                      "$ref": "#/components/schemas/ContractType94867"
                                    }
                                  ]
                                }
                              }
                            },
                            "required": ["kind", "conjunction", "children"]
                          }
                        ]
                      },
                      "connectorKey": {
                        "type": "string"
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 2
                      },
                      "currency": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "alias": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "role": {
                              "enum": ["metric", "dimension", "identifier", "attribute"],
                              "type": "string"
                            },
                            "fieldId": {
                              "type": "string"
                            },
                            "aggregation": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string",
                                  "const": "minimum"
                                },
                                {
                                  "type": "string",
                                  "const": "maximum"
                                },
                                {
                                  "type": "string",
                                  "const": "count"
                                },
                                {
                                  "type": "string",
                                  "const": "none"
                                },
                                {
                                  "type": "string",
                                  "const": "sum"
                                },
                                {
                                  "type": "string",
                                  "const": "average"
                                },
                                {
                                  "type": "string",
                                  "const": "count_distinct"
                                },
                                {
                                  "type": "string",
                                  "const": "provider_default"
                                }
                              ]
                            },
                            "outputPosition": {
                              "type": "number"
                            }
                          },
                          "required": ["alias", "role", "fieldId", "aggregation", "outputPosition"]
                        }
                      },
                      "comparison": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "enum": ["custom", "previous_period", "previous_year"],
                                "type": "string"
                              },
                              "enabled": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              },
                              "customRange": {
                                "anyOf": [
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "absolute"
                                      },
                                      "start": {
                                        "type": "string"
                                      },
                                      "end": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["kind", "start", "end"]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "relative"
                                      },
                                      "count": {
                                        "type": "number"
                                      },
                                      "unit": {
                                        "enum": ["day", "week", "month", "quarter", "year"],
                                        "type": "string"
                                      },
                                      "offset": {
                                        "type": "number"
                                      },
                                      "includeCurrent": {
                                        "anyOf": [
                                          {
                                            "type": "boolean",
                                            "const": false
                                          },
                                          {
                                            "type": "boolean",
                                            "const": true
                                          }
                                        ]
                                      }
                                    },
                                    "required": ["kind", "count", "unit"]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "rolling"
                                      },
                                      "count": {
                                        "type": "number"
                                      },
                                      "unit": {
                                        "enum": ["hour", "day", "week", "month"],
                                        "type": "string"
                                      },
                                      "lag": {
                                        "type": "number"
                                      }
                                    },
                                    "required": ["kind", "count", "unit"]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "incremental"
                                      },
                                      "unit": {
                                        "enum": ["hour", "day"],
                                        "type": "string"
                                      },
                                      "cursorFieldId": {
                                        "type": "string"
                                      },
                                      "initialStart": {
                                        "type": "string"
                                      },
                                      "lookbackUnits": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "unit",
                                      "cursorFieldId",
                                      "initialStart",
                                      "lookbackUnits"
                                    ]
                                  }
                                ]
                              }
                            },
                            "required": ["mode", "enabled", "customRange"]
                          }
                        ]
                      },
                      "pivot": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "rowFieldIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "columnFieldIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "valueFieldIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "includeRowTotals": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              },
                              "includeColumnTotals": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              },
                              "emptyValue": {
                                "enum": ["null", "zero"],
                                "type": "string"
                              }
                            },
                            "required": [
                              "rowFieldIds",
                              "columnFieldIds",
                              "valueFieldIds",
                              "includeRowTotals",
                              "includeColumnTotals",
                              "emptyValue"
                            ]
                          }
                        ]
                      },
                      "queryType": {
                        "type": "string"
                      },
                      "timeZone": {
                        "type": "string"
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "pageSize": {
                            "type": "number"
                          },
                          "maximumPages": {
                            "type": "number"
                          }
                        },
                        "required": ["pageSize", "maximumPages"]
                      },
                      "locale": {
                        "type": "string"
                      },
                      "accountSelector": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "accounts"
                              },
                              "sourceAccountIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": ["kind", "sourceAccountIds"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "account_tags"
                              },
                              "accountTagIds": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": ["kind", "accountTagIds"]
                          }
                        ]
                      },
                      "customFieldVersionIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "dateRange": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "absolute"
                              },
                              "start": {
                                "type": "string"
                              },
                              "end": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "start", "end"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "relative"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["day", "week", "month", "quarter", "year"],
                                "type": "string"
                              },
                              "offset": {
                                "type": "number"
                              },
                              "includeCurrent": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rolling"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["hour", "day", "week", "month"],
                                "type": "string"
                              },
                              "lag": {
                                "type": "number"
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "incremental"
                              },
                              "unit": {
                                "enum": ["hour", "day"],
                                "type": "string"
                              },
                              "cursorFieldId": {
                                "type": "string"
                              },
                              "initialStart": {
                                "type": "string"
                              },
                              "lookbackUnits": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "unit",
                              "cursorFieldId",
                              "initialStart",
                              "lookbackUnits"
                            ]
                          }
                        ]
                      },
                      "rowLimit": {
                        "type": "number"
                      },
                      "sample": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRows": {
                            "type": "number"
                          }
                        },
                        "required": ["enabled", "maximumRows"]
                      },
                      "connectorOptions": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": {}
                      },
                      "requiredCapabilities": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "parameters": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "target": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "date_range_start"
                                    }
                                  },
                                  "required": ["kind"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "date_range_end"
                                    }
                                  },
                                  "required": ["kind"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "filter_value"
                                    },
                                    "fieldId": {
                                      "type": "string"
                                    },
                                    "occurrence": {
                                      "type": "number"
                                    }
                                  },
                                  "required": ["kind", "fieldId"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "connector_option"
                                    },
                                    "optionId": {
                                      "type": "string"
                                    }
                                  },
                                  "required": ["kind", "optionId"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "row_limit"
                                    }
                                  },
                                  "required": ["kind"]
                                }
                              ]
                            },
                            "defaultValue": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "required": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "id",
                            "description",
                            "target",
                            "defaultValue",
                            "valueType",
                            "required",
                            "allowViewerOverride"
                          ]
                        }
                      },
                      "includeSourceAccount": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    },
                    "required": [
                      "sort",
                      "filter",
                      "connectorKey",
                      "schemaVersion",
                      "currency",
                      "fields",
                      "comparison",
                      "pivot",
                      "queryType",
                      "timeZone",
                      "pagination",
                      "locale",
                      "accountSelector",
                      "customFieldVersionIds",
                      "dateRange",
                      "rowLimit",
                      "sample",
                      "connectorOptions",
                      "requiredCapabilities"
                    ]
                  },
                  "catalogSnapshotIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": ["resourceType", "definition", "catalogSnapshotIds"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "client_binding"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "blend"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "model"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "table_group"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "imported_dataset"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "destination"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "transfer"
                  },
                  "versionId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "versionId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "run"
                  },
                  "resourceId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "resourceId"]
              },
              {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "const": "delivery"
                  },
                  "resourceId": {
                    "type": "string"
                  }
                },
                "required": ["resourceType", "resourceId"]
              }
            ]
          },
          "action": {
            "enum": [
              "query_preview",
              "query_run",
              "client_refresh",
              "blend_materialize",
              "model_materialize",
              "table_group_materialize",
              "import_validate",
              "import_ingest",
              "transfer_refresh_now",
              "transfer_scheduled_refresh",
              "transfer_historical_load",
              "retry_failed_run",
              "replay_delivery",
              "validate_only",
              "schema_reconcile"
            ],
            "type": "string"
          },
          "historicalRange": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "sliceDays": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 366
                  },
                  "estimatedRequests": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "estimatedRows": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "integer",
                        "minimum": 0
                      }
                    ]
                  },
                  "estimatedCostMinorUnits": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "integer",
                        "minimum": 0
                      }
                    ]
                  }
                },
                "required": [
                  "start",
                  "end",
                  "sliceDays",
                  "estimatedRequests",
                  "estimatedRows",
                  "estimatedCostMinorUnits"
                ],
                "additionalProperties": false
              }
            ]
          },
          "initiator": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "query_candidate"
                  },
                  "queryCandidateId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "queryCandidateId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "query"
                  },
                  "queryVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "queryVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "blend"
                  },
                  "blendVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "blendVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "schedule_target"
                  },
                  "scheduleVersionId": {
                    "type": "string"
                  },
                  "scheduleTargetId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "scheduleVersionId", "scheduleTargetId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "client_binding"
                  },
                  "clientBindingVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "clientBindingVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "model"
                  },
                  "modelVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "modelVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "destination"
                  },
                  "destinationVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "destinationVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "table_group"
                  },
                  "tableGroupVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "tableGroupVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "transfer"
                  },
                  "transferVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "transferVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "imported_dataset"
                  },
                  "importedDatasetVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "importedDatasetVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "managed_dataset"
                  },
                  "managedDatasetVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "managedDatasetVersionId"]
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "activation"
                  },
                  "activationVersionId": {
                    "type": "string"
                  }
                },
                "required": ["kind", "activationVersionId"]
              }
            ]
          },
          "importRequest": {
            "type": "object",
            "properties": {
              "importedDatasetVersionId": {
                "type": "string"
              },
              "source": {
                "type": "object",
                "properties": {
                  "format": {
                    "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
                    "type": "string"
                  },
                  "originalFileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "contentType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "byteCount": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "sourceKind": {
                    "enum": ["manual_upload", "authenticated_file", "email_intake"],
                    "type": "string"
                  },
                  "senderReferenceHash": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    ]
                  },
                  "objectName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "objectGeneration": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "checksumSha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "receivedAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "format",
                  "originalFileName",
                  "contentType",
                  "byteCount",
                  "sourceKind",
                  "senderReferenceHash",
                  "objectName",
                  "objectGeneration",
                  "checksumSha256",
                  "receivedAt"
                ],
                "additionalProperties": false
              },
              "sourceObjectId": {
                "type": "string"
              },
              "operationKind": {
                "enum": ["replace", "append", "validate", "incremental"],
                "type": "string"
              },
              "dryRun": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "mappingVersionId": {
                "type": "string"
              },
              "updatePolicyVersionId": {
                "type": "string"
              },
              "retentionPolicyVersionId": {
                "type": "string"
              },
              "expectedPreviousGeneration": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "importedDatasetVersionId",
              "source",
              "sourceObjectId",
              "operationKind",
              "dryRun",
              "mappingVersionId",
              "updatePolicyVersionId",
              "retentionPolicyVersionId",
              "expectedPreviousGeneration"
            ],
            "additionalProperties": false
          },
          "clientInvocation": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "clientBindingVersionId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "clientKind": {
                    "enum": [
                      "looker_studio",
                      "power_bi",
                      "qlik",
                      "azure_data_factory",
                      "alteryx",
                      "n8n",
                      "tableau",
                      "generic_rest"
                    ],
                    "type": "string"
                  },
                  "consumerReferenceHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "requestedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "parameterValues": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        },
                        {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        }
                      ]
                    }
                  },
                  "selectedFieldIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "maxItems": 250,
                    "default": []
                  }
                },
                "required": [
                  "clientBindingVersionId",
                  "clientKind",
                  "consumerReferenceHash",
                  "requestedAt"
                ],
                "additionalProperties": false
              }
            ],
            "default": null
          }
        },
        "required": ["target", "action", "historicalRange"],
        "additionalProperties": false
      },
      "postV2MetricsClientOperationsResponse202": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "operationId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "type": "string"
              }
            },
            "required": ["actorId", "operationId", "resourceId", "resourceVersionId", "status"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsClientQueriesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "catalogSnapshotIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "visibility": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "versionNumber": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "versionStatus": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "versionDocument": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  ]
                },
                "ownerActorId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "catalogSnapshotIds",
                "createdAt",
                "updatedAt",
                "name",
                "description",
                "visibility",
                "status",
                "currentVersionId",
                "versionNumber",
                "versionStatus",
                "versionDocument",
                "ownerActorId"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsClientQueriesRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "definition": {
            "type": "object",
            "properties": {
              "sort": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "direction": {
                      "enum": ["ascending", "descending"],
                      "type": "string"
                    },
                    "nulls": {
                      "enum": ["first", "last"],
                      "type": "string"
                    }
                  },
                  "required": ["fieldId", "direction", "nulls"],
                  "additionalProperties": false
                },
                "maxItems": 20
              },
              "filter": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "condition"
                      },
                      "fieldId": {
                        "type": "string"
                      },
                      "operator": {
                        "enum": [
                          "equals",
                          "not_equals",
                          "contains",
                          "greater_than",
                          "less_than",
                          "in",
                          "between",
                          "is_null",
                          "is_not_null",
                          "not_in",
                          "not_contains",
                          "starts_with",
                          "ends_with",
                          "regex",
                          "not_regex",
                          "greater_than_or_equal",
                          "less_than_or_equal"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          },
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          },
                          {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          }
                        ]
                      },
                      "execution": {
                        "enum": ["pushdown_required", "pushdown_preferred", "platform_allowed"],
                        "type": "string"
                      }
                    },
                    "required": ["kind", "fieldId", "operator", "value", "execution"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "group"
                      },
                      "conjunction": {
                        "enum": ["and", "or"],
                        "type": "string"
                      },
                      "children": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "condition"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "operator": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "execution": {
                                  "enum": [
                                    "pushdown_required",
                                    "pushdown_preferred",
                                    "platform_allowed"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "fieldId", "operator", "value", "execution"]
                            },
                            {
                              "$ref": "#/components/schemas/ContractType94867"
                            }
                          ]
                        }
                      }
                    },
                    "required": ["kind", "conjunction", "children"]
                  }
                ]
              },
              "connectorKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96,
                "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
              },
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  }
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        }
                      ]
                    },
                    "role": {
                      "enum": ["metric", "dimension", "identifier", "attribute"],
                      "type": "string"
                    },
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "aggregation": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "const": "minimum"
                        },
                        {
                          "type": "string",
                          "const": "maximum"
                        },
                        {
                          "type": "string",
                          "const": "count"
                        },
                        {
                          "type": "string",
                          "const": "none"
                        },
                        {
                          "type": "string",
                          "const": "sum"
                        },
                        {
                          "type": "string",
                          "const": "average"
                        },
                        {
                          "type": "string",
                          "const": "count_distinct"
                        },
                        {
                          "type": "string",
                          "const": "provider_default"
                        }
                      ]
                    },
                    "outputPosition": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": ["alias", "role", "fieldId", "aggregation", "outputPosition"],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 250
              },
              "comparison": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["custom", "previous_period", "previous_year"],
                        "type": "string"
                      },
                      "enabled": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "customRange": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "absolute"
                              },
                              "start": {
                                "type": "string"
                              },
                              "end": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "start", "end"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "relative"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["day", "week", "month", "quarter", "year"],
                                "type": "string"
                              },
                              "offset": {
                                "type": "number"
                              },
                              "includeCurrent": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rolling"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["hour", "day", "week", "month"],
                                "type": "string"
                              },
                              "lag": {
                                "type": "number"
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "incremental"
                              },
                              "unit": {
                                "enum": ["hour", "day"],
                                "type": "string"
                              },
                              "cursorFieldId": {
                                "type": "string"
                              },
                              "initialStart": {
                                "type": "string"
                              },
                              "lookbackUnits": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "unit",
                              "cursorFieldId",
                              "initialStart",
                              "lookbackUnits"
                            ]
                          }
                        ]
                      }
                    },
                    "required": ["mode", "enabled", "customRange"],
                    "additionalProperties": false
                  }
                ]
              },
              "pivot": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "rowFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "columnFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 10
                      },
                      "valueFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "includeRowTotals": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "includeColumnTotals": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "emptyValue": {
                        "enum": ["null", "zero"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "rowFieldIds",
                      "columnFieldIds",
                      "valueFieldIds",
                      "includeRowTotals",
                      "includeColumnTotals",
                      "emptyValue"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "queryType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "pagination": {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  },
                  "maximumPages": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  }
                },
                "required": ["pageSize", "maximumPages"],
                "additionalProperties": false
              },
              "locale": {
                "type": "string",
                "minLength": 2,
                "maxLength": 35
              },
              "accountSelector": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "accounts"
                      },
                      "sourceAccountIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": ["kind", "sourceAccountIds"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "account_tags"
                      },
                      "accountTagIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": ["kind", "accountTagIds"]
                  }
                ]
              },
              "customFieldVersionIds": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 100
              },
              "dateRange": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "absolute"
                      },
                      "start": {
                        "type": "string"
                      },
                      "end": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "start", "end"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "relative"
                      },
                      "count": {
                        "type": "number"
                      },
                      "unit": {
                        "enum": ["day", "week", "month", "quarter", "year"],
                        "type": "string"
                      },
                      "offset": {
                        "type": "number"
                      },
                      "includeCurrent": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    },
                    "required": ["kind", "count", "unit"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "rolling"
                      },
                      "count": {
                        "type": "number"
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      },
                      "lag": {
                        "type": "number"
                      }
                    },
                    "required": ["kind", "count", "unit"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "incremental"
                      },
                      "unit": {
                        "enum": ["hour", "day"],
                        "type": "string"
                      },
                      "cursorFieldId": {
                        "type": "string"
                      },
                      "initialStart": {
                        "type": "string"
                      },
                      "lookbackUnits": {
                        "type": "number"
                      }
                    },
                    "required": ["kind", "unit", "cursorFieldId", "initialStart", "lookbackUnits"]
                  }
                ]
              },
              "rowLimit": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 100000000
              },
              "sample": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "maximumRows": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": ["enabled", "maximumRows"],
                "additionalProperties": false
              },
              "connectorOptions": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "requiredCapabilities": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "maxItems": 100
              },
              "parameters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "maxLength": 1000
                        }
                      ]
                    },
                    "target": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_start"
                            }
                          },
                          "required": ["kind"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_end"
                            }
                          },
                          "required": ["kind"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "filter_value"
                            },
                            "fieldId": {
                              "type": "string"
                            },
                            "occurrence": {
                              "type": "number"
                            }
                          },
                          "required": ["kind", "fieldId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "connector_option"
                            },
                            "optionId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "optionId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "row_limit"
                            }
                          },
                          "required": ["kind"]
                        }
                      ]
                    },
                    "defaultValue": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        },
                        {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        }
                      ]
                    },
                    "valueType": {
                      "enum": ["string", "number", "boolean", "date", "datetime"],
                      "type": "string"
                    },
                    "required": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "allowViewerOverride": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "id",
                    "description",
                    "target",
                    "defaultValue",
                    "valueType",
                    "required",
                    "allowViewerOverride"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100,
                "default": []
              },
              "includeSourceAccount": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ],
                "default": true
              }
            },
            "required": [
              "sort",
              "filter",
              "connectorKey",
              "schemaVersion",
              "currency",
              "fields",
              "comparison",
              "pivot",
              "queryType",
              "timeZone",
              "pagination",
              "locale",
              "accountSelector",
              "customFieldVersionIds",
              "dateRange",
              "rowLimit",
              "sample",
              "connectorOptions",
              "requiredCapabilities"
            ],
            "additionalProperties": false
          },
          "catalogSnapshotIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 500
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ],
            "default": null
          },
          "visibility": {
            "enum": ["private", "workspace", "restricted"],
            "default": "private",
            "type": "string"
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          }
        },
        "required": ["name", "definition", "catalogSnapshotIds"],
        "additionalProperties": false
      },
      "postV2MetricsClientQueriesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "queryId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientQueriesResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "queryId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsClientSchedulesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "nextEvaluationAt": {
                  "type": "string"
                },
                "lastEvaluatedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "visibility": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "versionNumber": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "versionStatus": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "definition": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  ]
                },
                "consecutiveFailureCount": {
                  "type": "number"
                },
                "lastErrorCode": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "ownerActorId": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "nextEvaluationAt",
                "lastEvaluatedAt",
                "createdAt",
                "updatedAt",
                "id",
                "name",
                "description",
                "visibility",
                "status",
                "currentVersionId",
                "versionNumber",
                "versionStatus",
                "definition",
                "consecutiveFailureCount",
                "lastErrorCode",
                "ownerActorId"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsClientSchedulesRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "definition": {
            "type": "object",
            "properties": {
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "recurrence": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "cron"
                      },
                      "expression": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "expression"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "every": {
                        "type": "number"
                      },
                      "hour": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "minute": {
                        "type": "number"
                      },
                      "kind": {
                        "type": "string",
                        "const": "interval"
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      },
                      "dayOfWeek": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "dayOfMonth": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "required": [
                      "every",
                      "hour",
                      "minute",
                      "kind",
                      "unit",
                      "dayOfWeek",
                      "dayOfMonth"
                    ]
                  }
                ]
              },
              "daylightSavingPolicy": {
                "enum": ["wall_clock", "fixed_utc"],
                "type": "string"
              },
              "overlapPolicy": {
                "enum": ["skip", "queue_one", "allow"],
                "type": "string"
              },
              "startsAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "endsAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "freshnessDelayMinutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10080
              },
              "failurePolicy": {
                "type": "object",
                "properties": {
                  "maximumAttempts": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  },
                  "backoff": {
                    "enum": ["fixed", "exponential"],
                    "type": "string"
                  },
                  "initialDelaySeconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 86400
                  },
                  "autoPauseAfterFailures": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      }
                    ]
                  }
                },
                "required": [
                  "maximumAttempts",
                  "backoff",
                  "initialDelaySeconds",
                  "autoPauseAfterFailures"
                ],
                "additionalProperties": false
              },
              "targets": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "queryVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_query"
                        },
                        "retainResult": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        }
                      },
                      "required": ["id", "queryVersionId", "position", "action", "retainResult"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_client_binding"
                        },
                        "clientBindingVersionId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "clientBindingVersionId"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "modelVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "materialize_model"
                        }
                      },
                      "required": ["id", "modelVersionId", "position", "action"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "tableGroupVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "materialize_table_group"
                        }
                      },
                      "required": ["id", "tableGroupVersionId", "position", "action"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_transfer"
                        },
                        "transferVersionId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "transferVersionId"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_report_dataset"
                        },
                        "reportDatasetBindingId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "reportDatasetBindingId"]
                    }
                  ]
                },
                "minItems": 1,
                "maxItems": 100
              },
              "notifications": {
                "type": "object",
                "properties": {
                  "onSuccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onFailure": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onAutoPause": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "targets": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "email"
                            },
                            "address": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "address"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "slack"
                            },
                            "destinationId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "destinationId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "microsoft_teams"
                            },
                            "destinationId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "destinationId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "webhook"
                            },
                            "webhookEndpointId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "webhookEndpointId"]
                        }
                      ]
                    },
                    "maxItems": 50
                  }
                },
                "required": ["onSuccess", "onFailure", "onAutoPause", "targets"],
                "additionalProperties": false
              }
            },
            "required": [
              "schemaVersion",
              "timeZone",
              "recurrence",
              "daylightSavingPolicy",
              "overlapPolicy",
              "startsAt",
              "endsAt",
              "freshnessDelayMinutes",
              "failurePolicy",
              "targets",
              "notifications"
            ],
            "additionalProperties": false
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ],
            "default": null
          },
          "visibility": {
            "enum": ["private", "workspace", "restricted"],
            "default": "private",
            "type": "string"
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          }
        },
        "required": ["name", "definition"],
        "additionalProperties": false
      },
      "postV2MetricsClientSchedulesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              },
              "nextEvaluationAt": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "scheduleId",
              "versionId",
              "versionNumber",
              "versionStatus",
              "nextEvaluationAt"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientSchedulesResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              },
              "nextEvaluationAt": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "scheduleId",
              "versionId",
              "versionNumber",
              "versionStatus",
              "nextEvaluationAt"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsClientSessionResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "sessionId": {
                "type": "string"
              },
              "workspaceId": {
                "type": "string"
              },
              "clientKind": {
                "enum": ["google_sheets", "excel"],
                "type": "string"
              },
              "documentReferenceHash": {
                "type": "string"
              },
              "scopes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "sessionId",
              "workspaceId",
              "clientKind",
              "documentReferenceHash",
              "scopes"
            ]
          }
        },
        "required": ["data"]
      },
      "deleteV2MetricsClientSessionResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "sessionId": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "const": "revoked"
              }
            },
            "required": ["sessionId", "status"]
          }
        },
        "required": ["data"]
      },
      "getV2MetricsClientTemplatesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "suggested": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                },
                "connectorKey": {
                  "type": "string"
                },
                "fields": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "role": {
                        "enum": ["metric", "dimension"],
                        "type": "string"
                      },
                      "fieldId": {
                        "type": "string"
                      }
                    },
                    "required": ["role", "fieldId"]
                  }
                },
                "queryType": {
                  "type": "string"
                },
                "dateRangeDays": {
                  "type": "number"
                },
                "outputMode": {
                  "enum": ["replace", "append", "incremental", "combine"],
                  "type": "string"
                }
              },
              "required": [
                "name",
                "id",
                "description",
                "suggested",
                "connectorKey",
                "fields",
                "queryType",
                "dateRangeDays",
                "outputMode"
              ]
            }
          }
        },
        "required": ["data"]
      },
      "postV2MetricsClientWritesRequest": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string"
          },
          "clientBindingVersionId": {
            "type": "string"
          },
          "clientBindingId": {
            "type": "string"
          },
          "schemaFingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "expectedRowCount": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "integer",
                "minimum": 0
              }
            ]
          }
        },
        "required": [
          "runId",
          "clientBindingVersionId",
          "clientBindingId",
          "schemaFingerprint",
          "expectedRowCount"
        ],
        "additionalProperties": false
      },
      "postV2MetricsClientWritesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "clientBindingId": {
                "type": "string"
              },
              "clientBindingVersionId": {
                "type": "string"
              },
              "runId": {
                "type": "string"
              },
              "generation": {
                "type": "number"
              },
              "status": {
                "type": "string"
              },
              "nextRowOffset": {
                "type": "number"
              },
              "rowsWritten": {
                "type": "number"
              },
              "schemaFingerprint": {
                "type": "string"
              },
              "outputChecksum": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "lastWrittenRange": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "expiresAt": {
                "type": "string"
              },
              "committedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": [
              "id",
              "clientBindingId",
              "clientBindingVersionId",
              "runId",
              "generation",
              "status",
              "nextRowOffset",
              "rowsWritten",
              "schemaFingerprint",
              "outputChecksum",
              "lastWrittenRange",
              "expiresAt",
              "committedAt"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientWritesResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "clientBindingId": {
                "type": "string"
              },
              "clientBindingVersionId": {
                "type": "string"
              },
              "runId": {
                "type": "string"
              },
              "generation": {
                "type": "number"
              },
              "status": {
                "type": "string"
              },
              "nextRowOffset": {
                "type": "number"
              },
              "rowsWritten": {
                "type": "number"
              },
              "schemaFingerprint": {
                "type": "string"
              },
              "outputChecksum": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "lastWrittenRange": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "expiresAt": {
                "type": "string"
              },
              "committedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": [
              "id",
              "clientBindingId",
              "clientBindingVersionId",
              "runId",
              "generation",
              "status",
              "nextRowOffset",
              "rowsWritten",
              "schemaFingerprint",
              "outputChecksum",
              "lastWrittenRange",
              "expiresAt",
              "committedAt"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientAuthChallengesRequest": {
        "type": "object",
        "properties": {
          "audience": {
            "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
            "type": "string"
          },
          "clientKind": {
            "enum": ["google_sheets", "excel"],
            "type": "string"
          },
          "documentReferenceHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "hostUserReferenceHash": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            ]
          },
          "codeChallenge": {
            "type": "string",
            "minLength": 43,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._~-]+$"
          },
          "supportsSessionRenewal": {
            "type": "boolean",
            "description": "Google Sheets clients opt into the renewable connection protocol; approval and workspace rollout remain required."
          }
        },
        "required": [
          "audience",
          "clientKind",
          "documentReferenceHash",
          "hostUserReferenceHash",
          "codeChallenge"
        ],
        "additionalProperties": false
      },
      "postV2MetricsClientAuthChallengesResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "challengeId": {
                "type": "string"
              },
              "pollSecret": {
                "type": "string"
              },
              "userCode": {
                "type": "string"
              },
              "authorizationUrl": {
                "type": "string"
              },
              "pollIntervalSeconds": {
                "type": "number"
              },
              "expiresAt": {
                "type": "string"
              },
              "sessionRenewalSupported": {
                "type": "boolean"
              }
            },
            "required": [
              "challengeId",
              "pollSecret",
              "userCode",
              "authorizationUrl",
              "pollIntervalSeconds",
              "expiresAt"
            ]
          }
        },
        "required": ["data"]
      },
      "postV2MetricsCommandsBatchCreateRequest": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                },
                "resourceType": {
                  "enum": [
                    "schedule",
                    "query",
                    "model",
                    "table_group",
                    "imported_dataset",
                    "client_binding",
                    "blend",
                    "destination",
                    "transfer",
                    "custom_field",
                    "account_tag"
                  ],
                  "type": "string"
                },
                "clientRequestId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 96
                }
              },
              "required": ["value", "resourceType", "clientRequestId"],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 25
          }
        },
        "required": ["items"],
        "additionalProperties": false
      },
      "postV2MetricsCommandsBatchCreateResponse207": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "succeededCount": {
                "type": "number"
              },
              "failedCount": {
                "type": "number"
              }
            },
            "required": ["items", "succeededCount", "failedCount"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsCommandsBatchCreateResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "succeededCount": {
                "type": "number"
              },
              "failedCount": {
                "type": "number"
              }
            },
            "required": ["items", "succeededCount", "failedCount"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsCommandsBatchCreateResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "succeededCount": {
                "type": "number"
              },
              "failedCount": {
                "type": "number"
              }
            },
            "required": ["items", "succeededCount", "failedCount"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsCommandsCloneRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "resourceType": {
            "enum": [
              "schedule",
              "query",
              "model",
              "table_group",
              "imported_dataset",
              "client_binding",
              "blend",
              "destination",
              "transfer",
              "custom_field"
            ],
            "type": "string"
          },
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 4000
              }
            ]
          },
          "versionId": {
            "type": "string",
            "format": "uuid"
          },
          "publish": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          }
        },
        "required": ["name", "resourceType", "resourceId"],
        "additionalProperties": false
      },
      "postV2MetricsCommandsCloneResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "source": {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "enum": [
                      "schedule",
                      "query",
                      "model",
                      "table_group",
                      "imported_dataset",
                      "client_binding",
                      "blend",
                      "destination",
                      "transfer",
                      "custom_field"
                    ],
                    "type": "string"
                  },
                  "resourceId": {
                    "type": "string"
                  },
                  "versionId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["resourceType", "resourceId", "versionId"]
              },
              "cloned": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "destinationId": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "destinationId",
                      "versionId",
                      "versionNumber",
                      "versionStatus"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "queryId": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "queryId",
                      "versionId",
                      "versionNumber",
                      "versionStatus"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "scheduleId": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      },
                      "nextEvaluationAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "scheduleId",
                      "versionId",
                      "versionNumber",
                      "versionStatus",
                      "nextEvaluationAt"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "transferId": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "transferId",
                      "versionId",
                      "versionNumber",
                      "versionStatus"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "resourceId": {
                        "type": "string"
                      },
                      "resourceType": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "resourceId",
                      "resourceType",
                      "versionId",
                      "versionNumber",
                      "versionStatus"
                    ]
                  }
                ]
              },
              "childReplayed": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": ["source", "cloned", "childReplayed"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsCommandsCloneResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "source": {
                "type": "object",
                "properties": {
                  "resourceType": {
                    "enum": [
                      "schedule",
                      "query",
                      "model",
                      "table_group",
                      "imported_dataset",
                      "client_binding",
                      "blend",
                      "destination",
                      "transfer",
                      "custom_field"
                    ],
                    "type": "string"
                  },
                  "resourceId": {
                    "type": "string"
                  },
                  "versionId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["resourceType", "resourceId", "versionId"]
              },
              "cloned": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "destinationId": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "destinationId",
                      "versionId",
                      "versionNumber",
                      "versionStatus"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "queryId": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "queryId",
                      "versionId",
                      "versionNumber",
                      "versionStatus"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "scheduleId": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      },
                      "nextEvaluationAt": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "scheduleId",
                      "versionId",
                      "versionNumber",
                      "versionStatus",
                      "nextEvaluationAt"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "transferId": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "transferId",
                      "versionId",
                      "versionNumber",
                      "versionStatus"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "actorId": {
                        "type": "string"
                      },
                      "canonicalHash": {
                        "type": "string"
                      },
                      "resourceId": {
                        "type": "string"
                      },
                      "resourceType": {
                        "type": "string"
                      },
                      "versionId": {
                        "type": "string"
                      },
                      "versionNumber": {
                        "type": "number"
                      },
                      "versionStatus": {
                        "enum": ["draft", "published", "superseded"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "actorId",
                      "canonicalHash",
                      "resourceId",
                      "resourceType",
                      "versionId",
                      "versionNumber",
                      "versionStatus"
                    ]
                  }
                ]
              },
              "childReplayed": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": ["source", "cloned", "childReplayed"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsCommandsValidateRequest": {
        "type": "object",
        "properties": {
          "target": {
            "type": "object",
            "properties": {},
            "additionalProperties": {}
          },
          "initiator": {
            "type": "object",
            "properties": {},
            "additionalProperties": {}
          }
        },
        "required": ["target"],
        "additionalProperties": false
      },
      "postV2MetricsCommandsValidateResponse202": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "operationId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "type": "string"
              }
            },
            "required": ["actorId", "operationId", "resourceId", "resourceVersionId", "status"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsDefinitionsResourceTypeResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": {}
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsDefinitionsResourceTypeRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": ["name", "definition"],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "description": {
            "type": ["string", "null"],
            "maxLength": 4000,
            "default": null
          },
          "visibility": {
            "type": "string",
            "const": "workspace",
            "description": "Service-account resources must be visible to the workspace."
          },
          "publish": {
            "type": "boolean",
            "default": false
          },
          "definition": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "const": 2
                  },
                  "expression": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "literal"
                          },
                          "valueType": {
                            "enum": [
                              "string",
                              "number",
                              "boolean",
                              "integer",
                              "date",
                              "json",
                              "duration",
                              "url",
                              "percent",
                              "currency",
                              "datetime",
                              "decimal",
                              "image_url"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              },
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              },
                              {
                                "type": "object",
                                "properties": {},
                                "additionalProperties": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              }
                            ]
                          }
                        },
                        "required": ["kind", "valueType", "value"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "field"
                          },
                          "fieldId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "fieldId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "custom_field"
                          },
                          "customFieldVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "customFieldVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "call"
                          },
                          "function": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "concat",
                              "replace",
                              "substring",
                              "trim",
                              "if",
                              "equals",
                              "not_equals",
                              "greater_than",
                              "less_than",
                              "absolute",
                              "and",
                              "or",
                              "lowercase",
                              "uppercase",
                              "add",
                              "subtract",
                              "multiply",
                              "divide",
                              "modulo",
                              "round",
                              "coalesce",
                              "case",
                              "not",
                              "regex_extract",
                              "date_add",
                              "date_difference",
                              "date_truncate",
                              "extract_date_part",
                              "ratio",
                              "percentage",
                              "currency_convert",
                              "lookup"
                            ],
                            "type": "string"
                          },
                          "arguments": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/ContractType152093"
                            }
                          },
                          "options": {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            }
                          }
                        },
                        "required": ["kind", "function", "arguments", "options"]
                      }
                    ]
                  },
                  "outputType": {
                    "enum": [
                      "string",
                      "number",
                      "boolean",
                      "integer",
                      "date",
                      "json",
                      "duration",
                      "url",
                      "percent",
                      "currency",
                      "datetime",
                      "decimal",
                      "image_url"
                    ],
                    "type": "string"
                  },
                  "semanticRole": {
                    "enum": ["metric", "dimension", "identifier", "attribute"],
                    "type": "string"
                  },
                  "nullBehavior": {
                    "enum": ["error", "propagate", "coalesce_zero", "coalesce_empty"],
                    "type": "string"
                  },
                  "errorBehavior": {
                    "enum": ["null", "error"],
                    "type": "string"
                  },
                  "currencyContext": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "sourceCurrencyFieldId": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            ]
                          },
                          "targetCurrency": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 3
                          }
                        },
                        "required": ["sourceCurrencyFieldId", "targetCurrency"],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "dateContext": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "locale": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 35
                          }
                        },
                        "required": ["timeZone", "locale"],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "validationFixtures": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "expected": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            },
                            {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/ContractType54286"
                              }
                            },
                            {
                              "type": "object",
                              "properties": {},
                              "additionalProperties": {
                                "$ref": "#/components/schemas/ContractType54286"
                              }
                            }
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "input": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              },
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              },
                              {
                                "type": "object",
                                "properties": {},
                                "additionalProperties": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              }
                            ]
                          }
                        }
                      },
                      "required": ["expected", "name", "input"],
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "catalogVisibility": {
                    "enum": ["workspace", "hidden"],
                    "type": "string"
                  }
                },
                "required": [
                  "schemaVersion",
                  "expression",
                  "outputType",
                  "semanticRole",
                  "nullBehavior",
                  "errorBehavior",
                  "currencyContext",
                  "dateContext",
                  "validationFixtures",
                  "catalogVisibility"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "join": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "leftFieldId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "rightFieldId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                }
                              },
                              "required": ["leftFieldId", "rightFieldId"],
                              "additionalProperties": false
                            },
                            "minItems": 1
                          },
                          "type": {
                            "enum": ["full", "inner", "left", "anti"],
                            "type": "string"
                          },
                          "leftInputIndex": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "rightInputIndex": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "cardinality": {
                            "enum": ["one_to_one", "one_to_many", "many_to_one"],
                            "type": "string"
                          },
                          "unmatchedRowPolicy": {
                            "enum": ["retain", "discard"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "keys",
                          "type",
                          "leftInputIndex",
                          "rightInputIndex",
                          "cardinality",
                          "unmatchedRowPolicy"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "mode": {
                    "enum": ["join", "union", "union_by_name"],
                    "type": "string"
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 2
                  },
                  "missingColumnPolicy": {
                    "enum": ["null", "reject"],
                    "type": "string"
                  },
                  "outputSchemaFingerprint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "inputs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "input": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "query"
                                },
                                "queryVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "queryVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "model"
                                },
                                "modelVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "modelVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "blend"
                                },
                                "blendVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "blendVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "imported_dataset"
                                },
                                "importedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "importedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "managed_dataset"
                                },
                                "managedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "managedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "table_group"
                                },
                                "tableGroupVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "tableGroupVersionId"]
                            }
                          ]
                        }
                      },
                      "required": ["id", "input"],
                      "additionalProperties": false
                    },
                    "minItems": 2,
                    "maxItems": 25
                  },
                  "fieldMappings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "outputFieldId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "inputNodeId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "inputFieldId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "outputLabel": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "cast": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string",
                              "const": "string"
                            },
                            {
                              "type": "string",
                              "const": "number"
                            },
                            {
                              "type": "string",
                              "const": "boolean"
                            },
                            {
                              "type": "string",
                              "const": "integer"
                            },
                            {
                              "type": "string",
                              "const": "date"
                            },
                            {
                              "type": "string",
                              "const": "json"
                            },
                            {
                              "type": "string",
                              "const": "duration"
                            },
                            {
                              "type": "string",
                              "const": "url"
                            },
                            {
                              "type": "string",
                              "const": "percent"
                            },
                            {
                              "type": "string",
                              "const": "currency"
                            },
                            {
                              "type": "string",
                              "const": "datetime"
                            },
                            {
                              "type": "string",
                              "const": "decimal"
                            },
                            {
                              "type": "string",
                              "const": "image_url"
                            }
                          ]
                        }
                      },
                      "required": [
                        "outputFieldId",
                        "inputNodeId",
                        "inputFieldId",
                        "outputLabel",
                        "cast"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 1000
                  }
                },
                "required": [
                  "join",
                  "mode",
                  "schemaVersion",
                  "missingColumnPolicy",
                  "outputSchemaFingerprint",
                  "inputs",
                  "fieldMappings"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "const": 2
                  },
                  "outputSchemaFingerprint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "nodes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "enum": [
                            "join",
                            "sort",
                            "filter",
                            "limit",
                            "select",
                            "union",
                            "input",
                            "pivot",
                            "cast",
                            "rename",
                            "formula",
                            "aggregate",
                            "deduplicate",
                            "unpivot",
                            "date_bucket",
                            "date_spine",
                            "window",
                            "assert"
                          ],
                          "type": "string"
                        },
                        "filter": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "condition"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "operator": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "execution": {
                                  "enum": [
                                    "pushdown_required",
                                    "pushdown_preferred",
                                    "platform_allowed"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "fieldId", "operator", "value", "execution"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "group"
                                },
                                "conjunction": {
                                  "enum": ["and", "or"],
                                  "type": "string"
                                },
                                "children": {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "condition"
                                          },
                                          "fieldId": {
                                            "type": "string"
                                          },
                                          "operator": {
                                            "enum": [
                                              "equals",
                                              "not_equals",
                                              "contains",
                                              "greater_than",
                                              "less_than",
                                              "in",
                                              "between",
                                              "is_null",
                                              "is_not_null",
                                              "not_in",
                                              "not_contains",
                                              "starts_with",
                                              "ends_with",
                                              "regex",
                                              "not_regex",
                                              "greater_than_or_equal",
                                              "less_than_or_equal"
                                            ],
                                            "type": "string"
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "type": "null"
                                              },
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean",
                                                "const": false
                                              },
                                              {
                                                "type": "boolean",
                                                "const": true
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "$ref": "#/components/schemas/ContractType54286"
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {},
                                                "additionalProperties": {
                                                  "$ref": "#/components/schemas/ContractType54286"
                                                }
                                              }
                                            ]
                                          },
                                          "execution": {
                                            "enum": [
                                              "pushdown_required",
                                              "pushdown_preferred",
                                              "platform_allowed"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "fieldId",
                                          "operator",
                                          "value",
                                          "execution"
                                        ]
                                      },
                                      {
                                        "$ref": "#/components/schemas/ContractType94867"
                                      }
                                    ]
                                  }
                                }
                              },
                              "required": ["kind", "conjunction", "children"]
                            }
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "input": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "query"
                                },
                                "queryVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "queryVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "model"
                                },
                                "modelVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "modelVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "blend"
                                },
                                "blendVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "blendVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "imported_dataset"
                                },
                                "importedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "importedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "managed_dataset"
                                },
                                "managedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "managedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "table_group"
                                },
                                "tableGroupVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "tableGroupVersionId"]
                            }
                          ]
                        },
                        "config": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        },
                        "expressions": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "literal"
                                  },
                                  "valueType": {
                                    "enum": [
                                      "string",
                                      "number",
                                      "boolean",
                                      "integer",
                                      "date",
                                      "json",
                                      "duration",
                                      "url",
                                      "percent",
                                      "currency",
                                      "datetime",
                                      "decimal",
                                      "image_url"
                                    ],
                                    "type": "string"
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "null"
                                      },
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean",
                                        "const": false
                                      },
                                      {
                                        "type": "boolean",
                                        "const": true
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/components/schemas/ContractType54286"
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {},
                                        "additionalProperties": {
                                          "$ref": "#/components/schemas/ContractType54286"
                                        }
                                      }
                                    ]
                                  }
                                },
                                "required": ["kind", "valueType", "value"]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "field"
                                  },
                                  "fieldId": {
                                    "type": "string"
                                  }
                                },
                                "required": ["kind", "fieldId"]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "custom_field"
                                  },
                                  "customFieldVersionId": {
                                    "type": "string"
                                  }
                                },
                                "required": ["kind", "customFieldVersionId"]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "call"
                                  },
                                  "function": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "concat",
                                      "replace",
                                      "substring",
                                      "trim",
                                      "if",
                                      "equals",
                                      "not_equals",
                                      "greater_than",
                                      "less_than",
                                      "absolute",
                                      "and",
                                      "or",
                                      "lowercase",
                                      "uppercase",
                                      "add",
                                      "subtract",
                                      "multiply",
                                      "divide",
                                      "modulo",
                                      "round",
                                      "coalesce",
                                      "case",
                                      "not",
                                      "regex_extract",
                                      "date_add",
                                      "date_difference",
                                      "date_truncate",
                                      "extract_date_part",
                                      "ratio",
                                      "percentage",
                                      "currency_convert",
                                      "lookup"
                                    ],
                                    "type": "string"
                                  },
                                  "arguments": {
                                    "$ref": "#/components/schemas/ContractType156929"
                                  },
                                  "options": {
                                    "type": "object",
                                    "properties": {},
                                    "additionalProperties": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean",
                                          "const": false
                                        },
                                        {
                                          "type": "boolean",
                                          "const": true
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "$ref": "#/components/schemas/ContractType54286"
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {},
                                          "additionalProperties": {
                                            "$ref": "#/components/schemas/ContractType54286"
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                "required": ["kind", "function", "arguments", "options"]
                              }
                            ]
                          },
                          "maxItems": 250
                        }
                      },
                      "required": [
                        "type",
                        "filter",
                        "name",
                        "id",
                        "input",
                        "config",
                        "expressions"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "edges": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fromNodeId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "toNodeId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "inputPort": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        }
                      },
                      "required": ["fromNodeId", "toNodeId", "inputPort"],
                      "additionalProperties": false
                    },
                    "maxItems": 2000
                  },
                  "outputNodeId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "materialization": {
                    "enum": ["managed_dataset", "ephemeral", "artifact"],
                    "type": "string"
                  },
                  "assertions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "kind": {
                          "enum": [
                            "row_count",
                            "unique_key",
                            "non_null",
                            "accepted_range",
                            "freshness"
                          ],
                          "type": "string"
                        },
                        "severity": {
                          "enum": ["error", "warning"],
                          "type": "string"
                        },
                        "config": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          }
                        },
                        "fieldIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "maxItems": 50
                        }
                      },
                      "required": ["id", "kind", "severity", "config", "fieldIds"],
                      "additionalProperties": false
                    },
                    "maxItems": 200
                  }
                },
                "required": [
                  "schemaVersion",
                  "outputSchemaFingerprint",
                  "nodes",
                  "edges",
                  "outputNodeId",
                  "materialization",
                  "assertions"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "const": 2
                  },
                  "templateId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      }
                    ]
                  },
                  "tables": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "filter": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "condition"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "operator": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "execution": {
                                  "enum": [
                                    "pushdown_required",
                                    "pushdown_preferred",
                                    "platform_allowed"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "fieldId", "operator", "value", "execution"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "group"
                                },
                                "conjunction": {
                                  "enum": ["and", "or"],
                                  "type": "string"
                                },
                                "children": {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "condition"
                                          },
                                          "fieldId": {
                                            "type": "string"
                                          },
                                          "operator": {
                                            "enum": [
                                              "equals",
                                              "not_equals",
                                              "contains",
                                              "greater_than",
                                              "less_than",
                                              "in",
                                              "between",
                                              "is_null",
                                              "is_not_null",
                                              "not_in",
                                              "not_contains",
                                              "starts_with",
                                              "ends_with",
                                              "regex",
                                              "not_regex",
                                              "greater_than_or_equal",
                                              "less_than_or_equal"
                                            ],
                                            "type": "string"
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "type": "null"
                                              },
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean",
                                                "const": false
                                              },
                                              {
                                                "type": "boolean",
                                                "const": true
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "$ref": "#/components/schemas/ContractType54286"
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {},
                                                "additionalProperties": {
                                                  "$ref": "#/components/schemas/ContractType54286"
                                                }
                                              }
                                            ]
                                          },
                                          "execution": {
                                            "enum": [
                                              "pushdown_required",
                                              "pushdown_preferred",
                                              "platform_allowed"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "fieldId",
                                          "operator",
                                          "value",
                                          "execution"
                                        ]
                                      },
                                      {
                                        "$ref": "#/components/schemas/ContractType94867"
                                      }
                                    ]
                                  }
                                }
                              },
                              "required": ["kind", "conjunction", "children"]
                            }
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "input": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "query"
                                },
                                "queryVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "queryVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "model"
                                },
                                "modelVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "modelVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "imported_dataset"
                                },
                                "importedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "importedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "managed_dataset"
                                },
                                "managedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "managedDatasetVersionId"]
                            }
                          ]
                        },
                        "displayName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 160
                              },
                              "fieldId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "position": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "outputFieldId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "required": ["label", "fieldId", "position", "outputFieldId"],
                            "additionalProperties": false
                          },
                          "minItems": 1,
                          "maxItems": 1000
                        },
                        "keyFieldIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "maxItems": 50
                        },
                        "connectorOptions": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              },
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              },
                              {
                                "type": "object",
                                "properties": {},
                                "additionalProperties": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              }
                            ]
                          }
                        },
                        "schemaPolicy": {
                          "enum": ["locked", "additive", "reconcile"],
                          "type": "string"
                        },
                        "partitionFieldIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "maxItems": 20
                        },
                        "lookbackWindow": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 10000
                                },
                                "unit": {
                                  "enum": ["hour", "day", "week", "month"],
                                  "type": "string"
                                }
                              },
                              "required": ["count", "unit"],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "updateMode": {
                          "enum": [
                            "replace",
                            "append",
                            "upsert",
                            "rolling_window",
                            "single_day_snapshot",
                            "historical_snapshot",
                            "rolling_historical_snapshot"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "filter",
                        "name",
                        "id",
                        "input",
                        "displayName",
                        "fields",
                        "keyFieldIds",
                        "connectorOptions",
                        "schemaPolicy",
                        "partitionFieldIds",
                        "lookbackWindow",
                        "updateMode"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "dependencyVersionIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "maxItems": 500
                  },
                  "portableMetadata": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "schemaVersion",
                  "templateId",
                  "tables",
                  "dependencyVersionIds",
                  "portableMetadata"
                ],
                "additionalProperties": false
              },
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "source": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "manual_upload"
                              },
                              "allowedFormats": {
                                "type": "array",
                                "items": {
                                  "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
                                  "type": "string"
                                }
                              }
                            },
                            "required": ["kind", "allowedFormats"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "authenticated_file"
                              },
                              "connectionVersionId": {
                                "type": "string"
                              },
                              "providerPath": {
                                "type": "string"
                              },
                              "expectedFormat": {
                                "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
                                "type": "string"
                              }
                            },
                            "required": [
                              "kind",
                              "connectionVersionId",
                              "providerPath",
                              "expectedFormat"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "email_intake"
                              },
                              "intakeId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "intakeId"]
                          }
                        ]
                      },
                      "target": {
                        "type": "string",
                        "const": "retained_import"
                      },
                      "qualityRules": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "not_null"
                                },
                                "severity": {
                                  "enum": ["error", "warning"],
                                  "type": "string"
                                },
                                "fieldId": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "kind", "severity", "fieldId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "unique"
                                },
                                "severity": {
                                  "enum": ["error", "warning"],
                                  "type": "string"
                                },
                                "fieldIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": ["id", "kind", "severity", "fieldIds"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "values": {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "null"
                                      },
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean",
                                        "const": false
                                      },
                                      {
                                        "type": "boolean",
                                        "const": true
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/components/schemas/ContractType54286"
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {},
                                        "additionalProperties": {
                                          "$ref": "#/components/schemas/ContractType54286"
                                        }
                                      }
                                    ]
                                  }
                                },
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "accepted_values"
                                },
                                "severity": {
                                  "enum": ["error", "warning"],
                                  "type": "string"
                                },
                                "fieldId": {
                                  "type": "string"
                                }
                              },
                              "required": ["values", "id", "kind", "severity", "fieldId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "minimum": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ]
                                },
                                "maximum": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ]
                                },
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "row_count"
                                },
                                "severity": {
                                  "enum": ["error", "warning"],
                                  "type": "string"
                                }
                              },
                              "required": ["minimum", "maximum", "id", "kind", "severity"]
                            }
                          ]
                        }
                      },
                      "maximumRows": {
                        "type": "number"
                      },
                      "maximumBytes": {
                        "type": "number"
                      },
                      "malformedRowPolicy": {
                        "enum": ["reject_file", "quarantine_rows"],
                        "type": "string"
                      },
                      "mappingVersionId": {
                        "type": "string"
                      },
                      "updatePolicyVersionId": {
                        "type": "string"
                      },
                      "retentionPolicyVersionId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "schemaVersion",
                      "source",
                      "target",
                      "qualityRules",
                      "maximumRows",
                      "maximumBytes",
                      "malformedRowPolicy",
                      "mappingVersionId",
                      "updatePolicyVersionId",
                      "retentionPolicyVersionId"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "columns": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "enum": [
                                "string",
                                "number",
                                "boolean",
                                "integer",
                                "date",
                                "json",
                                "duration",
                                "url",
                                "percent",
                                "currency",
                                "datetime",
                                "decimal",
                                "image_url"
                              ],
                              "type": "string"
                            },
                            "nullable": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "label": {
                              "type": "string"
                            },
                            "fieldId": {
                              "type": "string"
                            },
                            "sourceName": {
                              "type": "string"
                            }
                          },
                          "required": ["type", "nullable", "label", "fieldId", "sourceName"]
                        }
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 2
                      },
                      "source": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "manual_upload"
                              },
                              "originalFileName": {
                                "type": "string"
                              },
                              "sourceArtifactId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "originalFileName", "sourceArtifactId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "authenticated_file"
                              },
                              "connectionId": {
                                "type": "string"
                              },
                              "providerPath": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "connectionId", "providerPath"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "email_intake"
                              },
                              "intakeId": {
                                "type": "string"
                              },
                              "senderPolicyVersion": {
                                "type": "number"
                              }
                            },
                            "required": ["kind", "intakeId", "senderPolicyVersion"]
                          }
                        ]
                      },
                      "retentionDays": {
                        "type": "number"
                      },
                      "formulaInjectionPolicy": {
                        "enum": ["reject", "escape"],
                        "type": "string"
                      },
                      "keyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "maximumRows": {
                        "type": "number"
                      },
                      "maximumBytes": {
                        "type": "number"
                      },
                      "malformedRowPolicy": {
                        "enum": ["reject_file", "quarantine_rows"],
                        "type": "string"
                      },
                      "updateMode": {
                        "enum": ["replace", "append", "upsert"],
                        "type": "string"
                      },
                      "incrementalCursorFieldId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "columns",
                      "schemaVersion",
                      "source",
                      "retentionDays",
                      "formulaInjectionPolicy",
                      "keyFieldIds",
                      "maximumRows",
                      "maximumBytes",
                      "malformedRowPolicy",
                      "updateMode",
                      "incrementalCursorFieldId"
                    ]
                  }
                ]
              },
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "google_sheets"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "sheetName": {
                            "type": "string"
                          },
                          "spreadsheetReferenceHash": {
                            "type": "string"
                          },
                          "stableSheetId": {
                            "type": "number"
                          }
                        },
                        "required": ["sheetName", "spreadsheetReferenceHash", "stableSheetId"]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "anchorRow": {
                            "type": "number"
                          },
                          "anchorColumn": {
                            "type": "number"
                          },
                          "selectedRangeA1": {
                            "type": "string"
                          },
                          "lastWrittenRangeA1": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": [
                          "anchorRow",
                          "anchorColumn",
                          "selectedRangeA1",
                          "lastWrittenRangeA1"
                        ]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "excel"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "workbookReferenceHash": {
                            "type": "string"
                          },
                          "stableWorksheetId": {
                            "type": "string"
                          },
                          "worksheetName": {
                            "type": "string"
                          },
                          "storageKind": {
                            "enum": ["onedrive", "sharepoint", "local"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "workbookReferenceHash",
                          "stableWorksheetId",
                          "worksheetName",
                          "storageKind"
                        ]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "tableName": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "anchorRow": {
                            "type": "number"
                          },
                          "anchorColumn": {
                            "type": "number"
                          },
                          "selectedAddress": {
                            "type": "string"
                          },
                          "lastWrittenAddress": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": [
                          "tableName",
                          "anchorRow",
                          "anchorColumn",
                          "selectedAddress",
                          "lastWrittenAddress"
                        ]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "looker_studio"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "dataSourceReferenceHash": {
                            "type": "string"
                          },
                          "reportReferenceHash": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "credentialOwnership": {
                            "enum": ["owner", "viewer"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "dataSourceReferenceHash",
                          "reportReferenceHash",
                          "credentialOwnership"
                        ]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "selectedFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "dataSourceName": {
                            "type": "string"
                          },
                          "defaultDateFieldId": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["selectedFieldIds", "dataSourceName", "defaultDateFieldId"]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "performance": {
                        "type": "object",
                        "properties": {
                          "maximumRows": {
                            "type": "number"
                          },
                          "refreshMode": {
                            "enum": ["live_operation", "latest_retained_result"],
                            "type": "string"
                          },
                          "maximumWaitSeconds": {
                            "type": "number"
                          },
                          "resultPageSize": {
                            "type": "number"
                          },
                          "imagePolicy": {
                            "enum": ["url", "download"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "maximumRows",
                          "refreshMode",
                          "maximumWaitSeconds",
                          "resultPageSize",
                          "imagePolicy"
                        ]
                      },
                      "refreshFieldsOnCatalogueChange": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "sharing": {
                        "type": "object",
                        "properties": {
                          "allowCredentialSharing": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "requireWorkspaceMembership": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          }
                        },
                        "required": ["allowCredentialSharing", "requireWorkspaceMembership"]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion",
                      "performance",
                      "refreshFieldsOnCatalogueChange",
                      "sharing"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "power_bi"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "tenantReferenceHash": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "workspaceReferenceHash": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "datasetReferenceHash": {
                            "type": "string"
                          },
                          "storageMode": {
                            "type": "string",
                            "const": "import"
                          }
                        },
                        "required": [
                          "tenantReferenceHash",
                          "workspaceReferenceHash",
                          "datasetReferenceHash",
                          "storageMode"
                        ]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "tableName": {
                            "type": "string"
                          },
                          "selectedFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "semanticModelName": {
                            "type": "string"
                          }
                        },
                        "required": ["tableName", "selectedFieldIds", "semanticModelName"]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "performance": {
                        "type": "object",
                        "properties": {
                          "maximumRows": {
                            "type": "number"
                          },
                          "refreshMode": {
                            "enum": ["live_operation", "latest_retained_result"],
                            "type": "string"
                          },
                          "maximumWaitSeconds": {
                            "type": "number"
                          },
                          "resultPageSize": {
                            "type": "number"
                          },
                          "imagePolicy": {
                            "enum": ["url", "download"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "maximumRows",
                          "refreshMode",
                          "maximumWaitSeconds",
                          "resultPageSize",
                          "imagePolicy"
                        ]
                      },
                      "scheduledRefresh": {
                        "type": "object",
                        "properties": {
                          "managedBy": {
                            "enum": ["chatobserver", "power_bi"],
                            "type": "string"
                          },
                          "gatewayRequired": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "privacyLevel": {
                            "enum": ["private", "organizational"],
                            "type": "string"
                          }
                        },
                        "required": ["managedBy", "gatewayRequired", "privacyLevel"]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion",
                      "performance",
                      "scheduledRefresh"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "chatobserver_report"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "reportId": {
                            "type": "string"
                          },
                          "pageId": {
                            "type": "string"
                          },
                          "blockId": {
                            "type": "string"
                          }
                        },
                        "required": ["reportId", "pageId", "blockId"]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "anchor": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "container": {
                            "type": "string",
                            "const": "report_block"
                          },
                          "rangeOrTable": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["anchor", "container", "rangeOrTable"]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "api_export"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "label": {
                            "type": "string"
                          },
                          "consumerReferenceHash": {
                            "type": "string"
                          },
                          "serviceAccountId": {
                            "type": "string"
                          }
                        },
                        "required": ["label", "consumerReferenceHash", "serviceAccountId"]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "anchor": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "container": {
                            "type": "string",
                            "const": "result_pages"
                          },
                          "rangeOrTable": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["anchor", "container", "rangeOrTable"]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "postV2MetricsDefinitionsResourceTypeResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceType": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "resourceId",
              "resourceType",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsDefinitionsResourceTypeResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceType": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "resourceId",
              "resourceType",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsOperationsOperationIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "operation": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "resourceType": {
                    "type": "string"
                  },
                  "resourceId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "resourceVersionId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "clientInvocation": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "clientKind": {
                            "enum": [
                              "looker_studio",
                              "power_bi",
                              "qlik",
                              "azure_data_factory",
                              "alteryx",
                              "n8n",
                              "tableau",
                              "generic_rest"
                            ],
                            "type": "string"
                          },
                          "consumerReferenceHash": {
                            "type": "string"
                          },
                          "clientBindingVersionId": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "selectedFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "requestedAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "clientKind",
                          "consumerReferenceHash",
                          "clientBindingVersionId",
                          "selectedFieldIds",
                          "requestedAt"
                        ]
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "cancelRequestedAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "startedAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "finishedAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "action",
                  "status",
                  "resourceType",
                  "resourceId",
                  "resourceVersionId",
                  "clientInvocation",
                  "errorCode",
                  "cancelRequestedAt",
                  "startedAt",
                  "finishedAt",
                  "createdAt"
                ]
              },
              "run": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "scheduleId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "trigger": {
                        "enum": [
                          "manual",
                          "preview",
                          "report_refresh",
                          "surface_refresh",
                          "scheduled",
                          "backfill"
                        ],
                        "type": "string"
                      },
                      "status": {
                        "enum": [
                          "queued",
                          "running",
                          "succeeded",
                          "failed",
                          "pending",
                          "succeeded_with_warnings",
                          "canceled",
                          "cancelled"
                        ],
                        "type": "string"
                      },
                      "errorCode": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "rowCount": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "resultBytes": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "startedAt": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "finishedAt": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "stages": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "startedAt": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "finishedAt": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "qualityResults": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "assertionId": {
                                    "type": "string"
                                  },
                                  "severity": {
                                    "type": "string"
                                  },
                                  "passed": {
                                    "anyOf": [
                                      {
                                        "type": "boolean",
                                        "const": false
                                      },
                                      {
                                        "type": "boolean",
                                        "const": true
                                      }
                                    ]
                                  },
                                  "failureCount": {
                                    "type": "number"
                                  },
                                  "evaluatedAt": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "assertionId",
                                  "severity",
                                  "passed",
                                  "failureCount",
                                  "evaluatedAt"
                                ]
                              }
                            },
                            "id": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string"
                            },
                            "position": {
                              "type": "number"
                            },
                            "status": {
                              "type": "string"
                            },
                            "rowsProcessed": {
                              "type": "number"
                            },
                            "bytesProcessed": {
                              "type": "number"
                            },
                            "errorCode": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "startedAt",
                            "finishedAt",
                            "qualityResults",
                            "id",
                            "kind",
                            "position",
                            "status",
                            "rowsProcessed",
                            "bytesProcessed",
                            "errorCode"
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "scheduleId",
                      "trigger",
                      "status",
                      "errorCode",
                      "rowCount",
                      "resultBytes",
                      "startedAt",
                      "finishedAt",
                      "createdAt",
                      "stages"
                    ]
                  }
                ]
              },
              "result": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "schemaFingerprint": {
                        "type": "string"
                      },
                      "rowCount": {
                        "type": "number"
                      },
                      "byteCount": {
                        "type": "number"
                      },
                      "expiresAt": {
                        "type": "string"
                      },
                      "finalizedAt": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "artifactId",
                      "schemaFingerprint",
                      "rowCount",
                      "byteCount",
                      "expiresAt",
                      "finalizedAt"
                    ]
                  }
                ]
              }
            },
            "required": ["operation", "run", "result"]
          }
        },
        "required": ["data"]
      },
      "patchV2MetricsWebhooksEndpointIdRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 3,
            "maxLength": 120
          },
          "description": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "maxLength": 2000
              }
            ]
          },
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048
          },
          "eventTypes": {
            "type": "array",
            "items": {
              "enum": [
                "metrics.query.created",
                "metrics.query.version_created",
                "metrics.query.published",
                "metrics.schedule.created",
                "metrics.schedule.version_created",
                "metrics.schedule.published",
                "metrics.schedule.paused",
                "metrics.schedule.resumed",
                "metrics.transfer.created",
                "metrics.transfer.version_created",
                "metrics.transfer.published",
                "metrics.transfer.paused",
                "metrics.transfer.resumed",
                "metrics.operation.accepted",
                "metrics.operation.cancel_requested",
                "metrics.operation.retried",
                "metrics.run.succeeded",
                "metrics.run.failed"
              ],
              "type": "string"
            },
            "minItems": 1
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": ["name", "description", "url", "eventTypes", "expectedRevision"],
        "additionalProperties": false
      },
      "patchV2MetricsWebhooksEndpointIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "endpoint": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "eventTypes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "signingSecretVersion": {
                    "type": "number"
                  },
                  "revision": {
                    "type": "number"
                  },
                  "lastDeliveryAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "disabledAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "description",
                  "url",
                  "status",
                  "eventTypes",
                  "signingSecretVersion",
                  "revision",
                  "lastDeliveryAt",
                  "disabledAt",
                  "createdAt",
                  "updatedAt"
                ]
              }
            },
            "required": ["endpoint"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "deleteV2MetricsWebhooksEndpointIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "endpoint": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "eventTypes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "signingSecretVersion": {
                    "type": "number"
                  },
                  "revision": {
                    "type": "number"
                  },
                  "lastDeliveryAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "disabledAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "description",
                  "url",
                  "status",
                  "eventTypes",
                  "signingSecretVersion",
                  "revision",
                  "lastDeliveryAt",
                  "disabledAt",
                  "createdAt",
                  "updatedAt"
                ]
              }
            },
            "required": ["endpoint"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2PromptsIdRerunResponse202": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "success": {
                "type": "boolean",
                "const": true
              },
              "status": {
                "type": "string"
              },
              "queuedAt": {
                "type": "string"
              },
              "requestId": {
                "type": "null"
              }
            },
            "required": ["success", "status", "queuedAt", "requestId"]
          }
        },
        "required": ["data"]
      },
      "postV2PromptsIdTagsRequest": {
        "type": "object",
        "properties": {
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1,
            "maxItems": 50
          }
        },
        "required": ["tagIds"]
      },
      "postV2PromptsIdTagsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "success": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "affectedCount": {
                "type": "number"
              },
              "message": {
                "type": "null"
              }
            },
            "required": ["success", "affectedCount", "message"]
          }
        },
        "required": ["data"]
      },
      "postV2PromptsTagsBulkRequest": {
        "type": "object",
        "properties": {
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1,
            "maxItems": 50
          },
          "promptIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "minItems": 1,
            "maxItems": 200
          }
        },
        "required": ["tagIds", "promptIds"]
      },
      "postV2PromptsTagsBulkResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "success": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              },
              "affectedCount": {
                "type": "number"
              },
              "message": {
                "type": "null"
              }
            },
            "required": ["success", "affectedCount", "message"]
          }
        },
        "required": ["data"]
      },
      "getV2ContentGapPromptsPromptIdLatestResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "promptId": {
                "type": "string"
              },
              "coverageScore": {
                "type": "number"
              },
              "coveredTopics": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "uncoveredTopics": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": ["promptId", "coverageScore", "coveredTopics", "uncoveredTopics"]
          }
        },
        "required": ["data"]
      },
      "deleteV2MetricsClientBindingsBindingIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "bindingId": {
                "type": "string"
              },
              "archived": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": ["actorId", "bindingId", "archived"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsClientOperationsOperationIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "operation": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "resourceType": {
                    "type": "string"
                  },
                  "resourceId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "resourceVersionId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "clientInvocation": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "clientKind": {
                            "enum": [
                              "looker_studio",
                              "power_bi",
                              "qlik",
                              "azure_data_factory",
                              "alteryx",
                              "n8n",
                              "tableau",
                              "generic_rest"
                            ],
                            "type": "string"
                          },
                          "consumerReferenceHash": {
                            "type": "string"
                          },
                          "clientBindingVersionId": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "selectedFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "requestedAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "clientKind",
                          "consumerReferenceHash",
                          "clientBindingVersionId",
                          "selectedFieldIds",
                          "requestedAt"
                        ]
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "cancelRequestedAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "startedAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "finishedAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "action",
                  "status",
                  "resourceType",
                  "resourceId",
                  "resourceVersionId",
                  "clientInvocation",
                  "errorCode",
                  "cancelRequestedAt",
                  "startedAt",
                  "finishedAt",
                  "createdAt"
                ]
              },
              "run": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "scheduleId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "trigger": {
                        "enum": [
                          "manual",
                          "preview",
                          "report_refresh",
                          "surface_refresh",
                          "scheduled",
                          "backfill"
                        ],
                        "type": "string"
                      },
                      "status": {
                        "enum": [
                          "queued",
                          "running",
                          "succeeded",
                          "failed",
                          "pending",
                          "succeeded_with_warnings",
                          "canceled",
                          "cancelled"
                        ],
                        "type": "string"
                      },
                      "errorCode": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "rowCount": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "resultBytes": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "startedAt": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "finishedAt": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "stages": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "startedAt": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "finishedAt": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "qualityResults": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "assertionId": {
                                    "type": "string"
                                  },
                                  "severity": {
                                    "type": "string"
                                  },
                                  "passed": {
                                    "anyOf": [
                                      {
                                        "type": "boolean",
                                        "const": false
                                      },
                                      {
                                        "type": "boolean",
                                        "const": true
                                      }
                                    ]
                                  },
                                  "failureCount": {
                                    "type": "number"
                                  },
                                  "evaluatedAt": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "assertionId",
                                  "severity",
                                  "passed",
                                  "failureCount",
                                  "evaluatedAt"
                                ]
                              }
                            },
                            "id": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string"
                            },
                            "position": {
                              "type": "number"
                            },
                            "status": {
                              "type": "string"
                            },
                            "rowsProcessed": {
                              "type": "number"
                            },
                            "bytesProcessed": {
                              "type": "number"
                            },
                            "errorCode": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            }
                          },
                          "required": [
                            "startedAt",
                            "finishedAt",
                            "qualityResults",
                            "id",
                            "kind",
                            "position",
                            "status",
                            "rowsProcessed",
                            "bytesProcessed",
                            "errorCode"
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "scheduleId",
                      "trigger",
                      "status",
                      "errorCode",
                      "rowCount",
                      "resultBytes",
                      "startedAt",
                      "finishedAt",
                      "createdAt",
                      "stages"
                    ]
                  }
                ]
              },
              "result": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "schemaFingerprint": {
                        "type": "string"
                      },
                      "rowCount": {
                        "type": "number"
                      },
                      "byteCount": {
                        "type": "number"
                      },
                      "expiresAt": {
                        "type": "string"
                      },
                      "finalizedAt": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "artifactId",
                      "schemaFingerprint",
                      "rowCount",
                      "byteCount",
                      "expiresAt",
                      "finalizedAt"
                    ]
                  }
                ]
              }
            },
            "required": ["operation", "run", "result"]
          }
        },
        "required": ["data"]
      },
      "deleteV2MetricsClientWritesWriteClaimIdResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "writeClaimId": {
                "type": "string"
              },
              "generation": {
                "type": "number"
              },
              "status": {
                "type": "string",
                "const": "abandoned"
              }
            },
            "required": ["writeClaimId", "generation", "status"]
          }
        },
        "required": ["data"]
      },
      "postV2MetricsDestinationsDestinationIdVersionsRequest": {
        "type": "object",
        "properties": {
          "definition": {
            "type": "object",
            "properties": {
              "region": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                ]
              },
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "destinationKind": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96,
                "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
              },
              "connectionVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "target": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "residency": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                ]
              },
              "capabilitySnapshot": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "testedAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "defaultWriteMode": {
                "enum": [
                  "replace",
                  "append",
                  "upsert",
                  "rolling_window",
                  "single_day_snapshot",
                  "historical_snapshot",
                  "rolling_historical_snapshot"
                ],
                "type": "string"
              },
              "defaultSchemaPolicy": {
                "enum": ["locked", "additive", "reconcile"],
                "type": "string"
              },
              "safeDisplay": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "ownership": {
                "enum": ["customer", "chatobserver"],
                "default": "customer",
                "type": "string"
              },
              "durability": {
                "enum": ["managed_dataset", "external_destination"],
                "default": "external_destination",
                "type": "string"
              }
            },
            "required": [
              "region",
              "schemaVersion",
              "destinationKind",
              "connectionVersionId",
              "target",
              "residency",
              "capabilitySnapshot",
              "testedAt",
              "defaultWriteMode",
              "defaultSchemaPolicy",
              "safeDisplay"
            ],
            "additionalProperties": false
          }
        },
        "required": ["definition"],
        "additionalProperties": false
      },
      "postV2MetricsDestinationsDestinationIdVersionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "destinationId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "destinationId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsDestinationsDestinationIdVersionsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "destinationId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "destinationId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportEmailIntakesIntakeIdAttachmentsRequest": {
        "type": "object",
        "properties": {
          "format": {
            "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
            "type": "string"
          },
          "originalFileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "contentType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "byteCount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 10737418240
          },
          "senderAddressHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "senderDomain": {
            "type": "string",
            "minLength": 3,
            "maxLength": 253
          },
          "subject": {
            "type": "string",
            "maxLength": 998
          }
        },
        "required": [
          "format",
          "originalFileName",
          "contentType",
          "byteCount",
          "senderAddressHash",
          "senderDomain",
          "subject"
        ],
        "additionalProperties": false
      },
      "postV2MetricsImportEmailIntakesIntakeIdAttachmentsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "intakeId": {
                "type": "string"
              },
              "importedDatasetId": {
                "type": "string"
              },
              "sourceObjectId": {
                "type": "string"
              },
              "upload": {
                "type": "object",
                "properties": {
                  "sourceObjectId": {
                    "type": "string"
                  },
                  "method": {
                    "type": "string",
                    "const": "PUT"
                  },
                  "url": {
                    "type": "string"
                  },
                  "headers": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "byteCount": {
                    "type": "number"
                  },
                  "expiresAt": {
                    "type": "string"
                  }
                },
                "required": ["sourceObjectId", "method", "url", "headers", "byteCount", "expiresAt"]
              },
              "next": {
                "type": "object",
                "properties": {
                  "finalize": {
                    "type": "string"
                  },
                  "createOperation": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["finalize", "createOperation"]
              }
            },
            "required": ["intakeId", "importedDatasetId", "sourceObjectId", "upload", "next"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportEmailIntakesIntakeIdAttachmentsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "intakeId": {
                "type": "string"
              },
              "importedDatasetId": {
                "type": "string"
              },
              "sourceObjectId": {
                "type": "string"
              },
              "upload": {
                "type": "object",
                "properties": {
                  "sourceObjectId": {
                    "type": "string"
                  },
                  "method": {
                    "type": "string",
                    "const": "PUT"
                  },
                  "url": {
                    "type": "string"
                  },
                  "headers": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "byteCount": {
                    "type": "number"
                  },
                  "expiresAt": {
                    "type": "string"
                  }
                },
                "required": ["sourceObjectId", "method", "url", "headers", "byteCount", "expiresAt"]
              },
              "next": {
                "type": "object",
                "properties": {
                  "finalize": {
                    "type": "string"
                  },
                  "createOperation": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": ["finalize", "createOperation"]
              }
            },
            "required": ["intakeId", "importedDatasetId", "sourceObjectId", "upload", "next"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportSourcesSourceObjectIdFinalizeResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "sourceObjectId": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "const": "uploaded"
              }
            },
            "required": ["actorId", "sourceObjectId", "status"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportSourcesSourceObjectIdProfileRequest": {
        "type": "object",
        "properties": {
          "sheetName": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            ]
          },
          "headerRow": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            ]
          },
          "delimiter": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "const": ","
              },
              {
                "type": "string",
                "const": "\t"
              },
              {
                "type": "string",
                "const": ";"
              },
              {
                "type": "string",
                "const": "|"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "postV2MetricsImportSourcesSourceObjectIdProfileResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "columns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "nullable": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "position": {
                      "type": "number"
                    },
                    "sourceName": {
                      "type": "string"
                    },
                    "suggestedFieldId": {
                      "type": "string"
                    },
                    "suggestedLabel": {
                      "type": "string"
                    },
                    "inferredType": {
                      "enum": [
                        "string",
                        "number",
                        "boolean",
                        "integer",
                        "date",
                        "json",
                        "duration",
                        "url",
                        "percent",
                        "currency",
                        "datetime",
                        "decimal",
                        "image_url"
                      ],
                      "type": "string"
                    },
                    "populatedSamples": {
                      "type": "number"
                    },
                    "distinctSamples": {
                      "type": "number"
                    },
                    "sampleValues": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          },
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          },
                          {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          }
                        ]
                      }
                    }
                  },
                  "required": [
                    "nullable",
                    "position",
                    "sourceName",
                    "suggestedFieldId",
                    "suggestedLabel",
                    "inferredType",
                    "populatedSamples",
                    "distinctSamples",
                    "sampleValues"
                  ]
                }
              },
              "workspaceId": {
                "type": "string"
              },
              "schemaVersion": {
                "type": "number",
                "const": 1
              },
              "format": {
                "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
                "type": "string"
              },
              "sourceObjectId": {
                "type": "string"
              },
              "headerRow": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "firstDataRow": {
                "type": "number"
              },
              "delimiter": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "const": ","
                  },
                  {
                    "type": "string",
                    "const": "\t"
                  },
                  {
                    "type": "string",
                    "const": ";"
                  },
                  {
                    "type": "string",
                    "const": "|"
                  }
                ]
              },
              "schemaFingerprint": {
                "type": "string"
              },
              "sourceChecksumSha256": {
                "type": "string"
              },
              "sheetNames": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "selectedSheet": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "sampleRows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/ContractType54286"
                        }
                      },
                      {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": {
                          "$ref": "#/components/schemas/ContractType54286"
                        }
                      }
                    ]
                  }
                }
              },
              "sampledRowCount": {
                "type": "number"
              },
              "sampleLimit": {
                "type": "number"
              },
              "sourceByteCount": {
                "type": "number"
              },
              "truncated": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": [
              "columns",
              "workspaceId",
              "schemaVersion",
              "format",
              "sourceObjectId",
              "headerRow",
              "firstDataRow",
              "delimiter",
              "schemaFingerprint",
              "sourceChecksumSha256",
              "sheetNames",
              "selectedSheet",
              "sampleRows",
              "sampledRowCount",
              "sampleLimit",
              "sourceByteCount",
              "truncated"
            ]
          }
        },
        "required": ["data"]
      },
      "postV2MetricsImportSourcesSourceObjectIdUploadSessionResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "sourceObjectId": {
                "type": "string"
              },
              "method": {
                "type": "string",
                "const": "PUT"
              },
              "url": {
                "type": "string"
              },
              "headers": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "type": "string"
                }
              },
              "byteCount": {
                "type": "number"
              },
              "expiresAt": {
                "type": "string"
              }
            },
            "required": ["sourceObjectId", "method", "url", "headers", "byteCount", "expiresAt"]
          }
        },
        "required": ["data"]
      },
      "postV2MetricsImportsImportedDatasetIdDeletionRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "graceHours": {
            "type": "integer",
            "minimum": 1,
            "maximum": 168,
            "default": 24
          }
        },
        "required": ["reason"],
        "additionalProperties": false
      },
      "postV2MetricsImportsImportedDatasetIdDeletionResponse202": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "deletionRequestId": {
                "type": "string"
              },
              "importedDatasetId": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "blockedByReferences": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "deleteAfter": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "deletionRequestId",
              "importedDatasetId",
              "state",
              "blockedByReferences",
              "deleteAfter"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "deleteV2MetricsImportsImportedDatasetIdDeletionResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "deletionRequestId": {
                "type": "string"
              },
              "importedDatasetId": {
                "type": "string"
              },
              "state": {
                "type": "string",
                "const": "canceled"
              }
            },
            "required": ["actorId", "deletionRequestId", "importedDatasetId", "state"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsImportsImportedDatasetIdOperationsRequest": {
        "type": "object",
        "properties": {
          "sourceObjectId": {
            "type": "string",
            "format": "uuid"
          },
          "dryRun": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ],
            "default": false
          }
        },
        "required": ["sourceObjectId"],
        "additionalProperties": false
      },
      "postV2MetricsImportsImportedDatasetIdOperationsResponse202": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "operationId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "type": "string"
              }
            },
            "required": ["actorId", "operationId", "resourceId", "resourceVersionId", "status"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsOperationsOperationIdCancelResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "operationId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": ["actorId", "operationId", "status"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsOperationsOperationIdResultsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "expiresAt": {
                "type": "string"
              },
              "artifactId": {
                "type": "string"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/ContractType54286"
                        }
                      },
                      {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": {
                          "$ref": "#/components/schemas/ContractType54286"
                        }
                      }
                    ]
                  }
                }
              },
              "rowCount": {
                "type": "number"
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["expiresAt", "artifactId", "rows", "rowCount", "nextCursor"]
          }
        },
        "required": ["data"]
      },
      "getV2MetricsQueriesQueryIdInsightsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "queryVersionId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "code": {
                  "type": "string"
                },
                "severity": {
                  "type": "string"
                },
                "fieldPath": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  }
                },
                "parameters": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  }
                },
                "repairActions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "queryVersionId",
                "createdAt",
                "id",
                "code",
                "severity",
                "fieldPath",
                "parameters",
                "repairActions"
              ]
            }
          }
        },
        "required": ["data"]
      },
      "getV2MetricsQueriesQueryIdIntegrationContractResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "queryVersionId": {
                "type": "string"
              },
              "parameters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "defaultValue": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "valueType": {
                      "enum": ["string", "number", "boolean", "date", "datetime"],
                      "type": "string"
                    },
                    "required": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "allowViewerOverride": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "parameterId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "defaultValue",
                    "valueType",
                    "required",
                    "allowViewerOverride",
                    "parameterId"
                  ]
                }
              },
              "queryId": {
                "type": "string"
              },
              "connectorKey": {
                "type": "string"
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "fieldId": {
                      "type": "string"
                    },
                    "aggregation": {
                      "enum": [
                        "minimum",
                        "maximum",
                        "count",
                        "none",
                        "sum",
                        "average",
                        "count_distinct"
                      ],
                      "type": "string"
                    },
                    "semanticRole": {
                      "enum": ["metric", "dimension", "identifier", "attribute"],
                      "type": "string"
                    },
                    "scalarType": {
                      "enum": [
                        "string",
                        "number",
                        "boolean",
                        "integer",
                        "date",
                        "json",
                        "duration",
                        "url",
                        "percent",
                        "currency",
                        "datetime",
                        "decimal",
                        "image_url"
                      ],
                      "type": "string"
                    },
                    "isDefaultDate": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "imageDisplay": {
                      "enum": ["image", "url", "none"],
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "description",
                    "fieldId",
                    "aggregation",
                    "semanticRole",
                    "scalarType",
                    "isDefaultDate",
                    "imageDisplay"
                  ]
                }
              },
              "performance": {
                "type": "object",
                "properties": {
                  "maximumRows": {
                    "type": "number"
                  },
                  "maximumWaitSeconds": {
                    "type": "number"
                  },
                  "recommendedPageSize": {
                    "type": "number"
                  }
                },
                "required": ["maximumRows", "maximumWaitSeconds", "recommendedPageSize"]
              },
              "catalogueFingerprint": {
                "type": "string"
              },
              "refreshFieldsRequired": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": [
              "name",
              "description",
              "queryVersionId",
              "parameters",
              "queryId",
              "connectorKey",
              "fields",
              "performance",
              "catalogueFingerprint",
              "refreshFieldsRequired"
            ]
          }
        },
        "required": ["data"]
      },
      "postV2MetricsQueriesQueryIdIntegrationRunsRequest": {
        "type": "object",
        "properties": {
          "invocation": {
            "type": "object",
            "properties": {
              "clientBindingVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "clientKind": {
                "enum": [
                  "looker_studio",
                  "power_bi",
                  "qlik",
                  "azure_data_factory",
                  "alteryx",
                  "n8n",
                  "tableau",
                  "generic_rest"
                ],
                "type": "string"
              },
              "consumerReferenceHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "requestedAt": {
                "type": "string",
                "format": "date-time"
              },
              "parameterValues": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    },
                    {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContractType54286"
                      }
                    },
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {
                        "$ref": "#/components/schemas/ContractType54286"
                      }
                    }
                  ]
                }
              },
              "selectedFieldIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "maxItems": 250,
                "default": []
              }
            },
            "required": [
              "clientBindingVersionId",
              "clientKind",
              "consumerReferenceHash",
              "requestedAt"
            ],
            "additionalProperties": false
          },
          "queryVersionId": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "format": "uuid"
              }
            ],
            "default": null
          }
        },
        "required": ["invocation"],
        "additionalProperties": false
      },
      "postV2MetricsQueriesQueryIdIntegrationRunsResponse202": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "queryId": {
                "type": "string"
              },
              "queryVersionId": {
                "type": "string"
              },
              "actorId": {
                "type": "string"
              },
              "operationId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "queryId",
              "queryVersionId",
              "actorId",
              "operationId",
              "resourceId",
              "resourceVersionId",
              "status"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsQueriesQueryIdVersionsRequest": {
        "type": "object",
        "properties": {
          "definition": {
            "type": "object",
            "properties": {
              "sort": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "direction": {
                      "enum": ["ascending", "descending"],
                      "type": "string"
                    },
                    "nulls": {
                      "enum": ["first", "last"],
                      "type": "string"
                    }
                  },
                  "required": ["fieldId", "direction", "nulls"],
                  "additionalProperties": false
                },
                "maxItems": 20
              },
              "filter": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "condition"
                      },
                      "fieldId": {
                        "type": "string"
                      },
                      "operator": {
                        "enum": [
                          "equals",
                          "not_equals",
                          "contains",
                          "greater_than",
                          "less_than",
                          "in",
                          "between",
                          "is_null",
                          "is_not_null",
                          "not_in",
                          "not_contains",
                          "starts_with",
                          "ends_with",
                          "regex",
                          "not_regex",
                          "greater_than_or_equal",
                          "less_than_or_equal"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          },
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          },
                          {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          }
                        ]
                      },
                      "execution": {
                        "enum": ["pushdown_required", "pushdown_preferred", "platform_allowed"],
                        "type": "string"
                      }
                    },
                    "required": ["kind", "fieldId", "operator", "value", "execution"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "group"
                      },
                      "conjunction": {
                        "enum": ["and", "or"],
                        "type": "string"
                      },
                      "children": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "condition"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "operator": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "execution": {
                                  "enum": [
                                    "pushdown_required",
                                    "pushdown_preferred",
                                    "platform_allowed"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "fieldId", "operator", "value", "execution"]
                            },
                            {
                              "$ref": "#/components/schemas/ContractType94867"
                            }
                          ]
                        }
                      }
                    },
                    "required": ["kind", "conjunction", "children"]
                  }
                ]
              },
              "connectorKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96,
                "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
              },
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  }
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        }
                      ]
                    },
                    "role": {
                      "enum": ["metric", "dimension", "identifier", "attribute"],
                      "type": "string"
                    },
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "aggregation": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "const": "minimum"
                        },
                        {
                          "type": "string",
                          "const": "maximum"
                        },
                        {
                          "type": "string",
                          "const": "count"
                        },
                        {
                          "type": "string",
                          "const": "none"
                        },
                        {
                          "type": "string",
                          "const": "sum"
                        },
                        {
                          "type": "string",
                          "const": "average"
                        },
                        {
                          "type": "string",
                          "const": "count_distinct"
                        },
                        {
                          "type": "string",
                          "const": "provider_default"
                        }
                      ]
                    },
                    "outputPosition": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": ["alias", "role", "fieldId", "aggregation", "outputPosition"],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 250
              },
              "comparison": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["custom", "previous_period", "previous_year"],
                        "type": "string"
                      },
                      "enabled": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "customRange": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "absolute"
                              },
                              "start": {
                                "type": "string"
                              },
                              "end": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "start", "end"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "relative"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["day", "week", "month", "quarter", "year"],
                                "type": "string"
                              },
                              "offset": {
                                "type": "number"
                              },
                              "includeCurrent": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rolling"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["hour", "day", "week", "month"],
                                "type": "string"
                              },
                              "lag": {
                                "type": "number"
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "incremental"
                              },
                              "unit": {
                                "enum": ["hour", "day"],
                                "type": "string"
                              },
                              "cursorFieldId": {
                                "type": "string"
                              },
                              "initialStart": {
                                "type": "string"
                              },
                              "lookbackUnits": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "unit",
                              "cursorFieldId",
                              "initialStart",
                              "lookbackUnits"
                            ]
                          }
                        ]
                      }
                    },
                    "required": ["mode", "enabled", "customRange"],
                    "additionalProperties": false
                  }
                ]
              },
              "pivot": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "rowFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "columnFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 10
                      },
                      "valueFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "includeRowTotals": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "includeColumnTotals": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "emptyValue": {
                        "enum": ["null", "zero"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "rowFieldIds",
                      "columnFieldIds",
                      "valueFieldIds",
                      "includeRowTotals",
                      "includeColumnTotals",
                      "emptyValue"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "queryType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "pagination": {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  },
                  "maximumPages": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  }
                },
                "required": ["pageSize", "maximumPages"],
                "additionalProperties": false
              },
              "locale": {
                "type": "string",
                "minLength": 2,
                "maxLength": 35
              },
              "accountSelector": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "accounts"
                      },
                      "sourceAccountIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": ["kind", "sourceAccountIds"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "account_tags"
                      },
                      "accountTagIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": ["kind", "accountTagIds"]
                  }
                ]
              },
              "customFieldVersionIds": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 100
              },
              "dateRange": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "absolute"
                      },
                      "start": {
                        "type": "string"
                      },
                      "end": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "start", "end"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "relative"
                      },
                      "count": {
                        "type": "number"
                      },
                      "unit": {
                        "enum": ["day", "week", "month", "quarter", "year"],
                        "type": "string"
                      },
                      "offset": {
                        "type": "number"
                      },
                      "includeCurrent": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    },
                    "required": ["kind", "count", "unit"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "rolling"
                      },
                      "count": {
                        "type": "number"
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      },
                      "lag": {
                        "type": "number"
                      }
                    },
                    "required": ["kind", "count", "unit"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "incremental"
                      },
                      "unit": {
                        "enum": ["hour", "day"],
                        "type": "string"
                      },
                      "cursorFieldId": {
                        "type": "string"
                      },
                      "initialStart": {
                        "type": "string"
                      },
                      "lookbackUnits": {
                        "type": "number"
                      }
                    },
                    "required": ["kind", "unit", "cursorFieldId", "initialStart", "lookbackUnits"]
                  }
                ]
              },
              "rowLimit": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 100000000
              },
              "sample": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "maximumRows": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": ["enabled", "maximumRows"],
                "additionalProperties": false
              },
              "connectorOptions": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "requiredCapabilities": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "maxItems": 100
              },
              "parameters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "maxLength": 1000
                        }
                      ]
                    },
                    "target": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_start"
                            }
                          },
                          "required": ["kind"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_end"
                            }
                          },
                          "required": ["kind"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "filter_value"
                            },
                            "fieldId": {
                              "type": "string"
                            },
                            "occurrence": {
                              "type": "number"
                            }
                          },
                          "required": ["kind", "fieldId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "connector_option"
                            },
                            "optionId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "optionId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "row_limit"
                            }
                          },
                          "required": ["kind"]
                        }
                      ]
                    },
                    "defaultValue": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        },
                        {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        }
                      ]
                    },
                    "valueType": {
                      "enum": ["string", "number", "boolean", "date", "datetime"],
                      "type": "string"
                    },
                    "required": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "allowViewerOverride": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "id",
                    "description",
                    "target",
                    "defaultValue",
                    "valueType",
                    "required",
                    "allowViewerOverride"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100,
                "default": []
              },
              "includeSourceAccount": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ],
                "default": true
              }
            },
            "required": [
              "sort",
              "filter",
              "connectorKey",
              "schemaVersion",
              "currency",
              "fields",
              "comparison",
              "pivot",
              "queryType",
              "timeZone",
              "pagination",
              "locale",
              "accountSelector",
              "customFieldVersionIds",
              "dateRange",
              "rowLimit",
              "sample",
              "connectorOptions",
              "requiredCapabilities"
            ],
            "additionalProperties": false
          },
          "catalogSnapshotIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 500
          }
        },
        "required": ["definition", "catalogSnapshotIds"],
        "additionalProperties": false
      },
      "postV2MetricsQueriesQueryIdVersionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "queryId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsQueriesQueryIdVersionsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "queryId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "putV2MetricsSchedulesScheduleIdStatusRequest": {
        "type": "object",
        "properties": {
          "status": {
            "enum": ["active", "paused"],
            "type": "string"
          }
        },
        "required": ["status"],
        "additionalProperties": false
      },
      "putV2MetricsSchedulesScheduleIdStatusResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "scheduleVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "enum": ["active", "paused"],
                "type": "string"
              },
              "nextEvaluationAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["actorId", "scheduleId", "scheduleVersionId", "status", "nextEvaluationAt"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsSchedulesScheduleIdVersionsRequest": {
        "type": "object",
        "properties": {
          "definition": {
            "type": "object",
            "properties": {
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "recurrence": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "cron"
                      },
                      "expression": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "expression"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "every": {
                        "type": "number"
                      },
                      "hour": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "minute": {
                        "type": "number"
                      },
                      "kind": {
                        "type": "string",
                        "const": "interval"
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      },
                      "dayOfWeek": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "dayOfMonth": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "required": [
                      "every",
                      "hour",
                      "minute",
                      "kind",
                      "unit",
                      "dayOfWeek",
                      "dayOfMonth"
                    ]
                  }
                ]
              },
              "daylightSavingPolicy": {
                "enum": ["wall_clock", "fixed_utc"],
                "type": "string"
              },
              "overlapPolicy": {
                "enum": ["skip", "queue_one", "allow"],
                "type": "string"
              },
              "startsAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "endsAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "freshnessDelayMinutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10080
              },
              "failurePolicy": {
                "type": "object",
                "properties": {
                  "maximumAttempts": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  },
                  "backoff": {
                    "enum": ["fixed", "exponential"],
                    "type": "string"
                  },
                  "initialDelaySeconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 86400
                  },
                  "autoPauseAfterFailures": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      }
                    ]
                  }
                },
                "required": [
                  "maximumAttempts",
                  "backoff",
                  "initialDelaySeconds",
                  "autoPauseAfterFailures"
                ],
                "additionalProperties": false
              },
              "targets": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "queryVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_query"
                        },
                        "retainResult": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        }
                      },
                      "required": ["id", "queryVersionId", "position", "action", "retainResult"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_client_binding"
                        },
                        "clientBindingVersionId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "clientBindingVersionId"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "modelVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "materialize_model"
                        }
                      },
                      "required": ["id", "modelVersionId", "position", "action"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "tableGroupVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "materialize_table_group"
                        }
                      },
                      "required": ["id", "tableGroupVersionId", "position", "action"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_transfer"
                        },
                        "transferVersionId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "transferVersionId"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_report_dataset"
                        },
                        "reportDatasetBindingId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "reportDatasetBindingId"]
                    }
                  ]
                },
                "minItems": 1,
                "maxItems": 100
              },
              "notifications": {
                "type": "object",
                "properties": {
                  "onSuccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onFailure": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onAutoPause": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "targets": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "email"
                            },
                            "address": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "address"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "slack"
                            },
                            "destinationId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "destinationId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "microsoft_teams"
                            },
                            "destinationId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "destinationId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "webhook"
                            },
                            "webhookEndpointId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "webhookEndpointId"]
                        }
                      ]
                    },
                    "maxItems": 50
                  }
                },
                "required": ["onSuccess", "onFailure", "onAutoPause", "targets"],
                "additionalProperties": false
              }
            },
            "required": [
              "schemaVersion",
              "timeZone",
              "recurrence",
              "daylightSavingPolicy",
              "overlapPolicy",
              "startsAt",
              "endsAt",
              "freshnessDelayMinutes",
              "failurePolicy",
              "targets",
              "notifications"
            ],
            "additionalProperties": false
          }
        },
        "required": ["definition"],
        "additionalProperties": false
      },
      "postV2MetricsSchedulesScheduleIdVersionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "scheduleId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsSchedulesScheduleIdVersionsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "scheduleId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "putV2MetricsSourceAccountsSourceAccountIdExclusionRequest": {
        "type": "object",
        "properties": {
          "excluded": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["excluded"],
        "additionalProperties": false
      },
      "putV2MetricsSourceAccountsSourceAccountIdExclusionResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "sourceAccountId": {
                "type": "string"
              },
              "excluded": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": ["actorId", "sourceAccountId", "excluded"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "putV2MetricsTransfersTransferIdStatusRequest": {
        "type": "object",
        "properties": {
          "status": {
            "enum": ["active", "paused"],
            "type": "string"
          }
        },
        "required": ["status"],
        "additionalProperties": false
      },
      "putV2MetricsTransfersTransferIdStatusResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "transferId": {
                "type": "string"
              },
              "transferVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "enum": ["active", "paused"],
                "type": "string"
              }
            },
            "required": ["actorId", "transferId", "transferVersionId", "status"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsTransfersTransferIdVersionsRequest": {
        "type": "object",
        "properties": {
          "definition": {
            "type": "object",
            "properties": {
              "input": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "query"
                      },
                      "queryVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "queryVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "blend"
                      },
                      "blendVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "blendVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "model"
                      },
                      "modelVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "modelVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "table_group"
                      },
                      "tableGroupVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "tableGroupVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "imported_dataset"
                      },
                      "importedDatasetVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "importedDatasetVersionId"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "managed_dataset"
                      },
                      "managedDatasetVersionId": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "managedDatasetVersionId"]
                  }
                ]
              },
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "retentionDays": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 3650
                  }
                ]
              },
              "keyFieldIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "maxItems": 50
              },
              "destinationVersionId": {
                "type": "string"
              },
              "writeMode": {
                "enum": [
                  "replace",
                  "append",
                  "upsert",
                  "rolling_window",
                  "single_day_snapshot",
                  "historical_snapshot",
                  "rolling_historical_snapshot"
                ],
                "type": "string"
              },
              "schemaPolicy": {
                "enum": ["locked", "additive", "reconcile"],
                "type": "string"
              },
              "partitionFieldIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "maxItems": 20
              },
              "lookbackWindow": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "count": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 10000
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      }
                    },
                    "required": ["count", "unit"],
                    "additionalProperties": false
                  }
                ]
              },
              "notificationPolicy": {
                "type": "object",
                "properties": {
                  "onSuccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onFailure": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onSchemaDrift": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  }
                },
                "required": ["onSuccess", "onFailure", "onSchemaDrift"],
                "additionalProperties": false
              },
              "target": {
                "type": "object",
                "properties": {},
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    },
                    {
                      "type": "boolean",
                      "const": true
                    }
                  ]
                }
              },
              "tableTargets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "tableId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "target": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    }
                  },
                  "required": ["tableId", "target"],
                  "additionalProperties": false
                },
                "maxItems": 100,
                "default": []
              }
            },
            "required": [
              "input",
              "schemaVersion",
              "retentionDays",
              "keyFieldIds",
              "destinationVersionId",
              "writeMode",
              "schemaPolicy",
              "partitionFieldIds",
              "lookbackWindow",
              "notificationPolicy"
            ],
            "additionalProperties": false
          }
        },
        "required": ["definition"],
        "additionalProperties": false
      },
      "postV2MetricsTransfersTransferIdVersionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "transferId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "transferId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsTransfersTransferIdVersionsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "transferId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "transferId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsWebhooksEndpointIdDeliveriesResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "deliveredAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "failedAt": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "eventId": {
                  "type": "string"
                },
                "eventType": {
                  "type": "string"
                },
                "payloadVersion": {
                  "type": "number"
                },
                "status": {
                  "type": "string"
                },
                "attemptCount": {
                  "type": "number"
                },
                "maxAttempts": {
                  "type": "number"
                },
                "responseStatus": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "failureCode": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": [
                "deliveredAt",
                "failedAt",
                "createdAt",
                "id",
                "eventId",
                "eventType",
                "payloadVersion",
                "status",
                "attemptCount",
                "maxAttempts",
                "responseStatus",
                "failureCode"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"]
      },
      "postV2MetricsWebhooksEndpointIdRotateRequest": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": ["expectedRevision"],
        "additionalProperties": false
      },
      "postV2MetricsWebhooksEndpointIdRotateResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "endpoint": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "eventTypes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "signingSecretVersion": {
                    "type": "number"
                  },
                  "revision": {
                    "type": "number"
                  },
                  "lastDeliveryAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "disabledAt": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "description",
                  "url",
                  "status",
                  "eventTypes",
                  "signingSecretVersion",
                  "revision",
                  "lastDeliveryAt",
                  "disabledAt",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "signingSecret": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "secretState": {
                "type": "string"
              }
            },
            "required": ["endpoint", "signingSecret", "secretState"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2ContentGapPromptsPromptIdLatestRecommendationsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "rationale": {
                  "type": "string"
                },
                "priority": {
                  "type": "number"
                },
                "targetKeyword": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "required": ["title", "rationale", "priority", "targetKeyword"]
            }
          }
        },
        "required": ["data"]
      },
      "postV2MetricsClientBindingsBindingIdOwnershipRequest": {
        "type": "object",
        "properties": {
          "targetOwnerActorId": {
            "type": "string",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 96,
            "default": "owner_requested_transfer"
          }
        },
        "required": ["targetOwnerActorId"],
        "additionalProperties": false
      },
      "postV2MetricsClientBindingsBindingIdOwnershipResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "bindingId": {
                "type": "string"
              },
              "ownerActorId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "changed": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": ["actorId", "bindingId", "ownerActorId", "versionId", "changed"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientBindingsBindingIdVersionsRequest": {
        "type": "object",
        "properties": {
          "definition": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "google_sheets"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "sheetName": {
                        "type": "string"
                      },
                      "spreadsheetReferenceHash": {
                        "type": "string"
                      },
                      "stableSheetId": {
                        "type": "number"
                      }
                    },
                    "required": ["sheetName", "spreadsheetReferenceHash", "stableSheetId"]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "anchorRow": {
                        "type": "number"
                      },
                      "anchorColumn": {
                        "type": "number"
                      },
                      "selectedRangeA1": {
                        "type": "string"
                      },
                      "lastWrittenRangeA1": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "anchorRow",
                      "anchorColumn",
                      "selectedRangeA1",
                      "lastWrittenRangeA1"
                    ]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "excel"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "workbookReferenceHash": {
                        "type": "string"
                      },
                      "stableWorksheetId": {
                        "type": "string"
                      },
                      "worksheetName": {
                        "type": "string"
                      },
                      "storageKind": {
                        "enum": ["onedrive", "sharepoint", "local"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "workbookReferenceHash",
                      "stableWorksheetId",
                      "worksheetName",
                      "storageKind"
                    ]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "tableName": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "anchorRow": {
                        "type": "number"
                      },
                      "anchorColumn": {
                        "type": "number"
                      },
                      "selectedAddress": {
                        "type": "string"
                      },
                      "lastWrittenAddress": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "tableName",
                      "anchorRow",
                      "anchorColumn",
                      "selectedAddress",
                      "lastWrittenAddress"
                    ]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "looker_studio"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "dataSourceReferenceHash": {
                        "type": "string"
                      },
                      "reportReferenceHash": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "credentialOwnership": {
                        "enum": ["owner", "viewer"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "dataSourceReferenceHash",
                      "reportReferenceHash",
                      "credentialOwnership"
                    ]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "selectedFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "dataSourceName": {
                        "type": "string"
                      },
                      "defaultDateFieldId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["selectedFieldIds", "dataSourceName", "defaultDateFieldId"]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "performance": {
                    "type": "object",
                    "properties": {
                      "maximumRows": {
                        "type": "number"
                      },
                      "refreshMode": {
                        "enum": ["live_operation", "latest_retained_result"],
                        "type": "string"
                      },
                      "maximumWaitSeconds": {
                        "type": "number"
                      },
                      "resultPageSize": {
                        "type": "number"
                      },
                      "imagePolicy": {
                        "enum": ["url", "download"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "maximumRows",
                      "refreshMode",
                      "maximumWaitSeconds",
                      "resultPageSize",
                      "imagePolicy"
                    ]
                  },
                  "refreshFieldsOnCatalogueChange": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "sharing": {
                    "type": "object",
                    "properties": {
                      "allowCredentialSharing": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "requireWorkspaceMembership": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    },
                    "required": ["allowCredentialSharing", "requireWorkspaceMembership"]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion",
                  "performance",
                  "refreshFieldsOnCatalogueChange",
                  "sharing"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "power_bi"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "tenantReferenceHash": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "workspaceReferenceHash": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "datasetReferenceHash": {
                        "type": "string"
                      },
                      "storageMode": {
                        "type": "string",
                        "const": "import"
                      }
                    },
                    "required": [
                      "tenantReferenceHash",
                      "workspaceReferenceHash",
                      "datasetReferenceHash",
                      "storageMode"
                    ]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "tableName": {
                        "type": "string"
                      },
                      "selectedFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "semanticModelName": {
                        "type": "string"
                      }
                    },
                    "required": ["tableName", "selectedFieldIds", "semanticModelName"]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  },
                  "performance": {
                    "type": "object",
                    "properties": {
                      "maximumRows": {
                        "type": "number"
                      },
                      "refreshMode": {
                        "enum": ["live_operation", "latest_retained_result"],
                        "type": "string"
                      },
                      "maximumWaitSeconds": {
                        "type": "number"
                      },
                      "resultPageSize": {
                        "type": "number"
                      },
                      "imagePolicy": {
                        "enum": ["url", "download"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "maximumRows",
                      "refreshMode",
                      "maximumWaitSeconds",
                      "resultPageSize",
                      "imagePolicy"
                    ]
                  },
                  "scheduledRefresh": {
                    "type": "object",
                    "properties": {
                      "managedBy": {
                        "enum": ["chatobserver", "power_bi"],
                        "type": "string"
                      },
                      "gatewayRequired": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "privacyLevel": {
                        "enum": ["private", "organizational"],
                        "type": "string"
                      }
                    },
                    "required": ["managedBy", "gatewayRequired", "privacyLevel"]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion",
                  "performance",
                  "scheduledRefresh"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "chatobserver_report"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "reportId": {
                        "type": "string"
                      },
                      "pageId": {
                        "type": "string"
                      },
                      "blockId": {
                        "type": "string"
                      }
                    },
                    "required": ["reportId", "pageId", "blockId"]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "anchor": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "container": {
                        "type": "string",
                        "const": "report_block"
                      },
                      "rangeOrTable": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["anchor", "container", "rangeOrTable"]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "input": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "query"
                          },
                          "queryVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "queryVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "model"
                          },
                          "modelVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "modelVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "table_group"
                          },
                          "tableGroupVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "tableGroupVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "managed_dataset"
                          },
                          "managedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "managedDatasetVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "imported_dataset"
                          },
                          "importedDatasetVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "importedDatasetVersionId"]
                      }
                    ]
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 3
                  },
                  "ownership": {
                    "type": "object",
                    "properties": {
                      "ownerUserId": {
                        "type": "string"
                      },
                      "hostOwnerReference": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["ownerUserId", "hostOwnerReference"]
                  },
                  "clientKind": {
                    "type": "string",
                    "const": "api_export"
                  },
                  "targetIdentity": {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string"
                      },
                      "consumerReferenceHash": {
                        "type": "string"
                      },
                      "serviceAccountId": {
                        "type": "string"
                      }
                    },
                    "required": ["label", "consumerReferenceHash", "serviceAccountId"]
                  },
                  "placement": {
                    "type": "object",
                    "properties": {
                      "anchor": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "container": {
                        "type": "string",
                        "const": "result_pages"
                      },
                      "rangeOrTable": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": ["anchor", "container", "rangeOrTable"]
                  },
                  "outputShape": {
                    "enum": ["table_group", "pivot", "rows", "semantic_model"],
                    "type": "string"
                  },
                  "writePolicy": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["replace", "append", "incremental", "combine"],
                        "type": "string"
                      },
                      "schemaDriftPolicy": {
                        "enum": ["replace", "fail", "add_columns"],
                        "type": "string"
                      },
                      "partialWritePolicy": {
                        "enum": ["resume", "rollback"],
                        "type": "string"
                      },
                      "incrementalKeyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "preserveOutputOnFailure": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "maximumRowsPerBatch": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "mode",
                      "schemaDriftPolicy",
                      "partialWritePolicy",
                      "incrementalKeyFieldIds",
                      "preserveOutputOnFailure",
                      "maximumRowsPerBatch"
                    ]
                  },
                  "formatting": {
                    "type": "object",
                    "properties": {
                      "timeZone": {
                        "type": "string"
                      },
                      "locale": {
                        "type": "string"
                      },
                      "preserveExisting": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "writeHeaders": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "applyNumberFormats": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "freezeHeaderRow": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "resizeColumns": {
                        "enum": ["never", "new_columns", "all_columns"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "timeZone",
                      "locale",
                      "preserveExisting",
                      "writeHeaders",
                      "applyNumberFormats",
                      "freezeHeaderRow",
                      "resizeColumns"
                    ]
                  },
                  "parameterBindings": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "value": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "const": "literal"
                            },
                            "parameterId": {
                              "type": "string"
                            }
                          },
                          "required": ["value", "kind", "parameterId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "cell"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "stableSheetReference": {
                              "type": "string"
                            },
                            "rangeA1": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "errorPolicy": {
                              "enum": ["use_default", "fail"],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "parameterId",
                            "stableSheetReference",
                            "rangeA1",
                            "blankPolicy",
                            "errorPolicy"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "host_parameter"
                            },
                            "valueType": {
                              "enum": ["string", "number", "boolean", "date", "datetime"],
                              "type": "string"
                            },
                            "allowViewerOverride": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "parameterId": {
                              "type": "string"
                            },
                            "blankPolicy": {
                              "enum": ["use_null", "use_default", "fail"],
                              "type": "string"
                            },
                            "hostParameterName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "valueType",
                            "allowViewerOverride",
                            "parameterId",
                            "blankPolicy",
                            "hostParameterName"
                          ]
                        }
                      ]
                    }
                  },
                  "unattendedAccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "credentialReferenceVersion": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      }
                    ]
                  }
                },
                "required": [
                  "input",
                  "schemaVersion",
                  "ownership",
                  "clientKind",
                  "targetIdentity",
                  "placement",
                  "outputShape",
                  "writePolicy",
                  "formatting",
                  "parameterBindings",
                  "unattendedAccess",
                  "credentialReferenceVersion"
                ]
              }
            ]
          }
        },
        "required": ["definition"]
      },
      "postV2MetricsClientBindingsBindingIdVersionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceType": {
                "enum": [
                  "model",
                  "table_group",
                  "imported_dataset",
                  "client_binding",
                  "blend",
                  "custom_field"
                ],
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "resourceId",
              "resourceType",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientBindingsBindingIdVersionsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceType": {
                "enum": [
                  "model",
                  "table_group",
                  "imported_dataset",
                  "client_binding",
                  "blend",
                  "custom_field"
                ],
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "resourceId",
              "resourceType",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientOperationsOperationIdCancelResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "operationId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": ["actorId", "operationId", "status"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2MetricsClientOperationsOperationIdResultsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "expiresAt": {
                "type": "string"
              },
              "artifactId": {
                "type": "string"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/ContractType54286"
                        }
                      },
                      {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": {
                          "$ref": "#/components/schemas/ContractType54286"
                        }
                      }
                    ]
                  }
                }
              },
              "rowCount": {
                "type": "number"
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["expiresAt", "artifactId", "rows", "rowCount", "nextCursor"]
          }
        },
        "required": ["data"]
      },
      "getV2MetricsClientQueriesQueryIdInsightsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "queryVersionId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "code": {
                  "type": "string"
                },
                "severity": {
                  "type": "string"
                },
                "fieldPath": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  }
                },
                "parameters": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  }
                },
                "repairActions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "queryVersionId",
                "createdAt",
                "id",
                "code",
                "severity",
                "fieldPath",
                "parameters",
                "repairActions"
              ]
            }
          }
        },
        "required": ["data"]
      },
      "postV2MetricsClientQueriesQueryIdVersionsRequest": {
        "type": "object",
        "properties": {
          "definition": {
            "type": "object",
            "properties": {
              "sort": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "direction": {
                      "enum": ["ascending", "descending"],
                      "type": "string"
                    },
                    "nulls": {
                      "enum": ["first", "last"],
                      "type": "string"
                    }
                  },
                  "required": ["fieldId", "direction", "nulls"],
                  "additionalProperties": false
                },
                "maxItems": 20
              },
              "filter": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "condition"
                      },
                      "fieldId": {
                        "type": "string"
                      },
                      "operator": {
                        "enum": [
                          "equals",
                          "not_equals",
                          "contains",
                          "greater_than",
                          "less_than",
                          "in",
                          "between",
                          "is_null",
                          "is_not_null",
                          "not_in",
                          "not_contains",
                          "starts_with",
                          "ends_with",
                          "regex",
                          "not_regex",
                          "greater_than_or_equal",
                          "less_than_or_equal"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          },
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          },
                          {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {
                              "$ref": "#/components/schemas/ContractType54286"
                            }
                          }
                        ]
                      },
                      "execution": {
                        "enum": ["pushdown_required", "pushdown_preferred", "platform_allowed"],
                        "type": "string"
                      }
                    },
                    "required": ["kind", "fieldId", "operator", "value", "execution"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "group"
                      },
                      "conjunction": {
                        "enum": ["and", "or"],
                        "type": "string"
                      },
                      "children": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "condition"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "operator": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "execution": {
                                  "enum": [
                                    "pushdown_required",
                                    "pushdown_preferred",
                                    "platform_allowed"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "fieldId", "operator", "value", "execution"]
                            },
                            {
                              "$ref": "#/components/schemas/ContractType94867"
                            }
                          ]
                        }
                      }
                    },
                    "required": ["kind", "conjunction", "children"]
                  }
                ]
              },
              "connectorKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96,
                "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
              },
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  }
                ]
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        }
                      ]
                    },
                    "role": {
                      "enum": ["metric", "dimension", "identifier", "attribute"],
                      "type": "string"
                    },
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "aggregation": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "const": "minimum"
                        },
                        {
                          "type": "string",
                          "const": "maximum"
                        },
                        {
                          "type": "string",
                          "const": "count"
                        },
                        {
                          "type": "string",
                          "const": "none"
                        },
                        {
                          "type": "string",
                          "const": "sum"
                        },
                        {
                          "type": "string",
                          "const": "average"
                        },
                        {
                          "type": "string",
                          "const": "count_distinct"
                        },
                        {
                          "type": "string",
                          "const": "provider_default"
                        }
                      ]
                    },
                    "outputPosition": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": ["alias", "role", "fieldId", "aggregation", "outputPosition"],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 250
              },
              "comparison": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "enum": ["custom", "previous_period", "previous_year"],
                        "type": "string"
                      },
                      "enabled": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "customRange": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "absolute"
                              },
                              "start": {
                                "type": "string"
                              },
                              "end": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "start", "end"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "relative"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["day", "week", "month", "quarter", "year"],
                                "type": "string"
                              },
                              "offset": {
                                "type": "number"
                              },
                              "includeCurrent": {
                                "anyOf": [
                                  {
                                    "type": "boolean",
                                    "const": false
                                  },
                                  {
                                    "type": "boolean",
                                    "const": true
                                  }
                                ]
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rolling"
                              },
                              "count": {
                                "type": "number"
                              },
                              "unit": {
                                "enum": ["hour", "day", "week", "month"],
                                "type": "string"
                              },
                              "lag": {
                                "type": "number"
                              }
                            },
                            "required": ["kind", "count", "unit"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "incremental"
                              },
                              "unit": {
                                "enum": ["hour", "day"],
                                "type": "string"
                              },
                              "cursorFieldId": {
                                "type": "string"
                              },
                              "initialStart": {
                                "type": "string"
                              },
                              "lookbackUnits": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "unit",
                              "cursorFieldId",
                              "initialStart",
                              "lookbackUnits"
                            ]
                          }
                        ]
                      }
                    },
                    "required": ["mode", "enabled", "customRange"],
                    "additionalProperties": false
                  }
                ]
              },
              "pivot": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "rowFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "columnFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 10
                      },
                      "valueFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "includeRowTotals": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "includeColumnTotals": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "emptyValue": {
                        "enum": ["null", "zero"],
                        "type": "string"
                      }
                    },
                    "required": [
                      "rowFieldIds",
                      "columnFieldIds",
                      "valueFieldIds",
                      "includeRowTotals",
                      "includeColumnTotals",
                      "emptyValue"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "queryType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "pagination": {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  },
                  "maximumPages": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  }
                },
                "required": ["pageSize", "maximumPages"],
                "additionalProperties": false
              },
              "locale": {
                "type": "string",
                "minLength": 2,
                "maxLength": 35
              },
              "accountSelector": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "accounts"
                      },
                      "sourceAccountIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": ["kind", "sourceAccountIds"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "account_tags"
                      },
                      "accountTagIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": ["kind", "accountTagIds"]
                  }
                ]
              },
              "customFieldVersionIds": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "maxItems": 100
              },
              "dateRange": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "absolute"
                      },
                      "start": {
                        "type": "string"
                      },
                      "end": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "start", "end"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "relative"
                      },
                      "count": {
                        "type": "number"
                      },
                      "unit": {
                        "enum": ["day", "week", "month", "quarter", "year"],
                        "type": "string"
                      },
                      "offset": {
                        "type": "number"
                      },
                      "includeCurrent": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      }
                    },
                    "required": ["kind", "count", "unit"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "rolling"
                      },
                      "count": {
                        "type": "number"
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      },
                      "lag": {
                        "type": "number"
                      }
                    },
                    "required": ["kind", "count", "unit"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "incremental"
                      },
                      "unit": {
                        "enum": ["hour", "day"],
                        "type": "string"
                      },
                      "cursorFieldId": {
                        "type": "string"
                      },
                      "initialStart": {
                        "type": "string"
                      },
                      "lookbackUnits": {
                        "type": "number"
                      }
                    },
                    "required": ["kind", "unit", "cursorFieldId", "initialStart", "lookbackUnits"]
                  }
                ]
              },
              "rowLimit": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 100000000
              },
              "sample": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "maximumRows": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": ["enabled", "maximumRows"],
                "additionalProperties": false
              },
              "connectorOptions": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "requiredCapabilities": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "maxItems": 100
              },
              "parameters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string",
                          "maxLength": 1000
                        }
                      ]
                    },
                    "target": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_start"
                            }
                          },
                          "required": ["kind"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_end"
                            }
                          },
                          "required": ["kind"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "filter_value"
                            },
                            "fieldId": {
                              "type": "string"
                            },
                            "occurrence": {
                              "type": "number"
                            }
                          },
                          "required": ["kind", "fieldId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "connector_option"
                            },
                            "optionId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "optionId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "row_limit"
                            }
                          },
                          "required": ["kind"]
                        }
                      ]
                    },
                    "defaultValue": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        },
                        {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        },
                        {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "$ref": "#/components/schemas/ContractType54286"
                          }
                        }
                      ]
                    },
                    "valueType": {
                      "enum": ["string", "number", "boolean", "date", "datetime"],
                      "type": "string"
                    },
                    "required": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    },
                    "allowViewerOverride": {
                      "anyOf": [
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "id",
                    "description",
                    "target",
                    "defaultValue",
                    "valueType",
                    "required",
                    "allowViewerOverride"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100,
                "default": []
              },
              "includeSourceAccount": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ],
                "default": true
              }
            },
            "required": [
              "sort",
              "filter",
              "connectorKey",
              "schemaVersion",
              "currency",
              "fields",
              "comparison",
              "pivot",
              "queryType",
              "timeZone",
              "pagination",
              "locale",
              "accountSelector",
              "customFieldVersionIds",
              "dateRange",
              "rowLimit",
              "sample",
              "connectorOptions",
              "requiredCapabilities"
            ],
            "additionalProperties": false
          },
          "catalogSnapshotIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 500
          }
        },
        "required": ["definition", "catalogSnapshotIds"],
        "additionalProperties": false
      },
      "postV2MetricsClientQueriesQueryIdVersionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "queryId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientQueriesQueryIdVersionsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "queryId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientSchedulesScheduleIdOwnershipRequest": {
        "type": "object",
        "properties": {
          "targetOwnerActorId": {
            "type": "string",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 96,
            "default": "owner_requested_transfer"
          }
        },
        "required": ["targetOwnerActorId"],
        "additionalProperties": false
      },
      "postV2MetricsClientSchedulesScheduleIdOwnershipResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "ownerActorId": {
                "type": "string"
              },
              "changed": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": ["actorId", "scheduleId", "ownerActorId", "changed"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "putV2MetricsClientSchedulesScheduleIdStatusRequest": {
        "type": "object",
        "properties": {
          "status": {
            "enum": ["active", "paused"],
            "type": "string"
          }
        },
        "required": ["status"],
        "additionalProperties": false
      },
      "putV2MetricsClientSchedulesScheduleIdStatusResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "scheduleVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "status": {
                "enum": ["active", "paused"],
                "type": "string"
              },
              "nextEvaluationAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "required": ["actorId", "scheduleId", "scheduleVersionId", "status", "nextEvaluationAt"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientSchedulesScheduleIdVersionsRequest": {
        "type": "object",
        "properties": {
          "definition": {
            "type": "object",
            "properties": {
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "recurrence": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "cron"
                      },
                      "expression": {
                        "type": "string"
                      }
                    },
                    "required": ["kind", "expression"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "every": {
                        "type": "number"
                      },
                      "hour": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "minute": {
                        "type": "number"
                      },
                      "kind": {
                        "type": "string",
                        "const": "interval"
                      },
                      "unit": {
                        "enum": ["hour", "day", "week", "month"],
                        "type": "string"
                      },
                      "dayOfWeek": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "dayOfMonth": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "required": [
                      "every",
                      "hour",
                      "minute",
                      "kind",
                      "unit",
                      "dayOfWeek",
                      "dayOfMonth"
                    ]
                  }
                ]
              },
              "daylightSavingPolicy": {
                "enum": ["wall_clock", "fixed_utc"],
                "type": "string"
              },
              "overlapPolicy": {
                "enum": ["skip", "queue_one", "allow"],
                "type": "string"
              },
              "startsAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "endsAt": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "format": "date-time"
                  }
                ]
              },
              "freshnessDelayMinutes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10080
              },
              "failurePolicy": {
                "type": "object",
                "properties": {
                  "maximumAttempts": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  },
                  "backoff": {
                    "enum": ["fixed", "exponential"],
                    "type": "string"
                  },
                  "initialDelaySeconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 86400
                  },
                  "autoPauseAfterFailures": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      }
                    ]
                  }
                },
                "required": [
                  "maximumAttempts",
                  "backoff",
                  "initialDelaySeconds",
                  "autoPauseAfterFailures"
                ],
                "additionalProperties": false
              },
              "targets": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "queryVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_query"
                        },
                        "retainResult": {
                          "anyOf": [
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            }
                          ]
                        }
                      },
                      "required": ["id", "queryVersionId", "position", "action", "retainResult"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_client_binding"
                        },
                        "clientBindingVersionId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "clientBindingVersionId"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "modelVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "materialize_model"
                        }
                      },
                      "required": ["id", "modelVersionId", "position", "action"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "tableGroupVersionId": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "materialize_table_group"
                        }
                      },
                      "required": ["id", "tableGroupVersionId", "position", "action"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_transfer"
                        },
                        "transferVersionId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "transferVersionId"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "position": {
                          "type": "number"
                        },
                        "action": {
                          "type": "string",
                          "const": "refresh_report_dataset"
                        },
                        "reportDatasetBindingId": {
                          "type": "string"
                        }
                      },
                      "required": ["id", "position", "action", "reportDatasetBindingId"]
                    }
                  ]
                },
                "minItems": 1,
                "maxItems": 100
              },
              "notifications": {
                "type": "object",
                "properties": {
                  "onSuccess": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onFailure": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "onAutoPause": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "const": false
                      },
                      {
                        "type": "boolean",
                        "const": true
                      }
                    ]
                  },
                  "targets": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "email"
                            },
                            "address": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "address"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "slack"
                            },
                            "destinationId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "destinationId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "microsoft_teams"
                            },
                            "destinationId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "destinationId"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "webhook"
                            },
                            "webhookEndpointId": {
                              "type": "string"
                            }
                          },
                          "required": ["kind", "webhookEndpointId"]
                        }
                      ]
                    },
                    "maxItems": 50
                  }
                },
                "required": ["onSuccess", "onFailure", "onAutoPause", "targets"],
                "additionalProperties": false
              }
            },
            "required": [
              "schemaVersion",
              "timeZone",
              "recurrence",
              "daylightSavingPolicy",
              "overlapPolicy",
              "startsAt",
              "endsAt",
              "freshnessDelayMinutes",
              "failurePolicy",
              "targets",
              "notifications"
            ],
            "additionalProperties": false
          }
        },
        "required": ["definition"],
        "additionalProperties": false
      },
      "postV2MetricsClientSchedulesScheduleIdVersionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "scheduleId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientSchedulesScheduleIdVersionsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "scheduleId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "enum": ["draft", "published", "superseded"],
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "scheduleId",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientWritesWriteClaimIdCheckpointsRequest": {
        "type": "object",
        "properties": {
          "generation": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "rowCount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 10000
          },
          "batchNumber": {
            "type": "integer",
            "minimum": 0
          },
          "startRowOffset": {
            "type": "integer",
            "minimum": 0
          },
          "resultPageCursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "batchChecksum": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "writtenRange": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        },
        "required": [
          "generation",
          "rowCount",
          "batchNumber",
          "startRowOffset",
          "resultPageCursor",
          "batchChecksum",
          "writtenRange"
        ],
        "additionalProperties": false
      },
      "postV2MetricsClientWritesWriteClaimIdCheckpointsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "writeClaimId": {
                "type": "string"
              },
              "generation": {
                "type": "number"
              },
              "nextRowOffset": {
                "type": "number"
              },
              "rowsWritten": {
                "type": "number"
              },
              "replayed": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "const": false
                  },
                  {
                    "type": "boolean",
                    "const": true
                  }
                ]
              }
            },
            "required": ["writeClaimId", "generation", "nextRowOffset", "rowsWritten", "replayed"]
          }
        },
        "required": ["data"]
      },
      "postV2MetricsClientWritesWriteClaimIdCommitRequest": {
        "type": "object",
        "properties": {
          "generation": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "outputChecksum": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "finalWrittenRange": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "totalRowsWritten": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": ["generation", "outputChecksum", "finalWrittenRange", "totalRowsWritten"],
        "additionalProperties": false
      },
      "postV2MetricsClientWritesWriteClaimIdCommitResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "writeClaimId": {
                "type": "string"
              },
              "clientBindingId": {
                "type": "string"
              },
              "generation": {
                "type": "number"
              },
              "status": {
                "type": "string",
                "const": "committed"
              },
              "totalRowsWritten": {
                "type": "number"
              }
            },
            "required": [
              "writeClaimId",
              "clientBindingId",
              "generation",
              "status",
              "totalRowsWritten"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientAuthChallengesChallengeIdExchangeRequest": {
        "type": "object",
        "properties": {
          "audience": {
            "enum": ["chatobserver-metrics-sheets", "chatobserver-metrics-excel"],
            "type": "string"
          },
          "pollSecret": {
            "type": "string",
            "minLength": 32,
            "maxLength": 256
          },
          "codeVerifier": {
            "type": "string",
            "minLength": 43,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._~-]+$"
          },
          "renewal": {
            "type": "object",
            "properties": {
              "token": {
                "type": "string",
                "pattern": "^mcr_[A-Za-z0-9_-]{43,64}$"
              },
              "sessionToken": {
                "type": "string",
                "pattern": "^mcs_[A-Za-z0-9_-]{43,64}$"
              }
            },
            "required": ["token", "sessionToken"],
            "additionalProperties": false,
            "description": "Privately persist these random host-generated credentials before exchange. Only the exact same approved exchange may recover a lost response."
          }
        },
        "required": ["audience", "pollSecret", "codeVerifier"],
        "additionalProperties": false
      },
      "postV2MetricsClientAuthChallengesChallengeIdExchangeResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "token": {
                "type": "string"
              },
              "sessionId": {
                "type": "string"
              },
              "workspaceId": {
                "type": "string"
              },
              "actorId": {
                "type": "string"
              },
              "clientKind": {
                "enum": ["google_sheets", "excel"],
                "type": "string"
              },
              "scopes": {
                "type": "array",
                "items": {
                  "enum": ["client:read", "client:write", "client:execute"],
                  "type": "string"
                }
              },
              "expiresAt": {
                "type": "string"
              },
              "documentReferenceHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "renewal": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "pattern": "^mcr_[A-Za-z0-9_-]{43,64}$"
                  },
                  "expiresAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": ["token", "expiresAt"],
                "additionalProperties": false
              }
            },
            "required": [
              "token",
              "sessionId",
              "workspaceId",
              "actorId",
              "clientKind",
              "scopes",
              "expiresAt"
            ]
          }
        },
        "required": ["data"]
      },
      "postV2MetricsDefinitionsResourceTypeResourceIdVersionsRequest": {
        "type": "object",
        "properties": {
          "definition": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "const": 2
                  },
                  "expression": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "literal"
                          },
                          "valueType": {
                            "enum": [
                              "string",
                              "number",
                              "boolean",
                              "integer",
                              "date",
                              "json",
                              "duration",
                              "url",
                              "percent",
                              "currency",
                              "datetime",
                              "decimal",
                              "image_url"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              },
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              },
                              {
                                "type": "object",
                                "properties": {},
                                "additionalProperties": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              }
                            ]
                          }
                        },
                        "required": ["kind", "valueType", "value"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "field"
                          },
                          "fieldId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "fieldId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "custom_field"
                          },
                          "customFieldVersionId": {
                            "type": "string"
                          }
                        },
                        "required": ["kind", "customFieldVersionId"]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "call"
                          },
                          "function": {
                            "enum": [
                              "minimum",
                              "maximum",
                              "concat",
                              "replace",
                              "substring",
                              "trim",
                              "if",
                              "equals",
                              "not_equals",
                              "greater_than",
                              "less_than",
                              "absolute",
                              "and",
                              "or",
                              "lowercase",
                              "uppercase",
                              "add",
                              "subtract",
                              "multiply",
                              "divide",
                              "modulo",
                              "round",
                              "coalesce",
                              "case",
                              "not",
                              "regex_extract",
                              "date_add",
                              "date_difference",
                              "date_truncate",
                              "extract_date_part",
                              "ratio",
                              "percentage",
                              "currency_convert",
                              "lookup"
                            ],
                            "type": "string"
                          },
                          "arguments": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/ContractType152093"
                            }
                          },
                          "options": {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {
                              "anyOf": [
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                },
                                {
                                  "type": "object",
                                  "properties": {},
                                  "additionalProperties": {
                                    "$ref": "#/components/schemas/ContractType54286"
                                  }
                                }
                              ]
                            }
                          }
                        },
                        "required": ["kind", "function", "arguments", "options"]
                      }
                    ]
                  },
                  "outputType": {
                    "enum": [
                      "string",
                      "number",
                      "boolean",
                      "integer",
                      "date",
                      "json",
                      "duration",
                      "url",
                      "percent",
                      "currency",
                      "datetime",
                      "decimal",
                      "image_url"
                    ],
                    "type": "string"
                  },
                  "semanticRole": {
                    "enum": ["metric", "dimension", "identifier", "attribute"],
                    "type": "string"
                  },
                  "nullBehavior": {
                    "enum": ["error", "propagate", "coalesce_zero", "coalesce_empty"],
                    "type": "string"
                  },
                  "errorBehavior": {
                    "enum": ["null", "error"],
                    "type": "string"
                  },
                  "currencyContext": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "sourceCurrencyFieldId": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            ]
                          },
                          "targetCurrency": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 3
                          }
                        },
                        "required": ["sourceCurrencyFieldId", "targetCurrency"],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "dateContext": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "locale": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 35
                          }
                        },
                        "required": ["timeZone", "locale"],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "validationFixtures": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "expected": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean",
                              "const": false
                            },
                            {
                              "type": "boolean",
                              "const": true
                            },
                            {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/ContractType54286"
                              }
                            },
                            {
                              "type": "object",
                              "properties": {},
                              "additionalProperties": {
                                "$ref": "#/components/schemas/ContractType54286"
                              }
                            }
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "input": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              },
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              },
                              {
                                "type": "object",
                                "properties": {},
                                "additionalProperties": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              }
                            ]
                          }
                        }
                      },
                      "required": ["expected", "name", "input"],
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "catalogVisibility": {
                    "enum": ["workspace", "hidden"],
                    "type": "string"
                  }
                },
                "required": [
                  "schemaVersion",
                  "expression",
                  "outputType",
                  "semanticRole",
                  "nullBehavior",
                  "errorBehavior",
                  "currencyContext",
                  "dateContext",
                  "validationFixtures",
                  "catalogVisibility"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "join": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "keys": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "leftFieldId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "rightFieldId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                }
                              },
                              "required": ["leftFieldId", "rightFieldId"],
                              "additionalProperties": false
                            },
                            "minItems": 1
                          },
                          "type": {
                            "enum": ["full", "inner", "left", "anti"],
                            "type": "string"
                          },
                          "leftInputIndex": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "rightInputIndex": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "cardinality": {
                            "enum": ["one_to_one", "one_to_many", "many_to_one"],
                            "type": "string"
                          },
                          "unmatchedRowPolicy": {
                            "enum": ["retain", "discard"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "keys",
                          "type",
                          "leftInputIndex",
                          "rightInputIndex",
                          "cardinality",
                          "unmatchedRowPolicy"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "mode": {
                    "enum": ["join", "union", "union_by_name"],
                    "type": "string"
                  },
                  "schemaVersion": {
                    "type": "number",
                    "const": 2
                  },
                  "missingColumnPolicy": {
                    "enum": ["null", "reject"],
                    "type": "string"
                  },
                  "outputSchemaFingerprint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "inputs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "input": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "query"
                                },
                                "queryVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "queryVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "model"
                                },
                                "modelVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "modelVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "blend"
                                },
                                "blendVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "blendVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "imported_dataset"
                                },
                                "importedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "importedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "managed_dataset"
                                },
                                "managedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "managedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "table_group"
                                },
                                "tableGroupVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "tableGroupVersionId"]
                            }
                          ]
                        }
                      },
                      "required": ["id", "input"],
                      "additionalProperties": false
                    },
                    "minItems": 2,
                    "maxItems": 25
                  },
                  "fieldMappings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "outputFieldId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "inputNodeId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "inputFieldId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "outputLabel": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "cast": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "string",
                              "const": "string"
                            },
                            {
                              "type": "string",
                              "const": "number"
                            },
                            {
                              "type": "string",
                              "const": "boolean"
                            },
                            {
                              "type": "string",
                              "const": "integer"
                            },
                            {
                              "type": "string",
                              "const": "date"
                            },
                            {
                              "type": "string",
                              "const": "json"
                            },
                            {
                              "type": "string",
                              "const": "duration"
                            },
                            {
                              "type": "string",
                              "const": "url"
                            },
                            {
                              "type": "string",
                              "const": "percent"
                            },
                            {
                              "type": "string",
                              "const": "currency"
                            },
                            {
                              "type": "string",
                              "const": "datetime"
                            },
                            {
                              "type": "string",
                              "const": "decimal"
                            },
                            {
                              "type": "string",
                              "const": "image_url"
                            }
                          ]
                        }
                      },
                      "required": [
                        "outputFieldId",
                        "inputNodeId",
                        "inputFieldId",
                        "outputLabel",
                        "cast"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 1000
                  }
                },
                "required": [
                  "join",
                  "mode",
                  "schemaVersion",
                  "missingColumnPolicy",
                  "outputSchemaFingerprint",
                  "inputs",
                  "fieldMappings"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "const": 2
                  },
                  "outputSchemaFingerprint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "nodes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "enum": [
                            "join",
                            "sort",
                            "filter",
                            "limit",
                            "select",
                            "union",
                            "input",
                            "pivot",
                            "cast",
                            "rename",
                            "formula",
                            "aggregate",
                            "deduplicate",
                            "unpivot",
                            "date_bucket",
                            "date_spine",
                            "window",
                            "assert"
                          ],
                          "type": "string"
                        },
                        "filter": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "condition"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "operator": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "execution": {
                                  "enum": [
                                    "pushdown_required",
                                    "pushdown_preferred",
                                    "platform_allowed"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "fieldId", "operator", "value", "execution"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "group"
                                },
                                "conjunction": {
                                  "enum": ["and", "or"],
                                  "type": "string"
                                },
                                "children": {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "condition"
                                          },
                                          "fieldId": {
                                            "type": "string"
                                          },
                                          "operator": {
                                            "enum": [
                                              "equals",
                                              "not_equals",
                                              "contains",
                                              "greater_than",
                                              "less_than",
                                              "in",
                                              "between",
                                              "is_null",
                                              "is_not_null",
                                              "not_in",
                                              "not_contains",
                                              "starts_with",
                                              "ends_with",
                                              "regex",
                                              "not_regex",
                                              "greater_than_or_equal",
                                              "less_than_or_equal"
                                            ],
                                            "type": "string"
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "type": "null"
                                              },
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean",
                                                "const": false
                                              },
                                              {
                                                "type": "boolean",
                                                "const": true
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "$ref": "#/components/schemas/ContractType54286"
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {},
                                                "additionalProperties": {
                                                  "$ref": "#/components/schemas/ContractType54286"
                                                }
                                              }
                                            ]
                                          },
                                          "execution": {
                                            "enum": [
                                              "pushdown_required",
                                              "pushdown_preferred",
                                              "platform_allowed"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "fieldId",
                                          "operator",
                                          "value",
                                          "execution"
                                        ]
                                      },
                                      {
                                        "$ref": "#/components/schemas/ContractType94867"
                                      }
                                    ]
                                  }
                                }
                              },
                              "required": ["kind", "conjunction", "children"]
                            }
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "input": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "query"
                                },
                                "queryVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "queryVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "model"
                                },
                                "modelVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "modelVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "blend"
                                },
                                "blendVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "blendVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "imported_dataset"
                                },
                                "importedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "importedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "managed_dataset"
                                },
                                "managedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "managedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "table_group"
                                },
                                "tableGroupVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "tableGroupVersionId"]
                            }
                          ]
                        },
                        "config": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        },
                        "expressions": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "literal"
                                  },
                                  "valueType": {
                                    "enum": [
                                      "string",
                                      "number",
                                      "boolean",
                                      "integer",
                                      "date",
                                      "json",
                                      "duration",
                                      "url",
                                      "percent",
                                      "currency",
                                      "datetime",
                                      "decimal",
                                      "image_url"
                                    ],
                                    "type": "string"
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "null"
                                      },
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean",
                                        "const": false
                                      },
                                      {
                                        "type": "boolean",
                                        "const": true
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/components/schemas/ContractType54286"
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {},
                                        "additionalProperties": {
                                          "$ref": "#/components/schemas/ContractType54286"
                                        }
                                      }
                                    ]
                                  }
                                },
                                "required": ["kind", "valueType", "value"]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "field"
                                  },
                                  "fieldId": {
                                    "type": "string"
                                  }
                                },
                                "required": ["kind", "fieldId"]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "custom_field"
                                  },
                                  "customFieldVersionId": {
                                    "type": "string"
                                  }
                                },
                                "required": ["kind", "customFieldVersionId"]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "call"
                                  },
                                  "function": {
                                    "enum": [
                                      "minimum",
                                      "maximum",
                                      "concat",
                                      "replace",
                                      "substring",
                                      "trim",
                                      "if",
                                      "equals",
                                      "not_equals",
                                      "greater_than",
                                      "less_than",
                                      "absolute",
                                      "and",
                                      "or",
                                      "lowercase",
                                      "uppercase",
                                      "add",
                                      "subtract",
                                      "multiply",
                                      "divide",
                                      "modulo",
                                      "round",
                                      "coalesce",
                                      "case",
                                      "not",
                                      "regex_extract",
                                      "date_add",
                                      "date_difference",
                                      "date_truncate",
                                      "extract_date_part",
                                      "ratio",
                                      "percentage",
                                      "currency_convert",
                                      "lookup"
                                    ],
                                    "type": "string"
                                  },
                                  "arguments": {
                                    "$ref": "#/components/schemas/ContractType156929"
                                  },
                                  "options": {
                                    "type": "object",
                                    "properties": {},
                                    "additionalProperties": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean",
                                          "const": false
                                        },
                                        {
                                          "type": "boolean",
                                          "const": true
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "$ref": "#/components/schemas/ContractType54286"
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {},
                                          "additionalProperties": {
                                            "$ref": "#/components/schemas/ContractType54286"
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                "required": ["kind", "function", "arguments", "options"]
                              }
                            ]
                          },
                          "maxItems": 250
                        }
                      },
                      "required": [
                        "type",
                        "filter",
                        "name",
                        "id",
                        "input",
                        "config",
                        "expressions"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "edges": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fromNodeId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "toNodeId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "inputPort": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        }
                      },
                      "required": ["fromNodeId", "toNodeId", "inputPort"],
                      "additionalProperties": false
                    },
                    "maxItems": 2000
                  },
                  "outputNodeId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "materialization": {
                    "enum": ["managed_dataset", "ephemeral", "artifact"],
                    "type": "string"
                  },
                  "assertions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "kind": {
                          "enum": [
                            "row_count",
                            "unique_key",
                            "non_null",
                            "accepted_range",
                            "freshness"
                          ],
                          "type": "string"
                        },
                        "severity": {
                          "enum": ["error", "warning"],
                          "type": "string"
                        },
                        "config": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          }
                        },
                        "fieldIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "maxItems": 50
                        }
                      },
                      "required": ["id", "kind", "severity", "config", "fieldIds"],
                      "additionalProperties": false
                    },
                    "maxItems": 200
                  }
                },
                "required": [
                  "schemaVersion",
                  "outputSchemaFingerprint",
                  "nodes",
                  "edges",
                  "outputNodeId",
                  "materialization",
                  "assertions"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "const": 2
                  },
                  "templateId": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      }
                    ]
                  },
                  "tables": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "filter": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "condition"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "operator": {
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "contains",
                                    "greater_than",
                                    "less_than",
                                    "in",
                                    "between",
                                    "is_null",
                                    "is_not_null",
                                    "not_in",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than_or_equal",
                                    "less_than_or_equal"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "execution": {
                                  "enum": [
                                    "pushdown_required",
                                    "pushdown_preferred",
                                    "platform_allowed"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "fieldId", "operator", "value", "execution"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "group"
                                },
                                "conjunction": {
                                  "enum": ["and", "or"],
                                  "type": "string"
                                },
                                "children": {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "condition"
                                          },
                                          "fieldId": {
                                            "type": "string"
                                          },
                                          "operator": {
                                            "enum": [
                                              "equals",
                                              "not_equals",
                                              "contains",
                                              "greater_than",
                                              "less_than",
                                              "in",
                                              "between",
                                              "is_null",
                                              "is_not_null",
                                              "not_in",
                                              "not_contains",
                                              "starts_with",
                                              "ends_with",
                                              "regex",
                                              "not_regex",
                                              "greater_than_or_equal",
                                              "less_than_or_equal"
                                            ],
                                            "type": "string"
                                          },
                                          "value": {
                                            "anyOf": [
                                              {
                                                "type": "null"
                                              },
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean",
                                                "const": false
                                              },
                                              {
                                                "type": "boolean",
                                                "const": true
                                              },
                                              {
                                                "type": "array",
                                                "items": {
                                                  "$ref": "#/components/schemas/ContractType54286"
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {},
                                                "additionalProperties": {
                                                  "$ref": "#/components/schemas/ContractType54286"
                                                }
                                              }
                                            ]
                                          },
                                          "execution": {
                                            "enum": [
                                              "pushdown_required",
                                              "pushdown_preferred",
                                              "platform_allowed"
                                            ],
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "fieldId",
                                          "operator",
                                          "value",
                                          "execution"
                                        ]
                                      },
                                      {
                                        "$ref": "#/components/schemas/ContractType94867"
                                      }
                                    ]
                                  }
                                }
                              },
                              "required": ["kind", "conjunction", "children"]
                            }
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "input": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "query"
                                },
                                "queryVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "queryVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "model"
                                },
                                "modelVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "modelVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "imported_dataset"
                                },
                                "importedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "importedDatasetVersionId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "managed_dataset"
                                },
                                "managedDatasetVersionId": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "managedDatasetVersionId"]
                            }
                          ]
                        },
                        "displayName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 160
                              },
                              "fieldId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "position": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "outputFieldId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "required": ["label", "fieldId", "position", "outputFieldId"],
                            "additionalProperties": false
                          },
                          "minItems": 1,
                          "maxItems": 1000
                        },
                        "keyFieldIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "maxItems": 50
                        },
                        "connectorOptions": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              },
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              },
                              {
                                "type": "object",
                                "properties": {},
                                "additionalProperties": {
                                  "$ref": "#/components/schemas/ContractType54286"
                                }
                              }
                            ]
                          }
                        },
                        "schemaPolicy": {
                          "enum": ["locked", "additive", "reconcile"],
                          "type": "string"
                        },
                        "partitionFieldIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "maxItems": 20
                        },
                        "lookbackWindow": {
                          "anyOf": [
                            {
                              "type": "null"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 10000
                                },
                                "unit": {
                                  "enum": ["hour", "day", "week", "month"],
                                  "type": "string"
                                }
                              },
                              "required": ["count", "unit"],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "updateMode": {
                          "enum": [
                            "replace",
                            "append",
                            "upsert",
                            "rolling_window",
                            "single_day_snapshot",
                            "historical_snapshot",
                            "rolling_historical_snapshot"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "filter",
                        "name",
                        "id",
                        "input",
                        "displayName",
                        "fields",
                        "keyFieldIds",
                        "connectorOptions",
                        "schemaPolicy",
                        "partitionFieldIds",
                        "lookbackWindow",
                        "updateMode"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "dependencyVersionIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "maxItems": 500
                  },
                  "portableMetadata": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        },
                        {
                          "type": "boolean",
                          "const": true
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "schemaVersion",
                  "templateId",
                  "tables",
                  "dependencyVersionIds",
                  "portableMetadata"
                ],
                "additionalProperties": false
              },
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "source": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "manual_upload"
                              },
                              "allowedFormats": {
                                "type": "array",
                                "items": {
                                  "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
                                  "type": "string"
                                }
                              }
                            },
                            "required": ["kind", "allowedFormats"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "authenticated_file"
                              },
                              "connectionVersionId": {
                                "type": "string"
                              },
                              "providerPath": {
                                "type": "string"
                              },
                              "expectedFormat": {
                                "enum": ["csv", "parquet", "tsv", "xlsx", "jsonl"],
                                "type": "string"
                              }
                            },
                            "required": [
                              "kind",
                              "connectionVersionId",
                              "providerPath",
                              "expectedFormat"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "email_intake"
                              },
                              "intakeId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "intakeId"]
                          }
                        ]
                      },
                      "target": {
                        "type": "string",
                        "const": "retained_import"
                      },
                      "qualityRules": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "not_null"
                                },
                                "severity": {
                                  "enum": ["error", "warning"],
                                  "type": "string"
                                },
                                "fieldId": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "kind", "severity", "fieldId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "unique"
                                },
                                "severity": {
                                  "enum": ["error", "warning"],
                                  "type": "string"
                                },
                                "fieldIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": ["id", "kind", "severity", "fieldIds"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "values": {
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "null"
                                      },
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean",
                                        "const": false
                                      },
                                      {
                                        "type": "boolean",
                                        "const": true
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/components/schemas/ContractType54286"
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "properties": {},
                                        "additionalProperties": {
                                          "$ref": "#/components/schemas/ContractType54286"
                                        }
                                      }
                                    ]
                                  }
                                },
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "accepted_values"
                                },
                                "severity": {
                                  "enum": ["error", "warning"],
                                  "type": "string"
                                },
                                "fieldId": {
                                  "type": "string"
                                }
                              },
                              "required": ["values", "id", "kind", "severity", "fieldId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "minimum": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ]
                                },
                                "maximum": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ]
                                },
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "row_count"
                                },
                                "severity": {
                                  "enum": ["error", "warning"],
                                  "type": "string"
                                }
                              },
                              "required": ["minimum", "maximum", "id", "kind", "severity"]
                            }
                          ]
                        }
                      },
                      "maximumRows": {
                        "type": "number"
                      },
                      "maximumBytes": {
                        "type": "number"
                      },
                      "malformedRowPolicy": {
                        "enum": ["reject_file", "quarantine_rows"],
                        "type": "string"
                      },
                      "mappingVersionId": {
                        "type": "string"
                      },
                      "updatePolicyVersionId": {
                        "type": "string"
                      },
                      "retentionPolicyVersionId": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "schemaVersion",
                      "source",
                      "target",
                      "qualityRules",
                      "maximumRows",
                      "maximumBytes",
                      "malformedRowPolicy",
                      "mappingVersionId",
                      "updatePolicyVersionId",
                      "retentionPolicyVersionId"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "columns": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "enum": [
                                "string",
                                "number",
                                "boolean",
                                "integer",
                                "date",
                                "json",
                                "duration",
                                "url",
                                "percent",
                                "currency",
                                "datetime",
                                "decimal",
                                "image_url"
                              ],
                              "type": "string"
                            },
                            "nullable": {
                              "anyOf": [
                                {
                                  "type": "boolean",
                                  "const": false
                                },
                                {
                                  "type": "boolean",
                                  "const": true
                                }
                              ]
                            },
                            "label": {
                              "type": "string"
                            },
                            "fieldId": {
                              "type": "string"
                            },
                            "sourceName": {
                              "type": "string"
                            }
                          },
                          "required": ["type", "nullable", "label", "fieldId", "sourceName"]
                        }
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 2
                      },
                      "source": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "manual_upload"
                              },
                              "originalFileName": {
                                "type": "string"
                              },
                              "sourceArtifactId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "originalFileName", "sourceArtifactId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "authenticated_file"
                              },
                              "connectionId": {
                                "type": "string"
                              },
                              "providerPath": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "connectionId", "providerPath"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "email_intake"
                              },
                              "intakeId": {
                                "type": "string"
                              },
                              "senderPolicyVersion": {
                                "type": "number"
                              }
                            },
                            "required": ["kind", "intakeId", "senderPolicyVersion"]
                          }
                        ]
                      },
                      "retentionDays": {
                        "type": "number"
                      },
                      "formulaInjectionPolicy": {
                        "enum": ["reject", "escape"],
                        "type": "string"
                      },
                      "keyFieldIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "maximumRows": {
                        "type": "number"
                      },
                      "maximumBytes": {
                        "type": "number"
                      },
                      "malformedRowPolicy": {
                        "enum": ["reject_file", "quarantine_rows"],
                        "type": "string"
                      },
                      "updateMode": {
                        "enum": ["replace", "append", "upsert"],
                        "type": "string"
                      },
                      "incrementalCursorFieldId": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "columns",
                      "schemaVersion",
                      "source",
                      "retentionDays",
                      "formulaInjectionPolicy",
                      "keyFieldIds",
                      "maximumRows",
                      "maximumBytes",
                      "malformedRowPolicy",
                      "updateMode",
                      "incrementalCursorFieldId"
                    ]
                  }
                ]
              },
              {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "google_sheets"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "sheetName": {
                            "type": "string"
                          },
                          "spreadsheetReferenceHash": {
                            "type": "string"
                          },
                          "stableSheetId": {
                            "type": "number"
                          }
                        },
                        "required": ["sheetName", "spreadsheetReferenceHash", "stableSheetId"]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "anchorRow": {
                            "type": "number"
                          },
                          "anchorColumn": {
                            "type": "number"
                          },
                          "selectedRangeA1": {
                            "type": "string"
                          },
                          "lastWrittenRangeA1": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": [
                          "anchorRow",
                          "anchorColumn",
                          "selectedRangeA1",
                          "lastWrittenRangeA1"
                        ]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "excel"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "workbookReferenceHash": {
                            "type": "string"
                          },
                          "stableWorksheetId": {
                            "type": "string"
                          },
                          "worksheetName": {
                            "type": "string"
                          },
                          "storageKind": {
                            "enum": ["onedrive", "sharepoint", "local"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "workbookReferenceHash",
                          "stableWorksheetId",
                          "worksheetName",
                          "storageKind"
                        ]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "tableName": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "anchorRow": {
                            "type": "number"
                          },
                          "anchorColumn": {
                            "type": "number"
                          },
                          "selectedAddress": {
                            "type": "string"
                          },
                          "lastWrittenAddress": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": [
                          "tableName",
                          "anchorRow",
                          "anchorColumn",
                          "selectedAddress",
                          "lastWrittenAddress"
                        ]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "looker_studio"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "dataSourceReferenceHash": {
                            "type": "string"
                          },
                          "reportReferenceHash": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "credentialOwnership": {
                            "enum": ["owner", "viewer"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "dataSourceReferenceHash",
                          "reportReferenceHash",
                          "credentialOwnership"
                        ]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "selectedFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "dataSourceName": {
                            "type": "string"
                          },
                          "defaultDateFieldId": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["selectedFieldIds", "dataSourceName", "defaultDateFieldId"]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "performance": {
                        "type": "object",
                        "properties": {
                          "maximumRows": {
                            "type": "number"
                          },
                          "refreshMode": {
                            "enum": ["live_operation", "latest_retained_result"],
                            "type": "string"
                          },
                          "maximumWaitSeconds": {
                            "type": "number"
                          },
                          "resultPageSize": {
                            "type": "number"
                          },
                          "imagePolicy": {
                            "enum": ["url", "download"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "maximumRows",
                          "refreshMode",
                          "maximumWaitSeconds",
                          "resultPageSize",
                          "imagePolicy"
                        ]
                      },
                      "refreshFieldsOnCatalogueChange": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "sharing": {
                        "type": "object",
                        "properties": {
                          "allowCredentialSharing": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "requireWorkspaceMembership": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          }
                        },
                        "required": ["allowCredentialSharing", "requireWorkspaceMembership"]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion",
                      "performance",
                      "refreshFieldsOnCatalogueChange",
                      "sharing"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "power_bi"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "tenantReferenceHash": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "workspaceReferenceHash": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "datasetReferenceHash": {
                            "type": "string"
                          },
                          "storageMode": {
                            "type": "string",
                            "const": "import"
                          }
                        },
                        "required": [
                          "tenantReferenceHash",
                          "workspaceReferenceHash",
                          "datasetReferenceHash",
                          "storageMode"
                        ]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "tableName": {
                            "type": "string"
                          },
                          "selectedFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "semanticModelName": {
                            "type": "string"
                          }
                        },
                        "required": ["tableName", "selectedFieldIds", "semanticModelName"]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "performance": {
                        "type": "object",
                        "properties": {
                          "maximumRows": {
                            "type": "number"
                          },
                          "refreshMode": {
                            "enum": ["live_operation", "latest_retained_result"],
                            "type": "string"
                          },
                          "maximumWaitSeconds": {
                            "type": "number"
                          },
                          "resultPageSize": {
                            "type": "number"
                          },
                          "imagePolicy": {
                            "enum": ["url", "download"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "maximumRows",
                          "refreshMode",
                          "maximumWaitSeconds",
                          "resultPageSize",
                          "imagePolicy"
                        ]
                      },
                      "scheduledRefresh": {
                        "type": "object",
                        "properties": {
                          "managedBy": {
                            "enum": ["chatobserver", "power_bi"],
                            "type": "string"
                          },
                          "gatewayRequired": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "privacyLevel": {
                            "enum": ["private", "organizational"],
                            "type": "string"
                          }
                        },
                        "required": ["managedBy", "gatewayRequired", "privacyLevel"]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion",
                      "performance",
                      "scheduledRefresh"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "chatobserver_report"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "reportId": {
                            "type": "string"
                          },
                          "pageId": {
                            "type": "string"
                          },
                          "blockId": {
                            "type": "string"
                          }
                        },
                        "required": ["reportId", "pageId", "blockId"]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "anchor": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "container": {
                            "type": "string",
                            "const": "report_block"
                          },
                          "rangeOrTable": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["anchor", "container", "rangeOrTable"]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "query"
                              },
                              "queryVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "queryVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "model"
                              },
                              "modelVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "modelVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "table_group"
                              },
                              "tableGroupVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "tableGroupVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "managed_dataset"
                              },
                              "managedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "managedDatasetVersionId"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "imported_dataset"
                              },
                              "importedDatasetVersionId": {
                                "type": "string"
                              }
                            },
                            "required": ["kind", "importedDatasetVersionId"]
                          }
                        ]
                      },
                      "schemaVersion": {
                        "type": "number",
                        "const": 3
                      },
                      "ownership": {
                        "type": "object",
                        "properties": {
                          "ownerUserId": {
                            "type": "string"
                          },
                          "hostOwnerReference": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["ownerUserId", "hostOwnerReference"]
                      },
                      "clientKind": {
                        "type": "string",
                        "const": "api_export"
                      },
                      "targetIdentity": {
                        "type": "object",
                        "properties": {
                          "label": {
                            "type": "string"
                          },
                          "consumerReferenceHash": {
                            "type": "string"
                          },
                          "serviceAccountId": {
                            "type": "string"
                          }
                        },
                        "required": ["label", "consumerReferenceHash", "serviceAccountId"]
                      },
                      "placement": {
                        "type": "object",
                        "properties": {
                          "anchor": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "container": {
                            "type": "string",
                            "const": "result_pages"
                          },
                          "rangeOrTable": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              }
                            ]
                          }
                        },
                        "required": ["anchor", "container", "rangeOrTable"]
                      },
                      "outputShape": {
                        "enum": ["table_group", "pivot", "rows", "semantic_model"],
                        "type": "string"
                      },
                      "writePolicy": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "enum": ["replace", "append", "incremental", "combine"],
                            "type": "string"
                          },
                          "schemaDriftPolicy": {
                            "enum": ["replace", "fail", "add_columns"],
                            "type": "string"
                          },
                          "partialWritePolicy": {
                            "enum": ["resume", "rollback"],
                            "type": "string"
                          },
                          "incrementalKeyFieldIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "preserveOutputOnFailure": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "maximumRowsPerBatch": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "mode",
                          "schemaDriftPolicy",
                          "partialWritePolicy",
                          "incrementalKeyFieldIds",
                          "preserveOutputOnFailure",
                          "maximumRowsPerBatch"
                        ]
                      },
                      "formatting": {
                        "type": "object",
                        "properties": {
                          "timeZone": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "preserveExisting": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "writeHeaders": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "applyNumberFormats": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "freezeHeaderRow": {
                            "anyOf": [
                              {
                                "type": "boolean",
                                "const": false
                              },
                              {
                                "type": "boolean",
                                "const": true
                              }
                            ]
                          },
                          "resizeColumns": {
                            "enum": ["never", "new_columns", "all_columns"],
                            "type": "string"
                          }
                        },
                        "required": [
                          "timeZone",
                          "locale",
                          "preserveExisting",
                          "writeHeaders",
                          "applyNumberFormats",
                          "freezeHeaderRow",
                          "resizeColumns"
                        ]
                      },
                      "parameterBindings": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "null"
                                    },
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {},
                                      "additionalProperties": {
                                        "$ref": "#/components/schemas/ContractType54286"
                                      }
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "literal"
                                },
                                "parameterId": {
                                  "type": "string"
                                }
                              },
                              "required": ["value", "kind", "parameterId"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "cell"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "stableSheetReference": {
                                  "type": "string"
                                },
                                "rangeA1": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "errorPolicy": {
                                  "enum": ["use_default", "fail"],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "parameterId",
                                "stableSheetReference",
                                "rangeA1",
                                "blankPolicy",
                                "errorPolicy"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "host_parameter"
                                },
                                "valueType": {
                                  "enum": ["string", "number", "boolean", "date", "datetime"],
                                  "type": "string"
                                },
                                "allowViewerOverride": {
                                  "anyOf": [
                                    {
                                      "type": "boolean",
                                      "const": false
                                    },
                                    {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  ]
                                },
                                "parameterId": {
                                  "type": "string"
                                },
                                "blankPolicy": {
                                  "enum": ["use_null", "use_default", "fail"],
                                  "type": "string"
                                },
                                "hostParameterName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "valueType",
                                "allowViewerOverride",
                                "parameterId",
                                "blankPolicy",
                                "hostParameterName"
                              ]
                            }
                          ]
                        }
                      },
                      "unattendedAccess": {
                        "anyOf": [
                          {
                            "type": "boolean",
                            "const": false
                          },
                          {
                            "type": "boolean",
                            "const": true
                          }
                        ]
                      },
                      "credentialReferenceVersion": {
                        "anyOf": [
                          {
                            "type": "null"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      }
                    },
                    "required": [
                      "input",
                      "schemaVersion",
                      "ownership",
                      "clientKind",
                      "targetIdentity",
                      "placement",
                      "outputShape",
                      "writePolicy",
                      "formatting",
                      "parameterBindings",
                      "unattendedAccess",
                      "credentialReferenceVersion"
                    ]
                  }
                ]
              }
            ]
          }
        },
        "required": ["definition"]
      },
      "postV2MetricsDefinitionsResourceTypeResourceIdVersionsResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceType": {
                "enum": [
                  "model",
                  "table_group",
                  "imported_dataset",
                  "client_binding",
                  "blend",
                  "custom_field"
                ],
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "resourceId",
              "resourceType",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsDefinitionsResourceTypeResourceIdVersionsResponse201": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "actorId": {
                "type": "string"
              },
              "canonicalHash": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "resourceType": {
                "enum": [
                  "model",
                  "table_group",
                  "imported_dataset",
                  "client_binding",
                  "blend",
                  "custom_field"
                ],
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionNumber": {
                "type": "number"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": [
              "actorId",
              "canonicalHash",
              "resourceId",
              "resourceType",
              "versionId",
              "versionNumber",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsDestinationsDestinationIdVersionsVersionIdPublishResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "previousVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "actorId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": ["previousVersionId", "actorId", "resourceId", "versionId", "versionStatus"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsQueriesQueryIdVersionsVersionIdPublishResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": ["queryId", "versionId", "versionStatus"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsSchedulesScheduleIdVersionsVersionIdPublishResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "previousVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "nextEvaluationAt": {
                "type": "string"
              },
              "actorId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": [
              "previousVersionId",
              "nextEvaluationAt",
              "actorId",
              "resourceId",
              "versionId",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsTransfersTransferIdVersionsVersionIdPublishResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "previousVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "actorId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": ["previousVersionId", "actorId", "resourceId", "versionId", "versionStatus"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsWebhooksEndpointIdDeliveriesDeliveryIdReplayResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "deliveryId": {
                "type": "string"
              },
              "replayedFrom": {
                "type": "string"
              }
            },
            "required": ["deliveryId", "replayedFrom"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsWebhooksEndpointIdDeliveriesDeliveryIdReplayResponse202": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "deliveryId": {
                "type": "string"
              },
              "replayedFrom": {
                "type": "string"
              }
            },
            "required": ["deliveryId", "replayedFrom"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientBindingsBindingIdVersionsVersionIdPublishResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "previousVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "actorId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": ["previousVersionId", "actorId", "resourceId", "versionId", "versionStatus"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientQueriesQueryIdVersionsVersionIdPublishResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "queryId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": ["queryId", "versionId", "versionStatus"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsClientSchedulesScheduleIdVersionsVersionIdPublishResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "previousVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "nextEvaluationAt": {
                "type": "string"
              },
              "actorId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": [
              "previousVersionId",
              "nextEvaluationAt",
              "actorId",
              "resourceId",
              "versionId",
              "versionStatus"
            ]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "postV2MetricsDefinitionsResourceTypeResourceIdVersionsVersionIdPublishResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "previousVersionId": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "actorId": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              },
              "versionId": {
                "type": "string"
              },
              "versionStatus": {
                "type": "string"
              }
            },
            "required": ["previousVersionId", "actorId", "resourceId", "versionId", "versionStatus"]
          },
          "replayed": {
            "anyOf": [
              {
                "type": "boolean",
                "const": false
              },
              {
                "type": "boolean",
                "const": true
              }
            ]
          }
        },
        "required": ["data", "replayed"]
      },
      "getV2SentimentOverviewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "window": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "compareFrom": {
                    "type": ["string", "null"]
                  },
                  "compareTo": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["from", "to", "compareFrom", "compareTo"],
                "additionalProperties": false
              },
              "generatedAt": {
                "type": "string"
              },
              "summary": {
                "type": "object",
                "properties": {
                  "totalMentions": {
                    "type": "number"
                  },
                  "distinctRuns": {
                    "type": "number"
                  },
                  "positiveCount": {
                    "type": "number"
                  },
                  "negativeCount": {
                    "type": "number"
                  },
                  "neutralCount": {
                    "type": "number"
                  },
                  "mixedCount": {
                    "type": "number"
                  },
                  "positiveShare": {
                    "type": "number"
                  },
                  "negativeShare": {
                    "type": "number"
                  },
                  "netSentiment": {
                    "type": "number"
                  },
                  "ownBrandNegativeMentions": {
                    "type": "number"
                  },
                  "competitorPositiveMentions": {
                    "type": "number"
                  }
                },
                "required": [
                  "totalMentions",
                  "distinctRuns",
                  "positiveCount",
                  "negativeCount",
                  "neutralCount",
                  "mixedCount",
                  "positiveShare",
                  "negativeShare",
                  "netSentiment",
                  "ownBrandNegativeMentions",
                  "competitorPositiveMentions"
                ],
                "additionalProperties": false
              },
              "comparison": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "totalMentions": {
                        "type": "number"
                      },
                      "distinctRuns": {
                        "type": "number"
                      },
                      "positiveCount": {
                        "type": "number"
                      },
                      "negativeCount": {
                        "type": "number"
                      },
                      "neutralCount": {
                        "type": "number"
                      },
                      "mixedCount": {
                        "type": "number"
                      },
                      "positiveShare": {
                        "type": "number"
                      },
                      "negativeShare": {
                        "type": "number"
                      },
                      "netSentiment": {
                        "type": "number"
                      },
                      "ownBrandNegativeMentions": {
                        "type": "number"
                      },
                      "competitorPositiveMentions": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "totalMentions",
                      "distinctRuns",
                      "positiveCount",
                      "negativeCount",
                      "neutralCount",
                      "mixedCount",
                      "positiveShare",
                      "negativeShare",
                      "netSentiment",
                      "ownBrandNegativeMentions",
                      "competitorPositiveMentions"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["window", "generatedAt", "summary", "comparison"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2SentimentSeriesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "window": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "compareFrom": {
                    "type": ["string", "null"]
                  },
                  "compareTo": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["from", "to", "compareFrom", "compareTo"],
                "additionalProperties": false
              },
              "generatedAt": {
                "type": "string"
              },
              "granularity": {
                "type": "string",
                "enum": ["day", "week", "month"]
              },
              "buckets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "bucketDate": {
                      "type": "string"
                    },
                    "totalMentions": {
                      "type": "number"
                    },
                    "positiveCount": {
                      "type": "number"
                    },
                    "negativeCount": {
                      "type": "number"
                    },
                    "neutralCount": {
                      "type": "number"
                    },
                    "mixedCount": {
                      "type": "number"
                    },
                    "ownBrandNegativeMentions": {
                      "type": "number"
                    },
                    "competitorPositiveMentions": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "bucketDate",
                    "totalMentions",
                    "positiveCount",
                    "negativeCount",
                    "neutralCount",
                    "mixedCount",
                    "ownBrandNegativeMentions",
                    "competitorPositiveMentions"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": ["window", "generatedAt", "granularity", "buckets"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2SentimentModelsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "window": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "compareFrom": {
                    "type": ["string", "null"]
                  },
                  "compareTo": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["from", "to", "compareFrom", "compareTo"],
                "additionalProperties": false
              },
              "generatedAt": {
                "type": "string"
              },
              "models": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "modelKey": {
                      "type": "string",
                      "enum": [
                        "chatgpt",
                        "gemini",
                        "perplexity",
                        "claude",
                        "ai_mode",
                        "ai_overview",
                        "google_ai_mode",
                        "google_ai_overview",
                        "unknown"
                      ]
                    },
                    "modelLabel": {
                      "type": "string",
                      "enum": [
                        "ChatGPT",
                        "Gemini",
                        "Perplexity",
                        "Claude",
                        "AI Mode",
                        "AI Overviews",
                        "AI answer"
                      ]
                    },
                    "totalMentions": {
                      "type": "number"
                    },
                    "positiveCount": {
                      "type": "number"
                    },
                    "negativeCount": {
                      "type": "number"
                    },
                    "neutralCount": {
                      "type": "number"
                    },
                    "mixedCount": {
                      "type": "number"
                    },
                    "positiveShare": {
                      "type": "number"
                    },
                    "negativeShare": {
                      "type": "number"
                    },
                    "score": {
                      "type": "number"
                    },
                    "trend": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    }
                  },
                  "required": [
                    "modelKey",
                    "modelLabel",
                    "totalMentions",
                    "positiveCount",
                    "negativeCount",
                    "neutralCount",
                    "mixedCount",
                    "positiveShare",
                    "negativeShare",
                    "score",
                    "trend"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": ["window", "generatedAt", "models"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2SentimentBrandsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "window": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "compareFrom": {
                    "type": ["string", "null"]
                  },
                  "compareTo": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["from", "to", "compareFrom", "compareTo"],
                "additionalProperties": false
              },
              "generatedAt": {
                "type": "string"
              },
              "brands": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "brandKey": {
                      "type": "string"
                    },
                    "targetLabel": {
                      "type": "string"
                    },
                    "targetKind": {
                      "type": "string",
                      "enum": ["workspace_brand", "competitor", "other_brand"]
                    },
                    "competitorId": {
                      "type": ["number", "null"]
                    },
                    "isOwnBrand": {
                      "type": "boolean"
                    },
                    "mentionCount": {
                      "type": "number"
                    },
                    "distinctRuns": {
                      "type": "number"
                    },
                    "positiveCount": {
                      "type": "number"
                    },
                    "negativeCount": {
                      "type": "number"
                    },
                    "neutralCount": {
                      "type": "number"
                    },
                    "mixedCount": {
                      "type": "number"
                    },
                    "positiveShare": {
                      "type": "number"
                    },
                    "negativeShare": {
                      "type": "number"
                    },
                    "netSentiment": {
                      "type": "number"
                    },
                    "averageRank": {
                      "type": ["number", "null"]
                    },
                    "bestRank": {
                      "type": ["number", "null"]
                    }
                  },
                  "required": [
                    "brandKey",
                    "targetLabel",
                    "targetKind",
                    "competitorId",
                    "isOwnBrand",
                    "mentionCount",
                    "distinctRuns",
                    "positiveCount",
                    "negativeCount",
                    "neutralCount",
                    "mixedCount",
                    "positiveShare",
                    "negativeShare",
                    "netSentiment",
                    "averageRank",
                    "bestRank"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": ["window", "generatedAt", "brands"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2SentimentAspectsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "window": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "compareFrom": {
                    "type": ["string", "null"]
                  },
                  "compareTo": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["from", "to", "compareFrom", "compareTo"],
                "additionalProperties": false
              },
              "generatedAt": {
                "type": "string"
              },
              "positive": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "aspect": {
                      "type": "string"
                    },
                    "sentiment": {
                      "type": "string",
                      "enum": ["positive", "negative"]
                    },
                    "mentionCount": {
                      "type": "number"
                    },
                    "distinctBrands": {
                      "type": "number"
                    }
                  },
                  "required": ["aspect", "sentiment", "mentionCount", "distinctBrands"],
                  "additionalProperties": false
                }
              },
              "negative": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "aspect": {
                      "type": "string"
                    },
                    "sentiment": {
                      "type": "string",
                      "enum": ["positive", "negative"]
                    },
                    "mentionCount": {
                      "type": "number"
                    },
                    "distinctBrands": {
                      "type": "number"
                    }
                  },
                  "required": ["aspect", "sentiment", "mentionCount", "distinctBrands"],
                  "additionalProperties": false
                }
              }
            },
            "required": ["window", "generatedAt", "positive", "negative"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2SentimentEvidenceResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "window": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "compareFrom": {
                    "type": ["string", "null"]
                  },
                  "compareTo": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["from", "to", "compareFrom", "compareTo"],
                "additionalProperties": false
              },
              "generatedAt": {
                "type": "string"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "mentionId": {
                      "type": "number"
                    },
                    "promptRunId": {
                      "type": "number"
                    },
                    "promptId": {
                      "type": "number"
                    },
                    "promptLabel": {
                      "type": "string"
                    },
                    "platform": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "chatgpt",
                            "gemini",
                            "perplexity",
                            "claude",
                            "ai_mode",
                            "ai_overview",
                            "google_ai_mode",
                            "google_ai_overview",
                            "unknown"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "regionCode": {
                      "type": ["string", "null"]
                    },
                    "occurredAt": {
                      "type": ["string", "null"]
                    },
                    "targetLabel": {
                      "type": "string"
                    },
                    "targetKind": {
                      "type": "string",
                      "enum": ["workspace_brand", "competitor", "other_brand"]
                    },
                    "competitorId": {
                      "type": ["number", "null"]
                    },
                    "isOwnBrand": {
                      "type": "boolean"
                    },
                    "sentiment": {
                      "type": "string",
                      "enum": ["positive", "negative", "neutral", "mixed"]
                    },
                    "aspect": {
                      "type": ["string", "null"]
                    },
                    "quote": {
                      "type": "string"
                    },
                    "quoteStart": {
                      "type": ["number", "null"]
                    },
                    "quoteEnd": {
                      "type": ["number", "null"]
                    },
                    "excerpt": {
                      "type": "string"
                    },
                    "excerptHighlightStart": {
                      "type": "number"
                    },
                    "excerptHighlightEnd": {
                      "type": "number"
                    },
                    "position": {
                      "type": "number"
                    },
                    "confidence": {
                      "type": ["string", "null"]
                    }
                  },
                  "required": [
                    "mentionId",
                    "promptRunId",
                    "promptId",
                    "promptLabel",
                    "platform",
                    "regionCode",
                    "occurredAt",
                    "targetLabel",
                    "targetKind",
                    "competitorId",
                    "isOwnBrand",
                    "sentiment",
                    "aspect",
                    "quote",
                    "quoteStart",
                    "quoteEnd",
                    "excerpt",
                    "excerptHighlightStart",
                    "excerptHighlightEnd",
                    "position",
                    "confidence"
                  ],
                  "additionalProperties": false
                }
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": "number"
                  },
                  "hasMore": {
                    "type": "boolean"
                  },
                  "nextCursor": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["limit", "hasMore", "nextCursor"],
                "additionalProperties": false
              }
            },
            "required": ["window", "generatedAt", "rows", "pageInfo"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2AiReferralsOverviewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "projectMissing": {
                "type": "boolean"
              },
              "window": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "days": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "days"],
                "additionalProperties": false
              },
              "totalSessions": {
                "type": "number"
              },
              "totalVisitors": {
                "type": "number"
              },
              "totalPageviews": {
                "type": "number"
              },
              "totalEvents": {
                "type": "number"
              },
              "firstSeenAt": {
                "type": ["string", "null"]
              },
              "lastSeenAt": {
                "type": ["string", "null"]
              }
            },
            "required": [
              "projectMissing",
              "window",
              "totalSessions",
              "totalVisitors",
              "totalPageviews",
              "totalEvents",
              "firstSeenAt",
              "lastSeenAt"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2AiReferralsSeriesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "projectMissing": {
                "type": "boolean"
              },
              "window": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "days": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "days"],
                "additionalProperties": false
              },
              "points": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "string"
                    },
                    "sessions": {
                      "type": "number"
                    },
                    "platform": {
                      "type": "string",
                      "enum": [
                        "chatgpt.com",
                        "claude.ai",
                        "copilot.microsoft.com",
                        "gemini.google.com",
                        "perplexity.ai",
                        "unknown"
                      ]
                    }
                  },
                  "required": ["day", "sessions", "platform"],
                  "additionalProperties": false
                }
              }
            },
            "required": ["projectMissing", "window", "points"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2AiReferralsLandingPagesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "projectMissing": {
                "type": "boolean"
              },
              "window": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "days": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "days"],
                "additionalProperties": false
              },
              "totalSessions": {
                "type": "number"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "pagePath": {
                      "type": "string"
                    },
                    "pageTitle": {
                      "type": ["string", "null"]
                    },
                    "sessions": {
                      "type": "number"
                    },
                    "pageviews": {
                      "type": "number"
                    },
                    "share": {
                      "type": "number"
                    },
                    "lastSeenAt": {
                      "type": ["string", "null"]
                    }
                  },
                  "required": [
                    "pagePath",
                    "pageTitle",
                    "sessions",
                    "pageviews",
                    "share",
                    "lastSeenAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": ["projectMissing", "window", "totalSessions", "rows"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2AiReferralsReferrersResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "projectMissing": {
                "type": "boolean"
              },
              "window": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "days": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "days"],
                "additionalProperties": false
              },
              "totalSessions": {
                "type": "number"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "host": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "sessions": {
                      "type": "number"
                    },
                    "share": {
                      "type": "number"
                    },
                    "lastSeenAt": {
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["host", "displayName", "sessions", "share", "lastSeenAt"],
                  "additionalProperties": false
                }
              }
            },
            "required": ["projectMissing", "window", "totalSessions", "rows"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2AiReferralsDevicesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "projectMissing": {
                "type": "boolean"
              },
              "window": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "days": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "days"],
                "additionalProperties": false
              },
              "totalSessions": {
                "type": "number"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "browser": {
                      "type": "string"
                    },
                    "os": {
                      "type": "string"
                    },
                    "device": {
                      "type": "string"
                    },
                    "lang": {
                      "type": ["string", "null"]
                    },
                    "timezone": {
                      "type": ["string", "null"]
                    },
                    "sessions": {
                      "type": "number"
                    },
                    "share": {
                      "type": "number"
                    }
                  },
                  "required": ["browser", "os", "device", "lang", "timezone", "sessions", "share"],
                  "additionalProperties": false
                }
              }
            },
            "required": ["projectMissing", "window", "totalSessions", "rows"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2AiReferralsEventsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "projectMissing": {
                "type": "boolean"
              },
              "window": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "days": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "days"],
                "additionalProperties": false
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    },
                    "lastSeenAt": {
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["name", "count", "lastSeenAt"],
                  "additionalProperties": false
                }
              }
            },
            "required": ["projectMissing", "window", "rows"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2AiReferralsSessionsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "projectMissing": {
                "type": "boolean"
              },
              "window": {
                "type": "object",
                "properties": {
                  "start": {
                    "type": "string"
                  },
                  "end": {
                    "type": "string"
                  },
                  "days": {
                    "type": "number"
                  }
                },
                "required": ["start", "end", "days"],
                "additionalProperties": false
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sessionKey": {
                      "type": "string"
                    },
                    "firstSeenAt": {
                      "type": "string"
                    },
                    "lastSeenAt": {
                      "type": "string"
                    },
                    "platform": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "chatgpt.com",
                            "claude.ai",
                            "copilot.microsoft.com",
                            "gemini.google.com",
                            "perplexity.ai",
                            "unknown"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pageCount": {
                      "type": "number"
                    },
                    "eventCount": {
                      "type": "number"
                    },
                    "lastPagePath": {
                      "type": ["string", "null"]
                    },
                    "lastReferrer": {
                      "type": ["string", "null"]
                    },
                    "browser": {
                      "type": "string"
                    },
                    "os": {
                      "type": "string"
                    },
                    "device": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "sessionKey",
                    "firstSeenAt",
                    "lastSeenAt",
                    "platform",
                    "pageCount",
                    "eventCount",
                    "lastPagePath",
                    "lastReferrer",
                    "browser",
                    "os",
                    "device"
                  ],
                  "additionalProperties": false
                }
              },
              "nextCursor": {
                "type": ["string", "null"]
              }
            },
            "required": ["projectMissing", "window", "rows", "nextCursor"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2CrawlerLogsOverviewResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "dateRangeDays": {
                "type": "number"
              },
              "metrics": {
                "type": "object",
                "properties": {
                  "totalEvents": {
                    "type": "number"
                  },
                  "verifiedEvents": {
                    "type": "number"
                  },
                  "probableEvents": {
                    "type": "number"
                  },
                  "uaOnlyEvents": {
                    "type": "number"
                  },
                  "rejectedEvents": {
                    "type": "number"
                  },
                  "unknownEvents": {
                    "type": "number"
                  },
                  "uniqueUrls": {
                    "type": "number"
                  },
                  "blockedDeniedEvents": {
                    "type": "number"
                  },
                  "verificationRate": {
                    "type": "number"
                  },
                  "lastEventTime": {
                    "type": ["string", "null"]
                  }
                },
                "required": [
                  "totalEvents",
                  "verifiedEvents",
                  "probableEvents",
                  "uaOnlyEvents",
                  "rejectedEvents",
                  "unknownEvents",
                  "uniqueUrls",
                  "blockedDeniedEvents",
                  "verificationRate",
                  "lastEventTime"
                ],
                "additionalProperties": false
              },
              "eventTypes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "count": {
                      "type": "number"
                    }
                  },
                  "required": ["key", "label", "count"],
                  "additionalProperties": false
                }
              },
              "dailyVendor": {
                "type": "object",
                "properties": {
                  "labels": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "series": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "vendor": {
                          "type": "string"
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        }
                      },
                      "required": ["vendor", "data"],
                      "additionalProperties": false
                    }
                  }
                },
                "required": ["labels", "series"],
                "additionalProperties": false
              },
              "dailyVerification": {
                "type": "object",
                "properties": {
                  "labels": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "series": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "vendor": {
                          "type": "string"
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        }
                      },
                      "required": ["vendor", "data"],
                      "additionalProperties": false
                    }
                  }
                },
                "required": ["labels", "series"],
                "additionalProperties": false
              },
              "dailyEventTypes": {
                "type": "object",
                "properties": {
                  "labels": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "series": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "vendor": {
                          "type": "string"
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        }
                      },
                      "required": ["vendor", "data"],
                      "additionalProperties": false
                    }
                  }
                },
                "required": ["labels", "series"],
                "additionalProperties": false
              },
              "heatmap": {
                "type": "object",
                "properties": {
                  "grid": {
                    "type": "array",
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    }
                  },
                  "maxCount": {
                    "type": "number"
                  }
                },
                "required": ["grid", "maxCount"],
                "additionalProperties": false
              }
            },
            "required": [
              "dateRangeDays",
              "metrics",
              "eventTypes",
              "dailyVendor",
              "dailyVerification",
              "dailyEventTypes",
              "heatmap"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2CrawlerLogsChartSeriesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "bucket": {
                "type": "string",
                "enum": ["minute", "hour", "day", "week", "month"]
              },
              "page": {
                "type": "number"
              },
              "pages": {
                "type": "number"
              },
              "total": {
                "type": "number"
              },
              "timestamps": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "series": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "vendor": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    }
                  },
                  "required": ["vendor", "data"],
                  "additionalProperties": false
                }
              },
              "start": {
                "type": "string"
              },
              "end": {
                "type": "string"
              }
            },
            "required": [
              "bucket",
              "page",
              "pages",
              "total",
              "timestamps",
              "series",
              "start",
              "end"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2CrawlerLogsTopPagesResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "path": {
                      "type": "string"
                    },
                    "total": {
                      "type": "number"
                    },
                    "verified": {
                      "type": "number"
                    },
                    "probable": {
                      "type": "number"
                    },
                    "uaOnly": {
                      "type": "number"
                    },
                    "trend": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    }
                  },
                  "required": ["path", "total", "verified", "probable", "uaOnly", "trend"],
                  "additionalProperties": false
                }
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": "number"
                  },
                  "hasMore": {
                    "type": "boolean"
                  },
                  "nextCursor": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["limit", "hasMore", "nextCursor"],
                "additionalProperties": false
              }
            },
            "required": ["data", "pageInfo"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2CrawlerLogsTopCrawlersResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "vendor": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "total": {
                      "type": "number"
                    },
                    "verified": {
                      "type": "number"
                    },
                    "probable": {
                      "type": "number"
                    },
                    "uaOnly": {
                      "type": "number"
                    }
                  },
                  "required": ["vendor", "name", "total", "verified", "probable", "uaOnly"],
                  "additionalProperties": false
                }
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": "number"
                  },
                  "hasMore": {
                    "type": "boolean"
                  },
                  "nextCursor": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["limit", "hasMore", "nextCursor"],
                "additionalProperties": false
              }
            },
            "required": ["data", "pageInfo"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2CrawlerLogsEventsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "provider": {
                      "type": "string"
                    },
                    "occurredAt": {
                      "type": "string"
                    },
                    "hostname": {
                      "type": ["string", "null"]
                    },
                    "requestPath": {
                      "type": ["string", "null"]
                    },
                    "crawlerVendor": {
                      "type": ["string", "null"]
                    },
                    "crawlerName": {
                      "type": ["string", "null"]
                    },
                    "verificationStatus": {
                      "type": "string"
                    },
                    "verificationMethod": {
                      "type": ["string", "null"]
                    },
                    "statusCode": {
                      "type": ["number", "null"]
                    }
                  },
                  "required": [
                    "id",
                    "provider",
                    "occurredAt",
                    "hostname",
                    "requestPath",
                    "crawlerVendor",
                    "crawlerName",
                    "verificationStatus",
                    "verificationMethod",
                    "statusCode"
                  ],
                  "additionalProperties": false
                }
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": "number"
                  },
                  "hasMore": {
                    "type": "boolean"
                  },
                  "nextCursor": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["limit", "hasMore", "nextCursor"],
                "additionalProperties": false
              },
              "filterOptions": {
                "type": "object",
                "properties": {
                  "crawlers": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": ["crawlers"],
                "additionalProperties": false
              }
            },
            "required": ["data", "pageInfo", "filterOptions"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "getV2GroupsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "revision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": ["string", "null"]
                },
                "colorHex": {
                  "type": ["string", "null"]
                },
                "groupType": {
                  "type": "string",
                  "enum": [
                    "funnel_stage",
                    "intent",
                    "brand",
                    "product",
                    "audience",
                    "geography",
                    "campaign",
                    "custom"
                  ]
                },
                "groupTypeSource": {
                  "type": "string",
                  "enum": ["manual", "inferred"]
                },
                "parentGroupId": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "promptCount": {
                  "type": "number"
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "archivedAt": {
                  "type": ["string", "null"]
                }
              },
              "required": [
                "id",
                "revision",
                "name",
                "description",
                "colorHex",
                "groupType",
                "groupTypeSource",
                "parentGroupId",
                "promptCount",
                "createdAt",
                "updatedAt",
                "archivedAt"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "postV2GroupsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": ["string", "null"]
              },
              "colorHex": {
                "type": ["string", "null"]
              },
              "groupType": {
                "type": "string",
                "enum": [
                  "funnel_stage",
                  "intent",
                  "brand",
                  "product",
                  "audience",
                  "geography",
                  "campaign",
                  "custom"
                ]
              },
              "groupTypeSource": {
                "type": "string",
                "enum": ["manual", "inferred"]
              },
              "parentGroupId": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "promptCount": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "archivedAt": {
                "type": ["string", "null"]
              }
            },
            "required": [
              "id",
              "revision",
              "name",
              "description",
              "colorHex",
              "groupType",
              "groupTypeSource",
              "parentGroupId",
              "promptCount",
              "createdAt",
              "updatedAt",
              "archivedAt"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "postV2GroupsRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "colorHex": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupType": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "funnel_stage",
                  "intent",
                  "brand",
                  "product",
                  "audience",
                  "geography",
                  "campaign",
                  "custom"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "parentGroupId": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["name"],
        "additionalProperties": false
      },
      "getV2GroupsIdResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": ["string", "null"]
              },
              "colorHex": {
                "type": ["string", "null"]
              },
              "groupType": {
                "type": "string",
                "enum": [
                  "funnel_stage",
                  "intent",
                  "brand",
                  "product",
                  "audience",
                  "geography",
                  "campaign",
                  "custom"
                ]
              },
              "groupTypeSource": {
                "type": "string",
                "enum": ["manual", "inferred"]
              },
              "parentGroupId": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "promptCount": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "archivedAt": {
                "type": ["string", "null"]
              }
            },
            "required": [
              "id",
              "revision",
              "name",
              "description",
              "colorHex",
              "groupType",
              "groupTypeSource",
              "parentGroupId",
              "promptCount",
              "createdAt",
              "updatedAt",
              "archivedAt"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "patchV2GroupsIdResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": ["string", "null"]
              },
              "colorHex": {
                "type": ["string", "null"]
              },
              "groupType": {
                "type": "string",
                "enum": [
                  "funnel_stage",
                  "intent",
                  "brand",
                  "product",
                  "audience",
                  "geography",
                  "campaign",
                  "custom"
                ]
              },
              "groupTypeSource": {
                "type": "string",
                "enum": ["manual", "inferred"]
              },
              "parentGroupId": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "promptCount": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "archivedAt": {
                "type": ["string", "null"]
              }
            },
            "required": [
              "id",
              "revision",
              "name",
              "description",
              "colorHex",
              "groupType",
              "groupTypeSource",
              "parentGroupId",
              "promptCount",
              "createdAt",
              "updatedAt",
              "archivedAt"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "patchV2GroupsIdRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "colorHex": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupType": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "funnel_stage",
                  "intent",
                  "brand",
                  "product",
                  "audience",
                  "geography",
                  "campaign",
                  "custom"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "parentGroupId": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "archived": {
            "type": "boolean"
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": ["expectedRevision"],
        "additionalProperties": false
      },
      "patchV2GroupsIdMembershipsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "addedPromptIds": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "removedPromptIds": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "replayed": {
                "type": "boolean"
              }
            },
            "required": ["addedPromptIds", "removedPromptIds", "revision", "replayed"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "patchV2GroupsIdMembershipsRequest": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "idempotencyKey": {
            "type": "string",
            "format": "uuid"
          },
          "addPromptIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "maxItems": 500,
            "default": []
          },
          "removePromptIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "maxItems": 500,
            "default": []
          }
        },
        "required": ["expectedRevision", "idempotencyKey"],
        "additionalProperties": false
      },
      "CoverageCreate": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 4096,
            "description": "Published HTTP(S) page URL. The same page identity rules as the dashboard apply."
          },
          "title": {
            "type": ["string", "null"],
            "maxLength": 500,
            "default": null
          },
          "publisher": {
            "type": ["string", "null"],
            "maxLength": 200,
            "default": null
          },
          "publishedOn": {
            "type": ["string", "null"],
            "format": "date",
            "default": null
          },
          "medium": {
            "type": "string",
            "enum": ["article", "interview", "podcast", "broadcast", "other"],
            "default": "article"
          },
          "attribution": {
            "type": "string",
            "enum": ["unclassified", "our_team", "external"],
            "default": "unclassified"
          },
          "notes": {
            "type": ["string", "null"],
            "maxLength": 4000,
            "default": null
          }
        },
        "required": ["url"],
        "additionalProperties": false
      },
      "CoverageFields": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 4096,
            "description": "Published HTTP(S) page URL. The same page identity rules as the dashboard apply."
          },
          "title": {
            "type": ["string", "null"],
            "maxLength": 500
          },
          "publisher": {
            "type": ["string", "null"],
            "maxLength": 200
          },
          "publishedOn": {
            "type": ["string", "null"],
            "format": "date"
          },
          "medium": {
            "type": "string",
            "enum": ["article", "interview", "podcast", "broadcast", "other"]
          },
          "attribution": {
            "type": "string",
            "enum": ["unclassified", "our_team", "external"]
          },
          "notes": {
            "type": ["string", "null"],
            "maxLength": 4000
          }
        },
        "required": ["url", "title", "publisher", "publishedOn", "medium", "attribution", "notes"],
        "additionalProperties": false
      },
      "CoverageRecord": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 4096,
            "description": "Published HTTP(S) page URL. The same page identity rules as the dashboard apply."
          },
          "title": {
            "type": ["string", "null"],
            "maxLength": 500
          },
          "publisher": {
            "type": ["string", "null"],
            "maxLength": 200
          },
          "publishedOn": {
            "type": ["string", "null"],
            "format": "date"
          },
          "medium": {
            "type": "string",
            "enum": ["article", "interview", "podcast", "broadcast", "other"]
          },
          "attribution": {
            "type": "string",
            "enum": ["unclassified", "our_team", "external"]
          },
          "notes": {
            "type": ["string", "null"],
            "maxLength": 4000
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "archivedAt": {
            "type": ["string", "null"],
            "format": "date-time"
          }
        },
        "required": [
          "url",
          "title",
          "publisher",
          "publishedOn",
          "medium",
          "attribution",
          "notes",
          "id",
          "version",
          "createdAt",
          "updatedAt",
          "archivedAt"
        ],
        "additionalProperties": false
      },
      "CoverageMutation": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": ["update"]
              },
              "version": {
                "type": "integer",
                "minimum": 1
              },
              "fields": {
                "$ref": "#/components/schemas/CoverageFields"
              }
            },
            "required": ["action", "version", "fields"],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "enum": ["archive", "restore"]
              },
              "version": {
                "type": "integer",
                "minimum": 1
              }
            },
            "required": ["action", "version"],
            "additionalProperties": false
          }
        ]
      },
      "CoverageListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoverageRecord"
            }
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "page": {
                "type": "integer",
                "minimum": 1
              },
              "pageSize": {
                "type": "integer",
                "enum": [20]
              },
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": ["page", "pageSize", "total", "hasMore"],
            "additionalProperties": false
          }
        },
        "required": ["data", "pageInfo"],
        "additionalProperties": false
      },
      "CoverageRecordResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CoverageRecord"
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "CoverageDetailResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "item": {
                "$ref": "#/components/schemas/CoverageRecord"
              },
              "evidence": {
                "type": "object",
                "properties": {
                  "answerCount": {
                    "type": "integer"
                  },
                  "firstObservedAt": {
                    "type": ["string", "null"],
                    "format": "date-time"
                  },
                  "lastObservedAt": {
                    "type": ["string", "null"],
                    "format": "date-time"
                  },
                  "page": {
                    "type": "integer"
                  },
                  "pageSize": {
                    "type": "integer"
                  },
                  "answers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "responseId": {
                          "type": "string",
                          "pattern": "^rsp_[0-9]+$"
                        },
                        "promptId": {
                          "type": "string",
                          "pattern": "^prm_[0-9]+$"
                        },
                        "promptLabel": {
                          "type": ["string", "null"]
                        },
                        "completedAt": {
                          "type": ["string", "null"],
                          "format": "date-time"
                        },
                        "platform": {
                          "type": ["string", "null"],
                          "description": "Approved product platform identifier, or null if unavailable.",
                          "enum": [
                            "chatgpt",
                            "ai_overview",
                            "ai_mode",
                            "gemini",
                            "perplexity",
                            "claude",
                            null
                          ]
                        },
                        "regionCode": {
                          "type": ["string", "null"]
                        },
                        "sourceUrl": {
                          "type": "string",
                          "description": "Exact observed citation address, retained as provenance."
                        },
                        "cleanPageUrl": {
                          "type": ["string", "null"],
                          "format": "uri",
                          "description": "Display address without recognized tracking parameters; functional query values are retained."
                        },
                        "cleanPageKey": {
                          "type": ["string", "null"],
                          "format": "uri",
                          "description": "Page grouping identity without recognized tracking parameters or fragments."
                        }
                      },
                      "required": [
                        "responseId",
                        "promptId",
                        "promptLabel",
                        "completedAt",
                        "platform",
                        "regionCode",
                        "sourceUrl"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "answerCount",
                  "firstObservedAt",
                  "lastObservedAt",
                  "page",
                  "pageSize",
                  "answers"
                ],
                "additionalProperties": false
              },
              "history": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer"
                    },
                    "action": {
                      "type": "string",
                      "enum": ["create", "update", "archive", "restore"]
                    },
                    "actorName": {
                      "type": ["string", "null"],
                      "description": "Person name where applicable; null for workspace API credentials or a deleted person."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": ["version", "action", "actorName", "createdAt"],
                  "additionalProperties": false
                }
              }
            },
            "required": ["item", "evidence", "history"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "CoverageMeasure": {
        "type": "object",
        "properties": {
          "answers": {
            "type": "integer",
            "minimum": 0
          },
          "assessed": {
            "type": "integer",
            "minimum": 0
          },
          "citing": {
            "type": "integer",
            "minimum": 0
          },
          "brandAssessed": {
            "type": "integer",
            "minimum": 0
          },
          "brandMentioned": {
            "type": "integer",
            "minimum": 0
          },
          "citationRate": {
            "type": ["number", "null"],
            "minimum": 0,
            "maximum": 1,
            "description": "Citing answers divided by citation-assessed answers; null when none were assessed."
          },
          "visibilityRate": {
            "type": ["number", "null"],
            "minimum": 0,
            "maximum": 1,
            "description": "Brand-mentioned answers divided by brand-assessed answers; null when none were assessed."
          }
        },
        "required": [
          "answers",
          "assessed",
          "citing",
          "brandAssessed",
          "brandMentioned",
          "citationRate",
          "visibilityRate"
        ],
        "additionalProperties": false
      },
      "CoverageMeasurementScope": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "attribution": {
            "type": "string",
            "enum": ["all", "our_team", "external", "unclassified"],
            "default": "all"
          },
          "cohort": {
            "type": "string",
            "enum": ["shared", "all"],
            "default": "all"
          },
          "interval": {
            "type": "string",
            "enum": ["day", "week"],
            "default": "week"
          },
          "coverageId": {
            "type": "string",
            "format": "uuid"
          },
          "search": {
            "type": "string",
            "maxLength": 200
          },
          "archived": {
            "type": "boolean"
          },
          "rootDomain": {
            "type": "string",
            "maxLength": 253
          },
          "promptId": {
            "type": "string",
            "pattern": "^prm_[1-9][0-9]*$"
          },
          "groupId": {
            "type": "string",
            "pattern": "^tag_[1-9][0-9]*$"
          },
          "platform": {
            "type": "string",
            "description": "Supported product platform identifier.",
            "enum": ["chatgpt", "ai_overview", "ai_mode", "gemini", "perplexity", "claude"]
          },
          "region": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "required": ["startDate", "endDate", "attribution", "cohort", "interval"],
        "additionalProperties": false
      },
      "CoverageMeasurementResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "definitionVersion": {
                "type": "string",
                "enum": ["coverage-observations-v2"]
              },
              "capturedAt": {
                "type": "string",
                "format": "date-time"
              },
              "scope": {
                "$ref": "#/components/schemas/CoverageMeasurementScope"
              },
              "previousRange": {
                "type": "object",
                "properties": {
                  "startDate": {
                    "type": "string",
                    "format": "date"
                  },
                  "endDate": {
                    "type": "string",
                    "format": "date"
                  }
                },
                "required": ["startDate", "endDate"],
                "additionalProperties": false
              },
              "current": {
                "$ref": "#/components/schemas/CoverageMeasure"
              },
              "previous": {
                "$ref": "#/components/schemas/CoverageMeasure"
              },
              "population": {
                "type": "object",
                "properties": {
                  "currentCells": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "previousCells": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "sharedCells": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "currentAnswers": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "previousAnswers": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "currentCells",
                  "previousCells",
                  "sharedCells",
                  "currentAnswers",
                  "previousAnswers"
                ],
                "additionalProperties": false
              },
              "trend": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "answers": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "assessed": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "citing": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "brandAssessed": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "brandMentioned": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "citationRate": {
                      "type": ["number", "null"],
                      "minimum": 0,
                      "maximum": 1,
                      "description": "Citing answers divided by citation-assessed answers; null when none were assessed."
                    },
                    "visibilityRate": {
                      "type": ["number", "null"],
                      "minimum": 0,
                      "maximum": 1,
                      "description": "Brand-mentioned answers divided by brand-assessed answers; null when none were assessed."
                    },
                    "date": {
                      "type": "string",
                      "format": "date"
                    },
                    "endDate": {
                      "type": "string",
                      "format": "date"
                    }
                  },
                  "required": [
                    "answers",
                    "assessed",
                    "citing",
                    "brandAssessed",
                    "brandMentioned",
                    "citationRate",
                    "visibilityRate",
                    "date",
                    "endDate"
                  ],
                  "additionalProperties": false
                }
              },
              "previousTrend": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "answers": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "assessed": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "citing": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "brandAssessed": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "brandMentioned": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "citationRate": {
                      "type": ["number", "null"],
                      "minimum": 0,
                      "maximum": 1,
                      "description": "Citing answers divided by citation-assessed answers; null when none were assessed."
                    },
                    "visibilityRate": {
                      "type": ["number", "null"],
                      "minimum": 0,
                      "maximum": 1,
                      "description": "Brand-mentioned answers divided by brand-assessed answers; null when none were assessed."
                    },
                    "date": {
                      "type": "string",
                      "format": "date"
                    },
                    "endDate": {
                      "type": "string",
                      "format": "date"
                    }
                  },
                  "required": [
                    "answers",
                    "assessed",
                    "citing",
                    "brandAssessed",
                    "brandMentioned",
                    "citationRate",
                    "visibilityRate",
                    "date",
                    "endDate"
                  ],
                  "additionalProperties": false
                }
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "maxLength": 4096,
                      "description": "Published HTTP(S) page URL. The same page identity rules as the dashboard apply."
                    },
                    "title": {
                      "type": ["string", "null"],
                      "maxLength": 500
                    },
                    "publisher": {
                      "type": ["string", "null"],
                      "maxLength": 200
                    },
                    "publishedOn": {
                      "type": ["string", "null"],
                      "format": "date"
                    },
                    "medium": {
                      "type": "string",
                      "enum": ["article", "interview", "podcast", "broadcast", "other"]
                    },
                    "attribution": {
                      "type": "string",
                      "enum": ["unclassified", "our_team", "external"]
                    },
                    "notes": {
                      "type": ["string", "null"],
                      "maxLength": 4000
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "archivedAt": {
                      "type": ["string", "null"],
                      "format": "date-time"
                    },
                    "citingAnswers": {
                      "type": ["integer", "null"],
                      "minimum": 0
                    },
                    "previousCitingAnswers": {
                      "type": ["integer", "null"],
                      "minimum": 0
                    }
                  },
                  "required": [
                    "url",
                    "title",
                    "publisher",
                    "publishedOn",
                    "medium",
                    "attribution",
                    "notes",
                    "id",
                    "version",
                    "createdAt",
                    "updatedAt",
                    "archivedAt",
                    "citingAnswers",
                    "previousCitingAnswers"
                  ],
                  "additionalProperties": false
                }
              },
              "itemPageInfo": {
                "type": "object",
                "properties": {
                  "page": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "pageSize": {
                    "type": "integer",
                    "enum": [20]
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": ["page", "pageSize", "total", "hasMore"],
                "additionalProperties": false
              },
              "evidence": {
                "type": "object",
                "properties": {
                  "answerCount": {
                    "type": "integer"
                  },
                  "firstObservedAt": {
                    "type": ["string", "null"],
                    "format": "date-time"
                  },
                  "lastObservedAt": {
                    "type": ["string", "null"],
                    "format": "date-time"
                  },
                  "page": {
                    "type": "integer"
                  },
                  "pageSize": {
                    "type": "integer"
                  },
                  "answers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "responseId": {
                          "type": "string",
                          "pattern": "^rsp_[0-9]+$"
                        },
                        "promptId": {
                          "type": "string",
                          "pattern": "^prm_[0-9]+$"
                        },
                        "promptLabel": {
                          "type": ["string", "null"]
                        },
                        "completedAt": {
                          "type": ["string", "null"],
                          "format": "date-time"
                        },
                        "platform": {
                          "type": ["string", "null"],
                          "description": "Approved product platform identifier, or null if unavailable.",
                          "enum": [
                            "chatgpt",
                            "ai_overview",
                            "ai_mode",
                            "gemini",
                            "perplexity",
                            "claude",
                            null
                          ]
                        },
                        "regionCode": {
                          "type": ["string", "null"]
                        },
                        "sourceUrl": {
                          "type": "string",
                          "description": "Exact observed citation address, retained as provenance."
                        },
                        "cleanPageUrl": {
                          "type": ["string", "null"],
                          "format": "uri",
                          "description": "Display address without recognized tracking parameters; functional query values are retained."
                        },
                        "cleanPageKey": {
                          "type": ["string", "null"],
                          "format": "uri",
                          "description": "Page grouping identity without recognized tracking parameters or fragments."
                        }
                      },
                      "required": [
                        "responseId",
                        "promptId",
                        "promptLabel",
                        "completedAt",
                        "platform",
                        "regionCode",
                        "sourceUrl"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "answerCount",
                  "firstObservedAt",
                  "lastObservedAt",
                  "page",
                  "pageSize",
                  "answers"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "definitionVersion",
              "capturedAt",
              "scope",
              "previousRange",
              "current",
              "previous",
              "population",
              "trend",
              "previousTrend",
              "items",
              "itemPageInfo",
              "evidence"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "CoverageLookupRequest": {
        "type": "object",
        "properties": {
          "urls": {
            "type": "array",
            "minItems": 1,
            "maxItems": 50,
            "items": {
              "type": "string",
              "maxLength": 4096
            }
          }
        },
        "required": ["urls"],
        "additionalProperties": false
      },
      "CoverageLookupResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "url": {
                  "type": "string"
                },
                "archivedAt": {
                  "type": ["string", "null"],
                  "format": "date-time"
                }
              },
              "required": ["id", "url", "archivedAt"],
              "additionalProperties": false
            }
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "CanvasSavedAssessmentRequestV1": {
        "type": "object",
        "properties": {
          "target": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "saved_revision"
              },
              "reportId": {
                "type": "string",
                "format": "uuid"
              },
              "revision": {
                "type": "integer",
                "minimum": 0
              },
              "expectedDocumentHash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            },
            "required": ["kind", "reportId", "revision", "expectedDocumentHash"],
            "additionalProperties": false
          },
          "profile": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "enum": ["report-standard-v1", "report-accessible-v1"]
              },
              "version": {
                "type": "number",
                "const": 1
              }
            },
            "required": ["id", "version"],
            "additionalProperties": false
          },
          "pageSelection": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "all"
                  }
                },
                "required": ["kind"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "selected"
                  },
                  "pageIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "minItems": 1,
                    "maxItems": 500
                  }
                },
                "required": ["kind", "pageIds"],
                "additionalProperties": false
              }
            ]
          },
          "contexts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/CanvasSavedAssessmentRequestV1/properties/pageSelection/anyOf/1/properties/pageIds/items"
                },
                "surface": {
                  "type": "string",
                  "enum": ["private_view", "shared_projection", "print"]
                },
                "layoutMode": {
                  "type": "string",
                  "enum": ["fixed", "responsive"]
                },
                "canvasWidth": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 10000
                },
                "viewport": {
                  "type": "object",
                  "properties": {
                    "width": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 10000
                    },
                    "height": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 20000
                    }
                  },
                  "required": ["width", "height"],
                  "additionalProperties": false
                },
                "scale": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 10
                },
                "locale": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 64
                },
                "timezone": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "scenarioId": {
                  "type": "string",
                  "const": "saved-defaults"
                }
              },
              "required": [
                "id",
                "surface",
                "layoutMode",
                "canvasWidth",
                "viewport",
                "scale",
                "locale",
                "timezone",
                "scenarioId"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 256
          },
          "dataPolicy": {
            "type": "string",
            "enum": ["require_existing_output", "allow_declared_empty_states"]
          },
          "emptyStateDeclarations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "pageId": {
                  "$ref": "#/components/schemas/CanvasSavedAssessmentRequestV1/properties/pageSelection/anyOf/1/properties/pageIds/items"
                },
                "elementId": {
                  "$ref": "#/components/schemas/CanvasSavedAssessmentRequestV1/properties/pageSelection/anyOf/1/properties/pageIds/items"
                },
                "contextId": {
                  "$ref": "#/components/schemas/CanvasSavedAssessmentRequestV1/properties/pageSelection/anyOf/1/properties/pageIds/items"
                },
                "state": {
                  "type": "string",
                  "enum": ["empty", "error"]
                },
                "reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                }
              },
              "required": ["pageId", "elementId", "contextId", "state", "reason"],
              "additionalProperties": false
            },
            "maxItems": 1000
          },
          "requiredChecks": {
            "type": "string",
            "const": "profile_defaults"
          }
        },
        "required": [
          "target",
          "profile",
          "pageSelection",
          "contexts",
          "dataPolicy",
          "requiredChecks"
        ],
        "additionalProperties": false
      },
      "CanvasJobResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "reportId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "target": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "saved_revision"
                      },
                      "reportId": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "expectedDocumentHash": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "required": ["kind", "reportId", "revision", "expectedDocumentHash"],
                    "additionalProperties": false
                  },
                  "status": {
                    "type": "string",
                    "enum": ["queued", "running", "completed", "cancelled", "failed", "expired"]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "expiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "failureCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "work_budget_exceeded",
                          "transient_retry_limit_exceeded",
                          "probe_budget_exceeded",
                          "browser_unavailable",
                          "navigation_timeout",
                          "transport_unavailable",
                          "access_revoked",
                          "snapshot_expired",
                          "renderer_failed"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "progress": {
                    "type": "object",
                    "properties": {
                      "requestedPageContexts": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "completedPageContexts": {
                        "$ref": "#/components/schemas/CanvasJobResponseV1/properties/data/anyOf/0/properties/progress/properties/requestedPageContexts"
                      }
                    },
                    "required": ["requestedPageContexts", "completedPageContexts"],
                    "additionalProperties": false
                  },
                  "assessment": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "version": {
                            "type": "number",
                            "const": 1
                          },
                          "assessmentId": {
                            "$ref": "#/components/schemas/CanvasJobResponseV1/properties/data/anyOf/0/properties/target/properties/expectedDocumentHash"
                          },
                          "documentHash": {
                            "$ref": "#/components/schemas/CanvasJobResponseV1/properties/data/anyOf/0/properties/target/properties/expectedDocumentHash"
                          },
                          "profile": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "$ref": "#/components/schemas/CanvasJobResponseV1/properties/data/anyOf/0/properties/target/properties/expectedDocumentHash"
                              },
                              "version": {
                                "type": "number",
                                "const": 1
                              }
                            },
                            "required": ["id", "version"],
                            "additionalProperties": false
                          },
                          "coverage": {
                            "type": "object",
                            "properties": {
                              "requiredPageContexts": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "completedPageContexts": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "unverifiedPageContexts": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "complete": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "requiredPageContexts",
                              "completedPageContexts",
                              "unverifiedPageContexts",
                              "complete"
                            ],
                            "additionalProperties": false
                          },
                          "structure": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": ["valid", "invalid", "unverified"]
                              }
                            },
                            "required": ["status"],
                            "additionalProperties": false
                          },
                          "render": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": ["valid", "invalid", "unverified"]
                              }
                            },
                            "required": ["status"],
                            "additionalProperties": false
                          },
                          "design": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": ["assessed", "unverified"]
                              },
                              "advisoryCount": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "coverageGaps": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/CanvasJobResponseV1/properties/data/anyOf/0/properties/target/properties/expectedDocumentHash"
                                },
                                "maxItems": 64
                              }
                            },
                            "required": ["status", "advisoryCount", "coverageGaps"],
                            "additionalProperties": false
                          },
                          "data": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": ["ready", "partial", "missing", "failed", "unverified"]
                              },
                              "issueCodes": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/CanvasJobResponseV1/properties/data/anyOf/0/properties/target/properties/expectedDocumentHash"
                                },
                                "maxItems": 256
                              }
                            },
                            "required": ["status", "issueCodes"],
                            "additionalProperties": false
                          },
                          "publication": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": [
                                  "not_published",
                                  "current",
                                  "stale",
                                  "failed",
                                  "unverified"
                                ]
                              }
                            },
                            "required": ["status"],
                            "additionalProperties": false
                          },
                          "safeToCommit": {
                            "type": "boolean"
                          },
                          "findingCount": {
                            "$ref": "#/components/schemas/CanvasJobResponseV1/properties/data/anyOf/0/properties/progress/properties/requestedPageContexts"
                          }
                        },
                        "required": [
                          "version",
                          "assessmentId",
                          "documentHash",
                          "profile",
                          "coverage",
                          "structure",
                          "render",
                          "design",
                          "data",
                          "publication",
                          "safeToCommit",
                          "findingCount"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "reportId",
                  "target",
                  "status",
                  "createdAt",
                  "expiresAt",
                  "failureCode",
                  "progress",
                  "assessment"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "kind": {
                    "type": "string",
                    "const": "composition"
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "reportId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "changeSetId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "status": {
                    "type": "string",
                    "enum": ["queued", "running", "completed", "cancelled", "failed", "expired"]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "expiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "failureCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "access_revoked",
                          "stage_conflict",
                          "input_conflict",
                          "runtime_conflict",
                          "work_budget_exceeded",
                          "transient_retry_limit_exceeded",
                          "renderer_failed",
                          "composition_infeasible",
                          "nonconvergent",
                          "measurement_unverified",
                          "trace_limit",
                          "expired"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "progress": {
                    "type": "object",
                    "properties": {
                      "acceptedMeasurements": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 3584
                      }
                    },
                    "required": ["acceptedMeasurements"],
                    "additionalProperties": false
                  },
                  "plan": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "planHash": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{64}$"
                          },
                          "documentHash": {
                            "$ref": "#/components/schemas/CanvasJobResponseV1/properties/data/anyOf/1/properties/plan/anyOf/0/properties/planHash"
                          }
                        },
                        "required": ["id", "planHash", "documentHash"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "version",
                  "kind",
                  "id",
                  "reportId",
                  "changeSetId",
                  "status",
                  "createdAt",
                  "expiresAt",
                  "failureCode",
                  "progress",
                  "plan"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "CanvasAssessmentResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "reportId": {
                "type": "string",
                "format": "uuid"
              },
              "target": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "saved_revision"
                  },
                  "reportId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "expectedDocumentHash": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": ["kind", "reportId", "revision", "expectedDocumentHash"],
                "additionalProperties": false
              },
              "status": {
                "type": "string",
                "enum": ["queued", "running", "completed", "cancelled", "failed", "expired"]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time"
              },
              "failureCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "work_budget_exceeded",
                      "transient_retry_limit_exceeded",
                      "probe_budget_exceeded",
                      "browser_unavailable",
                      "navigation_timeout",
                      "transport_unavailable",
                      "access_revoked",
                      "snapshot_expired",
                      "renderer_failed"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "progress": {
                "type": "object",
                "properties": {
                  "requestedPageContexts": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "completedPageContexts": {
                    "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/progress/properties/requestedPageContexts"
                  }
                },
                "required": ["requestedPageContexts", "completedPageContexts"],
                "additionalProperties": false
              },
              "assessment": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "assessmentId": {
                        "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                      },
                      "documentHash": {
                        "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                      },
                      "profile": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                          },
                          "version": {
                            "type": "number",
                            "const": 1
                          }
                        },
                        "required": ["id", "version"],
                        "additionalProperties": false
                      },
                      "coverage": {
                        "type": "object",
                        "properties": {
                          "requiredPageContexts": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "completedPageContexts": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "unverifiedPageContexts": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "complete": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "requiredPageContexts",
                          "completedPageContexts",
                          "unverifiedPageContexts",
                          "complete"
                        ],
                        "additionalProperties": false
                      },
                      "structure": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": ["valid", "invalid", "unverified"]
                          }
                        },
                        "required": ["status"],
                        "additionalProperties": false
                      },
                      "render": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": ["valid", "invalid", "unverified"]
                          }
                        },
                        "required": ["status"],
                        "additionalProperties": false
                      },
                      "design": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": ["assessed", "unverified"]
                          },
                          "advisoryCount": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "coverageGaps": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                            },
                            "maxItems": 64
                          }
                        },
                        "required": ["status", "advisoryCount", "coverageGaps"],
                        "additionalProperties": false
                      },
                      "data": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": ["ready", "partial", "missing", "failed", "unverified"]
                          },
                          "issueCodes": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                            },
                            "maxItems": 256
                          }
                        },
                        "required": ["status", "issueCodes"],
                        "additionalProperties": false
                      },
                      "publication": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "enum": ["not_published", "current", "stale", "failed", "unverified"]
                          }
                        },
                        "required": ["status"],
                        "additionalProperties": false
                      },
                      "safeToCommit": {
                        "type": "boolean"
                      },
                      "findingCount": {
                        "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/progress/properties/requestedPageContexts"
                      }
                    },
                    "required": [
                      "version",
                      "assessmentId",
                      "documentHash",
                      "profile",
                      "coverage",
                      "structure",
                      "render",
                      "design",
                      "data",
                      "publication",
                      "safeToCommit",
                      "findingCount"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "reportId",
              "target",
              "status",
              "createdAt",
              "expiresAt",
              "failureCode",
              "progress",
              "assessment"
            ],
            "additionalProperties": false
          },
          "findings": {
            "type": "object",
            "properties": {
              "assessmentId": {
                "type": "string",
                "format": "uuid"
              },
              "documentHash": {
                "type": "string"
              },
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                    },
                    "ruleId": {
                      "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                    },
                    "ruleVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "relationId": {
                      "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                    },
                    "severity": {
                      "type": "string",
                      "enum": ["required", "advisory", "informational"]
                    },
                    "evidenceStatus": {
                      "type": "string",
                      "enum": ["verified", "unverified"]
                    },
                    "validity": {
                      "type": "string",
                      "enum": ["valid", "invalid", "unverified"]
                    },
                    "pageId": {
                      "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                    },
                    "entityIds": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                      },
                      "maxItems": 250
                    },
                    "contextId": {
                      "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                    },
                    "issueCode": {
                      "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/target/properties/expectedDocumentHash"
                    },
                    "observed": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expected": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/findings/properties/data/items/properties/observed/anyOf/0"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": ["css_px", "ratio", "count"]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recommendedAction": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "increase_region_height",
                            "increase_region_width",
                            "resolve_overlapping_regions",
                            "revise_layout_relationships",
                            "resolve_data_output",
                            "provide_font",
                            "provide_asset",
                            "provide_probe",
                            "complete_coverage",
                            "declare_scroll_policy",
                            "allow_table_pagination",
                            "use_readable_type",
                            "increase_contrast",
                            "review_hierarchy",
                            "review_branding"
                          ]
                        }
                      },
                      "required": ["kind"],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "ruleId",
                    "ruleVersion",
                    "severity",
                    "evidenceStatus",
                    "validity",
                    "pageId",
                    "entityIds",
                    "contextId",
                    "issueCode",
                    "observed",
                    "expected",
                    "unit",
                    "recommendedAction"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 500
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "offset": {
                    "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/progress/properties/requestedPageContexts"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500
                  },
                  "total": {
                    "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/progress/properties/requestedPageContexts"
                  },
                  "nextOffset": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/CanvasAssessmentResponseV1/properties/data/properties/progress/properties/requestedPageContexts"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["offset", "limit", "total", "nextOffset"],
                "additionalProperties": false
              }
            },
            "required": ["assessmentId", "documentHash", "data", "pageInfo"],
            "additionalProperties": false
          }
        },
        "required": ["data", "findings"],
        "additionalProperties": false
      },
      "CanvasCapabilitiesResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "targetKinds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "const": "saved_revision"
                },
                "minItems": 1,
                "maxItems": 1
              },
              "layoutModes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": ["fixed", "responsive"]
                },
                "minItems": 2,
                "maxItems": 2
              },
              "nativeDocumentVersion": {
                "type": "number",
                "enum": [3, 4]
              },
              "nativeDocumentVersions": {
                "type": "array",
                "items": {
                  "type": "number",
                  "enum": [3, 4]
                },
                "maxItems": 2
              },
              "elementProbes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "typeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "elementVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "family": {
                      "type": "string",
                      "enum": [
                        "text",
                        "scorecard",
                        "chart",
                        "table",
                        "image",
                        "control",
                        "container",
                        "decoration",
                        "content",
                        "unsupported"
                      ]
                    },
                    "support": {
                      "type": "string",
                      "enum": ["conditional", "unsupported"]
                    },
                    "requiredEvidence": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "maxItems": 64
                    },
                    "conditions": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      "minItems": 1,
                      "maxItems": 16
                    }
                  },
                  "required": [
                    "typeId",
                    "elementVersion",
                    "family",
                    "support",
                    "requiredEvidence",
                    "conditions"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 64
              },
              "profiles": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "version": {
                      "type": "number",
                      "const": 1
                    },
                    "requireContrast": {
                      "type": "boolean"
                    }
                  },
                  "required": ["id", "version", "requireContrast"],
                  "additionalProperties": false
                }
              },
              "locales": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 32
                },
                "minItems": 1,
                "maxItems": 32
              },
              "limits": {
                "type": "object",
                "properties": {
                  "contextsPerJob": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "pageContextsPerJob": {
                    "$ref": "#/components/schemas/CanvasCapabilitiesResponseV1/properties/data/properties/limits/properties/contextsPerJob"
                  },
                  "maxSnapshotBytes": {
                    "$ref": "#/components/schemas/CanvasCapabilitiesResponseV1/properties/data/properties/limits/properties/contextsPerJob"
                  },
                  "maxMeasurementBytes": {
                    "$ref": "#/components/schemas/CanvasCapabilitiesResponseV1/properties/data/properties/limits/properties/contextsPerJob"
                  },
                  "maxDomNodesPerContext": {
                    "$ref": "#/components/schemas/CanvasCapabilitiesResponseV1/properties/data/properties/limits/properties/contextsPerJob"
                  },
                  "maxFindingsPerAssessment": {
                    "$ref": "#/components/schemas/CanvasCapabilitiesResponseV1/properties/data/properties/limits/properties/contextsPerJob"
                  }
                },
                "required": [
                  "contextsPerJob",
                  "pageContextsPerJob",
                  "maxSnapshotBytes",
                  "maxMeasurementBytes",
                  "maxDomNodesPerContext",
                  "maxFindingsPerAssessment"
                ],
                "additionalProperties": false
              },
              "instructions": {
                "type": "string",
                "maxLength": 20000
              },
              "reportWrites": {
                "type": "boolean",
                "const": false,
                "description": "Assessment-only behavior. False means the assessor does not edit reports; inspect authoring context for connection permissions and runtime readiness."
              },
              "dataPolicy": {
                "type": "string",
                "maxLength": 2000
              },
              "screenshots": {
                "type": "boolean",
                "const": false
              },
              "scope": {
                "type": "string",
                "const": "assessment_only"
              },
              "reportWritePermission": {
                "type": "string",
                "maxLength": 2000
              },
              "assessmentWritesReports": {
                "type": "boolean",
                "const": false,
                "description": "Assessment-only behavior for negotiated workflow responses."
              }
            },
            "required": [
              "version",
              "targetKinds",
              "layoutModes",
              "nativeDocumentVersion",
              "elementProbes",
              "profiles",
              "locales",
              "limits",
              "instructions",
              "dataPolicy",
              "screenshots"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "CanvasReportListResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string",
                  "maxLength": 4096
                },
                "revision": {
                  "type": "integer",
                  "minimum": 0
                },
                "documentHash": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[0-9a-f]{64}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "nativeDocumentVersion": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/CanvasReportListResponseV1/properties/data/items/properties/revision"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "layoutMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["fixed", "responsive"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "revision",
                "documentHash",
                "nativeDocumentVersion",
                "updatedAt",
                "layoutMode"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "nextCursor": {
                "type": ["string", "null"]
              },
              "hasMore": {
                "type": "boolean"
              },
              "totalCount": {
                "$ref": "#/components/schemas/CanvasReportListResponseV1/properties/data/items/properties/revision"
              }
            },
            "required": ["nextCursor", "hasMore", "totalCount"],
            "additionalProperties": false
          }
        },
        "required": ["data", "pageInfo"],
        "additionalProperties": false
      },
      "CanvasReportDetailsResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "documentHash": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "nativeDocumentVersion": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/revision"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "layoutMode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["fixed", "responsive"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "assessmentSupport": {
                    "type": "string",
                    "enum": [
                      "saved_revision",
                      "unsupported_native_document",
                      "unsupported_frozen_bundle"
                    ]
                  },
                  "pages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "position": {
                          "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/revision"
                        },
                        "elementCount": {
                          "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/revision"
                        },
                        "canvasWidth": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": ["id", "position", "elementCount", "canvasWidth"],
                      "additionalProperties": false
                    },
                    "maxItems": 500
                  },
                  "dataSourceCount": {
                    "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/revision"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "revision",
                  "documentHash",
                  "nativeDocumentVersion",
                  "updatedAt",
                  "layoutMode",
                  "assessmentSupport",
                  "pages",
                  "dataSourceCount"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/id"
                  },
                  "name": {
                    "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/name"
                  },
                  "revision": {
                    "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/revision"
                  },
                  "documentHash": {
                    "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/documentHash"
                  },
                  "nativeDocumentVersion": {
                    "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/nativeDocumentVersion"
                  },
                  "updatedAt": {
                    "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/updatedAt"
                  },
                  "layoutMode": {
                    "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/0/properties/layoutMode"
                  },
                  "manifest": {
                    "type": "object",
                    "properties": {
                      "identity": {
                        "type": "object",
                        "properties": {
                          "reportId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "revision": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "documentHash": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          },
                          "nativeDocumentVersion": {
                            "type": "number",
                            "enum": [3, 4]
                          }
                        },
                        "required": [
                          "reportId",
                          "revision",
                          "documentHash",
                          "nativeDocumentVersion"
                        ],
                        "additionalProperties": false
                      },
                      "configurationSchemaId": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "configurationHash": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "pages": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "maxLength": 256
                            },
                            "pageHash": {
                              "type": "string",
                              "pattern": "^[a-f0-9]{64}$"
                            },
                            "elementsHash": {
                              "type": "string",
                              "pattern": "^[a-f0-9]{64}$"
                            },
                            "elementCount": {
                              "type": "integer",
                              "minimum": 0
                            }
                          },
                          "required": ["id", "pageHash", "elementsHash", "elementCount"],
                          "additionalProperties": false
                        },
                        "maxItems": 500
                      },
                      "dataSourceAttachmentIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "maxItems": 1000
                      }
                    },
                    "required": [
                      "identity",
                      "configurationSchemaId",
                      "configurationHash",
                      "pages",
                      "dataSourceAttachmentIds"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "name",
                  "revision",
                  "documentHash",
                  "nativeDocumentVersion",
                  "updatedAt",
                  "layoutMode",
                  "manifest"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "identity": {
                    "$ref": "#/components/schemas/CanvasReportDetailsResponseV1/properties/data/anyOf/1/properties/manifest/properties/identity"
                  },
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "page",
                            "configuration",
                            "element",
                            "effective_configuration",
                            "data_source"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "schemaId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "valueHash": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "encoding": {
                          "type": "string",
                          "const": "json"
                        },
                        "chunkIndex": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "chunkCount": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "json": {
                          "type": "string",
                          "maxLength": 65536
                        }
                      },
                      "required": [
                        "kind",
                        "id",
                        "schemaId",
                        "valueHash",
                        "encoding",
                        "chunkIndex",
                        "chunkCount",
                        "json"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "pageInfo": {
                    "type": "object",
                    "properties": {
                      "totalRecords": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "nextCursor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 4096
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "hasMore": {
                        "type": "boolean"
                      }
                    },
                    "required": ["totalRecords", "nextCursor", "hasMore"],
                    "additionalProperties": false
                  }
                },
                "required": ["identity", "records", "pageInfo"],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "ReportCapabilityIndexResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^[a-z0-9][a-z0-9._-]{0,127}$"
                },
                "version": {
                  "type": "number",
                  "const": 1
                },
                "family": {
                  "type": "string",
                  "enum": [
                    "element",
                    "theme",
                    "style",
                    "layout",
                    "text",
                    "control",
                    "semantic",
                    "interaction",
                    "print",
                    "viewer",
                    "data_binding",
                    "policy",
                    "operation"
                  ]
                },
                "typeId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "nativeVersion": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "schemaHash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "layoutModes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": ["fixed", "responsive"]
                  },
                  "minItems": 1,
                  "maxItems": 2
                },
                "authoringStatus": {
                  "type": "string",
                  "const": "contract_only"
                },
                "conditions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "maxItems": 16
                }
              },
              "required": [
                "id",
                "version",
                "family",
                "typeId",
                "nativeVersion",
                "schemaHash",
                "layoutModes",
                "authoringStatus",
                "conditions"
              ],
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "indexHash": {
            "$ref": "#/components/schemas/ReportCapabilityIndexResponseV1/properties/data/items/properties/schemaHash"
          },
          "pageInfo": {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4096
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hasMore": {
                "type": "boolean"
              },
              "totalCount": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": ["nextCursor", "hasMore", "totalCount"],
            "additionalProperties": false
          }
        },
        "required": ["data", "indexHash", "pageInfo"],
        "additionalProperties": false
      },
      "ReportCapabilitySchemaResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9._-]{0,127}$"
              },
              "version": {
                "type": "number",
                "const": 1
              },
              "family": {
                "type": "string",
                "enum": [
                  "element",
                  "theme",
                  "style",
                  "layout",
                  "text",
                  "control",
                  "semantic",
                  "interaction",
                  "print",
                  "viewer",
                  "data_binding",
                  "policy",
                  "operation"
                ]
              },
              "typeId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nativeVersion": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "schemaHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "layoutModes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": ["fixed", "responsive"]
                },
                "minItems": 1,
                "maxItems": 2
              },
              "authoringStatus": {
                "type": "string",
                "const": "contract_only"
              },
              "conditions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2000
                },
                "maxItems": 16
              },
              "schema": {
                "type": "object",
                "properties": {
                  "$ref": {
                    "type": "string"
                  },
                  "$id": {
                    "type": "string"
                  },
                  "type": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "properties": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                    }
                  },
                  "propertyNames": {
                    "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                  },
                  "patternProperties": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                    }
                  },
                  "definitions": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                    }
                  },
                  "$defs": {
                    "type": "object",
                    "additionalProperties": {
                      "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                    }
                  },
                  "required": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                      }
                    ]
                  },
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                        }
                      }
                    ]
                  },
                  "anyOf": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                    }
                  },
                  "oneOf": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                    }
                  },
                  "allOf": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                    }
                  },
                  "not": {
                    "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema"
                  },
                  "enum": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        },
                        {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/enum/items"
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": {
                            "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/enum/items"
                          }
                        }
                      ]
                    }
                  },
                  "const": {
                    "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/enum/items"
                  },
                  "default": {
                    "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/enum/items"
                  },
                  "examples": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/enum/items"
                    }
                  },
                  "minimum": {
                    "type": "number"
                  },
                  "maximum": {
                    "type": "number"
                  },
                  "exclusiveMinimum": {
                    "type": "number"
                  },
                  "exclusiveMaximum": {
                    "type": "number"
                  },
                  "multipleOf": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "minLength": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "maxLength": {
                    "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/minLength"
                  },
                  "pattern": {
                    "type": "string"
                  },
                  "format": {
                    "type": "string"
                  },
                  "minItems": {
                    "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/minLength"
                  },
                  "maxItems": {
                    "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/minLength"
                  },
                  "uniqueItems": {
                    "type": "boolean"
                  },
                  "minProperties": {
                    "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/minLength"
                  },
                  "maxProperties": {
                    "$ref": "#/components/schemas/ReportCapabilitySchemaResponseV1/properties/data/properties/schema/properties/minLength"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "writeOnly": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "version",
              "family",
              "typeId",
              "nativeVersion",
              "schemaHash",
              "layoutModes",
              "authoringStatus",
              "conditions",
              "schema"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "ReportChangeSetRequestV2": {
        "type": "object",
        "properties": {
          "authoringSchemaVersion": {
            "type": "number",
            "const": 2
          },
          "nativeDocumentVersion": {
            "type": "number",
            "const": 4
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 0
          },
          "expectedDocumentHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": [
          "authoringSchemaVersion",
          "nativeDocumentVersion",
          "expectedRevision",
          "expectedDocumentHash"
        ],
        "additionalProperties": false
      },
      "ReportAuthoringBatchV2": {
        "type": "object",
        "properties": {
          "version": {
            "type": "number",
            "const": 2
          },
          "batchId": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "expectedCumulativeHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "operations": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 5000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "const": "set_metadata"
                    }
                  },
                  "required": ["name", "description", "kind"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "set_layout"
                    },
                    "value": {
                      "type": "object",
                      "properties": {
                        "behavior": {
                          "type": "string",
                          "enum": ["fixed", "responsive"]
                        },
                        "flow": {
                          "type": "string",
                          "enum": ["paged", "continuous"]
                        },
                        "defaultPageWidth": {
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "minimum": 320,
                          "maximum": 10000
                        },
                        "print": {
                          "type": "object",
                          "properties": {
                            "pageSize": {
                              "type": "string",
                              "enum": ["document", "a4", "letter"]
                            },
                            "orientation": {
                              "type": "string",
                              "enum": ["portrait", "landscape", "auto"]
                            },
                            "repeatMasterRegions": {
                              "type": "boolean"
                            },
                            "includeBackgrounds": {
                              "type": "boolean"
                            },
                            "scale": {
                              "type": "string",
                              "enum": ["actual_size", "fit_width", "fit_page"]
                            },
                            "margins": {
                              "type": "object",
                              "properties": {
                                "top": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "right": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "bottom": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "left": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                }
                              },
                              "required": ["top", "right", "bottom", "left"],
                              "additionalProperties": false,
                              "default": {
                                "top": 24,
                                "right": 24,
                                "bottom": 24,
                                "left": 24
                              }
                            },
                            "scaleCap": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 1,
                              "default": 1
                            },
                            "allowElementSplitting": {
                              "type": "boolean",
                              "default": false
                            },
                            "collectionScope": {
                              "type": "string",
                              "enum": ["current_view", "all_filtered"]
                            },
                            "flowSizing": {
                              "type": "string",
                              "enum": ["authored", "content"]
                            }
                          },
                          "required": [
                            "pageSize",
                            "orientation",
                            "repeatMasterRegions",
                            "includeBackgrounds",
                            "scale"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": ["behavior", "flow", "defaultPageWidth", "print"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "set_theme"
                    },
                    "value": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "type": "number",
                          "const": 1
                        },
                        "design": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "number",
                              "const": 1
                            },
                            "paletteId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "family": {
                              "type": "string",
                              "enum": [
                                "signal",
                                "precision",
                                "editorial",
                                "spectrum",
                                "observatory"
                              ]
                            },
                            "appearance": {
                              "type": "string",
                              "enum": ["light", "dark"]
                            },
                            "canvas": {
                              "type": "object",
                              "properties": {
                                "background": {
                                  "anyOf": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "solid"
                                            },
                                            "value": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "alpha": {
                                              "type": "number",
                                              "minimum": 0,
                                              "maximum": 1
                                            }
                                          },
                                          "required": ["kind", "value"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "linear_gradient"
                                            },
                                            "angle": {
                                              "type": "number",
                                              "minimum": -360,
                                              "maximum": 360
                                            },
                                            "stops": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "offset": {
                                                    "type": "number",
                                                    "minimum": 0,
                                                    "maximum": 1
                                                  },
                                                  "color": {
                                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                                  },
                                                  "alpha": {
                                                    "type": "number",
                                                    "minimum": 0,
                                                    "maximum": 1
                                                  }
                                                },
                                                "required": ["offset", "color"],
                                                "additionalProperties": false
                                              },
                                              "minItems": 2,
                                              "maxItems": 16
                                            }
                                          },
                                          "required": ["kind", "angle", "stops"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "radial_gradient"
                                            },
                                            "stops": {
                                              "type": "array",
                                              "items": {
                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/1/properties/stops/items"
                                              },
                                              "minItems": 2,
                                              "maxItems": 16
                                            }
                                          },
                                          "required": ["kind", "stops"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "asset_image"
                                            },
                                            "assetId": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                            },
                                            "filePath": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 16384
                                            },
                                            "fit": {
                                              "type": "string",
                                              "enum": ["contain", "cover", "fill"]
                                            },
                                            "focalPoint": {
                                              "type": "object",
                                              "properties": {
                                                "x": {
                                                  "type": "number",
                                                  "minimum": 0,
                                                  "maximum": 1
                                                },
                                                "y": {
                                                  "type": "number",
                                                  "minimum": 0,
                                                  "maximum": 1
                                                }
                                              },
                                              "required": ["x", "y"],
                                              "additionalProperties": false
                                            },
                                            "opacity": {
                                              "type": "number",
                                              "minimum": 0,
                                              "maximum": 1
                                            }
                                          },
                                          "required": [
                                            "kind",
                                            "assetId",
                                            "fit",
                                            "focalPoint",
                                            "opacity"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "borderColor": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "borderWidth": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 32
                                },
                                "radius": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1000
                                },
                                "shadow": {
                                  "type": "string",
                                  "enum": ["none", "subtle", "medium", "strong"]
                                }
                              },
                              "required": [
                                "background",
                                "borderColor",
                                "borderWidth",
                                "radius",
                                "shadow"
                              ],
                              "additionalProperties": false
                            },
                            "families": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "surfaceMode": {
                                    "type": "string",
                                    "enum": ["theme", "mixed", "custom"]
                                  },
                                  "surfaceOpacity": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 1
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "structureRole": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": ["header", "footer"]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "variantId": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "designOverrides": {
                                    "type": "object",
                                    "properties": {
                                      "table": {
                                        "type": "object",
                                        "properties": {
                                          "foreground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "alternateForeground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "striped": {
                                            "type": "boolean"
                                          },
                                          "verticalGrid": {
                                            "type": "boolean"
                                          },
                                          "hoverBackground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "hoverForeground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "selectedBackground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "selectedForeground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "bodyFontSize": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 128
                                          },
                                          "headerFontSize": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 128
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "chart": {
                                        "type": "object",
                                        "properties": {
                                          "axisFontSize": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 128
                                          },
                                          "labelFontSize": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 128
                                          },
                                          "legendFontSize": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 128
                                          },
                                          "tooltipBackground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "tooltipForeground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "tooltipBorder": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "metric": {
                                        "type": "object",
                                        "properties": {
                                          "valueFontSize": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 512
                                          },
                                          "labelFontSize": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 128
                                          },
                                          "annotationFontSize": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 128
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "sentiment": {
                                        "type": "object",
                                        "properties": {
                                          "promptBackground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "answerBackground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "foreground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "mutedForeground": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "borderColor": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "media": {
                                        "type": "object",
                                        "properties": {
                                          "logoBackground": {
                                            "type": "string",
                                            "enum": ["transparent", "surface"]
                                          },
                                          "logoSurface": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "radius": {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 1000
                                          }
                                        },
                                        "additionalProperties": false
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  "opacity": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "background": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "border": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "width": {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 32
                                          },
                                          "style": {
                                            "type": "string",
                                            "enum": ["none", "solid", "dashed", "dotted", "double"]
                                          },
                                          "color": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          }
                                        },
                                        "required": ["width", "style", "color"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "radius": {
                                    "anyOf": [
                                      {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 1000
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "shadow": {
                                    "anyOf": [
                                      {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": ["none", "subtle", "medium", "strong"]
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "x": {
                                                "type": "number",
                                                "minimum": -1000,
                                                "maximum": 1000
                                              },
                                              "y": {
                                                "type": "number",
                                                "minimum": -1000,
                                                "maximum": 1000
                                              },
                                              "blur": {
                                                "type": "number",
                                                "minimum": 0,
                                                "maximum": 1000
                                              },
                                              "spread": {
                                                "type": "number",
                                                "minimum": -1000,
                                                "maximum": 1000
                                              },
                                              "color": {
                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                              },
                                              "opacity": {
                                                "type": "number",
                                                "minimum": 0,
                                                "maximum": 1
                                              }
                                            },
                                            "required": [
                                              "x",
                                              "y",
                                              "blur",
                                              "spread",
                                              "color",
                                              "opacity"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "padding": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/1/properties/value/properties/print/properties/margins"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "overflow": {
                                    "type": "string",
                                    "enum": ["visible", "clip", "scroll"]
                                  },
                                  "density": {
                                    "type": "string",
                                    "enum": ["compact", "standard", "comfortable"]
                                  },
                                  "typography": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "role": {
                                            "type": "string",
                                            "enum": [
                                              "display",
                                              "sectionHeading",
                                              "subheading",
                                              "body",
                                              "caption",
                                              "dataLabel",
                                              "axisLabel",
                                              "microAnnotation"
                                            ]
                                          },
                                          "fontFamily": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "fontSize": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 512
                                          },
                                          "fontWeight": {
                                            "type": "integer",
                                            "minimum": 100,
                                            "maximum": 900
                                          },
                                          "lineHeight": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 10
                                          },
                                          "letterSpacing": {
                                            "type": "number",
                                            "minimum": -20,
                                            "maximum": 100
                                          },
                                          "color": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                          },
                                          "align": {
                                            "type": "string",
                                            "enum": ["left", "center", "right", "justify"]
                                          },
                                          "verticalAlign": {
                                            "type": "string",
                                            "enum": ["top", "center", "bottom"]
                                          },
                                          "direction": {
                                            "type": "string",
                                            "enum": ["auto", "ltr", "rtl"]
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "opacity",
                                  "background",
                                  "border",
                                  "radius",
                                  "shadow",
                                  "padding",
                                  "typography"
                                ],
                                "additionalProperties": false
                              },
                              "propertyNames": {
                                "enum": [
                                  "chart",
                                  "metric",
                                  "table",
                                  "control",
                                  "text",
                                  "content",
                                  "container",
                                  "media",
                                  "header",
                                  "footer"
                                ]
                              }
                            },
                            "variants": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                  },
                                  "name": {
                                    "type": "string",
                                    "maxLength": 512
                                  },
                                  "family": {
                                    "type": "string",
                                    "enum": [
                                      "chart",
                                      "metric",
                                      "table",
                                      "control",
                                      "text",
                                      "content",
                                      "container",
                                      "media",
                                      "header",
                                      "footer"
                                    ]
                                  },
                                  "style": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                                  }
                                },
                                "required": ["id", "name", "family", "style"],
                                "additionalProperties": false
                              },
                              "maxItems": 100
                            },
                            "table": {
                              "type": "object",
                              "properties": {
                                "foreground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "alternateForeground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "striped": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/table/properties/striped"
                                },
                                "verticalGrid": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/table/properties/verticalGrid"
                                },
                                "hoverBackground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "hoverForeground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "selectedBackground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "selectedForeground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "bodyFontSize": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/table/properties/bodyFontSize"
                                },
                                "headerFontSize": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/table/properties/headerFontSize"
                                }
                              },
                              "required": [
                                "foreground",
                                "alternateForeground",
                                "striped",
                                "verticalGrid",
                                "hoverBackground",
                                "hoverForeground",
                                "selectedBackground",
                                "selectedForeground",
                                "bodyFontSize",
                                "headerFontSize"
                              ],
                              "additionalProperties": false
                            },
                            "chart": {
                              "type": "object",
                              "properties": {
                                "axisFontSize": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/chart/properties/axisFontSize"
                                },
                                "labelFontSize": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/chart/properties/labelFontSize"
                                },
                                "legendFontSize": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/chart/properties/legendFontSize"
                                },
                                "tooltipBackground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "tooltipForeground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "tooltipBorder": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                }
                              },
                              "required": [
                                "axisFontSize",
                                "labelFontSize",
                                "legendFontSize",
                                "tooltipBackground",
                                "tooltipForeground",
                                "tooltipBorder"
                              ],
                              "additionalProperties": false
                            },
                            "metric": {
                              "type": "object",
                              "properties": {
                                "valueFontSize": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/metric/properties/valueFontSize"
                                },
                                "labelFontSize": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/metric/properties/labelFontSize"
                                },
                                "annotationFontSize": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/metric/properties/annotationFontSize"
                                }
                              },
                              "required": ["valueFontSize", "labelFontSize", "annotationFontSize"],
                              "additionalProperties": false
                            },
                            "sentiment": {
                              "type": "object",
                              "properties": {
                                "promptBackground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "answerBackground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "foreground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "mutedForeground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "borderColor": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                }
                              },
                              "required": [
                                "promptBackground",
                                "answerBackground",
                                "foreground",
                                "mutedForeground",
                                "borderColor"
                              ],
                              "additionalProperties": false
                            },
                            "media": {
                              "type": "object",
                              "properties": {
                                "logoBackground": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/media/properties/logoBackground"
                                },
                                "logoSurface": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "radius": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides/properties/media/properties/radius"
                                }
                              },
                              "required": ["logoBackground", "logoSurface", "radius"],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "version",
                            "appearance",
                            "canvas",
                            "families",
                            "variants",
                            "table",
                            "chart",
                            "metric",
                            "sentiment",
                            "media"
                          ],
                          "additionalProperties": false
                        },
                        "presetId": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fontFamilies": {
                          "type": "object",
                          "properties": {
                            "body": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "heading": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "monospace": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            }
                          },
                          "required": ["body", "heading", "monospace"],
                          "additionalProperties": false
                        },
                        "typeScale": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "number",
                            "exclusiveMinimum": 0,
                            "maximum": 512
                          },
                          "propertyNames": {
                            "minLength": 1
                          }
                        },
                        "typography": {
                          "type": "object",
                          "properties": {
                            "display": {
                              "type": "object",
                              "properties": {
                                "fontFamily": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "fontSize": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "maximum": 512
                                },
                                "fontWeight": {
                                  "type": "integer",
                                  "minimum": 100,
                                  "maximum": 900
                                },
                                "lineHeight": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "maximum": 10
                                },
                                "letterSpacing": {
                                  "type": "number",
                                  "minimum": -20,
                                  "maximum": 100
                                },
                                "color": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                                }
                              },
                              "required": [
                                "fontFamily",
                                "fontSize",
                                "fontWeight",
                                "lineHeight",
                                "letterSpacing",
                                "color"
                              ],
                              "additionalProperties": false
                            },
                            "sectionHeading": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/typography/properties/display"
                            },
                            "subheading": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/typography/properties/display"
                            },
                            "body": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/typography/properties/display"
                            },
                            "caption": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/typography/properties/display"
                            },
                            "dataLabel": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/typography/properties/display"
                            },
                            "axisLabel": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/typography/properties/display"
                            },
                            "microAnnotation": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/typography/properties/display"
                            }
                          },
                          "required": [
                            "display",
                            "sectionHeading",
                            "subheading",
                            "body",
                            "caption",
                            "dataLabel",
                            "axisLabel",
                            "microAnnotation"
                          ],
                          "additionalProperties": false
                        },
                        "colors": {
                          "type": "object",
                          "properties": {
                            "foreground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "mutedForeground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "background": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "surface": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "border": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "accent": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "focus": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "positive": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "negative": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "warning": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "grid": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "axis": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "title": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "otherValue": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            }
                          },
                          "required": [
                            "foreground",
                            "mutedForeground",
                            "background",
                            "surface",
                            "border",
                            "accent"
                          ],
                          "additionalProperties": false
                        },
                        "component": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "opacity": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "borderColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "borderRadius": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1000
                            },
                            "borderWidth": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 32
                            },
                            "borderStyle": {
                              "type": "string",
                              "enum": ["none", "solid", "dashed", "dotted"]
                            },
                            "shadow": {
                              "type": "string",
                              "enum": ["none", "subtle", "medium", "strong"]
                            }
                          },
                          "required": [
                            "background",
                            "opacity",
                            "borderColor",
                            "borderRadius",
                            "borderWidth",
                            "borderStyle",
                            "shadow"
                          ],
                          "additionalProperties": false
                        },
                        "accentStyle": {
                          "type": "object",
                          "properties": {
                            "fontFamily": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "foreground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "background": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            }
                          },
                          "required": ["fontFamily", "foreground", "background"],
                          "additionalProperties": false
                        },
                        "textBox": {
                          "type": "object",
                          "properties": {
                            "fontFamily": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "foreground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "background": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "linkColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "visitedLinkColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "hideBorder": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "fontFamily",
                            "foreground",
                            "background",
                            "linkColor",
                            "visitedLinkColor",
                            "hideBorder"
                          ],
                          "additionalProperties": false
                        },
                        "chartPalette": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                          },
                          "minItems": 1,
                          "maxItems": 32
                        },
                        "palette": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                              },
                              "color": {
                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                              },
                              "label": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": ["id", "color", "label"],
                            "additionalProperties": false
                          },
                          "minItems": 1,
                          "maxItems": 64
                        },
                        "dimensionValueColors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "fieldId": {
                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                              },
                              "valueId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "color": {
                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                              },
                              "label": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": ["fieldId", "valueId", "color"],
                            "additionalProperties": false
                          },
                          "maxItems": 2000
                        },
                        "chart": {
                          "type": "object",
                          "properties": {
                            "gridColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "axisColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "lineWidth": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 32
                            },
                            "titleColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "textContrast": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "othersColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "barBorderColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "barBorderWidth": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 32
                            },
                            "groupedBarWidth": {
                              "type": "number",
                              "minimum": 0.1,
                              "maximum": 1
                            },
                            "positiveColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "negativeColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "headerVisibility": {
                              "type": "string",
                              "enum": ["always", "hover", "never"]
                            },
                            "colorMode": {
                              "type": "string",
                              "enum": ["series_order", "dimension_value"]
                            }
                          },
                          "required": ["gridColor", "axisColor", "lineWidth"],
                          "additionalProperties": false
                        },
                        "table": {
                          "type": "object",
                          "properties": {
                            "density": {
                              "type": "string",
                              "enum": ["compact", "standard", "comfortable"]
                            },
                            "showRowDividers": {
                              "type": "boolean"
                            },
                            "background": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "headerBackground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "headerForeground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "alternateRowBackground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "gridColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "totalsBackground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "totalsForeground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "numericAlignment": {
                              "type": "string",
                              "enum": ["start", "end"]
                            },
                            "linkColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            }
                          },
                          "required": ["density", "showRowDividers"],
                          "additionalProperties": false
                        },
                        "controls": {
                          "type": "object",
                          "properties": {
                            "radius": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1000
                            },
                            "height": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 512
                            },
                            "background": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "foreground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "borderColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "labelPosition": {
                              "type": "string",
                              "enum": ["above", "inline", "hidden"]
                            },
                            "selectedBackground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "selectedForeground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "unselectedForeground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "trackColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "handleColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "popupBackground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "popupForeground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "popupBorderColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            }
                          },
                          "required": ["radius", "height"],
                          "additionalProperties": false
                        },
                        "shapes": {
                          "type": "object",
                          "properties": {
                            "radius": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1000
                            },
                            "borderWidth": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 32
                            },
                            "fillColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "borderColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "borderStyle": {
                              "type": "string",
                              "enum": ["none", "solid", "dashed", "dotted"]
                            }
                          },
                          "required": ["radius", "borderWidth"],
                          "additionalProperties": false
                        },
                        "navigation": {
                          "type": "object",
                          "properties": {
                            "showPageNumbers": {
                              "type": "boolean"
                            },
                            "fontFamily": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "foreground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "activeForeground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "background": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "inactiveForeground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "activeBackground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "hoverBackground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "focusColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "borderColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "radius": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1000
                            },
                            "height": {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 512
                            }
                          },
                          "required": [
                            "fontFamily",
                            "foreground",
                            "activeForeground",
                            "background"
                          ],
                          "additionalProperties": false
                        },
                        "print": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "foreground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "surface": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "border": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            },
                            "accent": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0/properties/value"
                            }
                          },
                          "required": ["background", "foreground", "surface", "border", "accent"],
                          "additionalProperties": false
                        },
                        "spacing": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1000
                          },
                          "propertyNames": {
                            "minLength": 1
                          }
                        },
                        "formatting": {
                          "type": "object",
                          "properties": {
                            "number": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": ["number", "percent", "currency", "duration"]
                                },
                                "locale": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 2,
                                      "maxLength": 64
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "notation": {
                                  "type": "string",
                                  "enum": ["standard", "compact"]
                                },
                                "minimumFractionDigits": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 20
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "maximumFractionDigits": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 20
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "minimumSignificantDigits": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 21
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "maximumSignificantDigits": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 21
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z]{3}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currencyDisplay": {
                                  "type": "string",
                                  "enum": ["symbol", "narrowSymbol", "code", "name"]
                                },
                                "accounting": {
                                  "type": "boolean"
                                },
                                "unit": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "prefix": {
                                  "type": "string",
                                  "maxLength": 64
                                },
                                "suffix": {
                                  "type": "string",
                                  "maxLength": 64
                                },
                                "showPlusSign": {
                                  "type": "boolean"
                                },
                                "negativeStyle": {
                                  "type": "string",
                                  "enum": ["minus", "parentheses"]
                                },
                                "customPattern": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "locale",
                                "notation",
                                "minimumFractionDigits",
                                "maximumFractionDigits",
                                "minimumSignificantDigits",
                                "maximumSignificantDigits",
                                "currency",
                                "currencyDisplay",
                                "accounting",
                                "unit",
                                "prefix",
                                "suffix",
                                "showPlusSign",
                                "negativeStyle",
                                "customPattern"
                              ],
                              "additionalProperties": false
                            },
                            "date": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": ["date", "time", "datetime"]
                                },
                                "locale": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 2,
                                      "maxLength": 64
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "timeZone": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dateStyle": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["short", "medium", "long", "full"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "timeStyle": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["short", "medium", "long", "full"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "customPattern": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 128
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "locale",
                                "timeZone",
                                "dateStyle",
                                "timeStyle",
                                "customPattern"
                              ],
                              "additionalProperties": false
                            },
                            "missing": {
                              "type": "object",
                              "properties": {
                                "missing": {
                                  "type": "object",
                                  "properties": {
                                    "display": {
                                      "type": "string",
                                      "enum": ["dash", "blank", "zero", "label"]
                                    },
                                    "label": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 128
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": ["display", "label"],
                                  "additionalProperties": false
                                },
                                "null": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/formatting/properties/missing/properties/missing"
                                },
                                "not_applicable": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/formatting/properties/missing/properties/missing"
                                },
                                "divide_by_zero": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/formatting/properties/missing/properties/missing"
                                },
                                "suppressed": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/formatting/properties/missing/properties/missing"
                                }
                              },
                              "required": [
                                "missing",
                                "null",
                                "not_applicable",
                                "divide_by_zero",
                                "suppressed"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": ["number", "date", "missing"],
                          "additionalProperties": false
                        },
                        "fontCatalogueVersion": {
                          "type": "number",
                          "const": 1
                        }
                      },
                      "required": [
                        "version",
                        "fontFamilies",
                        "typeScale",
                        "colors",
                        "chartPalette",
                        "chart",
                        "table",
                        "controls",
                        "shapes",
                        "spacing"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "put_page"
                    },
                    "value": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                        },
                        "title": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                        },
                        "position": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "navigationVisible": {
                          "type": "boolean"
                        },
                        "hidden": {
                          "type": "boolean"
                        },
                        "background": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/0"
                                },
                                {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/1"
                                },
                                {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0/anyOf/2"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rootElementIds": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                          },
                          "maxItems": 250
                        },
                        "fixed": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "minimum": 320,
                                  "maximum": 10000
                                },
                                "minimumHeight": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "minimum": 240,
                                  "maximum": 20000
                                },
                                "heightMode": {
                                  "type": "string",
                                  "enum": ["explicit", "auto_extend"]
                                },
                                "explicitHeight": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "exclusiveMinimum": 0,
                                      "minimum": 240,
                                      "maximum": 20000
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "margins": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/1/properties/value/properties/print/properties/margins"
                                },
                                "bleed": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "masterRegionElementIds": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                  },
                                  "maxItems": 32
                                },
                                "gridSize": {
                                  "type": "number",
                                  "enum": [4, 8, 10, 20],
                                  "default": 20
                                },
                                "guides": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                      },
                                      "axis": {
                                        "type": "string",
                                        "enum": ["x", "y"]
                                      },
                                      "position": {
                                        "type": "number",
                                        "minimum": 0
                                      }
                                    },
                                    "required": ["id", "axis", "position"],
                                    "additionalProperties": false
                                  },
                                  "maxItems": 100,
                                  "default": []
                                }
                              },
                              "required": [
                                "width",
                                "minimumHeight",
                                "heightMode",
                                "explicitHeight",
                                "margins",
                                "bleed",
                                "masterRegionElementIds"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "responsive": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "sectionIds": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                  },
                                  "maxItems": 250
                                },
                                "contentMaxWidth": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "exclusiveMinimum": 0,
                                      "maximum": 10000
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "outerPadding": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "gap": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "breakpointOverrides": {
                                  "type": "object",
                                  "properties": {
                                    "desktop": {
                                      "type": "object",
                                      "properties": {
                                        "contentMaxWidth": {
                                          "anyOf": [
                                            {
                                              "type": "number",
                                              "exclusiveMinimum": 0,
                                              "maximum": 10000
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "outerPadding": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "gap": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "tablet": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/responsive/anyOf/0/properties/breakpointOverrides/properties/desktop"
                                    },
                                    "mobile": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/responsive/anyOf/0/properties/breakpointOverrides/properties/desktop"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "printGrouping": {
                                  "type": "string",
                                  "enum": ["preserve_sections", "allow_split"]
                                }
                              },
                              "required": [
                                "sectionIds",
                                "contentMaxWidth",
                                "outerPadding",
                                "gap",
                                "breakpointOverrides",
                                "printGrouping"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "position",
                        "navigationVisible",
                        "background",
                        "rootElementIds",
                        "fixed",
                        "responsive"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "remove_page"
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": ["kind", "id"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "reorder_pages"
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/4/properties/id"
                      },
                      "minItems": 1,
                      "maxItems": 500
                    }
                  },
                  "required": ["kind", "ids"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "put_element"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "logo"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "type": "boolean"
                            },
                            "locked": {
                              "type": "boolean"
                            },
                            "fixedPlacement": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number"
                                },
                                "y": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement/properties/x"
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "maximum": 10000
                                },
                                "height": {
                                  "type": "number",
                                  "exclusiveMinimum": 0,
                                  "maximum": 20000
                                },
                                "z": {
                                  "type": "integer",
                                  "minimum": -100000,
                                  "maximum": 100000
                                },
                                "rotation": {
                                  "type": "number",
                                  "minimum": -360,
                                  "maximum": 360
                                },
                                "flipX": {
                                  "type": "boolean"
                                },
                                "flipY": {
                                  "type": "boolean"
                                },
                                "anchor": {
                                  "type": "string",
                                  "enum": ["page", "content"]
                                },
                                "aspectLock": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "width",
                                "height",
                                "z",
                                "rotation",
                                "flipX",
                                "flipY",
                                "anchor",
                                "aspectLock"
                              ],
                              "additionalProperties": false
                            },
                            "responsivePlacement": {
                              "type": "object",
                              "properties": {
                                "containerLayout": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["stack", "grid", "wrap", "overlay"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "containerDirection": {
                                  "type": "string",
                                  "enum": ["row", "column"],
                                  "default": "column"
                                },
                                "containerColumns": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 12,
                                  "default": 12
                                },
                                "equalHeight": {
                                  "type": "boolean",
                                  "default": false
                                },
                                "columnStart": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 12
                                },
                                "columnSpan": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 12
                                },
                                "row": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 10000
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "order": {
                                  "type": "integer",
                                  "minimum": -10000,
                                  "maximum": 10000
                                },
                                "align": {
                                  "type": "string",
                                  "enum": ["start", "center", "end", "stretch"]
                                },
                                "justify": {
                                  "type": "string",
                                  "enum": ["start", "center", "end", "stretch"]
                                },
                                "minWidth": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/fixed/anyOf/0/properties/guides/items/properties/position"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "maxWidth": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/fixed/anyOf/0/properties/guides/items/properties/position"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "minHeight": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/fixed/anyOf/0/properties/guides/items/properties/position"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "maxHeight": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/fixed/anyOf/0/properties/guides/items/properties/position"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "aspectRatio": {
                                  "anyOf": [
                                    {
                                      "type": "number",
                                      "exclusiveMinimum": 0
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "padding": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "gap": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "keepTogether": {
                                  "type": "boolean",
                                  "default": true
                                },
                                "pageBreakBefore": {
                                  "type": "boolean",
                                  "default": false
                                },
                                "hidden": {
                                  "type": "boolean"
                                },
                                "breakpointOverrides": {
                                  "type": "object",
                                  "properties": {
                                    "desktop": {
                                      "type": "object",
                                      "properties": {
                                        "containerLayout": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": ["stack", "grid", "wrap", "overlay"]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "containerDirection": {
                                          "type": "string",
                                          "enum": ["row", "column"]
                                        },
                                        "containerColumns": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "equalHeight": {
                                          "type": "boolean"
                                        },
                                        "columnStart": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "columnSpan": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "row": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 10000
                                        },
                                        "order": {
                                          "type": "integer",
                                          "minimum": -10000,
                                          "maximum": 10000
                                        },
                                        "align": {
                                          "type": "string",
                                          "enum": ["start", "center", "end", "stretch"]
                                        },
                                        "justify": {
                                          "type": "string",
                                          "enum": ["start", "center", "end", "stretch"]
                                        },
                                        "minWidth": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/fixed/anyOf/0/properties/guides/items/properties/position"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maxWidth": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/fixed/anyOf/0/properties/guides/items/properties/position"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "minHeight": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/fixed/anyOf/0/properties/guides/items/properties/position"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maxHeight": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/fixed/anyOf/0/properties/guides/items/properties/position"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "aspectRatio": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement/properties/aspectRatio/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "padding": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "gap": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "hidden": {
                                          "type": "boolean"
                                        },
                                        "paddingInsets": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/1/properties/value/properties/print/properties/margins"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "containerColumnWeights": {
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "number",
                                                "exclusiveMinimum": 0,
                                                "maximum": 1000
                                              },
                                              "minItems": 1,
                                              "maxItems": 12
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "tablet": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement/properties/breakpointOverrides/properties/desktop"
                                    },
                                    "mobile": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement/properties/breakpointOverrides/properties/desktop"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "paddingInsets": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/1/properties/value/properties/print/properties/margins"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "containerColumnWeights": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement/properties/breakpointOverrides/properties/desktop/properties/containerColumnWeights"
                                }
                              },
                              "required": [
                                "containerLayout",
                                "columnStart",
                                "columnSpan",
                                "row",
                                "order",
                                "align",
                                "justify",
                                "minWidth",
                                "maxWidth",
                                "minHeight",
                                "maxHeight",
                                "aspectRatio",
                                "padding",
                                "gap",
                                "breakpointOverrides"
                              ],
                              "additionalProperties": false
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "type": "object",
                                  "properties": {
                                    "title": {
                                      "type": "string",
                                      "maxLength": 4096
                                    },
                                    "body": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 1048576
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "showTitle": {
                                      "type": "boolean"
                                    },
                                    "showBody": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": ["title", "body", "showTitle", "showBody"],
                                  "additionalProperties": false
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "logoId": {
                                          "type": "string",
                                          "maxLength": 256
                                        },
                                        "assetId": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "filePath": {
                                          "type": "string",
                                          "maxLength": 16384
                                        },
                                        "pinToHeader": {
                                          "type": "boolean"
                                        },
                                        "maxWidth": {
                                          "type": "number",
                                          "exclusiveMinimum": 0,
                                          "maximum": 10000
                                        },
                                        "alignment": {
                                          "type": "string",
                                          "enum": ["left", "center", "right"]
                                        },
                                        "background": {
                                          "type": "string",
                                          "enum": ["transparent", "surface", "card"]
                                        },
                                        "src": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 16384
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "variant": {
                                          "type": "string",
                                          "enum": ["default", "light", "dark"]
                                        },
                                        "fit": {
                                          "type": "string",
                                          "enum": ["contain", "cover", "native"]
                                        },
                                        "focalPoint": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number",
                                              "minimum": 0,
                                              "maximum": 1
                                            },
                                            "y": {
                                              "type": "number",
                                              "minimum": 0,
                                              "maximum": 1
                                            }
                                          },
                                          "required": ["x", "y"],
                                          "additionalProperties": false
                                        },
                                        "link": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 16384
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "label": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 4096
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "decorative": {
                                          "type": "boolean"
                                        },
                                        "padding": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "originalWidth": {
                                          "anyOf": [
                                            {
                                              "type": "number",
                                              "exclusiveMinimum": 0,
                                              "maximum": 100000
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "originalHeight": {
                                          "anyOf": [
                                            {
                                              "type": "number",
                                              "exclusiveMinimum": 0,
                                              "maximum": 100000
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "health": {
                                          "type": "string",
                                          "enum": ["ready", "processing", "needs-repair"]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "logo"
                                    },
                                    "groupId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "type": "object",
                              "properties": {
                                "attachmentId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "resultGenerationId": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "fieldIds": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                  },
                                  "maxItems": 500
                                },
                                "semanticDefinitionIds": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                  },
                                  "maxItems": 500
                                },
                                "controlBindings": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "controlId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                      },
                                      "slotId": {
                                        "type": "string",
                                        "enum": [
                                          "primaryDateRange",
                                          "comparisonDateRange",
                                          "tableSort",
                                          "tableSearch",
                                          "tablePagination",
                                          "filter",
                                          "parameter",
                                          "metricSelector"
                                        ]
                                      },
                                      "mode": {
                                        "type": "string",
                                        "enum": ["inherit", "override"]
                                      },
                                      "priority": {
                                        "type": "integer"
                                      }
                                    },
                                    "required": ["controlId", "slotId"],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "attachmentId",
                                "resultGenerationId",
                                "fieldIds",
                                "semanticDefinitionIds",
                                "controlBindings"
                              ],
                              "additionalProperties": false
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "type": "object",
                              "properties": {
                                "actions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "cross_filter",
                                          "drill",
                                          "navigate",
                                          "open_url",
                                          "parameter"
                                        ]
                                      },
                                      "targetId": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "fieldId": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "enabled": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": ["id", "kind", "targetId", "fieldId", "enabled"],
                                    "additionalProperties": false
                                  },
                                  "maxItems": 64
                                },
                                "selectable": {
                                  "type": "boolean"
                                },
                                "hoverDetails": {
                                  "type": "boolean"
                                }
                              },
                              "required": ["actions", "selectable", "hoverDetails"],
                              "additionalProperties": false
                            },
                            "accessibility": {
                              "type": "object",
                              "properties": {
                                "label": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 4096
                                },
                                "decorative": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "text"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "type": "object",
                                  "properties": {
                                    "title": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content/properties/title"
                                    },
                                    "body": {
                                      "type": "null",
                                      "description": "Text content belongs in settings.content or settings.document."
                                    },
                                    "showTitle": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content/properties/showTitle"
                                    },
                                    "showBody": {
                                      "type": "boolean",
                                      "const": false,
                                      "description": "The text renderer owns its content; generic body chrome is not rendered."
                                    }
                                  },
                                  "required": ["title", "body", "showTitle", "showBody"],
                                  "additionalProperties": false
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "typographySource": {
                                          "type": "string",
                                          "enum": ["report", "custom"]
                                        },
                                        "datasetId": {
                                          "type": "string",
                                          "maxLength": 256
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "anyOf": [
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "version": {
                                                      "type": "number",
                                                      "const": 1
                                                    },
                                                    "datasetId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "limit": {
                                                      "type": "integer",
                                                      "exclusiveMinimum": 0
                                                    },
                                                    "filters": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "type": "string",
                                                            "minLength": 1
                                                          },
                                                          "operator": {
                                                            "type": "string",
                                                            "enum": [
                                                              "eq",
                                                              "neq",
                                                              "contains",
                                                              "in",
                                                              "gt",
                                                              "gte",
                                                              "lt",
                                                              "lte"
                                                            ]
                                                          },
                                                          "value": {
                                                            "anyOf": [
                                                              {
                                                                "type": "string"
                                                              },
                                                              {
                                                                "type": "number"
                                                              },
                                                              {
                                                                "type": "boolean"
                                                              },
                                                              {
                                                                "type": "null"
                                                              },
                                                              {
                                                                "type": "array",
                                                                "items": {
                                                                  "type": [
                                                                    "string",
                                                                    "number",
                                                                    "boolean"
                                                                  ]
                                                                }
                                                              }
                                                            ]
                                                          }
                                                        },
                                                        "required": [
                                                          "fieldId",
                                                          "operator",
                                                          "value"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "sort": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "type": "string",
                                                            "minLength": 1
                                                          },
                                                          "direction": {
                                                            "type": "string",
                                                            "enum": ["asc", "desc"]
                                                          }
                                                        },
                                                        "required": ["fieldId", "direction"],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "controlSlotIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "enum": [
                                                          "primaryDateRange",
                                                          "comparisonDateRange",
                                                          "tableSort",
                                                          "tableSearch",
                                                          "tablePagination",
                                                          "filter",
                                                          "parameter",
                                                          "metricSelector"
                                                        ]
                                                      }
                                                    },
                                                    "intent": {
                                                      "type": "string",
                                                      "const": "kpi_strip"
                                                    },
                                                    "metricFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      }
                                                    }
                                                  },
                                                  "required": ["version", "intent"],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "version": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/version"
                                                    },
                                                    "datasetId": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/datasetId"
                                                    },
                                                    "limit": {
                                                      "type": "integer",
                                                      "exclusiveMinimum": 0,
                                                      "description": "Initial rows per table page, not total dataset rows. Prefer 15 to 25 for compact desktop tables; pagination retains access to the remaining rows."
                                                    },
                                                    "filters": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/fieldId"
                                                          },
                                                          "operator": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/operator"
                                                          },
                                                          "value": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/value"
                                                          }
                                                        },
                                                        "required": [
                                                          "fieldId",
                                                          "operator",
                                                          "value"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "sort": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/fieldId"
                                                          },
                                                          "direction": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/direction"
                                                          }
                                                        },
                                                        "required": ["fieldId", "direction"],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "controlSlotIds": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/controlSlotIds"
                                                    },
                                                    "intent": {
                                                      "type": "string",
                                                      "const": "dense_table"
                                                    },
                                                    "groupByFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "minItems": 1,
                                                      "maxItems": 50,
                                                      "description": "Explicit output dimensions: for a weekly summary use the calculated week field. Measures aggregate before sort and pagination; omit for detail rows."
                                                    },
                                                    "columnFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      }
                                                    },
                                                    "preset": {
                                                      "type": "string",
                                                      "enum": [
                                                        "default",
                                                        "leaderboard",
                                                        "sources",
                                                        "execution"
                                                      ]
                                                    },
                                                    "calculatedColumns": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "id": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 40
                                                          },
                                                          "label": {
                                                            "type": "string",
                                                            "maxLength": 80
                                                          },
                                                          "formula": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 200
                                                          }
                                                        },
                                                        "required": ["id", "label", "formula"],
                                                        "additionalProperties": false
                                                      }
                                                    }
                                                  },
                                                  "required": ["version", "intent"],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "version": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/version"
                                                    },
                                                    "datasetId": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/datasetId"
                                                    },
                                                    "limit": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/limit"
                                                    },
                                                    "filters": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/fieldId"
                                                          },
                                                          "operator": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/operator"
                                                          },
                                                          "value": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/value"
                                                          }
                                                        },
                                                        "required": [
                                                          "fieldId",
                                                          "operator",
                                                          "value"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "sort": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/fieldId"
                                                          },
                                                          "direction": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/direction"
                                                          }
                                                        },
                                                        "required": ["fieldId", "direction"],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "controlSlotIds": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/controlSlotIds"
                                                    },
                                                    "intent": {
                                                      "type": "string",
                                                      "const": "document_viewer"
                                                    },
                                                    "titleFieldId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "markdownFieldId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "sectionFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      }
                                                    },
                                                    "metadataFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      }
                                                    },
                                                    "citationFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      }
                                                    }
                                                  },
                                                  "required": ["version", "intent"],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "version": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/version"
                                                    },
                                                    "datasetId": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/datasetId"
                                                    },
                                                    "limit": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/limit"
                                                    },
                                                    "filters": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/fieldId"
                                                          },
                                                          "operator": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/operator"
                                                          },
                                                          "value": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/value"
                                                          }
                                                        },
                                                        "required": [
                                                          "fieldId",
                                                          "operator",
                                                          "value"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "sort": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/fieldId"
                                                          },
                                                          "direction": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/direction"
                                                          }
                                                        },
                                                        "required": ["fieldId", "direction"],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "controlSlotIds": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/controlSlotIds"
                                                    },
                                                    "intent": {
                                                      "type": "string",
                                                      "const": "sentiment_text"
                                                    },
                                                    "hideMissingAiOverviews": {
                                                      "type": "boolean"
                                                    },
                                                    "answerFilters": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "operator": {
                                                            "type": "string",
                                                            "enum": ["exact", "contains", "regex"]
                                                          },
                                                          "value": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 256
                                                          },
                                                          "caseSensitive": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": ["operator", "value"],
                                                        "additionalProperties": false
                                                      },
                                                      "maxItems": 10
                                                    },
                                                    "selectionMode": {
                                                      "type": "string",
                                                      "enum": ["single", "collection"]
                                                    },
                                                    "promptRunId": {
                                                      "type": "integer",
                                                      "exclusiveMinimum": 0
                                                    },
                                                    "savedAnswerId": {
                                                      "type": "integer",
                                                      "exclusiveMinimum": 0
                                                    },
                                                    "sentiments": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "enum": [
                                                          "positive",
                                                          "negative",
                                                          "neutral",
                                                          "mixed"
                                                        ]
                                                      }
                                                    },
                                                    "targetKinds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "enum": [
                                                          "workspace_brand",
                                                          "competitor",
                                                          "other_brand"
                                                        ]
                                                      }
                                                    }
                                                  },
                                                  "required": ["version", "intent"],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "version": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/version"
                                                    },
                                                    "datasetId": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/datasetId"
                                                    },
                                                    "limit": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/limit"
                                                    },
                                                    "filters": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/fieldId"
                                                          },
                                                          "operator": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/operator"
                                                          },
                                                          "value": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/value"
                                                          }
                                                        },
                                                        "required": [
                                                          "fieldId",
                                                          "operator",
                                                          "value"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "sort": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/fieldId"
                                                          },
                                                          "direction": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/direction"
                                                          }
                                                        },
                                                        "required": ["fieldId", "direction"],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "controlSlotIds": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/controlSlotIds"
                                                    },
                                                    "intent": {
                                                      "type": "string",
                                                      "const": "time_series_chart"
                                                    },
                                                    "xFieldId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "seriesFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      }
                                                    },
                                                    "breakdownFieldId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "maxBreakdownSeries": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 12
                                                    }
                                                  },
                                                  "required": ["version", "intent"],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "version": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/version"
                                                    },
                                                    "datasetId": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/datasetId"
                                                    },
                                                    "limit": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/limit"
                                                    },
                                                    "filters": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/fieldId"
                                                          },
                                                          "operator": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/operator"
                                                          },
                                                          "value": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/value"
                                                          }
                                                        },
                                                        "required": [
                                                          "fieldId",
                                                          "operator",
                                                          "value"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "sort": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/fieldId"
                                                          },
                                                          "direction": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/direction"
                                                          }
                                                        },
                                                        "required": ["fieldId", "direction"],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "controlSlotIds": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/controlSlotIds"
                                                    },
                                                    "intent": {
                                                      "type": "string",
                                                      "const": "pie_chart"
                                                    },
                                                    "labelFieldId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "valueFieldId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    }
                                                  },
                                                  "required": ["version", "intent"],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "version": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/version"
                                                    },
                                                    "datasetId": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/datasetId"
                                                    },
                                                    "limit": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/limit"
                                                    },
                                                    "filters": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/fieldId"
                                                          },
                                                          "operator": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/operator"
                                                          },
                                                          "value": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/filters/items/properties/value"
                                                          }
                                                        },
                                                        "required": [
                                                          "fieldId",
                                                          "operator",
                                                          "value"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "sort": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/fieldId"
                                                          },
                                                          "direction": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/sort/items/properties/direction"
                                                          }
                                                        },
                                                        "required": ["fieldId", "direction"],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "controlSlotIds": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0/anyOf/0/properties/controlSlotIds"
                                                    },
                                                    "intent": {
                                                      "type": "string",
                                                      "const": "visualization_chart"
                                                    },
                                                    "groupByFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "maxItems": 500,
                                                      "description": "Explicit output grain before sorting and limiting. For period totals from daily page/query rows, group by the requested category dimensions and series. Omit for raw observations such as scatter points or histograms."
                                                    },
                                                    "dimensionFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "maxItems": 16
                                                    },
                                                    "measureFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "maxItems": 64
                                                    },
                                                    "seriesFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "maxItems": 16
                                                    }
                                                  },
                                                  "required": [
                                                    "version",
                                                    "intent",
                                                    "dimensionFieldIds",
                                                    "measureFieldIds"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "document": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "version": {
                                                  "type": "number",
                                                  "const": 1
                                                },
                                                "blocks": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "id": {
                                                        "type": "string",
                                                        "minLength": 1
                                                      },
                                                      "kind": {
                                                        "type": "string",
                                                        "enum": [
                                                          "paragraph",
                                                          "heading",
                                                          "list-item",
                                                          "quote",
                                                          "code-block"
                                                        ]
                                                      },
                                                      "level": {
                                                        "type": "number",
                                                        "enum": [1, 2, 3]
                                                      },
                                                      "listKind": {
                                                        "type": "string",
                                                        "enum": ["bullet", "ordered"]
                                                      },
                                                      "align": {
                                                        "type": "string",
                                                        "enum": ["left", "center", "right"]
                                                      },
                                                      "children": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "object",
                                                          "properties": {
                                                            "text": {
                                                              "type": "string"
                                                            },
                                                            "marks": {
                                                              "type": "array",
                                                              "items": {
                                                                "anyOf": [
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "type": {
                                                                        "type": "string",
                                                                        "enum": [
                                                                          "bold",
                                                                          "italic",
                                                                          "underline",
                                                                          "strikethrough",
                                                                          "inlineCode"
                                                                        ]
                                                                      }
                                                                    },
                                                                    "required": ["type"],
                                                                    "additionalProperties": false
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "type": {
                                                                        "type": "string",
                                                                        "const": "fontFamily"
                                                                      },
                                                                      "value": {
                                                                        "type": "string",
                                                                        "enum": [
                                                                          "sans",
                                                                          "serif",
                                                                          "mono",
                                                                          "Figtree"
                                                                        ]
                                                                      }
                                                                    },
                                                                    "required": ["type", "value"],
                                                                    "additionalProperties": false
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "type": {
                                                                        "type": "string",
                                                                        "const": "fontSize"
                                                                      },
                                                                      "value": {
                                                                        "type": "string",
                                                                        "pattern": "^\\d{1,3}(?:\\.\\d{1,2})?px$",
                                                                        "description": "Authored CSS pixels, from 6px to 240px, with at most two decimal places."
                                                                      }
                                                                    },
                                                                    "required": ["type", "value"],
                                                                    "additionalProperties": false
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "type": {
                                                                        "type": "string",
                                                                        "const": "link"
                                                                      },
                                                                      "href": {
                                                                        "type": "string",
                                                                        "maxLength": 16384
                                                                      },
                                                                      "target": {
                                                                        "type": "string",
                                                                        "enum": ["same", "new"]
                                                                      }
                                                                    },
                                                                    "required": [
                                                                      "type",
                                                                      "href",
                                                                      "target"
                                                                    ],
                                                                    "additionalProperties": false
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "type": {
                                                                        "type": "string",
                                                                        "const": "textColor"
                                                                      },
                                                                      "value": {
                                                                        "type": "string",
                                                                        "maxLength": 128
                                                                      }
                                                                    },
                                                                    "required": ["type", "value"],
                                                                    "additionalProperties": false
                                                                  },
                                                                  {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "type": {
                                                                        "type": "string",
                                                                        "const": "highlight"
                                                                      },
                                                                      "value": {
                                                                        "type": "string",
                                                                        "maxLength": 128
                                                                      }
                                                                    },
                                                                    "required": ["type", "value"],
                                                                    "additionalProperties": false
                                                                  }
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          "required": ["text"],
                                                          "additionalProperties": false
                                                        }
                                                      }
                                                    },
                                                    "required": ["id", "kind", "align", "children"],
                                                    "additionalProperties": false
                                                  }
                                                }
                                              },
                                              "required": ["version", "blocks"],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "serializedState": {
                                          "type": ["string", "null"]
                                        },
                                        "content": {
                                          "type": ["string", "null"]
                                        },
                                        "align": {
                                          "type": "string",
                                          "enum": ["left", "center", "right"]
                                        },
                                        "size": {
                                          "type": "string",
                                          "enum": ["sm", "md", "lg"]
                                        },
                                        "tone": {
                                          "type": "string",
                                          "enum": ["default", "muted", "emphasis"]
                                        },
                                        "textStyle": {
                                          "type": "string",
                                          "enum": ["paragraph", "h1", "h2", "h3", "quote", "code"]
                                        },
                                        "fontFamily": {
                                          "type": "string",
                                          "enum": ["sans", "serif", "mono", "Figtree"]
                                        },
                                        "fontSize": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/document/anyOf/0/properties/blocks/items/properties/children/items/properties/marks/items/anyOf/2/properties/value",
                                          "description": "Authored CSS pixels, from 6px to 240px, with at most two decimal places."
                                        },
                                        "mode": {
                                          "type": "string",
                                          "enum": ["plain", "rich"]
                                        },
                                        "autoHeight": {
                                          "type": "boolean"
                                        },
                                        "columns": {
                                          "type": "number",
                                          "enum": [1, 2, 3]
                                        },
                                        "columnGap": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "language": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 64
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "direction": {
                                          "type": "string",
                                          "enum": ["auto", "ltr", "rtl"]
                                        },
                                        "verticalAlign": {
                                          "type": "string",
                                          "enum": ["top", "center", "bottom"]
                                        },
                                        "altDescription": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 4096
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "tokens": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 256
                                              },
                                              "label": {
                                                "type": "string",
                                                "maxLength": 512
                                              },
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "semantic_definition",
                                                  "parameter",
                                                  "literal"
                                                ]
                                              },
                                              "referenceId": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "maxLength": 256
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "literalValue": {
                                                "type": ["string", "number", "boolean", "null"]
                                              },
                                              "scalar": {
                                                "type": "string",
                                                "enum": [
                                                  "first",
                                                  "last",
                                                  "minimum",
                                                  "maximum",
                                                  "sum",
                                                  "average",
                                                  "count"
                                                ]
                                              },
                                              "format": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/formatting/properties/number"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "fallback": {
                                                "type": "string",
                                                "maxLength": 4096
                                              },
                                              "errorFallback": {
                                                "type": "string",
                                                "maxLength": 4096
                                              }
                                            },
                                            "required": [
                                              "id",
                                              "label",
                                              "source",
                                              "referenceId",
                                              "literalValue",
                                              "scalar",
                                              "format",
                                              "fallback",
                                              "errorFallback"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "maxItems": 200
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "text"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "date-range-control"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "controlId": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        }
                                      },
                                      "required": ["controlId"],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "date-range-control"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "report-control"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "controlId": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        }
                                      },
                                      "required": ["controlId"],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "report-control"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "divider"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "orientation": {
                                          "type": "string",
                                          "enum": ["horizontal", "vertical"]
                                        },
                                        "variant": {
                                          "type": "string",
                                          "enum": ["solid", "dashed", "dotted", "double"]
                                        },
                                        "thickness": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": ["thin", "regular", "bold"]
                                            },
                                            {
                                              "type": "number",
                                              "minimum": 0.5,
                                              "maximum": 32
                                            }
                                          ]
                                        },
                                        "color": {
                                          "type": "string",
                                          "maxLength": 128
                                        },
                                        "paint": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/background/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "label": {
                                          "type": "string",
                                          "maxLength": 4096
                                        },
                                        "labelPosition": {
                                          "type": "string",
                                          "enum": ["start", "center", "end"]
                                        },
                                        "labelGap": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "labelBackground": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/3/properties/value/properties/background/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "labelColor": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 128
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "insetStart": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 10000
                                        },
                                        "insetEnd": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 10000
                                        },
                                        "opacity": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "startCap": {
                                          "type": "string",
                                          "enum": ["butt", "round", "square"]
                                        },
                                        "endCap": {
                                          "type": "string",
                                          "enum": ["butt", "round", "square"]
                                        },
                                        "decorative": {
                                          "type": "boolean"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "divider"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "callout"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "variant": {
                                          "type": "string",
                                          "enum": [
                                            "minimal",
                                            "outlined",
                                            "filled",
                                            "quote",
                                            "metric-note",
                                            "info",
                                            "tip",
                                            "success",
                                            "warning"
                                          ]
                                        },
                                        "purpose": {
                                          "type": "string",
                                          "enum": ["none", "note", "definition", "warning", "quote"]
                                        },
                                        "title": {
                                          "type": "string",
                                          "maxLength": 4096
                                        },
                                        "body": {
                                          "type": "string",
                                          "maxLength": 1048576
                                        },
                                        "titleDocument": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/document"
                                        },
                                        "bodyDocument": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/document"
                                        },
                                        "compact": {
                                          "type": "boolean"
                                        },
                                        "icon": {
                                          "type": "string",
                                          "enum": [
                                            "none",
                                            "info",
                                            "lightbulb",
                                            "warning",
                                            "quote",
                                            "number"
                                          ]
                                        },
                                        "iconPosition": {
                                          "type": "string",
                                          "enum": ["start", "top"]
                                        },
                                        "number": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 128
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "tokens": {
                                          "type": "array",
                                          "items": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/tokens/items"
                                          },
                                          "maxItems": 20
                                        },
                                        "link": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 16384
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "linkLabel": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 4096
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "action": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 80
                                            },
                                            "destination": {
                                              "anyOf": [
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "kind": {
                                                      "type": "string",
                                                      "const": "signup"
                                                    }
                                                  },
                                                  "required": ["kind"],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "kind": {
                                                      "type": "string",
                                                      "const": "link"
                                                    },
                                                    "href": {
                                                      "type": "string",
                                                      "maxLength": 2048
                                                    }
                                                  },
                                                  "required": ["kind", "href"],
                                                  "additionalProperties": false
                                                }
                                              ]
                                            }
                                          },
                                          "required": ["label", "destination"],
                                          "additionalProperties": false
                                        },
                                        "accentColor": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 128
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "callout"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "image"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "assetId": {
                                          "type": "string",
                                          "maxLength": 256
                                        },
                                        "imageUrl": {
                                          "type": "string",
                                          "maxLength": 16384
                                        },
                                        "filePath": {
                                          "type": "string",
                                          "maxLength": 16384
                                        },
                                        "alt": {
                                          "type": "string",
                                          "maxLength": 4096
                                        },
                                        "fit": {
                                          "type": "string",
                                          "enum": ["contain", "cover", "fill", "native"]
                                        },
                                        "animation": {
                                          "type": "string",
                                          "enum": ["auto", "still"]
                                        },
                                        "focalPoint": {
                                          "type": "object",
                                          "properties": {
                                            "x": {
                                              "type": "number",
                                              "minimum": 0,
                                              "maximum": 1
                                            },
                                            "y": {
                                              "type": "number",
                                              "minimum": 0,
                                              "maximum": 1
                                            }
                                          },
                                          "required": ["x", "y"],
                                          "additionalProperties": false
                                        },
                                        "crop": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "x": {
                                                  "type": "number",
                                                  "minimum": 0,
                                                  "maximum": 1
                                                },
                                                "y": {
                                                  "type": "number",
                                                  "minimum": 0,
                                                  "maximum": 1
                                                },
                                                "width": {
                                                  "type": "number",
                                                  "exclusiveMinimum": 0,
                                                  "maximum": 1
                                                },
                                                "height": {
                                                  "type": "number",
                                                  "exclusiveMinimum": 0,
                                                  "maximum": 1
                                                }
                                              },
                                              "required": ["x", "y", "width", "height"],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "background": {
                                          "anyOf": [
                                            {
                                              "type": "boolean"
                                            },
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0"
                                            }
                                          ]
                                        },
                                        "rounded": {
                                          "type": "boolean"
                                        },
                                        "radius": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1000
                                        },
                                        "opacity": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "caption": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 16384
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "decorative": {
                                          "type": "boolean"
                                        },
                                        "link": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 16384
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "mask": {
                                          "type": "string",
                                          "enum": ["none", "circle", "rounded-rectangle"]
                                        },
                                        "originalWidth": {
                                          "anyOf": [
                                            {
                                              "type": "number",
                                              "exclusiveMinimum": 0,
                                              "maximum": 100000
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "originalHeight": {
                                          "anyOf": [
                                            {
                                              "type": "number",
                                              "exclusiveMinimum": 0,
                                              "maximum": 100000
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "health": {
                                          "type": "string",
                                          "enum": ["ready", "processing", "needs-repair"]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "image"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "metric"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "label": {
                                          "type": "string",
                                          "maxLength": 4096
                                        },
                                        "value": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "change": {
                                          "type": "string",
                                          "maxLength": 4096
                                        },
                                        "description": {
                                          "type": "string",
                                          "maxLength": 16384
                                        },
                                        "tone": {
                                          "type": "string",
                                          "enum": ["neutral", "positive", "warning"]
                                        },
                                        "layout": {
                                          "type": "string",
                                          "enum": ["stacked", "inline"]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "metric"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "kpi-strip"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "showProportion": {
                                          "type": "boolean"
                                        },
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "presentation": {
                                          "type": "string",
                                          "enum": ["compact", "standard", "hero"]
                                        },
                                        "valueFirst": {
                                          "type": "boolean"
                                        },
                                        "deltaDisplay": {
                                          "type": "string",
                                          "enum": ["hidden", "text", "icon", "badge"]
                                        },
                                        "semanticDirection": {
                                          "type": "string",
                                          "enum": ["higher_is_better", "lower_is_better", "neutral"]
                                        },
                                        "showPreviousValue": {
                                          "type": "boolean"
                                        },
                                        "comparisonLabel": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 4096
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "showSparkline": {
                                          "type": "boolean"
                                        },
                                        "sparklineStyle": {
                                          "type": "string",
                                          "enum": ["line", "area", "bar"]
                                        },
                                        "showAttribution": {
                                          "type": "boolean"
                                        },
                                        "columns": {
                                          "type": "number",
                                          "enum": [2, 3, 4]
                                        },
                                        "gap": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 80
                                        },
                                        "separators": {
                                          "type": "string",
                                          "enum": ["none", "dividers"]
                                        },
                                        "metricDisplayOverrides": {
                                          "type": "object",
                                          "additionalProperties": {
                                            "type": "object",
                                            "properties": {
                                              "showProportion": {
                                                "type": "boolean"
                                              },
                                              "label": {
                                                "type": "string"
                                              },
                                              "showDelta": {
                                                "type": "boolean"
                                              },
                                              "showAnnotation": {
                                                "type": "boolean"
                                              },
                                              "showPreviousValue": {
                                                "type": "boolean"
                                              },
                                              "showSparkline": {
                                                "type": "boolean"
                                              },
                                              "target": {
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "value": {
                                                        "type": "number"
                                                      },
                                                      "label": {
                                                        "anyOf": [
                                                          {
                                                            "type": "string",
                                                            "maxLength": 4096
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "display": {
                                                        "type": "string",
                                                        "enum": ["text", "progress", "mini-bar"]
                                                      }
                                                    },
                                                    "required": ["value"],
                                                    "additionalProperties": false
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            },
                                            "additionalProperties": false
                                          }
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "kpi-strip"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "scorecard"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "showProportion": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showProportion"
                                        },
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "presentation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/presentation"
                                        },
                                        "valueFirst": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/valueFirst"
                                        },
                                        "deltaDisplay": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/deltaDisplay"
                                        },
                                        "semanticDirection": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/semanticDirection"
                                        },
                                        "showPreviousValue": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showPreviousValue"
                                        },
                                        "comparisonLabel": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 4096
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "showSparkline": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showSparkline"
                                        },
                                        "sparklineStyle": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/sparklineStyle"
                                        },
                                        "showAttribution": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showAttribution"
                                        },
                                        "metricFieldId": {
                                          "type": "string",
                                          "maxLength": 256
                                        },
                                        "secondaryMetricFieldId": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 256
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "label": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 4096
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "prefix": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 128
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "suffix": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 128
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "target": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/metricDisplayOverrides/additionalProperties/properties/target"
                                        },
                                        "conditionalRules": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 256
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "greater_than",
                                                  "greater_than_or_equal",
                                                  "less_than",
                                                  "less_than_or_equal",
                                                  "equal"
                                                ]
                                              },
                                              "value": {
                                                "type": "number"
                                              },
                                              "tone": {
                                                "type": "string",
                                                "enum": [
                                                  "neutral",
                                                  "positive",
                                                  "negative",
                                                  "warning"
                                                ]
                                              }
                                            },
                                            "required": ["id", "operator", "value", "tone"],
                                            "additionalProperties": false
                                          },
                                          "maxItems": 20
                                        },
                                        "showSparklinePoints": {
                                          "type": "boolean"
                                        },
                                        "sparklineColor": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 128
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "showAnnotation": {
                                          "type": "boolean"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "scorecard"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "scorecard-group"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "emphasizeFirst": {
                                          "type": "boolean"
                                        },
                                        "showProportion": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showProportion"
                                        },
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "presentation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/presentation"
                                        },
                                        "valueFirst": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/valueFirst"
                                        },
                                        "deltaDisplay": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/deltaDisplay"
                                        },
                                        "semanticDirection": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/semanticDirection"
                                        },
                                        "showPreviousValue": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showPreviousValue"
                                        },
                                        "comparisonLabel": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/comparisonLabel"
                                        },
                                        "showSparkline": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showSparkline"
                                        },
                                        "sparklineStyle": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/sparklineStyle"
                                        },
                                        "showAttribution": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showAttribution"
                                        },
                                        "columns": {
                                          "type": "number",
                                          "enum": [1, 2, 3, 4, 5, 6]
                                        },
                                        "gap": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 80
                                        },
                                        "separators": {
                                          "type": "string",
                                          "enum": ["none", "dividers"]
                                        },
                                        "metricDisplayOverrides": {
                                          "type": "object",
                                          "additionalProperties": {
                                            "type": "object",
                                            "properties": {
                                              "showProportion": {
                                                "type": "boolean"
                                              },
                                              "label": {
                                                "type": "string"
                                              },
                                              "showDelta": {
                                                "type": "boolean"
                                              },
                                              "showAnnotation": {
                                                "type": "boolean"
                                              },
                                              "showPreviousValue": {
                                                "type": "boolean"
                                              },
                                              "showSparkline": {
                                                "type": "boolean"
                                              },
                                              "target": {
                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/metricDisplayOverrides/additionalProperties/properties/target"
                                              }
                                            },
                                            "additionalProperties": false
                                          }
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "enum": ["scorecard-group", "kpi-strip"]
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "dense-table"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "presentation": {
                                          "type": "string",
                                          "enum": ["table", "action-list"]
                                        },
                                        "actionList": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/action/properties/label"
                                            },
                                            "destination": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/action/properties/destination"
                                            },
                                            "textFieldId": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 256
                                            },
                                            "detailFieldId": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 256
                                            }
                                          },
                                          "required": ["label", "destination", "textFieldId"],
                                          "additionalProperties": false
                                        },
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "preset": {
                                          "type": "string",
                                          "enum": ["default", "leaderboard", "sources", "execution"]
                                        },
                                        "style": {
                                          "type": "object",
                                          "properties": {
                                            "showHeader": {
                                              "type": "boolean"
                                            },
                                            "showFooter": {
                                              "type": "boolean"
                                            },
                                            "density": {
                                              "type": "string",
                                              "enum": [
                                                "regular",
                                                "compact",
                                                "standard",
                                                "comfortable"
                                              ]
                                            },
                                            "striped": {
                                              "type": "boolean"
                                            },
                                            "showHorizontalGrid": {
                                              "type": "boolean"
                                            },
                                            "showVerticalGrid": {
                                              "type": "boolean"
                                            },
                                            "stickyHeader": {
                                              "type": "boolean"
                                            },
                                            "stickyFirstColumn": {
                                              "type": "boolean"
                                            },
                                            "showRowNumbers": {
                                              "type": "boolean"
                                            },
                                            "fontSize": {
                                              "type": "integer",
                                              "minimum": 10,
                                              "maximum": 16
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        "rowLimit": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 100
                                        },
                                        "defaultSearch": {
                                          "type": "string",
                                          "maxLength": 4096
                                        },
                                        "viewerCanSearch": {
                                          "type": "boolean"
                                        },
                                        "authorDefaults": {
                                          "type": "object",
                                          "properties": {
                                            "search": {
                                              "type": "string",
                                              "maxLength": 4096
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        "viewerPolicy": {
                                          "type": "object",
                                          "properties": {
                                            "allowSearch": {
                                              "type": "boolean"
                                            },
                                            "allowPagination": {
                                              "type": "boolean"
                                            },
                                            "allowParameters": {
                                              "type": "boolean"
                                            },
                                            "allowSort": {
                                              "type": "boolean"
                                            },
                                            "allowExport": {
                                              "type": "boolean"
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        "columnDisplayOverrides": {
                                          "type": "object",
                                          "additionalProperties": {
                                            "type": "object",
                                            "properties": {
                                              "label": {
                                                "type": "string"
                                              },
                                              "align": {
                                                "type": "string",
                                                "enum": ["left", "center", "right"]
                                              },
                                              "text": {
                                                "type": "string",
                                                "enum": ["clip", "truncate", "wrap"]
                                              },
                                              "format": {
                                                "type": "object",
                                                "properties": {
                                                  "decimals": {
                                                    "type": "integer",
                                                    "minimum": 0,
                                                    "maximum": 6
                                                  },
                                                  "compact": {
                                                    "type": "boolean"
                                                  },
                                                  "currencyCode": {
                                                    "type": "string",
                                                    "pattern": "^[A-Za-z]{3}$"
                                                  },
                                                  "suffix": {
                                                    "type": "string",
                                                    "maxLength": 12
                                                  }
                                                },
                                                "additionalProperties": false
                                              },
                                              "percentOfTotal": {
                                                "type": "boolean"
                                              },
                                              "conditionalFormat": {
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "kind": {
                                                        "type": "string",
                                                        "const": "dataBar"
                                                      }
                                                    },
                                                    "required": ["kind"],
                                                    "additionalProperties": false
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "kind": {
                                                        "type": "string",
                                                        "const": "colorScale"
                                                      },
                                                      "minimumColor": {
                                                        "type": "string",
                                                        "maxLength": 128
                                                      },
                                                      "midpointColor": {
                                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/columnDisplayOverrides/additionalProperties/properties/conditionalFormat/anyOf/1/properties/minimumColor"
                                                      },
                                                      "maximumColor": {
                                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/columnDisplayOverrides/additionalProperties/properties/conditionalFormat/anyOf/1/properties/minimumColor"
                                                      },
                                                      "diverging": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": ["kind"],
                                                    "additionalProperties": false
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "kind": {
                                                        "type": "string",
                                                        "const": "icon"
                                                      },
                                                      "direction": {
                                                        "type": "string",
                                                        "enum": ["higherIsBetter", "lowerIsBetter"]
                                                      },
                                                      "good": {
                                                        "type": "number"
                                                      },
                                                      "bad": {
                                                        "type": "number"
                                                      }
                                                    },
                                                    "required": ["kind", "direction"],
                                                    "additionalProperties": false
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "kind": {
                                                        "type": "string",
                                                        "const": "threshold"
                                                      },
                                                      "direction": {
                                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/columnDisplayOverrides/additionalProperties/properties/conditionalFormat/anyOf/2/properties/direction"
                                                      },
                                                      "good": {
                                                        "type": "number"
                                                      },
                                                      "bad": {
                                                        "type": "number"
                                                      }
                                                    },
                                                    "required": ["kind", "direction"],
                                                    "additionalProperties": false
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "kind": {
                                                        "type": "string",
                                                        "const": "textStyle"
                                                      },
                                                      "operator": {
                                                        "type": "string",
                                                        "enum": ["greaterThan", "lessThan", "equal"]
                                                      },
                                                      "value": {
                                                        "type": "number"
                                                      },
                                                      "emphasis": {
                                                        "type": "string",
                                                        "enum": ["bold", "underline"]
                                                      }
                                                    },
                                                    "required": [
                                                      "kind",
                                                      "operator",
                                                      "value",
                                                      "emphasis"
                                                    ],
                                                    "additionalProperties": false
                                                  }
                                                ]
                                              },
                                              "linkTemplate": {
                                                "type": "string",
                                                "maxLength": 500
                                              },
                                              "linkFieldId": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 200
                                              },
                                              "showFavicon": {
                                                "type": "boolean"
                                              },
                                              "width": {
                                                "type": "number",
                                                "minimum": 48,
                                                "maximum": 1600
                                              },
                                              "minWidth": {
                                                "type": "number",
                                                "minimum": 32,
                                                "maximum": 1600
                                              },
                                              "maxWidth": {
                                                "type": "number",
                                                "minimum": 48,
                                                "maximum": 2400
                                              },
                                              "hidden": {
                                                "type": "boolean"
                                              },
                                              "order": {
                                                "type": "integer"
                                              },
                                              "pinned": {
                                                "type": "string",
                                                "enum": ["start", "end", "none"]
                                              }
                                            },
                                            "additionalProperties": false
                                          }
                                        },
                                        "totalsRow": {
                                          "type": "boolean"
                                        },
                                        "comparison": {
                                          "type": "object",
                                          "properties": {
                                            "basis": {
                                              "type": "string",
                                              "enum": ["previousPeriod", "previousYear"]
                                            },
                                            "display": {
                                              "type": "string",
                                              "enum": ["delta", "deltaPercent"]
                                            }
                                          },
                                          "required": ["basis"],
                                          "additionalProperties": false
                                        },
                                        "groupBy": {
                                          "type": "object",
                                          "properties": {
                                            "fieldId": {
                                              "type": "string",
                                              "minLength": 1
                                            }
                                          },
                                          "required": ["fieldId"],
                                          "additionalProperties": false
                                        },
                                        "rowAction": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "kind": {
                                                  "type": "string",
                                                  "const": "crossFilter"
                                                },
                                                "fieldId": {
                                                  "type": "string",
                                                  "minLength": 1
                                                }
                                              },
                                              "required": ["kind", "fieldId"],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "kind": {
                                                  "type": "string",
                                                  "const": "drill"
                                                }
                                              },
                                              "required": ["kind"],
                                              "additionalProperties": false
                                            }
                                          ]
                                        },
                                        "pagingMode": {
                                          "type": "string",
                                          "enum": ["paged", "virtual"]
                                        },
                                        "rowIdentityFieldIds": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 256
                                          },
                                          "maxItems": 8
                                        },
                                        "virtualRowHeight": {
                                          "type": "integer",
                                          "minimum": 20,
                                          "maximum": 160
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "dense-table"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "pivot-table"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "pivotSpec": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "specVersion": {
                                                  "type": "number",
                                                  "const": 1
                                                },
                                                "sourceId": {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 512
                                                },
                                                "rows": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 256
                                                  },
                                                  "minItems": 1,
                                                  "maxItems": 8
                                                },
                                                "columns": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 256
                                                  },
                                                  "maxItems": 4
                                                },
                                                "values": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "fieldId": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 256
                                                      },
                                                      "aggregation": {
                                                        "type": "string",
                                                        "enum": [
                                                          "sum",
                                                          "average",
                                                          "count",
                                                          "minimum",
                                                          "maximum"
                                                        ]
                                                      },
                                                      "label": {
                                                        "type": "string",
                                                        "maxLength": 512
                                                      }
                                                    },
                                                    "required": ["fieldId", "aggregation"],
                                                    "additionalProperties": false
                                                  },
                                                  "minItems": 1,
                                                  "maxItems": 12
                                                },
                                                "totals": {
                                                  "type": "object",
                                                  "properties": {
                                                    "rows": {
                                                      "type": "boolean"
                                                    },
                                                    "columns": {
                                                      "type": "boolean"
                                                    },
                                                    "subtotals": {
                                                      "type": "boolean"
                                                    }
                                                  },
                                                  "required": ["rows", "columns", "subtotals"],
                                                  "additionalProperties": false
                                                },
                                                "presentation": {
                                                  "type": "object",
                                                  "properties": {
                                                    "density": {
                                                      "type": "string",
                                                      "enum": ["compact", "standard", "comfortable"]
                                                    },
                                                    "stickyHeaders": {
                                                      "type": "boolean"
                                                    },
                                                    "stickyRowHeaders": {
                                                      "type": "boolean"
                                                    },
                                                    "showRowNumbers": {
                                                      "type": "boolean"
                                                    },
                                                    "conditionalFormatting": {
                                                      "type": "object",
                                                      "additionalProperties": {
                                                        "anyOf": [
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "kind": {
                                                                "type": "string",
                                                                "const": "data_bar"
                                                              }
                                                            },
                                                            "required": ["kind"],
                                                            "additionalProperties": false
                                                          },
                                                          {
                                                            "type": "object",
                                                            "properties": {
                                                              "kind": {
                                                                "type": "string",
                                                                "const": "threshold"
                                                              },
                                                              "direction": {
                                                                "type": "string",
                                                                "enum": [
                                                                  "higher_is_better",
                                                                  "lower_is_better"
                                                                ]
                                                              },
                                                              "good": {
                                                                "type": "number"
                                                              },
                                                              "bad": {
                                                                "type": "number"
                                                              }
                                                            },
                                                            "required": ["kind", "direction"],
                                                            "additionalProperties": false
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "density",
                                                    "stickyHeaders",
                                                    "stickyRowHeaders",
                                                    "showRowNumbers",
                                                    "conditionalFormatting"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "limits": {
                                                  "type": "object",
                                                  "properties": {
                                                    "sourceRows": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 5000
                                                    },
                                                    "columnGroups": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 24
                                                    },
                                                    "renderedRows": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 1000
                                                    }
                                                  },
                                                  "required": [
                                                    "sourceRows",
                                                    "columnGroups",
                                                    "renderedRows"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "viewer": {
                                                  "type": "object",
                                                  "properties": {
                                                    "allowExport": {
                                                      "type": "boolean"
                                                    }
                                                  },
                                                  "required": ["allowExport"],
                                                  "additionalProperties": false
                                                },
                                                "accessibility": {
                                                  "type": "object",
                                                  "properties": {
                                                    "label": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 1024
                                                    },
                                                    "summary": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 4096
                                                    }
                                                  },
                                                  "required": ["label", "summary"],
                                                  "additionalProperties": false
                                                }
                                              },
                                              "required": [
                                                "specVersion",
                                                "sourceId",
                                                "rows",
                                                "columns",
                                                "values",
                                                "totals",
                                                "presentation",
                                                "limits",
                                                "viewer",
                                                "accessibility"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "pivot-table"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "document-viewer"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "mode": {
                                          "type": "string",
                                          "enum": ["single", "paged", "repeated-sections"]
                                        },
                                        "showTableOfContents": {
                                          "type": "boolean"
                                        },
                                        "columns": {
                                          "type": "number",
                                          "enum": [1, 2]
                                        },
                                        "maxLineWidth": {
                                          "anyOf": [
                                            {
                                              "type": "number",
                                              "exclusiveMinimum": 0,
                                              "maximum": 4000
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "internalScroll": {
                                          "type": "boolean"
                                        },
                                        "allowCopy": {
                                          "type": "boolean"
                                        },
                                        "showMetadata": {
                                          "type": "boolean"
                                        },
                                        "showCitations": {
                                          "type": "boolean"
                                        },
                                        "printContinuation": {
                                          "type": "string",
                                          "enum": ["flow", "keep-sections"]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "document-viewer"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "saved-finding"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "finding": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                "evidence": {
                                                  "type": "object",
                                                  "properties": {
                                                    "version": {
                                                      "type": "number",
                                                      "const": 1
                                                    },
                                                    "capturedAt": {
                                                      "type": "string",
                                                      "format": "date-time"
                                                    },
                                                    "source": {
                                                      "anyOf": [
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "kind": {
                                                              "type": "string",
                                                              "const": "answer"
                                                            },
                                                            "promptRunId": {
                                                              "type": "integer",
                                                              "exclusiveMinimum": 0,
                                                              "maximum": 9007199254740991
                                                            },
                                                            "reviewId": {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            }
                                                          },
                                                          "required": ["kind", "promptRunId"],
                                                          "additionalProperties": false
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "kind": {
                                                              "type": "string",
                                                              "const": "recommendation"
                                                            },
                                                            "recommendationId": {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            }
                                                          },
                                                          "required": ["kind", "recommendationId"],
                                                          "additionalProperties": false
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "kind": {
                                                              "type": "string",
                                                              "const": "coverage"
                                                            },
                                                            "coverageId": {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            "scope": {
                                                              "type": "object",
                                                              "properties": {
                                                                "startDate": {
                                                                  "type": "string",
                                                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                                },
                                                                "endDate": {
                                                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/2/properties/scope/properties/startDate"
                                                                },
                                                                "attribution": {
                                                                  "type": "string",
                                                                  "enum": [
                                                                    "all",
                                                                    "our_team",
                                                                    "external",
                                                                    "unclassified"
                                                                  ]
                                                                },
                                                                "cohort": {
                                                                  "type": "string",
                                                                  "enum": ["shared", "all"]
                                                                },
                                                                "interval": {
                                                                  "type": "string",
                                                                  "enum": ["day", "week"]
                                                                },
                                                                "coverageId": {
                                                                  "type": "string",
                                                                  "format": "uuid"
                                                                },
                                                                "coverageIds": {
                                                                  "type": "array",
                                                                  "items": {
                                                                    "type": "string",
                                                                    "format": "uuid"
                                                                  },
                                                                  "minItems": 1,
                                                                  "maxItems": 500
                                                                },
                                                                "baselineRange": {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "startDate": {
                                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/2/properties/scope/properties/startDate"
                                                                    },
                                                                    "endDate": {
                                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/2/properties/scope/properties/startDate"
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "startDate",
                                                                    "endDate"
                                                                  ],
                                                                  "additionalProperties": false
                                                                },
                                                                "evidenceBrandOnly": {
                                                                  "type": "boolean"
                                                                },
                                                                "search": {
                                                                  "type": "string",
                                                                  "maxLength": 200
                                                                },
                                                                "archived": {
                                                                  "type": "boolean"
                                                                },
                                                                "rootDomain": {
                                                                  "type": "string",
                                                                  "maxLength": 253
                                                                },
                                                                "promptId": {
                                                                  "type": "integer",
                                                                  "exclusiveMinimum": 0
                                                                },
                                                                "groupId": {
                                                                  "type": "integer",
                                                                  "exclusiveMinimum": 0
                                                                },
                                                                "platform": {
                                                                  "type": "string",
                                                                  "minLength": 1,
                                                                  "maxLength": 32
                                                                },
                                                                "region": {
                                                                  "type": "string",
                                                                  "minLength": 1,
                                                                  "maxLength": 64
                                                                }
                                                              },
                                                              "required": [
                                                                "startDate",
                                                                "endDate",
                                                                "attribution",
                                                                "cohort",
                                                                "interval"
                                                              ],
                                                              "additionalProperties": false
                                                            }
                                                          },
                                                          "required": ["kind", "coverageId"],
                                                          "additionalProperties": false
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "kind": {
                                                              "type": "string",
                                                              "const": "trend"
                                                            },
                                                            "scope": {
                                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/2/properties/scope"
                                                            },
                                                            "presentation": {
                                                              "type": "object",
                                                              "properties": {
                                                                "metric": {
                                                                  "type": "string",
                                                                  "enum": ["citing", "citationRate"]
                                                                },
                                                                "showVisibility": {
                                                                  "type": "boolean"
                                                                }
                                                              },
                                                              "required": [
                                                                "metric",
                                                                "showVisibility"
                                                              ],
                                                              "additionalProperties": false
                                                            }
                                                          },
                                                          "required": ["kind", "scope"],
                                                          "additionalProperties": false
                                                        }
                                                      ]
                                                    },
                                                    "answer": {
                                                      "type": "object",
                                                      "properties": {
                                                        "promptId": {
                                                          "anyOf": [
                                                            {
                                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "prompt": {
                                                          "type": "string",
                                                          "maxLength": 50000
                                                        },
                                                        "platform": {
                                                          "type": "string",
                                                          "enum": [
                                                            "ChatGPT",
                                                            "AI Overviews",
                                                            "Gemini",
                                                            "Claude",
                                                            "Perplexity",
                                                            "AI Mode",
                                                            "Other"
                                                          ]
                                                        },
                                                        "region": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "maxLength": 64
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "completedAt": {
                                                          "anyOf": [
                                                            {
                                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "excerpt": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 8000
                                                        }
                                                      },
                                                      "required": [
                                                        "prompt",
                                                        "platform",
                                                        "region",
                                                        "completedAt",
                                                        "excerpt"
                                                      ],
                                                      "additionalProperties": false
                                                    },
                                                    "claimReview": {
                                                      "type": "object",
                                                      "properties": {
                                                        "reviewId": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "reviewVersion": {
                                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                        },
                                                        "quote": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 8000
                                                        },
                                                        "verdict": {
                                                          "type": "string",
                                                          "enum": [
                                                            "supported",
                                                            "contradicted",
                                                            "insufficient_evidence",
                                                            "not_comparable"
                                                          ]
                                                        },
                                                        "comparisonScope": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 500
                                                        },
                                                        "comparisonVariant": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "minLength": 2,
                                                              "maxLength": 120
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "unitsAssessment": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "minLength": 10,
                                                              "maxLength": 500
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourceAssessment": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "minLength": 10,
                                                              "maxLength": 500
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "rationale": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 2000
                                                        },
                                                        "reviewedAt": {
                                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                        },
                                                        "factId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "factVersion": {
                                                          "anyOf": [
                                                            {
                                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "factSubject": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "maxLength": 120
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "factStatement": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "maxLength": 2000
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "factSourceUrl": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uri",
                                                              "maxLength": 2048
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        }
                                                      },
                                                      "required": [
                                                        "reviewId",
                                                        "reviewVersion",
                                                        "quote",
                                                        "verdict",
                                                        "comparisonScope",
                                                        "rationale",
                                                        "reviewedAt",
                                                        "factId",
                                                        "factVersion",
                                                        "factSubject",
                                                        "factStatement",
                                                        "factSourceUrl"
                                                      ],
                                                      "additionalProperties": false
                                                    },
                                                    "recommendation": {
                                                      "type": "object",
                                                      "properties": {
                                                        "recommendationId": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "version": {
                                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                        },
                                                        "title": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 1000
                                                        },
                                                        "action": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 10000
                                                        },
                                                        "completedAt": {
                                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                        },
                                                        "workNote": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "maxLength": 4000
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "followUp": {
                                                          "anyOf": [
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "state": {
                                                                  "type": "string",
                                                                  "const": "no_prompt_cohort"
                                                                },
                                                                "completedAt": {
                                                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                                },
                                                                "completedPageUrl": {
                                                                  "type": "string",
                                                                  "format": "uri",
                                                                  "maxLength": 2048
                                                                },
                                                                "baselinePageUrl": {
                                                                  "type": "string",
                                                                  "format": "uri",
                                                                  "maxLength": 2048
                                                                },
                                                                "outcomeEventName": {
                                                                  "type": "string",
                                                                  "minLength": 1,
                                                                  "maxLength": 128
                                                                },
                                                                "claimReview": {
                                                                  "anyOf": [
                                                                    {
                                                                      "type": "object",
                                                                      "properties": {
                                                                        "state": {
                                                                          "type": "string",
                                                                          "const": "no_reviews"
                                                                        },
                                                                        "factId": {
                                                                          "type": "string",
                                                                          "format": "uuid"
                                                                        }
                                                                      },
                                                                      "required": [
                                                                        "state",
                                                                        "factId"
                                                                      ],
                                                                      "additionalProperties": false
                                                                    },
                                                                    {
                                                                      "type": "object",
                                                                      "properties": {
                                                                        "state": {
                                                                          "type": "string",
                                                                          "const": "reviewed"
                                                                        },
                                                                        "factId": {
                                                                          "type": "string",
                                                                          "format": "uuid"
                                                                        },
                                                                        "reviewedPassages": {
                                                                          "type": "integer",
                                                                          "exclusiveMinimum": 0
                                                                        },
                                                                        "contradictedPassages": {
                                                                          "type": "integer",
                                                                          "minimum": 0
                                                                        },
                                                                        "supportedPassages": {
                                                                          "type": "integer",
                                                                          "minimum": 0
                                                                        },
                                                                        "recentReviews": {
                                                                          "type": "array",
                                                                          "items": {
                                                                            "type": "object",
                                                                            "properties": {
                                                                              "reviewId": {
                                                                                "type": "string",
                                                                                "format": "uuid"
                                                                              },
                                                                              "reviewVersion": {
                                                                                "type": "integer",
                                                                                "exclusiveMinimum": 0
                                                                              },
                                                                              "factVersion": {
                                                                                "type": "integer",
                                                                                "exclusiveMinimum": 0
                                                                              },
                                                                              "factStatement": {
                                                                                "type": "string",
                                                                                "maxLength": 2000
                                                                              },
                                                                              "factValidFrom": {
                                                                                "type": "string",
                                                                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                                              },
                                                                              "factValidUntil": {
                                                                                "anyOf": [
                                                                                  {
                                                                                    "type": "string",
                                                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                                                  },
                                                                                  {
                                                                                    "type": "null"
                                                                                  }
                                                                                ]
                                                                              },
                                                                              "factMarket": {
                                                                                "anyOf": [
                                                                                  {
                                                                                    "type": "string",
                                                                                    "maxLength": 80
                                                                                  },
                                                                                  {
                                                                                    "type": "null"
                                                                                  }
                                                                                ]
                                                                              },
                                                                              "factVariant": {
                                                                                "anyOf": [
                                                                                  {
                                                                                    "type": "string",
                                                                                    "maxLength": 120
                                                                                  },
                                                                                  {
                                                                                    "type": "null"
                                                                                  }
                                                                                ]
                                                                              },
                                                                              "quote": {
                                                                                "type": "string"
                                                                              },
                                                                              "verdict": {
                                                                                "type": "string",
                                                                                "enum": [
                                                                                  "supported",
                                                                                  "contradicted",
                                                                                  "insufficient_evidence",
                                                                                  "not_comparable"
                                                                                ]
                                                                              },
                                                                              "reviewedAt": {
                                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                                              },
                                                                              "promptId": {
                                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                                              },
                                                                              "promptRunId": {
                                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                                              },
                                                                              "promptLabel": {
                                                                                "type": "string",
                                                                                "maxLength": 500
                                                                              },
                                                                              "answerCompletedAt": {
                                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                                              },
                                                                              "comparisonScope": {
                                                                                "type": "string",
                                                                                "maxLength": 500
                                                                              },
                                                                              "comparisonVariant": {
                                                                                "anyOf": [
                                                                                  {
                                                                                    "type": "string",
                                                                                    "maxLength": 120
                                                                                  },
                                                                                  {
                                                                                    "type": "null"
                                                                                  }
                                                                                ]
                                                                              },
                                                                              "unitsAssessment": {
                                                                                "anyOf": [
                                                                                  {
                                                                                    "type": "string",
                                                                                    "maxLength": 500
                                                                                  },
                                                                                  {
                                                                                    "type": "null"
                                                                                  }
                                                                                ]
                                                                              },
                                                                              "sourceAssessment": {
                                                                                "anyOf": [
                                                                                  {
                                                                                    "type": "string",
                                                                                    "maxLength": 500
                                                                                  },
                                                                                  {
                                                                                    "type": "null"
                                                                                  }
                                                                                ]
                                                                              },
                                                                              "rationale": {
                                                                                "type": "string",
                                                                                "maxLength": 2000
                                                                              }
                                                                            },
                                                                            "required": [
                                                                              "reviewId",
                                                                              "reviewVersion",
                                                                              "factVersion",
                                                                              "quote",
                                                                              "verdict",
                                                                              "reviewedAt",
                                                                              "promptId",
                                                                              "promptRunId",
                                                                              "promptLabel",
                                                                              "answerCompletedAt"
                                                                            ],
                                                                            "additionalProperties": false
                                                                          },
                                                                          "minItems": 1,
                                                                          "maxItems": 5
                                                                        }
                                                                      },
                                                                      "required": [
                                                                        "state",
                                                                        "factId",
                                                                        "reviewedPassages",
                                                                        "contradictedPassages",
                                                                        "supportedPassages",
                                                                        "recentReviews"
                                                                      ],
                                                                      "additionalProperties": false
                                                                    }
                                                                  ]
                                                                }
                                                              },
                                                              "required": ["state", "completedAt"],
                                                              "additionalProperties": false
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "state": {
                                                                  "type": "string",
                                                                  "const": "no_comparable_cohort"
                                                                },
                                                                "completedAt": {
                                                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                                },
                                                                "completedPageUrl": {
                                                                  "type": "string",
                                                                  "format": "uri",
                                                                  "maxLength": 2048
                                                                },
                                                                "baselinePageUrl": {
                                                                  "type": "string",
                                                                  "format": "uri",
                                                                  "maxLength": 2048
                                                                },
                                                                "outcomeEventName": {
                                                                  "type": "string",
                                                                  "minLength": 1,
                                                                  "maxLength": 128
                                                                },
                                                                "claimReview": {
                                                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/recommendation/properties/followUp/anyOf/0/properties/claimReview"
                                                                }
                                                              },
                                                              "required": ["state", "completedAt"],
                                                              "additionalProperties": false
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "state": {
                                                                  "type": "string",
                                                                  "const": "observed"
                                                                },
                                                                "completedAt": {
                                                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                                },
                                                                "completedPageUrl": {
                                                                  "type": "string",
                                                                  "format": "uri",
                                                                  "maxLength": 2048
                                                                },
                                                                "baselinePageUrl": {
                                                                  "type": "string",
                                                                  "format": "uri",
                                                                  "maxLength": 2048
                                                                },
                                                                "outcomeEventName": {
                                                                  "type": "string",
                                                                  "minLength": 1,
                                                                  "maxLength": 128
                                                                },
                                                                "claimReview": {
                                                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/recommendation/properties/followUp/anyOf/0/properties/claimReview"
                                                                },
                                                                "matchedStrata": {
                                                                  "type": "integer",
                                                                  "exclusiveMinimum": 0
                                                                },
                                                                "baselineAnswers": {
                                                                  "type": "integer",
                                                                  "minimum": 0
                                                                },
                                                                "followUpAnswers": {
                                                                  "type": "integer",
                                                                  "minimum": 0
                                                                },
                                                                "baselineOwnAnswers": {
                                                                  "type": "integer",
                                                                  "minimum": 0
                                                                },
                                                                "followUpOwnAnswers": {
                                                                  "type": "integer",
                                                                  "minimum": 0
                                                                },
                                                                "pageCitations": {
                                                                  "type": "object",
                                                                  "properties": {
                                                                    "baselineAnswers": {
                                                                      "type": "integer",
                                                                      "minimum": 0
                                                                    },
                                                                    "followUpAnswers": {
                                                                      "type": "integer",
                                                                      "minimum": 0
                                                                    },
                                                                    "latestCitingAnswers": {
                                                                      "type": "array",
                                                                      "items": {
                                                                        "type": "object",
                                                                        "properties": {
                                                                          "promptId": {
                                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                                          },
                                                                          "promptRunId": {
                                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                                          },
                                                                          "promptLabel": {
                                                                            "type": "string",
                                                                            "maxLength": 500
                                                                          },
                                                                          "completedAt": {
                                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                                          }
                                                                        },
                                                                        "required": [
                                                                          "promptId",
                                                                          "promptRunId",
                                                                          "promptLabel",
                                                                          "completedAt"
                                                                        ],
                                                                        "additionalProperties": false
                                                                      },
                                                                      "maxItems": 5
                                                                    }
                                                                  },
                                                                  "required": [
                                                                    "baselineAnswers",
                                                                    "followUpAnswers",
                                                                    "latestCitingAnswers"
                                                                  ],
                                                                  "additionalProperties": false
                                                                },
                                                                "latestAnswers": {
                                                                  "type": "array",
                                                                  "items": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                      "promptId": {
                                                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                                      },
                                                                      "promptRunId": {
                                                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                                      },
                                                                      "promptLabel": {
                                                                        "type": "string",
                                                                        "maxLength": 500
                                                                      },
                                                                      "completedAt": {
                                                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                                      },
                                                                      "citedCompletedPage": {
                                                                        "type": "boolean"
                                                                      }
                                                                    },
                                                                    "required": [
                                                                      "promptId",
                                                                      "promptRunId",
                                                                      "promptLabel",
                                                                      "completedAt"
                                                                    ],
                                                                    "additionalProperties": false
                                                                  },
                                                                  "maxItems": 5
                                                                }
                                                              },
                                                              "required": [
                                                                "state",
                                                                "completedAt",
                                                                "matchedStrata",
                                                                "baselineAnswers",
                                                                "followUpAnswers",
                                                                "baselineOwnAnswers",
                                                                "followUpOwnAnswers",
                                                                "latestAnswers"
                                                              ],
                                                              "additionalProperties": false
                                                            }
                                                          ]
                                                        }
                                                      },
                                                      "required": [
                                                        "recommendationId",
                                                        "version",
                                                        "title",
                                                        "action",
                                                        "completedAt",
                                                        "workNote",
                                                        "followUp"
                                                      ],
                                                      "additionalProperties": false
                                                    },
                                                    "coverage": {
                                                      "type": "object",
                                                      "properties": {
                                                        "url": {
                                                          "type": "string",
                                                          "maxLength": 4096
                                                        },
                                                        "title": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "maxLength": 500
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "publisher": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "maxLength": 200
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "publishedOn": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "medium": {
                                                          "type": "string",
                                                          "enum": [
                                                            "article",
                                                            "interview",
                                                            "podcast",
                                                            "broadcast",
                                                            "other"
                                                          ]
                                                        },
                                                        "attribution": {
                                                          "type": "string",
                                                          "enum": [
                                                            "unclassified",
                                                            "our_team",
                                                            "external"
                                                          ]
                                                        },
                                                        "version": {
                                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/0/properties/promptRunId"
                                                        },
                                                        "answerCount": {
                                                          "type": "integer",
                                                          "minimum": 0
                                                        },
                                                        "firstObservedAt": {
                                                          "anyOf": [
                                                            {
                                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "lastObservedAt": {
                                                          "anyOf": [
                                                            {
                                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        }
                                                      },
                                                      "required": [
                                                        "url",
                                                        "title",
                                                        "publisher",
                                                        "publishedOn",
                                                        "medium",
                                                        "attribution",
                                                        "version",
                                                        "answerCount",
                                                        "firstObservedAt",
                                                        "lastObservedAt"
                                                      ],
                                                      "additionalProperties": false
                                                    },
                                                    "measurement": {
                                                      "type": "object",
                                                      "properties": {
                                                        "definitionVersion": {
                                                          "type": "string",
                                                          "enum": [
                                                            "coverage-observations-v1",
                                                            "coverage-observations-v2",
                                                            "coverage-observations-v3"
                                                          ]
                                                        },
                                                        "scope": {
                                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/source/anyOf/2/properties/scope"
                                                        },
                                                        "previousRange": {
                                                          "type": "object",
                                                          "properties": {
                                                            "startDate": {
                                                              "type": "string"
                                                            },
                                                            "endDate": {
                                                              "type": "string"
                                                            }
                                                          },
                                                          "required": ["startDate", "endDate"],
                                                          "additionalProperties": false
                                                        },
                                                        "current": {
                                                          "type": "object",
                                                          "properties": {
                                                            "answers": {
                                                              "type": "integer",
                                                              "minimum": 0
                                                            },
                                                            "assessed": {
                                                              "type": "integer",
                                                              "minimum": 0
                                                            },
                                                            "citing": {
                                                              "type": "integer",
                                                              "minimum": 0
                                                            },
                                                            "brandAssessed": {
                                                              "type": "integer",
                                                              "minimum": 0
                                                            },
                                                            "brandMentioned": {
                                                              "type": "integer",
                                                              "minimum": 0
                                                            },
                                                            "citationRate": {
                                                              "anyOf": [
                                                                {
                                                                  "type": "number",
                                                                  "minimum": 0,
                                                                  "maximum": 1
                                                                },
                                                                {
                                                                  "type": "null"
                                                                }
                                                              ]
                                                            },
                                                            "visibilityRate": {
                                                              "anyOf": [
                                                                {
                                                                  "type": "number",
                                                                  "minimum": 0,
                                                                  "maximum": 1
                                                                },
                                                                {
                                                                  "type": "null"
                                                                }
                                                              ]
                                                            }
                                                          },
                                                          "required": [
                                                            "answers",
                                                            "assessed",
                                                            "citing",
                                                            "brandAssessed",
                                                            "brandMentioned",
                                                            "citationRate",
                                                            "visibilityRate"
                                                          ],
                                                          "additionalProperties": false
                                                        },
                                                        "previous": {
                                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/measurement/properties/current"
                                                        },
                                                        "population": {
                                                          "type": "object",
                                                          "properties": {
                                                            "currentCells": {
                                                              "type": "number"
                                                            },
                                                            "previousCells": {
                                                              "type": "number"
                                                            },
                                                            "sharedCells": {
                                                              "type": "number"
                                                            },
                                                            "currentAnswers": {
                                                              "type": "number"
                                                            },
                                                            "previousAnswers": {
                                                              "type": "number"
                                                            }
                                                          },
                                                          "required": [
                                                            "currentCells",
                                                            "previousCells",
                                                            "sharedCells",
                                                            "currentAnswers",
                                                            "previousAnswers"
                                                          ],
                                                          "additionalProperties": false
                                                        },
                                                        "trend": {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "object",
                                                            "properties": {
                                                              "answers": {
                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/measurement/properties/current/properties/answers"
                                                              },
                                                              "assessed": {
                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/measurement/properties/current/properties/assessed"
                                                              },
                                                              "citing": {
                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/measurement/properties/current/properties/citing"
                                                              },
                                                              "brandAssessed": {
                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/measurement/properties/current/properties/brandAssessed"
                                                              },
                                                              "brandMentioned": {
                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/measurement/properties/current/properties/brandMentioned"
                                                              },
                                                              "citationRate": {
                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/measurement/properties/current/properties/citationRate"
                                                              },
                                                              "visibilityRate": {
                                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/measurement/properties/current/properties/visibilityRate"
                                                              },
                                                              "date": {
                                                                "type": "string"
                                                              },
                                                              "endDate": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "required": [
                                                              "answers",
                                                              "assessed",
                                                              "citing",
                                                              "brandAssessed",
                                                              "brandMentioned",
                                                              "citationRate",
                                                              "visibilityRate",
                                                              "date",
                                                              "endDate"
                                                            ],
                                                            "additionalProperties": false
                                                          },
                                                          "maxItems": 366
                                                        },
                                                        "previousTrend": {
                                                          "type": "array",
                                                          "items": {
                                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/measurement/properties/trend/items"
                                                          },
                                                          "maxItems": 366
                                                        }
                                                      },
                                                      "required": [
                                                        "definitionVersion",
                                                        "scope",
                                                        "previousRange",
                                                        "current",
                                                        "previous",
                                                        "population",
                                                        "trend",
                                                        "previousTrend"
                                                      ],
                                                      "additionalProperties": false
                                                    },
                                                    "sources": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "key": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 100
                                                          },
                                                          "url": {
                                                            "type": "string",
                                                            "maxLength": 4096
                                                          },
                                                          "title": {
                                                            "anyOf": [
                                                              {
                                                                "type": "string",
                                                                "maxLength": 1000
                                                              },
                                                              {
                                                                "type": "null"
                                                              }
                                                            ]
                                                          },
                                                          "kind": {
                                                            "type": "string",
                                                            "enum": ["citation", "link", "coverage"]
                                                          }
                                                        },
                                                        "required": ["key", "url", "title", "kind"],
                                                        "additionalProperties": false
                                                      },
                                                      "maxItems": 20
                                                    }
                                                  },
                                                  "required": [
                                                    "version",
                                                    "capturedAt",
                                                    "source",
                                                    "sources"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "savedAt": {
                                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding/anyOf/0/properties/evidence/properties/capturedAt"
                                                }
                                              },
                                              "required": ["id", "evidence", "savedAt"],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "title": {
                                          "type": "string",
                                          "maxLength": 200
                                        },
                                        "commentary": {
                                          "type": "string",
                                          "maxLength": 4000
                                        },
                                        "showSources": {
                                          "type": "boolean"
                                        },
                                        "showContext": {
                                          "type": "boolean"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "saved-finding"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "sentiment-text"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "presentation": {
                                          "type": "string",
                                          "enum": [
                                            "document",
                                            "assistant",
                                            "evidence",
                                            "comparison"
                                          ]
                                        },
                                        "chatTheme": {
                                          "type": "string",
                                          "enum": ["neutral", "chatgpt", "google", "claude"]
                                        },
                                        "chatThemeSource": {
                                          "type": "string",
                                          "enum": ["report", "custom"]
                                        },
                                        "chatColorMode": {
                                          "type": "string",
                                          "enum": ["light", "dark"]
                                        },
                                        "highlightStyle": {
                                          "type": "string",
                                          "enum": [
                                            "fill",
                                            "overview",
                                            "underline",
                                            "side-mark",
                                            "pattern"
                                          ]
                                        },
                                        "highlightPalette": {
                                          "type": "string",
                                          "enum": ["sentiment", "brand-ownership"]
                                        },
                                        "typographyScale": {
                                          "type": "string",
                                          "enum": ["compact", "regular", "large"]
                                        },
                                        "showMetadata": {
                                          "type": "boolean"
                                        },
                                        "pagingMode": {
                                          "type": "string",
                                          "enum": ["paged", "continuous", "comparison"]
                                        },
                                        "showLegend": {
                                          "type": "boolean"
                                        },
                                        "citationDisplay": {
                                          "type": "string",
                                          "enum": ["inline", "footnotes", "hidden"]
                                        },
                                        "permittedMetadata": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "enum": ["date", "region", "platform", "custom"]
                                          },
                                          "maxItems": 4
                                        },
                                        "maxLineWidth": {
                                          "anyOf": [
                                            {
                                              "type": "number",
                                              "minimum": 320,
                                              "maximum": 1200
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "showPrompt": {
                                          "type": "boolean"
                                        },
                                        "showAnnotationDetails": {
                                          "type": "boolean"
                                        },
                                        "internalScroll": {
                                          "type": "boolean"
                                        },
                                        "fieldBindings": {
                                          "type": "object",
                                          "properties": {
                                            "textFieldId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 256
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "highlightFieldId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 256
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "targetFieldId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 256
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "citationFieldId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 256
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "metadataFieldIds": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 256
                                              },
                                              "maxItems": 32
                                            }
                                          },
                                          "additionalProperties": false
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "sentiment-text"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "time-series-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "curve": {
                                          "type": "string",
                                          "enum": ["linear", "monotone"]
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "trackingContinuation": {
                                                  "type": "object",
                                                  "properties": {
                                                    "label": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/action/properties/label"
                                                    },
                                                    "destination": {
                                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/action/properties/destination"
                                                    },
                                                    "hint": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 240
                                                    },
                                                    "futureShare": {
                                                      "type": "number",
                                                      "minimum": 0.25,
                                                      "maximum": 0.7
                                                    }
                                                  },
                                                  "required": [
                                                    "label",
                                                    "destination",
                                                    "hint",
                                                    "futureShare"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "specVersion": {
                                                  "type": "number",
                                                  "const": 1
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "enum": [
                                                    "time_series",
                                                    "bar",
                                                    "area",
                                                    "combo",
                                                    "pie",
                                                    "scatter",
                                                    "histogram",
                                                    "bullet",
                                                    "treemap",
                                                    "funnel",
                                                    "waterfall",
                                                    "timeline",
                                                    "gauge",
                                                    "sankey",
                                                    "geo"
                                                  ]
                                                },
                                                "layout": {
                                                  "type": "object",
                                                  "properties": {
                                                    "orientation": {
                                                      "type": "string",
                                                      "enum": ["vertical", "horizontal"]
                                                    },
                                                    "stack": {
                                                      "type": "string",
                                                      "enum": ["none", "stacked", "percent"]
                                                    },
                                                    "missingValues": {
                                                      "type": "string",
                                                      "enum": ["gap", "zero", "connect"]
                                                    },
                                                    "barGap": {
                                                      "type": "number",
                                                      "minimum": 0,
                                                      "maximum": 100
                                                    },
                                                    "categoryGap": {
                                                      "type": "number",
                                                      "minimum": 0,
                                                      "maximum": 100
                                                    }
                                                  },
                                                  "required": [
                                                    "orientation",
                                                    "stack",
                                                    "missingValues"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "data": {
                                                  "type": "object",
                                                  "properties": {
                                                    "sourceId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 512
                                                    },
                                                    "dimensions": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 256
                                                          },
                                                          "channel": {
                                                            "type": "string",
                                                            "enum": [
                                                              "x",
                                                              "y",
                                                              "series",
                                                              "size",
                                                              "label",
                                                              "detail"
                                                            ]
                                                          },
                                                          "aggregation": {
                                                            "type": "string",
                                                            "enum": [
                                                              "none",
                                                              "sum",
                                                              "average",
                                                              "count",
                                                              "count_distinct",
                                                              "minimum",
                                                              "maximum"
                                                            ]
                                                          },
                                                          "axisId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          }
                                                        },
                                                        "required": [
                                                          "fieldId",
                                                          "channel",
                                                          "aggregation"
                                                        ],
                                                        "additionalProperties": false
                                                      },
                                                      "maxItems": 32
                                                    },
                                                    "measures": {
                                                      "type": "array",
                                                      "items": {
                                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0/properties/data/properties/dimensions/items"
                                                      },
                                                      "maxItems": 64
                                                    },
                                                    "series": {
                                                      "type": "array",
                                                      "items": {
                                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0/properties/data/properties/dimensions/items"
                                                      },
                                                      "maxItems": 32
                                                    },
                                                    "filters": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 256
                                                      },
                                                      "maxItems": 128
                                                    },
                                                    "sort": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "fieldId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 256
                                                          },
                                                          "direction": {
                                                            "type": "string",
                                                            "enum": ["asc", "desc"]
                                                          }
                                                        },
                                                        "required": ["fieldId", "direction"],
                                                        "additionalProperties": false
                                                      },
                                                      "maxItems": 32
                                                    },
                                                    "limit": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 100000
                                                    }
                                                  },
                                                  "required": [
                                                    "sourceId",
                                                    "dimensions",
                                                    "measures",
                                                    "series",
                                                    "filters",
                                                    "sort",
                                                    "limit"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "marks": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "id": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 128
                                                      },
                                                      "kind": {
                                                        "type": "string",
                                                        "enum": [
                                                          "line",
                                                          "area",
                                                          "bar",
                                                          "point",
                                                          "arc",
                                                          "rect",
                                                          "funnel",
                                                          "waterfall",
                                                          "timeline",
                                                          "gauge",
                                                          "sankey",
                                                          "geo"
                                                        ]
                                                      },
                                                      "fieldId": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 256
                                                      },
                                                      "axisId": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 128
                                                      },
                                                      "stackId": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 128
                                                      },
                                                      "label": {
                                                        "type": "string",
                                                        "maxLength": 512
                                                      },
                                                      "colour": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 128
                                                      },
                                                      "opacity": {
                                                        "type": "number",
                                                        "minimum": 0,
                                                        "maximum": 1
                                                      },
                                                      "strokeWidth": {
                                                        "type": "number",
                                                        "minimum": 0,
                                                        "maximum": 24
                                                      },
                                                      "strokeDash": {
                                                        "type": "string",
                                                        "enum": ["solid", "dashed", "dotted"]
                                                      },
                                                      "pointStyle": {
                                                        "type": "string",
                                                        "enum": [
                                                          "none",
                                                          "circle",
                                                          "square",
                                                          "diamond"
                                                        ]
                                                      },
                                                      "pointSize": {
                                                        "type": "number",
                                                        "minimum": 1,
                                                        "maximum": 48
                                                      },
                                                      "showValueLabels": {
                                                        "type": "boolean"
                                                      },
                                                      "curve": {
                                                        "type": "string",
                                                        "enum": ["linear", "monotone", "step"]
                                                      },
                                                      "gradient": {
                                                        "type": "object",
                                                        "properties": {
                                                          "startColour": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "endColour": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "startOpacity": {
                                                            "type": "number",
                                                            "minimum": 0,
                                                            "maximum": 1
                                                          },
                                                          "endOpacity": {
                                                            "type": "number",
                                                            "minimum": 0,
                                                            "maximum": 1
                                                          }
                                                        },
                                                        "required": [
                                                          "startColour",
                                                          "endColour",
                                                          "startOpacity",
                                                          "endOpacity"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    },
                                                    "required": ["id", "kind", "fieldId"],
                                                    "additionalProperties": false
                                                  },
                                                  "maxItems": 64
                                                },
                                                "scales": {
                                                  "type": "object",
                                                  "additionalProperties": {
                                                    "type": "object",
                                                    "properties": {
                                                      "id": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 128
                                                      },
                                                      "type": {
                                                        "type": "string",
                                                        "enum": [
                                                          "linear",
                                                          "time",
                                                          "category",
                                                          "log"
                                                        ]
                                                      },
                                                      "zero": {
                                                        "type": "boolean"
                                                      },
                                                      "domain": {
                                                        "anyOf": [
                                                          {
                                                            "type": "string",
                                                            "const": "auto"
                                                          },
                                                          {
                                                            "type": "array",
                                                            "minItems": 2,
                                                            "maxItems": 2,
                                                            "prefixItems": [
                                                              {
                                                                "type": "number"
                                                              },
                                                              {
                                                                "type": "number"
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      "clamp": {
                                                        "type": "boolean"
                                                      },
                                                      "reverse": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": ["id", "type", "zero", "domain"],
                                                    "additionalProperties": false
                                                  }
                                                },
                                                "axes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "properties": {
                                                      "id": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 128
                                                      },
                                                      "scaleId": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 128
                                                      },
                                                      "position": {
                                                        "type": "string",
                                                        "enum": ["top", "right", "bottom", "left"]
                                                      },
                                                      "title": {
                                                        "type": "string",
                                                        "maxLength": 512
                                                      },
                                                      "format": {
                                                        "type": "string",
                                                        "enum": [
                                                          "number",
                                                          "compact",
                                                          "percent",
                                                          "date"
                                                        ]
                                                      },
                                                      "labelStrategy": {
                                                        "type": "string",
                                                        "enum": ["horizontal", "rotate", "stagger"]
                                                      },
                                                      "visible": {
                                                        "type": "boolean"
                                                      },
                                                      "grid": {
                                                        "type": "boolean"
                                                      },
                                                      "minimum": {
                                                        "type": ["number", "null"]
                                                      },
                                                      "maximum": {
                                                        "type": ["number", "null"]
                                                      }
                                                    },
                                                    "required": ["id", "scaleId", "position"],
                                                    "additionalProperties": false
                                                  },
                                                  "maxItems": 16
                                                },
                                                "legend": {
                                                  "type": "object",
                                                  "properties": {
                                                    "visible": {
                                                      "type": "boolean"
                                                    },
                                                    "position": {
                                                      "type": "string",
                                                      "enum": ["top", "right", "bottom", "left"]
                                                    },
                                                    "alignment": {
                                                      "type": "string",
                                                      "enum": ["start", "center", "end"]
                                                    },
                                                    "overflow": {
                                                      "type": "string",
                                                      "enum": ["wrap", "scroll", "truncate"]
                                                    }
                                                  },
                                                  "required": ["visible", "position"],
                                                  "additionalProperties": false
                                                },
                                                "labels": {
                                                  "type": "object",
                                                  "properties": {
                                                    "visible": {
                                                      "type": "boolean"
                                                    },
                                                    "collision": {
                                                      "type": "string",
                                                      "enum": ["hide", "stagger", "outside"]
                                                    },
                                                    "position": {
                                                      "type": "string",
                                                      "enum": [
                                                        "auto",
                                                        "inside",
                                                        "outside",
                                                        "center"
                                                      ]
                                                    },
                                                    "format": {
                                                      "type": "string",
                                                      "enum": ["number", "compact", "percent"]
                                                    }
                                                  },
                                                  "required": ["visible", "collision"],
                                                  "additionalProperties": false
                                                },
                                                "tooltip": {
                                                  "type": "object",
                                                  "properties": {
                                                    "enabled": {
                                                      "type": "boolean"
                                                    },
                                                    "fields": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 256
                                                      },
                                                      "maxItems": 128
                                                    },
                                                    "showShare": {
                                                      "type": "boolean"
                                                    }
                                                  },
                                                  "required": ["enabled", "fields"],
                                                  "additionalProperties": false
                                                },
                                                "annotations": {
                                                  "type": "array",
                                                  "items": {
                                                    "anyOf": [
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "id": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "kind": {
                                                            "type": "string",
                                                            "const": "linear_regression"
                                                          },
                                                          "fieldId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 256
                                                          },
                                                          "axisId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "label": {
                                                            "type": "string",
                                                            "maxLength": 512
                                                          },
                                                          "colour": {
                                                            "type": "string",
                                                            "maxLength": 128
                                                          }
                                                        },
                                                        "required": ["id", "kind", "fieldId"],
                                                        "additionalProperties": false
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "id": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "kind": {
                                                            "type": "string",
                                                            "const": "moving_average"
                                                          },
                                                          "fieldId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 256
                                                          },
                                                          "axisId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "window": {
                                                            "type": "integer",
                                                            "minimum": 2,
                                                            "maximum": 365
                                                          },
                                                          "label": {
                                                            "type": "string",
                                                            "maxLength": 512
                                                          },
                                                          "colour": {
                                                            "type": "string",
                                                            "maxLength": 128
                                                          }
                                                        },
                                                        "required": [
                                                          "id",
                                                          "kind",
                                                          "fieldId",
                                                          "window"
                                                        ],
                                                        "additionalProperties": false
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "id": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "kind": {
                                                            "type": "string",
                                                            "const": "reference_line"
                                                          },
                                                          "fieldId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 256
                                                          },
                                                          "axisId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "value": {
                                                            "type": "number"
                                                          },
                                                          "label": {
                                                            "type": "string",
                                                            "maxLength": 512
                                                          },
                                                          "colour": {
                                                            "type": "string",
                                                            "maxLength": 128
                                                          }
                                                        },
                                                        "required": [
                                                          "id",
                                                          "kind",
                                                          "axisId",
                                                          "value"
                                                        ],
                                                        "additionalProperties": false
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "id": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "kind": {
                                                            "type": "string",
                                                            "const": "reference_band"
                                                          },
                                                          "fieldId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 256
                                                          },
                                                          "axisId": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          },
                                                          "from": {
                                                            "type": "number"
                                                          },
                                                          "to": {
                                                            "type": "number"
                                                          },
                                                          "label": {
                                                            "type": "string",
                                                            "maxLength": 512
                                                          },
                                                          "colour": {
                                                            "type": "string",
                                                            "maxLength": 128
                                                          },
                                                          "opacity": {
                                                            "type": "number",
                                                            "minimum": 0,
                                                            "maximum": 1
                                                          }
                                                        },
                                                        "required": [
                                                          "id",
                                                          "kind",
                                                          "axisId",
                                                          "from",
                                                          "to"
                                                        ],
                                                        "additionalProperties": false
                                                      }
                                                    ]
                                                  },
                                                  "maxItems": 32
                                                },
                                                "interactions": {
                                                  "type": "object",
                                                  "properties": {
                                                    "crossFilter": {
                                                      "type": "boolean"
                                                    },
                                                    "drill": {
                                                      "type": "boolean"
                                                    },
                                                    "zoom": {
                                                      "type": "boolean"
                                                    },
                                                    "brush": {
                                                      "type": "boolean"
                                                    },
                                                    "selectionFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "crossFilterTargetIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 256
                                                      },
                                                      "maxItems": 500
                                                    },
                                                    "navigation": {
                                                      "type": "object",
                                                      "properties": {
                                                        "kind": {
                                                          "type": "string",
                                                          "enum": [
                                                            "page",
                                                            "anchor",
                                                            "external_url",
                                                            "authenticated_route"
                                                          ]
                                                        },
                                                        "target": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 2048
                                                        },
                                                        "openInNewTab": {
                                                          "type": "boolean"
                                                        }
                                                      },
                                                      "required": [
                                                        "kind",
                                                        "target",
                                                        "openInNewTab"
                                                      ],
                                                      "additionalProperties": false
                                                    }
                                                  },
                                                  "required": ["crossFilter", "drill", "zoom"],
                                                  "additionalProperties": false
                                                },
                                                "viewer": {
                                                  "type": "object",
                                                  "properties": {
                                                    "allowExport": {
                                                      "type": "boolean"
                                                    }
                                                  },
                                                  "required": ["allowExport"],
                                                  "additionalProperties": false
                                                },
                                                "accessibility": {
                                                  "type": "object",
                                                  "properties": {
                                                    "label": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 1024
                                                    },
                                                    "summary": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 4096
                                                    },
                                                    "tableFallback": {
                                                      "type": "boolean"
                                                    }
                                                  },
                                                  "required": ["label", "summary", "tableFallback"],
                                                  "additionalProperties": false
                                                },
                                                "polar": {
                                                  "type": "object",
                                                  "properties": {
                                                    "innerRadiusRatio": {
                                                      "type": "number",
                                                      "minimum": 0,
                                                      "maximum": 0.9
                                                    },
                                                    "startAngle": {
                                                      "type": "number",
                                                      "minimum": -360,
                                                      "maximum": 360
                                                    },
                                                    "endAngle": {
                                                      "type": "number",
                                                      "minimum": -360,
                                                      "maximum": 360
                                                    },
                                                    "padAngle": {
                                                      "type": "number",
                                                      "minimum": 0,
                                                      "maximum": 20
                                                    },
                                                    "maxSlices": {
                                                      "type": "integer",
                                                      "minimum": 2,
                                                      "maximum": 50
                                                    },
                                                    "groupRemainder": {
                                                      "type": "boolean"
                                                    },
                                                    "centreMetric": {
                                                      "type": "string",
                                                      "enum": ["none", "leading_share", "total"]
                                                    }
                                                  },
                                                  "required": [
                                                    "innerRadiusRatio",
                                                    "startAngle",
                                                    "endAngle",
                                                    "padAngle",
                                                    "maxSlices",
                                                    "groupRemainder",
                                                    "centreMetric"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "histogram": {
                                                  "type": "object",
                                                  "properties": {
                                                    "bins": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string",
                                                          "const": "auto"
                                                        },
                                                        {
                                                          "type": "integer",
                                                          "minimum": 2,
                                                          "maximum": 100
                                                        }
                                                      ]
                                                    },
                                                    "cumulative": {
                                                      "type": "boolean"
                                                    }
                                                  },
                                                  "required": ["bins", "cumulative"],
                                                  "additionalProperties": false
                                                },
                                                "bullet": {
                                                  "type": "object",
                                                  "properties": {
                                                    "targetFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "rangeFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 256
                                                      },
                                                      "maxItems": 8
                                                    }
                                                  },
                                                  "required": ["targetFieldId", "rangeFieldIds"],
                                                  "additionalProperties": false
                                                },
                                                "treemap": {
                                                  "type": "object",
                                                  "properties": {
                                                    "hierarchyFieldIds": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "maxLength": 256
                                                      },
                                                      "minItems": 1,
                                                      "maxItems": 8
                                                    },
                                                    "valueFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "maxNodes": {
                                                      "type": "integer",
                                                      "minimum": 2,
                                                      "maximum": 200
                                                    },
                                                    "labelDepth": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 8
                                                    }
                                                  },
                                                  "required": [
                                                    "hierarchyFieldIds",
                                                    "valueFieldId",
                                                    "maxNodes",
                                                    "labelDepth"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "funnel": {
                                                  "type": "object",
                                                  "properties": {
                                                    "stageFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "valueFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "order": {
                                                      "type": "string",
                                                      "enum": ["source", "value_desc", "value_asc"]
                                                    },
                                                    "maxStages": {
                                                      "type": "integer",
                                                      "minimum": 2,
                                                      "maximum": 50
                                                    },
                                                    "showConversion": {
                                                      "type": "boolean"
                                                    }
                                                  },
                                                  "required": [
                                                    "stageFieldId",
                                                    "valueFieldId",
                                                    "order",
                                                    "maxStages",
                                                    "showConversion"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "waterfall": {
                                                  "type": "object",
                                                  "properties": {
                                                    "categoryFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "valueFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "totalMode": {
                                                      "type": "string",
                                                      "enum": ["none", "append", "last_item"]
                                                    },
                                                    "showConnectors": {
                                                      "type": "boolean"
                                                    },
                                                    "maxCategories": {
                                                      "type": "integer",
                                                      "minimum": 2,
                                                      "maximum": 100
                                                    }
                                                  },
                                                  "required": [
                                                    "categoryFieldId",
                                                    "valueFieldId",
                                                    "totalMode",
                                                    "showConnectors",
                                                    "maxCategories"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "timeline": {
                                                  "type": "object",
                                                  "properties": {
                                                    "labelFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "startFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "endFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "laneFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "sort": {
                                                      "type": "string",
                                                      "enum": ["start_asc", "start_desc", "source"]
                                                    },
                                                    "maxItems": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 500
                                                    }
                                                  },
                                                  "required": [
                                                    "labelFieldId",
                                                    "startFieldId",
                                                    "endFieldId",
                                                    "sort",
                                                    "maxItems"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "gauge": {
                                                  "type": "object",
                                                  "properties": {
                                                    "valueFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "minimum": {
                                                      "type": "number"
                                                    },
                                                    "maximum": {
                                                      "type": "number"
                                                    },
                                                    "target": {
                                                      "anyOf": [
                                                        {
                                                          "type": "number"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "ranges": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "from": {
                                                            "type": "number"
                                                          },
                                                          "to": {
                                                            "type": "number"
                                                          },
                                                          "colour": {
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "maxLength": 128
                                                          }
                                                        },
                                                        "required": ["from", "to", "colour"],
                                                        "additionalProperties": false
                                                      },
                                                      "maxItems": 8
                                                    }
                                                  },
                                                  "required": [
                                                    "valueFieldId",
                                                    "minimum",
                                                    "maximum",
                                                    "target",
                                                    "ranges"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "sankey": {
                                                  "type": "object",
                                                  "properties": {
                                                    "sourceFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "targetFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "valueFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "maxNodes": {
                                                      "type": "integer",
                                                      "minimum": 2,
                                                      "maximum": 100
                                                    },
                                                    "maxLinks": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 300
                                                    },
                                                    "cyclePolicy": {
                                                      "type": "string",
                                                      "const": "reject"
                                                    }
                                                  },
                                                  "required": [
                                                    "sourceFieldId",
                                                    "targetFieldId",
                                                    "valueFieldId",
                                                    "maxNodes",
                                                    "maxLinks",
                                                    "cyclePolicy"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "geo": {
                                                  "type": "object",
                                                  "properties": {
                                                    "variant": {
                                                      "type": "string",
                                                      "enum": [
                                                        "filled",
                                                        "bubble",
                                                        "heat",
                                                        "line",
                                                        "ranking"
                                                      ]
                                                    },
                                                    "geographyLevel": {
                                                      "type": "string",
                                                      "enum": ["country", "coordinates"]
                                                    },
                                                    "locationFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "latitudeFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "longitudeFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "originLatitudeFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "originLongitudeFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "destinationLatitudeFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "destinationLongitudeFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "valueFieldId": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 256
                                                    },
                                                    "maxFeatures": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 2000
                                                    },
                                                    "clusterPoints": {
                                                      "type": "boolean"
                                                    },
                                                    "projection": {
                                                      "type": "string",
                                                      "const": "equirectangular"
                                                    },
                                                    "unmatchedPolicy": {
                                                      "type": "string",
                                                      "const": "report"
                                                    }
                                                  },
                                                  "required": [
                                                    "variant",
                                                    "geographyLevel",
                                                    "valueFieldId",
                                                    "maxFeatures",
                                                    "clusterPoints",
                                                    "projection",
                                                    "unmatchedPolicy"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              "required": [
                                                "specVersion",
                                                "type",
                                                "data",
                                                "marks",
                                                "scales",
                                                "axes",
                                                "legend",
                                                "labels",
                                                "tooltip",
                                                "annotations",
                                                "interactions",
                                                "accessibility"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "time-series-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "pie-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "donut": {
                                          "type": "boolean"
                                        },
                                        "showLeadingShare": {
                                          "type": "boolean"
                                        },
                                        "maxSlices": {
                                          "type": "integer",
                                          "minimum": 2,
                                          "maximum": 12
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "pie-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "bar-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "bar-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "area-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "area-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "combo-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "combo-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "scatter-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "scatter-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "histogram-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "histogram-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "bullet-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "bullet-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "treemap-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "treemap-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "funnel-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "funnel-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "waterfall-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "waterfall-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "timeline-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "timeline-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "gauge-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "gauge-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "sankey-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "sankey-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "bubble-map-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "bubble-map-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "filled-map-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "filled-map-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "heat-map-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "heat-map-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "line-map-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "line-map-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "geo-chart"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "geo-chart"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "shape"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "shape": {
                                          "type": "string",
                                          "enum": [
                                            "rectangle",
                                            "rounded-rectangle",
                                            "ellipse",
                                            "pill",
                                            "icon"
                                          ]
                                        },
                                        "fill": {
                                          "anyOf": [
                                            {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/canvas/properties/background/anyOf/0"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "stroke": {
                                          "type": "object",
                                          "properties": {
                                            "width": {
                                              "type": "number",
                                              "minimum": 0,
                                              "maximum": 32
                                            },
                                            "style": {
                                              "type": "string",
                                              "enum": ["none", "solid", "dashed", "dotted"]
                                            },
                                            "color": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "required": ["width", "style", "color"],
                                          "additionalProperties": false
                                        },
                                        "radius": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1000
                                        },
                                        "iconPath": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 16384
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "decorative": {
                                          "type": "boolean"
                                        },
                                        "label": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 4096
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "shape"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "line-arrow"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "type": "string",
                                          "enum": ["solid", "dashed", "dotted"]
                                        },
                                        "thickness": {
                                          "type": "number",
                                          "minimum": 0.5,
                                          "maximum": 32
                                        },
                                        "color": {
                                          "type": "string",
                                          "maxLength": 128
                                        },
                                        "opacity": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "startCap": {
                                          "type": "string",
                                          "enum": ["butt", "round", "square", "arrow"]
                                        },
                                        "endCap": {
                                          "type": "string",
                                          "enum": ["butt", "round", "square", "arrow"]
                                        },
                                        "decorative": {
                                          "type": "boolean"
                                        },
                                        "label": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 4096
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "line-arrow"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "container"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "layout": {
                                          "type": "string",
                                          "enum": ["free", "stack", "grid", "wrap"]
                                        },
                                        "childIds": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 256
                                          },
                                          "maxItems": 250
                                        },
                                        "padding": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "gap": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "columns": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "clip": {
                                          "type": "boolean"
                                        },
                                        "groupRole": {
                                          "type": "string",
                                          "enum": ["group", "region", "none"]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "container"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "safe-embed"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "provider": {
                                          "type": "string",
                                          "enum": [
                                            "looker-studio",
                                            "youtube",
                                            "vimeo",
                                            "figma",
                                            "first-party"
                                          ]
                                        },
                                        "url": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 16384
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "title": {
                                          "type": "string",
                                          "maxLength": 4096
                                        },
                                        "sizing": {
                                          "type": "string",
                                          "enum": ["fixed", "responsive"]
                                        },
                                        "aspectRatio": {
                                          "anyOf": [
                                            {
                                              "type": "number",
                                              "exclusiveMinimum": 0,
                                              "maximum": 20
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "interactive": {
                                          "type": "boolean"
                                        },
                                        "allowFullscreen": {
                                          "type": "boolean"
                                        },
                                        "publicationPolicy": {
                                          "type": "string",
                                          "enum": ["allow_public", "private_only"]
                                        },
                                        "printFallback": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "kind": {
                                                  "type": "string",
                                                  "const": "text"
                                                },
                                                "text": {
                                                  "type": "string",
                                                  "maxLength": 16384
                                                }
                                              },
                                              "required": ["kind", "text"],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "kind": {
                                                  "type": "string",
                                                  "const": "asset"
                                                },
                                                "assetId": {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 256
                                                },
                                                "filePath": {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 16384
                                                },
                                                "alt": {
                                                  "type": "string",
                                                  "maxLength": 4096
                                                }
                                              },
                                              "required": ["kind", "assetId"],
                                              "additionalProperties": false
                                            }
                                          ]
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "type": "object",
                                  "properties": {
                                    "sourceType": {
                                      "type": "string",
                                      "const": "safe-embed"
                                    },
                                    "groupId": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy/properties/groupId"
                                    }
                                  },
                                  "required": ["sourceType", "groupId"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["content", "settings", "legacy"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "type": {
                              "type": "string",
                              "const": "layout-group"
                            },
                            "elementVersion": {
                              "type": "number",
                              "const": 1
                            },
                            "pageId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "parentId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "hidden": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                            },
                            "locked": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                            },
                            "fixedPlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                            },
                            "responsivePlacement": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "group"
                                },
                                "legacyGroupId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                }
                              },
                              "required": ["kind", "legacyGroupId"],
                              "additionalProperties": false
                            },
                            "dataBinding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties"
                            },
                            "interactions": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                            },
                            "accessibility": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "elementVersion",
                            "pageId",
                            "parentId",
                            "name",
                            "hidden",
                            "locked",
                            "config",
                            "style",
                            "interactions",
                            "accessibility"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "patch_element"
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "value": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                        },
                        "pageId": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                        },
                        "parentId": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/parentId"
                        },
                        "hidden": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/hidden"
                        },
                        "locked": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/locked"
                        },
                        "fixedPlacement": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/fixedPlacement"
                        },
                        "responsivePlacement": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/responsivePlacement"
                        },
                        "dataBinding": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/dataBinding"
                        },
                        "style": {
                          "type": "object",
                          "properties": {
                            "surfaceMode": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/surfaceMode"
                            },
                            "surfaceOpacity": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/surfaceOpacity"
                            },
                            "structureRole": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/structureRole"
                            },
                            "variantId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/variantId"
                            },
                            "designOverrides": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/designOverrides"
                            },
                            "opacity": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/opacity"
                            },
                            "background": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/background"
                            },
                            "border": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/border"
                            },
                            "radius": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/radius"
                            },
                            "shadow": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/shadow"
                            },
                            "padding": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/padding"
                            },
                            "overflow": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/overflow"
                            },
                            "density": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/density"
                            },
                            "typography": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/families/additionalProperties/properties/typography"
                            }
                          },
                          "additionalProperties": false
                        },
                        "interactions": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/interactions"
                        },
                        "accessibility": {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/accessibility"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": ["kind", "id", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "patch_element_config"
                    },
                    "id": {
                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/7/properties/id"
                    },
                    "change": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "logo"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "logoId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/logoId"
                                        },
                                        "assetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/assetId"
                                        },
                                        "filePath": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/filePath"
                                        },
                                        "pinToHeader": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/pinToHeader"
                                        },
                                        "maxWidth": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/maxWidth"
                                        },
                                        "alignment": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/alignment"
                                        },
                                        "background": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/background"
                                        },
                                        "src": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/src"
                                        },
                                        "variant": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/variant"
                                        },
                                        "fit": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/fit"
                                        },
                                        "focalPoint": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/focalPoint"
                                        },
                                        "link": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/link"
                                        },
                                        "label": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/label"
                                        },
                                        "decorative": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/decorative"
                                        },
                                        "padding": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/padding"
                                        },
                                        "originalWidth": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/originalWidth"
                                        },
                                        "originalHeight": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/originalHeight"
                                        },
                                        "health": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/settings/anyOf/0/properties/health"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "logoId",
                                  "assetId",
                                  "filePath",
                                  "pinToHeader",
                                  "maxWidth",
                                  "alignment",
                                  "background",
                                  "src",
                                  "variant",
                                  "fit",
                                  "focalPoint",
                                  "link",
                                  "label",
                                  "decorative",
                                  "padding",
                                  "originalWidth",
                                  "originalHeight",
                                  "health"
                                ]
                              },
                              "maxItems": 18
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "text"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "typographySource": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/typographySource"
                                        },
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "document": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/document"
                                        },
                                        "serializedState": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/serializedState"
                                        },
                                        "content": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/content"
                                        },
                                        "align": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/align"
                                        },
                                        "size": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/size"
                                        },
                                        "tone": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/tone"
                                        },
                                        "textStyle": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/textStyle"
                                        },
                                        "fontFamily": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/fontFamily"
                                        },
                                        "fontSize": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/fontSize",
                                          "description": "Authored CSS pixels, from 6px to 240px, with at most two decimal places."
                                        },
                                        "mode": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/mode"
                                        },
                                        "autoHeight": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/autoHeight"
                                        },
                                        "columns": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/columns"
                                        },
                                        "columnGap": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/columnGap"
                                        },
                                        "language": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/language"
                                        },
                                        "direction": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/direction"
                                        },
                                        "verticalAlign": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/verticalAlign"
                                        },
                                        "altDescription": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/altDescription"
                                        },
                                        "tokens": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/tokens"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "typographySource",
                                  "datasetId",
                                  "viewSpec",
                                  "document",
                                  "serializedState",
                                  "content",
                                  "align",
                                  "size",
                                  "tone",
                                  "textStyle",
                                  "fontFamily",
                                  "fontSize",
                                  "mode",
                                  "autoHeight",
                                  "columns",
                                  "columnGap",
                                  "language",
                                  "direction",
                                  "verticalAlign",
                                  "altDescription",
                                  "tokens"
                                ]
                              },
                              "maxItems": 21
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "date-range-control"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "controlId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/2/properties/config/properties/settings/anyOf/0/properties/controlId"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/2/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["controlId"]
                              },
                              "maxItems": 1
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "report-control"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "controlId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/3/properties/config/properties/settings/anyOf/0/properties/controlId"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/3/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["controlId"]
                              },
                              "maxItems": 1
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "divider"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "orientation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/orientation"
                                        },
                                        "variant": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/variant"
                                        },
                                        "thickness": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/thickness"
                                        },
                                        "color": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/color"
                                        },
                                        "paint": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/paint"
                                        },
                                        "label": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/label"
                                        },
                                        "labelPosition": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/labelPosition"
                                        },
                                        "labelGap": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/labelGap"
                                        },
                                        "labelBackground": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/labelBackground"
                                        },
                                        "labelColor": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/labelColor"
                                        },
                                        "insetStart": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/insetStart"
                                        },
                                        "insetEnd": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/insetEnd"
                                        },
                                        "opacity": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/opacity"
                                        },
                                        "startCap": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/startCap"
                                        },
                                        "endCap": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/endCap"
                                        },
                                        "decorative": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/settings/anyOf/0/properties/decorative"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/4/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "orientation",
                                  "variant",
                                  "thickness",
                                  "color",
                                  "paint",
                                  "label",
                                  "labelPosition",
                                  "labelGap",
                                  "labelBackground",
                                  "labelColor",
                                  "insetStart",
                                  "insetEnd",
                                  "opacity",
                                  "startCap",
                                  "endCap",
                                  "decorative"
                                ]
                              },
                              "maxItems": 16
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "callout"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "variant": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/variant"
                                        },
                                        "purpose": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/purpose"
                                        },
                                        "title": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/title"
                                        },
                                        "body": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/body"
                                        },
                                        "titleDocument": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/document"
                                        },
                                        "bodyDocument": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/document"
                                        },
                                        "compact": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/compact"
                                        },
                                        "icon": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/icon"
                                        },
                                        "iconPosition": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/iconPosition"
                                        },
                                        "number": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/number"
                                        },
                                        "tokens": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/tokens"
                                        },
                                        "link": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/link"
                                        },
                                        "linkLabel": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/linkLabel"
                                        },
                                        "action": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/action"
                                        },
                                        "accentColor": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/settings/anyOf/0/properties/accentColor"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/5/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "datasetId",
                                  "viewSpec",
                                  "variant",
                                  "purpose",
                                  "title",
                                  "body",
                                  "titleDocument",
                                  "bodyDocument",
                                  "compact",
                                  "icon",
                                  "iconPosition",
                                  "number",
                                  "tokens",
                                  "link",
                                  "linkLabel",
                                  "action",
                                  "accentColor"
                                ]
                              },
                              "maxItems": 17
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "image"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "assetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/assetId"
                                        },
                                        "imageUrl": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/imageUrl"
                                        },
                                        "filePath": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/filePath"
                                        },
                                        "alt": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/alt"
                                        },
                                        "fit": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/fit"
                                        },
                                        "animation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/animation"
                                        },
                                        "focalPoint": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/focalPoint"
                                        },
                                        "crop": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/crop"
                                        },
                                        "background": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/background"
                                        },
                                        "rounded": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/rounded"
                                        },
                                        "radius": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/radius"
                                        },
                                        "opacity": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/opacity"
                                        },
                                        "caption": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/caption"
                                        },
                                        "decorative": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/decorative"
                                        },
                                        "link": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/link"
                                        },
                                        "mask": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/mask"
                                        },
                                        "originalWidth": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/originalWidth"
                                        },
                                        "originalHeight": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/originalHeight"
                                        },
                                        "health": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/settings/anyOf/0/properties/health"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/6/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "assetId",
                                  "imageUrl",
                                  "filePath",
                                  "alt",
                                  "fit",
                                  "animation",
                                  "focalPoint",
                                  "crop",
                                  "background",
                                  "rounded",
                                  "radius",
                                  "opacity",
                                  "caption",
                                  "decorative",
                                  "link",
                                  "mask",
                                  "originalWidth",
                                  "originalHeight",
                                  "health"
                                ]
                              },
                              "maxItems": 19
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "metric"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "label": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/7/properties/config/properties/settings/anyOf/0/properties/label"
                                        },
                                        "value": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/7/properties/config/properties/settings/anyOf/0/properties/value"
                                        },
                                        "change": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/7/properties/config/properties/settings/anyOf/0/properties/change"
                                        },
                                        "description": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/7/properties/config/properties/settings/anyOf/0/properties/description"
                                        },
                                        "tone": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/7/properties/config/properties/settings/anyOf/0/properties/tone"
                                        },
                                        "layout": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/7/properties/config/properties/settings/anyOf/0/properties/layout"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/7/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "label",
                                  "value",
                                  "change",
                                  "description",
                                  "tone",
                                  "layout"
                                ]
                              },
                              "maxItems": 6
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "kpi-strip"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "showProportion": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showProportion"
                                        },
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "presentation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/presentation"
                                        },
                                        "valueFirst": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/valueFirst"
                                        },
                                        "deltaDisplay": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/deltaDisplay"
                                        },
                                        "semanticDirection": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/semanticDirection"
                                        },
                                        "showPreviousValue": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showPreviousValue"
                                        },
                                        "comparisonLabel": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/comparisonLabel"
                                        },
                                        "showSparkline": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showSparkline"
                                        },
                                        "sparklineStyle": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/sparklineStyle"
                                        },
                                        "showAttribution": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showAttribution"
                                        },
                                        "columns": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/columns"
                                        },
                                        "gap": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/gap"
                                        },
                                        "separators": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/separators"
                                        },
                                        "metricDisplayOverrides": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/metricDisplayOverrides"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "showProportion",
                                  "datasetId",
                                  "viewSpec",
                                  "presentation",
                                  "valueFirst",
                                  "deltaDisplay",
                                  "semanticDirection",
                                  "showPreviousValue",
                                  "comparisonLabel",
                                  "showSparkline",
                                  "sparklineStyle",
                                  "showAttribution",
                                  "columns",
                                  "gap",
                                  "separators",
                                  "metricDisplayOverrides"
                                ]
                              },
                              "maxItems": 16
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "scorecard"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "showProportion": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showProportion"
                                        },
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "presentation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/presentation"
                                        },
                                        "valueFirst": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/valueFirst"
                                        },
                                        "deltaDisplay": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/deltaDisplay"
                                        },
                                        "semanticDirection": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/semanticDirection"
                                        },
                                        "showPreviousValue": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showPreviousValue"
                                        },
                                        "comparisonLabel": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/comparisonLabel"
                                        },
                                        "showSparkline": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showSparkline"
                                        },
                                        "sparklineStyle": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/sparklineStyle"
                                        },
                                        "showAttribution": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showAttribution"
                                        },
                                        "metricFieldId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/metricFieldId"
                                        },
                                        "secondaryMetricFieldId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/secondaryMetricFieldId"
                                        },
                                        "label": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/label"
                                        },
                                        "prefix": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/prefix"
                                        },
                                        "suffix": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/suffix"
                                        },
                                        "target": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/metricDisplayOverrides/additionalProperties/properties/target"
                                        },
                                        "conditionalRules": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/conditionalRules"
                                        },
                                        "showSparklinePoints": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/showSparklinePoints"
                                        },
                                        "sparklineColor": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/sparklineColor"
                                        },
                                        "showAnnotation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/settings/anyOf/0/properties/showAnnotation"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/9/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "showProportion",
                                  "datasetId",
                                  "viewSpec",
                                  "presentation",
                                  "valueFirst",
                                  "deltaDisplay",
                                  "semanticDirection",
                                  "showPreviousValue",
                                  "comparisonLabel",
                                  "showSparkline",
                                  "sparklineStyle",
                                  "showAttribution",
                                  "metricFieldId",
                                  "secondaryMetricFieldId",
                                  "label",
                                  "prefix",
                                  "suffix",
                                  "target",
                                  "conditionalRules",
                                  "showSparklinePoints",
                                  "sparklineColor",
                                  "showAnnotation"
                                ]
                              },
                              "maxItems": 22
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "scorecard-group"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "emphasizeFirst": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/10/properties/config/properties/settings/anyOf/0/properties/emphasizeFirst"
                                        },
                                        "showProportion": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showProportion"
                                        },
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/10/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "presentation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/presentation"
                                        },
                                        "valueFirst": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/valueFirst"
                                        },
                                        "deltaDisplay": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/deltaDisplay"
                                        },
                                        "semanticDirection": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/semanticDirection"
                                        },
                                        "showPreviousValue": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showPreviousValue"
                                        },
                                        "comparisonLabel": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/comparisonLabel"
                                        },
                                        "showSparkline": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showSparkline"
                                        },
                                        "sparklineStyle": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/sparklineStyle"
                                        },
                                        "showAttribution": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/8/properties/config/properties/settings/anyOf/0/properties/showAttribution"
                                        },
                                        "columns": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/10/properties/config/properties/settings/anyOf/0/properties/columns"
                                        },
                                        "gap": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/10/properties/config/properties/settings/anyOf/0/properties/gap"
                                        },
                                        "separators": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/10/properties/config/properties/settings/anyOf/0/properties/separators"
                                        },
                                        "metricDisplayOverrides": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/10/properties/config/properties/settings/anyOf/0/properties/metricDisplayOverrides"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/10/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "emphasizeFirst",
                                  "showProportion",
                                  "datasetId",
                                  "viewSpec",
                                  "presentation",
                                  "valueFirst",
                                  "deltaDisplay",
                                  "semanticDirection",
                                  "showPreviousValue",
                                  "comparisonLabel",
                                  "showSparkline",
                                  "sparklineStyle",
                                  "showAttribution",
                                  "columns",
                                  "gap",
                                  "separators",
                                  "metricDisplayOverrides"
                                ]
                              },
                              "maxItems": 17
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "dense-table"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "presentation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/presentation"
                                        },
                                        "actionList": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/actionList"
                                        },
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "preset": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/preset"
                                        },
                                        "style": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/style"
                                        },
                                        "rowLimit": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/rowLimit"
                                        },
                                        "defaultSearch": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/defaultSearch"
                                        },
                                        "viewerCanSearch": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/viewerCanSearch"
                                        },
                                        "authorDefaults": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/authorDefaults"
                                        },
                                        "viewerPolicy": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/viewerPolicy"
                                        },
                                        "columnDisplayOverrides": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/columnDisplayOverrides"
                                        },
                                        "totalsRow": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/totalsRow"
                                        },
                                        "comparison": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/comparison"
                                        },
                                        "groupBy": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/groupBy"
                                        },
                                        "rowAction": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/rowAction"
                                        },
                                        "pagingMode": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/pagingMode"
                                        },
                                        "rowIdentityFieldIds": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/rowIdentityFieldIds"
                                        },
                                        "virtualRowHeight": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/settings/anyOf/0/properties/virtualRowHeight"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/11/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "presentation",
                                  "actionList",
                                  "datasetId",
                                  "viewSpec",
                                  "preset",
                                  "style",
                                  "rowLimit",
                                  "defaultSearch",
                                  "viewerCanSearch",
                                  "authorDefaults",
                                  "viewerPolicy",
                                  "columnDisplayOverrides",
                                  "totalsRow",
                                  "comparison",
                                  "groupBy",
                                  "rowAction",
                                  "pagingMode",
                                  "rowIdentityFieldIds",
                                  "virtualRowHeight"
                                ]
                              },
                              "maxItems": 19
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "pivot-table"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/12/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "pivotSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/12/properties/config/properties/settings/anyOf/0/properties/pivotSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/12/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "pivotSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "document-viewer"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "mode": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/mode"
                                        },
                                        "showTableOfContents": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/showTableOfContents"
                                        },
                                        "columns": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/columns"
                                        },
                                        "maxLineWidth": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/maxLineWidth"
                                        },
                                        "internalScroll": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/internalScroll"
                                        },
                                        "allowCopy": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/allowCopy"
                                        },
                                        "showMetadata": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/showMetadata"
                                        },
                                        "showCitations": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/showCitations"
                                        },
                                        "printContinuation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/settings/anyOf/0/properties/printContinuation"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/13/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "datasetId",
                                  "viewSpec",
                                  "mode",
                                  "showTableOfContents",
                                  "columns",
                                  "maxLineWidth",
                                  "internalScroll",
                                  "allowCopy",
                                  "showMetadata",
                                  "showCitations",
                                  "printContinuation"
                                ]
                              },
                              "maxItems": 11
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "saved-finding"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "finding": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/finding"
                                        },
                                        "title": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/title"
                                        },
                                        "commentary": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/commentary"
                                        },
                                        "showSources": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/showSources"
                                        },
                                        "showContext": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/settings/anyOf/0/properties/showContext"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/14/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "finding",
                                  "title",
                                  "commentary",
                                  "showSources",
                                  "showContext"
                                ]
                              },
                              "maxItems": 5
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "sentiment-text"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "presentation": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/presentation"
                                        },
                                        "chatTheme": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/chatTheme"
                                        },
                                        "chatThemeSource": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/chatThemeSource"
                                        },
                                        "chatColorMode": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/chatColorMode"
                                        },
                                        "highlightStyle": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/highlightStyle"
                                        },
                                        "highlightPalette": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/highlightPalette"
                                        },
                                        "typographyScale": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/typographyScale"
                                        },
                                        "showMetadata": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/showMetadata"
                                        },
                                        "pagingMode": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/pagingMode"
                                        },
                                        "showLegend": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/showLegend"
                                        },
                                        "citationDisplay": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/citationDisplay"
                                        },
                                        "permittedMetadata": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/permittedMetadata"
                                        },
                                        "maxLineWidth": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/maxLineWidth"
                                        },
                                        "showPrompt": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/showPrompt"
                                        },
                                        "showAnnotationDetails": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/showAnnotationDetails"
                                        },
                                        "internalScroll": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/internalScroll"
                                        },
                                        "fieldBindings": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/settings/anyOf/0/properties/fieldBindings"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/15/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "datasetId",
                                  "viewSpec",
                                  "presentation",
                                  "chatTheme",
                                  "chatThemeSource",
                                  "chatColorMode",
                                  "highlightStyle",
                                  "highlightPalette",
                                  "typographyScale",
                                  "showMetadata",
                                  "pagingMode",
                                  "showLegend",
                                  "citationDisplay",
                                  "permittedMetadata",
                                  "maxLineWidth",
                                  "showPrompt",
                                  "showAnnotationDetails",
                                  "internalScroll",
                                  "fieldBindings"
                                ]
                              },
                              "maxItems": 19
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "time-series-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "curve": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/curve"
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/16/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "curve", "visualizationSpec"]
                              },
                              "maxItems": 4
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "pie-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/17/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/17/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        },
                                        "donut": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/17/properties/config/properties/settings/anyOf/0/properties/donut"
                                        },
                                        "showLeadingShare": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/17/properties/config/properties/settings/anyOf/0/properties/showLeadingShare"
                                        },
                                        "maxSlices": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/17/properties/config/properties/settings/anyOf/0/properties/maxSlices"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/17/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "datasetId",
                                  "viewSpec",
                                  "visualizationSpec",
                                  "donut",
                                  "showLeadingShare",
                                  "maxSlices"
                                ]
                              },
                              "maxItems": 6
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "bar-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/18/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/18/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/18/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "area-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/19/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/19/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/19/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "combo-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/20/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/20/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/20/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "scatter-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/21/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/21/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/21/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "histogram-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/22/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/22/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/22/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "bullet-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/23/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Core charts use visualization_chart with dimensionFieldIds and measureFieldIds, or a valid matching explicit visualizationSpec. time_series_chart is for the separate time-series-chart component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/23/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/23/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "treemap-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/24/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/24/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/24/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "funnel-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/25/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/25/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/25/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "waterfall-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/26/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/26/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/26/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "timeline-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/27/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/27/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/27/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "gauge-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/28/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/28/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/28/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "sankey-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/29/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/29/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/29/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "bubble-map-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/30/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/30/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/30/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "filled-map-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/31/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/31/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/31/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "heat-map-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/32/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/32/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/32/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "line-map-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/33/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/33/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/33/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "geo-chart"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "datasetId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/datasetId"
                                        },
                                        "viewSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/34/properties/config/properties/settings/anyOf/0/properties/viewSpec",
                                          "description": "Use the native view intent for this component."
                                        },
                                        "visualizationSpec": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/34/properties/config/properties/settings/anyOf/0/properties/visualizationSpec"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/34/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": ["datasetId", "viewSpec", "visualizationSpec"]
                              },
                              "maxItems": 3
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "shape"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "shape": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/35/properties/config/properties/settings/anyOf/0/properties/shape"
                                        },
                                        "fill": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/35/properties/config/properties/settings/anyOf/0/properties/fill"
                                        },
                                        "stroke": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/35/properties/config/properties/settings/anyOf/0/properties/stroke"
                                        },
                                        "radius": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/35/properties/config/properties/settings/anyOf/0/properties/radius"
                                        },
                                        "iconPath": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/35/properties/config/properties/settings/anyOf/0/properties/iconPath"
                                        },
                                        "decorative": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/35/properties/config/properties/settings/anyOf/0/properties/decorative"
                                        },
                                        "label": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/35/properties/config/properties/settings/anyOf/0/properties/label"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/35/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "shape",
                                  "fill",
                                  "stroke",
                                  "radius",
                                  "iconPath",
                                  "decorative",
                                  "label"
                                ]
                              },
                              "maxItems": 7
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "line-arrow"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/36/properties/config/properties/settings/anyOf/0/properties/style"
                                        },
                                        "thickness": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/36/properties/config/properties/settings/anyOf/0/properties/thickness"
                                        },
                                        "color": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/36/properties/config/properties/settings/anyOf/0/properties/color"
                                        },
                                        "opacity": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/36/properties/config/properties/settings/anyOf/0/properties/opacity"
                                        },
                                        "startCap": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/36/properties/config/properties/settings/anyOf/0/properties/startCap"
                                        },
                                        "endCap": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/36/properties/config/properties/settings/anyOf/0/properties/endCap"
                                        },
                                        "decorative": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/36/properties/config/properties/settings/anyOf/0/properties/decorative"
                                        },
                                        "label": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/36/properties/config/properties/settings/anyOf/0/properties/label"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/36/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "style",
                                  "thickness",
                                  "color",
                                  "opacity",
                                  "startCap",
                                  "endCap",
                                  "decorative",
                                  "label"
                                ]
                              },
                              "maxItems": 8
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "container"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "layout": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/37/properties/config/properties/settings/anyOf/0/properties/layout"
                                        },
                                        "childIds": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/37/properties/config/properties/settings/anyOf/0/properties/childIds"
                                        },
                                        "padding": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/37/properties/config/properties/settings/anyOf/0/properties/padding"
                                        },
                                        "gap": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/37/properties/config/properties/settings/anyOf/0/properties/gap"
                                        },
                                        "columns": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/37/properties/config/properties/settings/anyOf/0/properties/columns"
                                        },
                                        "clip": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/37/properties/config/properties/settings/anyOf/0/properties/clip"
                                        },
                                        "groupRole": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/37/properties/config/properties/settings/anyOf/0/properties/groupRole"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/37/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "layout",
                                  "childIds",
                                  "padding",
                                  "gap",
                                  "columns",
                                  "clip",
                                  "groupRole"
                                ]
                              },
                              "maxItems": 7
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "safe-embed"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/0/properties/config/properties/content"
                                },
                                "settings": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "provider": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/settings/anyOf/0/properties/provider"
                                        },
                                        "url": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/settings/anyOf/0/properties/url"
                                        },
                                        "title": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/settings/anyOf/0/properties/title"
                                        },
                                        "sizing": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/settings/anyOf/0/properties/sizing"
                                        },
                                        "aspectRatio": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/settings/anyOf/0/properties/aspectRatio"
                                        },
                                        "interactive": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/settings/anyOf/0/properties/interactive"
                                        },
                                        "allowFullscreen": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/settings/anyOf/0/properties/allowFullscreen"
                                        },
                                        "publicationPolicy": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/settings/anyOf/0/properties/publicationPolicy"
                                        },
                                        "printFallback": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/settings/anyOf/0/properties/printFallback"
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "legacy": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/38/properties/config/properties/legacy"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "provider",
                                  "url",
                                  "title",
                                  "sizing",
                                  "aspectRatio",
                                  "interactive",
                                  "allowFullscreen",
                                  "publicationPolicy",
                                  "printFallback"
                                ]
                              },
                              "maxItems": 9
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "layout-group"
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/39/properties/config/properties/kind"
                                },
                                "legacyGroupId": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/39/properties/config/properties/legacyGroupId"
                                }
                              },
                              "additionalProperties": false
                            },
                            "unsetSettings": {
                              "type": "array",
                              "items": {
                                "not": {}
                              },
                              "maxItems": 0
                            }
                          },
                          "required": ["type", "value", "unsetSettings"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": ["kind", "id", "change"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/7/properties/id"
                    },
                    "slot": {
                      "type": "string",
                      "enum": ["document", "titleDocument", "bodyDocument"]
                    },
                    "start": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "deleteCount": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "blocks": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/6/properties/value/anyOf/1/properties/config/properties/settings/anyOf/0/properties/document/anyOf/0/properties/blocks/items"
                      },
                      "maxItems": 256
                    },
                    "kind": {
                      "type": "string",
                      "const": "splice_element_text"
                    }
                  },
                  "required": ["id", "slot", "start", "deleteCount", "blocks", "kind"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "edit_element"
                    },
                    "change": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/7"
                        },
                        {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/8"
                        },
                        {
                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/9"
                        }
                      ]
                    },
                    "composition": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "preserve"
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "pin"
                            },
                            "pins": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  },
                                  "strength": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "required"
                                          }
                                        },
                                        "required": ["kind"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "preference"
                                          },
                                          "priority": {
                                            "type": "string",
                                            "enum": ["strong", "medium", "weak"]
                                          },
                                          "weight": {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 1000
                                          }
                                        },
                                        "required": ["kind", "priority", "weight"],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "applicability": {
                                    "type": "object",
                                    "properties": {
                                      "layoutModes": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": ["fixed", "responsive"]
                                        },
                                        "minItems": 1,
                                        "maxItems": 2
                                      },
                                      "breakpoints": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": ["desktop", "tablet", "mobile"]
                                        },
                                        "minItems": 1,
                                        "maxItems": 3
                                      },
                                      "surfaces": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "private_view",
                                            "shared_projection",
                                            "shared_artifact",
                                            "print"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 4
                                      }
                                    },
                                    "required": ["layoutModes", "breakpoints", "surfaces"],
                                    "additionalProperties": false
                                  },
                                  "exceptionId": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "kind": {
                                    "type": "string",
                                    "const": "pin"
                                  },
                                  "entity": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "element"
                                          },
                                          "id": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                          }
                                        },
                                        "required": ["kind", "id"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "region"
                                          },
                                          "id": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                          }
                                        },
                                        "required": ["kind", "id"],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "values": {
                                    "type": "object",
                                    "properties": {
                                      "x": {
                                        "type": "number",
                                        "minimum": -20000,
                                        "maximum": 20000
                                      },
                                      "y": {
                                        "type": "number",
                                        "minimum": -20000,
                                        "maximum": 20000
                                      },
                                      "width": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 20000,
                                        "exclusiveMinimum": 0
                                      },
                                      "height": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 20000,
                                        "exclusiveMinimum": 0
                                      }
                                    },
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "strength",
                                  "applicability",
                                  "exceptionId",
                                  "kind",
                                  "entity",
                                  "values"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 6
                            }
                          },
                          "required": ["kind", "pins"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "detach"
                            },
                            "relationIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "maxItems": 4096
                            },
                            "regionIds": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/2/properties/relationIds/items"
                              },
                              "maxItems": 1000
                            },
                            "sharedInstanceIds": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/2/properties/relationIds/items"
                              },
                              "maxItems": 1000
                            }
                          },
                          "required": ["kind", "relationIds"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": ["kind", "change", "composition"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "remove_element"
                    },
                    "id": {
                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/4/properties/id"
                    }
                  },
                  "required": ["kind", "id"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "put_control"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "key": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "label": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 160
                            },
                            "scope": {
                              "type": "string",
                              "enum": ["global", "page", "container", "element"]
                            },
                            "target": {
                              "type": "object",
                              "properties": {
                                "pageId": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                                },
                                "containerId": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                                },
                                "elementId": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                                },
                                "targetIds": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                                  },
                                  "maxItems": 500
                                }
                              },
                              "additionalProperties": false
                            },
                            "kind": {
                              "type": "string",
                              "const": "date_range"
                            },
                            "defaults": {
                              "type": "object",
                              "properties": {
                                "authorDefault": {
                                  "type": "object",
                                  "properties": {
                                    "preset": {
                                      "type": "string",
                                      "enum": [
                                        "today",
                                        "yesterday",
                                        "last7",
                                        "last14",
                                        "last30",
                                        "last60",
                                        "last90",
                                        "thisWeek",
                                        "lastWeek",
                                        "thisMonth",
                                        "lastMonth",
                                        "thisQuarter",
                                        "lastQuarter",
                                        "thisYear",
                                        "lastYear",
                                        "fiscalYearToDate",
                                        "previousFiscalYear",
                                        "custom"
                                      ]
                                    },
                                    "startDate": {
                                      "type": "string",
                                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                    },
                                    "endDate": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/startDate"
                                    }
                                  },
                                  "required": ["preset", "startDate", "endDate"],
                                  "additionalProperties": false
                                },
                                "comparisonDefault": {
                                  "type": "object",
                                  "properties": {
                                    "mode": {
                                      "type": "string",
                                      "enum": ["none", "previous_period", "previous_year", "custom"]
                                    },
                                    "customRange": {
                                      "type": "object",
                                      "properties": {
                                        "preset": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/preset"
                                        },
                                        "startDate": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/startDate"
                                        },
                                        "endDate": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/startDate"
                                        }
                                      },
                                      "required": ["preset", "startDate", "endDate"],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": ["mode"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["authorDefault"],
                              "additionalProperties": false
                            },
                            "authorPolicy": {
                              "type": "object",
                              "properties": {
                                "bounds": {
                                  "type": "object",
                                  "properties": {
                                    "minDate": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/startDate"
                                    },
                                    "maxDate": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/startDate"
                                    }
                                  },
                                  "required": ["minDate", "maxDate"],
                                  "additionalProperties": false
                                },
                                "boundsMode": {
                                  "type": "string",
                                  "enum": ["manual", "available_data"]
                                },
                                "authorLocked": {
                                  "type": "boolean"
                                }
                              },
                              "required": ["bounds", "authorLocked"],
                              "additionalProperties": false
                            },
                            "viewerPolicy": {
                              "type": "object",
                              "properties": {
                                "viewerCanAdjust": {
                                  "type": "boolean"
                                },
                                "allowCustom": {
                                  "type": "boolean"
                                },
                                "allowedPresets": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "today",
                                      "yesterday",
                                      "last7",
                                      "last14",
                                      "last30",
                                      "last60",
                                      "last90",
                                      "thisWeek",
                                      "lastWeek",
                                      "thisMonth",
                                      "lastMonth",
                                      "thisQuarter",
                                      "lastQuarter",
                                      "thisYear",
                                      "lastYear",
                                      "fiscalYearToDate",
                                      "previousFiscalYear"
                                    ]
                                  },
                                  "maxItems": 32
                                }
                              },
                              "required": ["viewerCanAdjust", "allowCustom", "allowedPresets"],
                              "additionalProperties": false
                            },
                            "calendar": {
                              "type": "object",
                              "properties": {
                                "timezone": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "weekStartsOn": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 6
                                },
                                "fiscalYearStartMonth": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 12
                                },
                                "includeCurrentIncompleteDay": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "timezone",
                                "weekStartsOn",
                                "fiscalYearStartMonth",
                                "includeCurrentIncompleteDay"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "key",
                            "label",
                            "scope",
                            "kind",
                            "defaults",
                            "authorPolicy",
                            "viewerPolicy"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "key": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "label": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/label"
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/scope"
                            },
                            "target": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/target"
                            },
                            "kind": {
                              "type": "string",
                              "enum": ["dropdown", "fixed_list"]
                            },
                            "style": {
                              "type": "object",
                              "properties": {
                                "presentation": {
                                  "type": "string",
                                  "enum": ["compact", "standard"]
                                },
                                "labelPosition": {
                                  "type": "string",
                                  "enum": ["theme", "above", "inline", "hidden"]
                                },
                                "widthMode": {
                                  "type": "string",
                                  "enum": ["fill", "content"]
                                }
                              },
                              "required": ["presentation", "labelPosition", "widthMode"],
                              "additionalProperties": false
                            },
                            "fieldId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "optionSource": {
                              "type": "string",
                              "enum": ["field_values", "manual"]
                            },
                            "selection": {
                              "type": "string",
                              "enum": ["single", "multiple"]
                            },
                            "options": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 160
                                  }
                                },
                                "required": ["value", "label"],
                                "additionalProperties": false
                              },
                              "maxItems": 1000
                            },
                            "defaults": {
                              "type": "object",
                              "properties": {
                                "authorDefault": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/options/items/properties/value"
                                  },
                                  "maxItems": 100
                                }
                              },
                              "required": ["authorDefault"],
                              "additionalProperties": false
                            },
                            "authorPolicy": {
                              "type": "object",
                              "properties": {
                                "authorLocked": {
                                  "type": "boolean"
                                },
                                "maximumSelections": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "visibleOptionCount": {
                                  "type": "integer",
                                  "minimum": 2,
                                  "maximum": 24
                                },
                                "sort": {
                                  "type": "string",
                                  "enum": [
                                    "source",
                                    "label_asc",
                                    "label_desc",
                                    "value_asc",
                                    "value_desc"
                                  ]
                                }
                              },
                              "required": ["authorLocked", "maximumSelections", "sort"],
                              "additionalProperties": false
                            },
                            "viewerPolicy": {
                              "type": "object",
                              "properties": {
                                "viewerCanAdjust": {
                                  "type": "boolean"
                                },
                                "urlState": {
                                  "type": "string",
                                  "enum": ["disabled", "private_only", "public_safe"]
                                },
                                "publication": {
                                  "type": "string",
                                  "enum": ["enabled", "authenticated_only", "disabled"]
                                },
                                "allowAll": {
                                  "type": "boolean"
                                },
                                "allowNone": {
                                  "type": "boolean"
                                },
                                "searchable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "viewerCanAdjust",
                                "urlState",
                                "publication",
                                "allowAll",
                                "allowNone",
                                "searchable"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "key",
                            "label",
                            "scope",
                            "kind",
                            "style",
                            "fieldId",
                            "selection",
                            "options",
                            "defaults",
                            "authorPolicy",
                            "viewerPolicy"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "key": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "label": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/label"
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/scope"
                            },
                            "target": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/target"
                            },
                            "kind": {
                              "type": "string",
                              "const": "input_filter"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/style"
                            },
                            "fieldId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "match": {
                              "type": "string",
                              "enum": ["exact", "contains", "prefix", "suffix"]
                            },
                            "defaults": {
                              "type": "object",
                              "properties": {
                                "authorDefault": {
                                  "type": "string",
                                  "maxLength": 1000
                                }
                              },
                              "required": ["authorDefault"],
                              "additionalProperties": false
                            },
                            "authorPolicy": {
                              "type": "object",
                              "properties": {
                                "authorLocked": {
                                  "type": "boolean"
                                },
                                "minimumLength": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 1000
                                },
                                "maximumLength": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 1000
                                },
                                "caseSensitive": {
                                  "type": "boolean"
                                },
                                "debounceMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 2000
                                }
                              },
                              "required": [
                                "authorLocked",
                                "minimumLength",
                                "maximumLength",
                                "caseSensitive"
                              ],
                              "additionalProperties": false
                            },
                            "viewerPolicy": {
                              "type": "object",
                              "properties": {
                                "viewerCanAdjust": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/viewerCanAdjust"
                                },
                                "urlState": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/urlState"
                                },
                                "publication": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/publication"
                                }
                              },
                              "required": ["viewerCanAdjust", "urlState", "publication"],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "key",
                            "label",
                            "scope",
                            "kind",
                            "style",
                            "fieldId",
                            "match",
                            "defaults",
                            "authorPolicy",
                            "viewerPolicy"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "key": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "label": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/label"
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/scope"
                            },
                            "target": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/target"
                            },
                            "kind": {
                              "type": "string",
                              "const": "advanced_filter"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/style"
                            },
                            "exposedFieldIds": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                              },
                              "maxItems": 500
                            },
                            "fieldLabels": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 160
                              },
                              "propertyNames": {
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "defaults": {
                              "type": "object",
                              "properties": {
                                "authorDefault": {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "group"
                                    },
                                    "id": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                                    },
                                    "conjunction": {
                                      "type": "string",
                                      "enum": ["and", "or"]
                                    },
                                    "clauses": {
                                      "type": "array",
                                      "items": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "rule"
                                              },
                                              "id": {
                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                                              },
                                              "fieldId": {
                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                                              },
                                              "operator": {
                                                "type": "string",
                                                "enum": [
                                                  "equals",
                                                  "not_equals",
                                                  "contains",
                                                  "starts_with",
                                                  "ends_with",
                                                  "greater_than",
                                                  "greater_than_or_equal",
                                                  "less_than",
                                                  "less_than_or_equal",
                                                  "between",
                                                  "is_null",
                                                  "is_not_null"
                                                ]
                                              },
                                              "values": {
                                                "type": "array",
                                                "items": {
                                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/options/items/properties/value"
                                                },
                                                "maxItems": 100
                                              },
                                              "caseSensitive": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "kind",
                                              "id",
                                              "fieldId",
                                              "operator",
                                              "values",
                                              "caseSensitive"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/3/properties/defaults/properties/authorDefault"
                                          }
                                        ]
                                      },
                                      "maxItems": 100
                                    }
                                  },
                                  "required": ["kind", "id", "conjunction", "clauses"],
                                  "additionalProperties": false
                                }
                              },
                              "required": ["authorDefault"],
                              "additionalProperties": false
                            },
                            "authorPolicy": {
                              "type": "object",
                              "properties": {
                                "authorLocked": {
                                  "type": "boolean"
                                },
                                "maximumDepth": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 5
                                },
                                "maximumRules": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 100
                                },
                                "allowedOperators": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/3/properties/defaults/properties/authorDefault/properties/clauses/items/anyOf/0/properties/operator"
                                  },
                                  "minItems": 1,
                                  "maxItems": 20
                                }
                              },
                              "required": [
                                "authorLocked",
                                "maximumDepth",
                                "maximumRules",
                                "allowedOperators"
                              ],
                              "additionalProperties": false
                            },
                            "viewerPolicy": {
                              "type": "object",
                              "properties": {
                                "viewerCanAdjust": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/viewerCanAdjust"
                                },
                                "urlState": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/urlState"
                                },
                                "publication": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/publication"
                                }
                              },
                              "required": ["viewerCanAdjust", "urlState", "publication"],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "key",
                            "label",
                            "scope",
                            "kind",
                            "style",
                            "exposedFieldIds",
                            "defaults",
                            "authorPolicy",
                            "viewerPolicy"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "key": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "label": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/label"
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/scope"
                            },
                            "target": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/target"
                            },
                            "kind": {
                              "type": "string",
                              "const": "slider"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/style"
                            },
                            "fieldId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "dataType": {
                              "type": "string",
                              "enum": ["number", "date"]
                            },
                            "selectionMode": {
                              "type": "string",
                              "enum": ["single", "range"]
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 32
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "showTicks": {
                              "type": "boolean"
                            },
                            "defaults": {
                              "type": "object",
                              "properties": {
                                "authorDefault": {
                                  "type": "array",
                                  "minItems": 2,
                                  "maxItems": 2,
                                  "prefixItems": [
                                    {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/startDate"
                                        }
                                      ]
                                    },
                                    {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/startDate"
                                        }
                                      ]
                                    }
                                  ]
                                }
                              },
                              "required": ["authorDefault"],
                              "additionalProperties": false
                            },
                            "authorPolicy": {
                              "type": "object",
                              "properties": {
                                "authorLocked": {
                                  "type": "boolean"
                                },
                                "minimum": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/startDate"
                                    }
                                  ]
                                },
                                "maximum": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/defaults/properties/authorDefault/properties/startDate"
                                    }
                                  ]
                                },
                                "step": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                }
                              },
                              "required": ["authorLocked", "minimum", "maximum", "step"],
                              "additionalProperties": false
                            },
                            "viewerPolicy": {
                              "type": "object",
                              "properties": {
                                "viewerCanAdjust": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/viewerCanAdjust"
                                },
                                "urlState": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/urlState"
                                },
                                "publication": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/publication"
                                }
                              },
                              "required": ["viewerCanAdjust", "urlState", "publication"],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "key",
                            "label",
                            "scope",
                            "kind",
                            "style",
                            "fieldId",
                            "dataType",
                            "defaults",
                            "authorPolicy",
                            "viewerPolicy"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "key": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "label": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/label"
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/scope"
                            },
                            "target": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/target"
                            },
                            "kind": {
                              "type": "string",
                              "const": "parameter"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/style"
                            },
                            "parameterId": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "presentation": {
                              "type": "string",
                              "enum": ["select", "input", "toggle"]
                            },
                            "options": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/options/items"
                              },
                              "maxItems": 500
                            },
                            "defaults": {
                              "type": "object",
                              "properties": {
                                "authorDefault": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/options/items/properties/value"
                                }
                              },
                              "required": ["authorDefault"],
                              "additionalProperties": false
                            },
                            "authorPolicy": {
                              "type": "object",
                              "properties": {
                                "authorLocked": {
                                  "type": "boolean"
                                }
                              },
                              "required": ["authorLocked"],
                              "additionalProperties": false
                            },
                            "viewerPolicy": {
                              "type": "object",
                              "properties": {
                                "viewerCanAdjust": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/viewerCanAdjust"
                                },
                                "urlState": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/urlState"
                                },
                                "publication": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/publication"
                                }
                              },
                              "required": ["viewerCanAdjust", "urlState", "publication"],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "key",
                            "label",
                            "scope",
                            "kind",
                            "style",
                            "parameterId",
                            "presentation",
                            "options",
                            "defaults",
                            "authorPolicy",
                            "viewerPolicy"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "key": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                            },
                            "label": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/label"
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/scope"
                            },
                            "target": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/target"
                            },
                            "kind": {
                              "type": "string",
                              "const": "metric_selector"
                            },
                            "style": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/style"
                            },
                            "fieldIds": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                              },
                              "minItems": 1,
                              "maxItems": 100
                            },
                            "fieldLabels": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 160
                              },
                              "propertyNames": {
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "defaults": {
                              "type": "object",
                              "properties": {
                                "authorDefault": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/0/properties/id"
                                }
                              },
                              "required": ["authorDefault"],
                              "additionalProperties": false
                            },
                            "authorPolicy": {
                              "type": "object",
                              "properties": {
                                "authorLocked": {
                                  "type": "boolean"
                                }
                              },
                              "required": ["authorLocked"],
                              "additionalProperties": false
                            },
                            "viewerPolicy": {
                              "type": "object",
                              "properties": {
                                "viewerCanAdjust": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/viewerCanAdjust"
                                },
                                "urlState": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/urlState"
                                },
                                "publication": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/12/properties/value/anyOf/1/properties/viewerPolicy/properties/publication"
                                }
                              },
                              "required": ["viewerCanAdjust", "urlState", "publication"],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "key",
                            "label",
                            "scope",
                            "kind",
                            "style",
                            "fieldIds",
                            "defaults",
                            "authorPolicy",
                            "viewerPolicy"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "remove_control"
                    },
                    "id": {
                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/4/properties/id"
                    }
                  },
                  "required": ["kind", "id"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "put_semantic_definition"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                },
                                "version": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0
                                },
                                "name": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                                },
                                "dependencies": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                  },
                                  "maxItems": 500
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "calculated_field"
                                },
                                "definition": {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "number",
                                      "const": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 160
                                    },
                                    "description": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "outputType": {
                                      "type": "string",
                                      "enum": [
                                        "string",
                                        "boolean",
                                        "integer",
                                        "decimal",
                                        "percent",
                                        "currency",
                                        "date",
                                        "datetime",
                                        "duration",
                                        "url",
                                        "image_url",
                                        "country",
                                        "region",
                                        "city",
                                        "latitude",
                                        "longitude",
                                        "enum"
                                      ]
                                    },
                                    "percentageUnit": {
                                      "type": "string",
                                      "enum": ["fraction", "percentage_points"]
                                    },
                                    "aggregation": {
                                      "type": "string",
                                      "enum": [
                                        "none",
                                        "sum",
                                        "average",
                                        "weighted_average",
                                        "count",
                                        "count_distinct",
                                        "minimum",
                                        "maximum",
                                        "median"
                                      ]
                                    },
                                    "expression": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "literal"
                                            },
                                            "dataType": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/outputType"
                                            },
                                            "value": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "boolean"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": ["kind", "dataType", "value"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "field"
                                            },
                                            "fieldId": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "required": ["kind", "fieldId"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "parameter"
                                            },
                                            "parameterId": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "required": ["kind", "parameterId"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "unary"
                                            },
                                            "operator": {
                                              "type": "string",
                                              "enum": ["negate", "absolute", "not", "is_null"]
                                            },
                                            "operand": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/expression"
                                            }
                                          },
                                          "required": ["kind", "operator", "operand"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "binary"
                                            },
                                            "operator": {
                                              "type": "string",
                                              "enum": [
                                                "add",
                                                "subtract",
                                                "multiply",
                                                "safe_divide",
                                                "equals",
                                                "not_equals",
                                                "greater_than",
                                                "greater_than_or_equal",
                                                "less_than",
                                                "less_than_or_equal",
                                                "and",
                                                "or"
                                              ]
                                            },
                                            "left": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/expression"
                                            },
                                            "right": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/expression"
                                            }
                                          },
                                          "required": ["kind", "operator", "left", "right"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "function"
                                            },
                                            "functionId": {
                                              "type": "string",
                                              "enum": [
                                                "round",
                                                "floor",
                                                "ceiling",
                                                "concatenate",
                                                "lower",
                                                "upper",
                                                "trim",
                                                "contains",
                                                "regex_match",
                                                "replace",
                                                "coalesce",
                                                "if",
                                                "date_trunc",
                                                "date_extract",
                                                "date_difference",
                                                "date_add",
                                                "date_subtract",
                                                "date_format",
                                                "difference",
                                                "percent_change",
                                                "previous_value",
                                                "rank",
                                                "running_total",
                                                "top_value",
                                                "first_non_null",
                                                "last_non_null",
                                                "minimum",
                                                "maximum",
                                                "named_aggregate"
                                              ]
                                            },
                                            "arguments": {
                                              "type": "array",
                                              "items": {
                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/expression"
                                              },
                                              "minItems": 1,
                                              "maxItems": 16,
                                              "description": "Ordered operands. named_aggregate takes [valueExpression, aggregateName], e.g. a field then a string literal \"sum\". date_trunc takes [dateExpression, grainLiteral]."
                                            }
                                          },
                                          "required": ["kind", "functionId", "arguments"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "case"
                                            },
                                            "branches": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "when": {
                                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/expression"
                                                  },
                                                  "then": {
                                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/expression"
                                                  }
                                                },
                                                "required": ["when", "then"],
                                                "additionalProperties": false
                                              },
                                              "minItems": 1,
                                              "maxItems": 20
                                            },
                                            "otherwise": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/expression"
                                            }
                                          },
                                          "required": ["kind", "branches", "otherwise"],
                                          "additionalProperties": false
                                        }
                                      ]
                                    },
                                    "dependencyFieldIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "maxItems": 100
                                    },
                                    "dependencyParameterIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "maxItems": 50
                                    },
                                    "evaluationLocation": {
                                      "type": "string",
                                      "enum": ["provider", "query_worker", "report_runtime"]
                                    },
                                    "validation": {
                                      "type": "object",
                                      "properties": {
                                        "status": {
                                          "type": "string",
                                          "enum": ["valid", "invalid"]
                                        },
                                        "issueCodes": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64
                                          },
                                          "maxItems": 100
                                        }
                                      },
                                      "required": ["status", "issueCodes"],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "id",
                                    "name",
                                    "description",
                                    "outputType",
                                    "aggregation",
                                    "expression",
                                    "dependencyFieldIds",
                                    "dependencyParameterIds",
                                    "evaluationLocation",
                                    "validation"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "version",
                                "name",
                                "dependencies",
                                "kind",
                                "definition"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                },
                                "version": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/version"
                                },
                                "name": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                                },
                                "dependencies": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/dependencies"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "parameter"
                                },
                                "definition": {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "number",
                                      "const": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "label": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 160
                                    },
                                    "description": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "dataType": {
                                      "type": "string",
                                      "enum": [
                                        "string",
                                        "boolean",
                                        "integer",
                                        "decimal",
                                        "date",
                                        "datetime",
                                        "enum"
                                      ]
                                    },
                                    "allowedValues": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "number"
                                              },
                                              {
                                                "type": "boolean"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "maxItems": 500
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "allowedValueOptions": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "label": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 160
                                              },
                                              "value": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "number"
                                                  },
                                                  {
                                                    "type": "boolean"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            },
                                            "required": ["label", "value"],
                                            "additionalProperties": false
                                          },
                                          "maxItems": 500
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "defaultValue": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "validation": {
                                      "type": "object",
                                      "properties": {
                                        "required": {
                                          "type": "boolean"
                                        },
                                        "minimum": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maximum": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "step": {
                                          "anyOf": [
                                            {
                                              "type": "number",
                                              "exclusiveMinimum": 0
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "minimumDate": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 64
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maximumDate": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 64
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "minimumLength": {
                                          "anyOf": [
                                            {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 10000
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maximumLength": {
                                          "anyOf": [
                                            {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 10000
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "pattern": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 128
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "required",
                                        "minimum",
                                        "maximum",
                                        "minimumLength",
                                        "maximumLength",
                                        "pattern"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "visibility": {
                                      "type": "string",
                                      "enum": ["visible", "hidden"]
                                    },
                                    "publicationPolicy": {
                                      "type": "string",
                                      "enum": ["fixed", "viewer_editable", "authenticated_only"]
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "id",
                                    "label",
                                    "description",
                                    "dataType",
                                    "allowedValues",
                                    "defaultValue",
                                    "validation",
                                    "visibility",
                                    "publicationPolicy"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "version",
                                "name",
                                "dependencies",
                                "kind",
                                "definition"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                },
                                "version": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/version"
                                },
                                "name": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                                },
                                "dependencies": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/dependencies"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "blend"
                                },
                                "definition": {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "number",
                                      "const": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 160
                                    },
                                    "inputs": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "attachmentId": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "attachmentVersionId": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "fieldIds": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "minItems": 1,
                                            "maxItems": 200
                                          },
                                          "preJoinFilter": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/expression"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "groupByFieldIds": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "maxItems": 50
                                          },
                                          "aggregateFieldIds": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "maxItems": 100
                                          }
                                        },
                                        "required": [
                                          "attachmentId",
                                          "attachmentVersionId",
                                          "fieldIds",
                                          "preJoinFilter",
                                          "groupByFieldIds",
                                          "aggregateFieldIds"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "minItems": 2,
                                      "maxItems": 5
                                    },
                                    "joinType": {
                                      "type": "string",
                                      "enum": ["left", "inner", "full"]
                                    },
                                    "joinKeys": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "leftInputIndex": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 4
                                          },
                                          "rightInputIndex": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 4
                                          },
                                          "leftFieldId": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "rightFieldId": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "normalization": {
                                            "type": "string",
                                            "enum": ["none", "lowercase_trim", "date_grain"]
                                          },
                                          "dateGrain": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": ["day", "week", "month", "quarter", "year"]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "leftInputIndex",
                                          "rightInputIndex",
                                          "leftFieldId",
                                          "rightFieldId",
                                          "normalization",
                                          "dateGrain"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "minItems": 1,
                                      "maxItems": 20
                                    },
                                    "cardinality": {
                                      "type": "string",
                                      "enum": ["one_to_one", "one_to_many", "many_to_one"]
                                    },
                                    "outputFields": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 128
                                          },
                                          "inputIndex": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 4
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "inputFieldId": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 128
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "displayName": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 160
                                          },
                                          "expression": {
                                            "anyOf": [
                                              {
                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/expression"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "inputIndex",
                                          "inputFieldId",
                                          "displayName",
                                          "expression"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "minItems": 1,
                                      "maxItems": 500
                                    },
                                    "rowLimit": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 100000
                                    },
                                    "validationFingerprint": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "id",
                                    "name",
                                    "inputs",
                                    "joinType",
                                    "joinKeys",
                                    "cardinality",
                                    "outputFields",
                                    "rowLimit",
                                    "validationFingerprint"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "version",
                                "name",
                                "dependencies",
                                "kind",
                                "definition"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                                },
                                "version": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/version"
                                },
                                "name": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                                },
                                "dependencies": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/dependencies"
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "dynamic_text"
                                },
                                "definition": {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "number",
                                      "const": 1
                                    },
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "token": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "field_aggregate"
                                            },
                                            "fieldId": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "aggregation": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/definition/properties/aggregation"
                                            }
                                          },
                                          "required": ["kind", "fieldId", "aggregation"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "parameter"
                                            },
                                            "parameterId": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "required": ["kind", "parameterId"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "control_value"
                                            },
                                            "controlId": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "required": ["kind", "controlId"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "publication_date"
                                            },
                                            "format": {
                                              "anyOf": [
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "kind": {
                                                      "type": "string",
                                                      "enum": [
                                                        "number",
                                                        "percent",
                                                        "currency",
                                                        "date",
                                                        "datetime",
                                                        "duration"
                                                      ]
                                                    },
                                                    "locale": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string",
                                                          "minLength": 2,
                                                          "maxLength": 32
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "currencyCode": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string",
                                                          "pattern": "^[A-Z]{3}$"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "minimumFractionDigits": {
                                                      "anyOf": [
                                                        {
                                                          "type": "integer",
                                                          "minimum": 0,
                                                          "maximum": 20
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "maximumFractionDigits": {
                                                      "anyOf": [
                                                        {
                                                          "type": "integer",
                                                          "minimum": 0,
                                                          "maximum": 20
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "compact": {
                                                      "type": "boolean"
                                                    },
                                                    "dateStyle": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string",
                                                          "enum": [
                                                            "short",
                                                            "medium",
                                                            "long",
                                                            "full"
                                                          ]
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "timeStyle": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string",
                                                          "enum": [
                                                            "short",
                                                            "medium",
                                                            "long",
                                                            "full"
                                                          ]
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "kind",
                                                    "locale",
                                                    "currencyCode",
                                                    "minimumFractionDigits",
                                                    "maximumFractionDigits",
                                                    "compact",
                                                    "dateStyle",
                                                    "timeStyle"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": ["kind", "format"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "report_metadata"
                                            },
                                            "key": {
                                              "type": "string",
                                              "enum": [
                                                "name",
                                                "description",
                                                "creator",
                                                "last_editor"
                                              ]
                                            }
                                          },
                                          "required": ["kind", "key"],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "scalar_extraction"
                                            },
                                            "fieldId": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            },
                                            "extraction": {
                                              "type": "string",
                                              "enum": [
                                                "top_value",
                                                "first_non_null",
                                                "last_non_null",
                                                "minimum",
                                                "maximum"
                                              ]
                                            },
                                            "orderByFieldId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 128
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "direction": {
                                              "type": "string",
                                              "enum": ["asc", "desc"]
                                            }
                                          },
                                          "required": [
                                            "kind",
                                            "fieldId",
                                            "extraction",
                                            "orderByFieldId",
                                            "direction"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    },
                                    "format": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/3/properties/definition/properties/token/anyOf/3/properties/format/anyOf/0"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "missingFallback": {
                                      "type": "string",
                                      "maxLength": 500
                                    },
                                    "errorFallback": {
                                      "type": "string",
                                      "maxLength": 500
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "id",
                                    "token",
                                    "format",
                                    "missingFallback",
                                    "errorFallback"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "version",
                                "name",
                                "dependencies",
                                "kind",
                                "definition"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/paletteId"
                            },
                            "version": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/version"
                            },
                            "name": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/2/properties/value/properties/design/properties/variants/items/properties/name"
                            },
                            "dependencies": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/0/properties/dependencies"
                            },
                            "kind": {
                              "type": "string",
                              "const": "dynamic_text"
                            },
                            "definition": {
                              "type": "object",
                              "properties": {
                                "version": {
                                  "type": "number",
                                  "const": 2
                                },
                                "id": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/3/properties/definition/properties/id"
                                },
                                "token": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/3/properties/definition/properties/token"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "system"
                                        },
                                        "key": {
                                          "type": "string",
                                          "enum": ["logical_page_ordinal", "logical_page_count"]
                                        }
                                      },
                                      "required": ["kind", "key"],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                "format": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/3/properties/definition/properties/format"
                                },
                                "missingFallback": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/3/properties/definition/properties/missingFallback"
                                },
                                "errorFallback": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/14/properties/value/anyOf/0/anyOf/3/properties/definition/properties/errorFallback"
                                }
                              },
                              "required": [
                                "version",
                                "id",
                                "token",
                                "format",
                                "missingFallback",
                                "errorFallback"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "version",
                            "name",
                            "dependencies",
                            "kind",
                            "definition"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "remove_semantic_definition"
                    },
                    "id": {
                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/4/properties/id"
                    }
                  },
                  "required": ["kind", "id"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "set_attachment_ids"
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/4/properties/id"
                      },
                      "maxItems": 32
                    }
                  },
                  "required": ["kind", "ids"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "set_policy"
                    },
                    "value": {
                      "type": "object",
                      "properties": {
                        "defaultPolicy": {
                          "type": "object",
                          "properties": {
                            "level": {
                              "type": "string",
                              "enum": ["full", "restricted", "public_safe"]
                            },
                            "redactedFields": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "disabledActions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "notes": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "not": {}
                                    },
                                    {
                                      "type": "string",
                                      "maxLength": 400
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["level"],
                          "additionalProperties": false
                        },
                        "elementOverrides": {
                          "type": "object",
                          "additionalProperties": {
                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/17/properties/value/properties/defaultPolicy"
                          }
                        }
                      },
                      "required": ["defaultPolicy"],
                      "additionalProperties": false
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "set_composition_intent"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "number",
                              "const": 1
                            },
                            "deliveryTarget": {
                              "type": "string",
                              "enum": ["desktop", "desktop_and_print"],
                              "description": "Required delivery certification. Desktop covers private and shared report links; desktop_and_print also certifies native PDF. Omission preserves desktop_and_print."
                            },
                            "qualityPolicy": {
                              "type": "object",
                              "properties": {
                                "version": {
                                  "type": "number",
                                  "const": 1
                                },
                                "pageHeadingMinimumFontSize": {
                                  "type": "number",
                                  "minimum": 16,
                                  "maximum": 72
                                },
                                "sectionHeadingMinimumFontSize": {
                                  "type": "number",
                                  "minimum": 12,
                                  "maximum": 48
                                },
                                "headingBodyScaleRatio": {
                                  "type": "number",
                                  "minimum": 1,
                                  "maximum": 4
                                },
                                "preferredChartHeight": {
                                  "type": "number",
                                  "minimum": 180,
                                  "maximum": 800
                                },
                                "fitTablesToContent": {
                                  "type": "boolean"
                                },
                                "maximumTableUnusedHeight": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "balancedMetricRows": {
                                  "type": "boolean"
                                },
                                "distinctChartSeries": {
                                  "type": "boolean"
                                },
                                "groupRelatedCharts": {
                                  "type": "boolean"
                                },
                                "print": {
                                  "type": "object",
                                  "properties": {
                                    "keepHeadingsWithContent": {
                                      "type": "boolean"
                                    },
                                    "rejectAvoidableSparseSheets": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "keepHeadingsWithContent",
                                    "rejectAvoidableSparseSheets"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "version",
                                "pageHeadingMinimumFontSize",
                                "sectionHeadingMinimumFontSize",
                                "headingBodyScaleRatio",
                                "preferredChartHeight",
                                "fitTablesToContent",
                                "maximumTableUnusedHeight",
                                "balancedMetricRows",
                                "distinctChartSeries",
                                "groupRelatedCharts",
                                "print"
                              ],
                              "additionalProperties": false
                            },
                            "regions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                  },
                                  "pageId": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                  },
                                  "parentRegionId": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "frameElementId": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "role": {
                                    "type": "string",
                                    "enum": [
                                      "header",
                                      "footer",
                                      "heading",
                                      "summary",
                                      "metrics",
                                      "chart",
                                      "table",
                                      "body",
                                      "background",
                                      "custom"
                                    ]
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 512
                                  },
                                  "elementIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                    },
                                    "maxItems": 250
                                  },
                                  "readingOrder": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                    },
                                    "maxItems": 250
                                  },
                                  "sizing": {
                                    "type": "object",
                                    "properties": {
                                      "width": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "intrinsic"
                                              },
                                              "minimum": {
                                                "type": "number",
                                                "minimum": 0,
                                                "maximum": 20000
                                              },
                                              "maximum": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/sizing/properties/width/anyOf/0/properties/minimum"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            },
                                            "required": ["kind", "minimum", "maximum"],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "fixed"
                                              },
                                              "value": {
                                                "type": "number",
                                                "minimum": 0,
                                                "maximum": 20000,
                                                "exclusiveMinimum": 0
                                              }
                                            },
                                            "required": ["kind", "value"],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "fill"
                                              },
                                              "minimum": {
                                                "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/sizing/properties/width/anyOf/0/properties/minimum"
                                              },
                                              "maximum": {
                                                "anyOf": [
                                                  {
                                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/sizing/properties/width/anyOf/0/properties/minimum"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "weight": {
                                                "type": "number",
                                                "exclusiveMinimum": 0,
                                                "maximum": 1000
                                              }
                                            },
                                            "required": ["kind", "minimum", "maximum", "weight"],
                                            "additionalProperties": false
                                          }
                                        ]
                                      },
                                      "height": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/sizing/properties/width"
                                      }
                                    },
                                    "required": ["width", "height"],
                                    "additionalProperties": false
                                  },
                                  "fixed": {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": ["relations", "row", "column", "grid", "wrap"]
                                      },
                                      "columns": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 12
                                      },
                                      "gap": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 320
                                      },
                                      "padding": {
                                        "type": "object",
                                        "properties": {
                                          "top": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed/properties/gap"
                                          },
                                          "right": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed/properties/gap"
                                          },
                                          "bottom": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed/properties/gap"
                                          },
                                          "left": {
                                            "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed/properties/gap"
                                          }
                                        },
                                        "required": ["top", "right", "bottom", "left"],
                                        "additionalProperties": false
                                      },
                                      "equalHeight": {
                                        "type": "boolean"
                                      },
                                      "align": {
                                        "type": "string",
                                        "enum": ["start", "center", "end", "stretch"]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "columns",
                                      "gap",
                                      "padding",
                                      "equalHeight",
                                      "align"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "responsive": {
                                    "type": "object",
                                    "properties": {
                                      "desktop": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed"
                                      },
                                      "tablet": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed"
                                      },
                                      "mobile": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed"
                                      }
                                    },
                                    "required": ["desktop", "tablet", "mobile"],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "pageId",
                                  "parentRegionId",
                                  "frameElementId",
                                  "role",
                                  "label",
                                  "elementIds",
                                  "readingOrder",
                                  "sizing",
                                  "fixed",
                                  "responsive"
                                ],
                                "additionalProperties": false
                              },
                              "maxItems": 1000
                            },
                            "relations": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "containment"
                                      },
                                      "child": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                      },
                                      "parent": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                      },
                                      "insets": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed/properties/padding"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "child",
                                      "parent",
                                      "insets"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "before_after"
                                      },
                                      "before": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                      },
                                      "after": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                      },
                                      "axis": {
                                        "type": "string",
                                        "enum": ["x", "y"]
                                      },
                                      "minimumGap": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed/properties/gap"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "before",
                                      "after",
                                      "axis",
                                      "minimumGap"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "align"
                                      },
                                      "entities": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                        },
                                        "minItems": 2,
                                        "maxItems": 250
                                      },
                                      "axis": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/relations/items/anyOf/1/properties/axis"
                                      },
                                      "anchor": {
                                        "type": "string",
                                        "enum": ["start", "center", "end"]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "entities",
                                      "axis",
                                      "anchor"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "equal_size"
                                      },
                                      "entities": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/relations/items/anyOf/2/properties/entities"
                                      },
                                      "dimension": {
                                        "type": "string",
                                        "enum": ["width", "height", "both"]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "entities",
                                      "dimension"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "equal_gap"
                                      },
                                      "entities": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                        },
                                        "minItems": 3,
                                        "maxItems": 250
                                      },
                                      "axis": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/relations/items/anyOf/1/properties/axis"
                                      },
                                      "minimumGap": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed/properties/gap"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "entities",
                                      "axis",
                                      "minimumGap"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "minimum_gap"
                                      },
                                      "before": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                      },
                                      "after": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                      },
                                      "axis": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/relations/items/anyOf/1/properties/axis"
                                      },
                                      "value": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/fixed/properties/gap"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "before",
                                      "after",
                                      "axis",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "aspect_preservation"
                                      },
                                      "entity": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                      },
                                      "ratio": {
                                        "type": "number",
                                        "exclusiveMinimum": 0,
                                        "maximum": 1000
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "entity",
                                      "ratio"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "baseline"
                                      },
                                      "entities": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/relations/items/anyOf/2/properties/entities"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "entities"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "reserve_region"
                                      },
                                      "regionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "edge": {
                                        "type": "string",
                                        "enum": ["top", "right", "bottom", "left"]
                                      },
                                      "depth": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/regions/items/properties/sizing/properties/width/anyOf/0/properties/minimum"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "regionId",
                                      "edge",
                                      "depth"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "keep_together"
                                      },
                                      "entities": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/18/properties/value/anyOf/0/properties/relations/items/anyOf/2/properties/entities"
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "entities"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      "strength": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/strength"
                                      },
                                      "applicability": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                      },
                                      "exceptionId": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/exceptionId"
                                      },
                                      "kind": {
                                        "type": "string",
                                        "const": "page_break"
                                      },
                                      "before": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                      },
                                      "delivery": {
                                        "type": "string",
                                        "enum": ["logical_page", "print_sheet"]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "strength",
                                      "applicability",
                                      "exceptionId",
                                      "kind",
                                      "before",
                                      "delivery"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items"
                                  }
                                ]
                              },
                              "maxItems": 4096
                            },
                            "sharedDefinitions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                  },
                                  "role": {
                                    "type": "string",
                                    "enum": ["header", "footer", "custom"]
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 512
                                  },
                                  "memberKeys": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                    },
                                    "minItems": 1,
                                    "maxItems": 32
                                  },
                                  "omittedPageIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                    },
                                    "maxItems": 500
                                  }
                                },
                                "required": ["id", "role", "label", "memberKeys", "omittedPageIds"],
                                "additionalProperties": false
                              },
                              "maxItems": 32
                            },
                            "sharedInstances": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                  },
                                  "definitionId": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                  },
                                  "regionId": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                  },
                                  "members": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "key": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                        },
                                        "elementId": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                        },
                                        "locallyOverridden": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": ["key", "elementId", "locallyOverridden"],
                                      "additionalProperties": false
                                    },
                                    "minItems": 1,
                                    "maxItems": 32
                                  }
                                },
                                "required": ["id", "definitionId", "regionId", "members"],
                                "additionalProperties": false
                              },
                              "maxItems": 1000
                            },
                            "intentionalOverlays": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                  },
                                  "back": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                  },
                                  "front": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/entity"
                                  },
                                  "applicability": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/applicability"
                                  },
                                  "permittedOcclusion": {
                                    "type": "string",
                                    "enum": ["decorative_only", "content_with_exception"]
                                  },
                                  "exceptionId": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "reason": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 2000
                                  }
                                },
                                "required": [
                                  "id",
                                  "back",
                                  "front",
                                  "applicability",
                                  "permittedOcclusion",
                                  "exceptionId",
                                  "reason"
                                ],
                                "additionalProperties": false
                              },
                              "maxItems": 4096
                            },
                            "exceptions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 2000
                                  },
                                  "relationIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                    },
                                    "maxItems": 4096
                                  },
                                  "overlayIds": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/10/properties/composition/anyOf/1/properties/pins/items/properties/id"
                                    },
                                    "maxItems": 4096
                                  }
                                },
                                "required": ["id", "reason", "relationIds", "overlayIds"],
                                "additionalProperties": false
                              },
                              "maxItems": 256
                            }
                          },
                          "required": [
                            "version",
                            "regions",
                            "relations",
                            "sharedDefinitions",
                            "sharedInstances",
                            "intentionalOverlays",
                            "exceptions"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "set_opening_dialog"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "number",
                              "const": 1
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "title": {
                              "type": "string",
                              "maxLength": 240
                            },
                            "dismissLabel": {
                              "type": "string",
                              "maxLength": 100
                            },
                            "dismissArrow": {
                              "type": "boolean"
                            },
                            "background": {
                              "type": "string",
                              "pattern": "^#[0-9a-f]{6}$"
                            },
                            "foreground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/background"
                            },
                            "accent": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/background"
                            },
                            "accentForeground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/background"
                            },
                            "width": {
                              "type": "string",
                              "enum": ["standard", "wide", "extra-wide"]
                            },
                            "alignment": {
                              "type": "string",
                              "enum": ["left", "center"]
                            },
                            "layout": {
                              "type": "object",
                              "properties": {
                                "preset": {
                                  "type": "string",
                                  "enum": [
                                    "single",
                                    "two-column",
                                    "three-column",
                                    "sidebar-left",
                                    "sidebar-right"
                                  ]
                                },
                                "titleRegion": {
                                  "type": "string",
                                  "enum": ["header", "column-1", "column-2", "column-3", "footer"]
                                },
                                "titleSize": {
                                  "type": "string",
                                  "enum": ["standard", "large", "display"]
                                },
                                "spacing": {
                                  "type": "string",
                                  "enum": ["compact", "comfortable", "spacious"]
                                },
                                "verticalAlign": {
                                  "type": "string",
                                  "enum": ["start", "center"]
                                },
                                "regions": {
                                  "type": "object",
                                  "properties": {
                                    "header": {
                                      "type": "object",
                                      "properties": {
                                        "background": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/background"
                                        },
                                        "foreground": {
                                          "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/background"
                                        },
                                        "paddingBlock": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 80
                                        },
                                        "paddingInline": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 80
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "column-1": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/layout/properties/regions/properties/header"
                                    },
                                    "column-2": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/layout/properties/regions/properties/header"
                                    },
                                    "column-3": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/layout/properties/regions/properties/header"
                                    },
                                    "footer": {
                                      "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/layout/properties/regions/properties/header"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "preset",
                                "titleRegion",
                                "titleSize",
                                "spacing",
                                "verticalAlign"
                              ],
                              "additionalProperties": false
                            },
                            "content": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "region": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/layout/properties/titleRegion"
                                      },
                                      "type": {
                                        "type": "string",
                                        "const": "list"
                                      },
                                      "ordered": {
                                        "type": "boolean"
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/content/items/anyOf/0/properties/id"
                                            },
                                            "title": {
                                              "type": "string",
                                              "maxLength": 240
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 1500
                                            }
                                          },
                                          "required": ["id", "title", "text"],
                                          "additionalProperties": false
                                        },
                                        "maxItems": 8
                                      }
                                    },
                                    "required": ["id", "type", "ordered", "items"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/content/items/anyOf/0/properties/id"
                                      },
                                      "region": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/layout/properties/titleRegion"
                                      },
                                      "type": {
                                        "type": "string",
                                        "const": "text"
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 6000
                                      },
                                      "style": {
                                        "type": "string",
                                        "enum": ["body", "heading", "eyebrow", "lead", "caption"]
                                      }
                                    },
                                    "required": ["id", "type", "text", "style"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/content/items/anyOf/0/properties/id"
                                      },
                                      "region": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/layout/properties/titleRegion"
                                      },
                                      "type": {
                                        "type": "string",
                                        "const": "image"
                                      },
                                      "assetId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "filePath": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 2048,
                                            "pattern": "^workspaces\\/\\d+\\/images\\/[^?#]+$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "libraryUrl": {
                                        "type": "string"
                                      },
                                      "alt": {
                                        "type": "string",
                                        "maxLength": 512
                                      },
                                      "fit": {
                                        "type": "string",
                                        "enum": ["contain", "cover"]
                                      }
                                    },
                                    "required": ["id", "type", "assetId", "filePath", "alt", "fit"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/content/items/anyOf/0/properties/id"
                                      },
                                      "region": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/layout/properties/titleRegion"
                                      },
                                      "type": {
                                        "type": "string",
                                        "const": "link"
                                      },
                                      "label": {
                                        "type": "string",
                                        "maxLength": 160
                                      },
                                      "href": {
                                        "type": "string",
                                        "maxLength": 2048
                                      }
                                    },
                                    "required": ["id", "type", "label", "href"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/content/items/anyOf/0/properties/id"
                                      },
                                      "region": {
                                        "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/19/properties/value/anyOf/0/properties/layout/properties/titleRegion"
                                      },
                                      "type": {
                                        "type": "string",
                                        "const": "callout"
                                      },
                                      "title": {
                                        "type": "string",
                                        "maxLength": 240
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 6000
                                      }
                                    },
                                    "required": ["id", "type", "title", "text"],
                                    "additionalProperties": false
                                  }
                                ]
                              },
                              "maxItems": 16
                            }
                          },
                          "required": [
                            "version",
                            "enabled",
                            "title",
                            "dismissLabel",
                            "background",
                            "foreground",
                            "accent",
                            "accentForeground",
                            "width",
                            "alignment",
                            "content"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "set_sidebar_notice"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "number",
                              "const": 1
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "heading": {
                              "type": "string",
                              "maxLength": 160
                            },
                            "body": {
                              "type": "string",
                              "maxLength": 2000
                            },
                            "background": {
                              "type": "string",
                              "pattern": "^#[0-9a-f]{6}$"
                            },
                            "foreground": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/20/properties/value/anyOf/0/properties/background"
                            },
                            "borderColor": {
                              "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/20/properties/value/anyOf/0/properties/background"
                            },
                            "headingStyle": {
                              "type": "object",
                              "properties": {
                                "size": {
                                  "type": "integer",
                                  "minimum": 12,
                                  "maximum": 28
                                },
                                "weight": {
                                  "type": "number",
                                  "enum": [400, 500, 600, 700]
                                }
                              },
                              "required": ["size", "weight"],
                              "additionalProperties": false
                            },
                            "bodyStyle": {
                              "type": "object",
                              "properties": {
                                "size": {
                                  "type": "integer",
                                  "minimum": 10,
                                  "maximum": 20
                                },
                                "weight": {
                                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items/anyOf/20/properties/value/anyOf/0/properties/headingStyle/properties/weight"
                                }
                              },
                              "required": ["size", "weight"],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "version",
                            "enabled",
                            "heading",
                            "body",
                            "background",
                            "foreground",
                            "borderColor",
                            "headingStyle",
                            "bodyStyle"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["kind", "value"],
                  "additionalProperties": false
                }
              ]
            },
            "minItems": 1,
            "maxItems": 256
          }
        },
        "required": ["version", "batchId", "sequence", "expectedCumulativeHash", "operations"],
        "additionalProperties": false
      },
      "ReportStageHashRequestV2": {
        "type": "object",
        "properties": {
          "expectedCumulativeHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": ["expectedCumulativeHash"],
        "additionalProperties": false
      },
      "ReportChangeSetResponseV2": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 2
              },
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "reportId": {
                "type": "string",
                "format": "uuid"
              },
              "nativeDocumentVersion": {
                "type": "number",
                "const": 4
              },
              "base": {
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "documentHash": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  }
                },
                "required": ["revision", "documentHash"],
                "additionalProperties": false
              },
              "state": {
                "type": "string",
                "enum": ["open", "sealed", "discarded", "committed"]
              },
              "cumulativeHash": {
                "$ref": "#/components/schemas/ReportChangeSetResponseV2/properties/data/properties/base/properties/documentHash"
              },
              "sealedHash": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ReportChangeSetResponseV2/properties/data/properties/base/properties/documentHash"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "acceptedSequence": {
                "type": "integer",
                "minimum": 0,
                "maximum": 256
              },
              "operationCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 8192
              },
              "inputBytes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 33554432
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time"
              },
              "receipts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "batchId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sequence": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "requestHash": {
                      "$ref": "#/components/schemas/ReportChangeSetResponseV2/properties/data/properties/base/properties/documentHash"
                    },
                    "cumulativeHash": {
                      "$ref": "#/components/schemas/ReportChangeSetResponseV2/properties/data/properties/base/properties/documentHash"
                    },
                    "operationCount": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 256
                    },
                    "inputBytes": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 524288
                    }
                  },
                  "required": [
                    "batchId",
                    "sequence",
                    "requestHash",
                    "cumulativeHash",
                    "operationCount",
                    "inputBytes"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 256
              },
              "commitReceipt": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "planId": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "documentHash": {
                        "$ref": "#/components/schemas/ReportChangeSetResponseV2/properties/data/properties/base/properties/documentHash"
                      }
                    },
                    "required": ["id", "planId", "revision", "documentHash"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "version",
              "id",
              "reportId",
              "nativeDocumentVersion",
              "base",
              "state",
              "cumulativeHash",
              "sealedHash",
              "acceptedSequence",
              "operationCount",
              "inputBytes",
              "expiresAt",
              "receipts",
              "commitReceipt"
            ],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          },
          "receipt": {
            "$ref": "#/components/schemas/ReportChangeSetResponseV2/properties/data/properties/receipts/items"
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "ReportCompositionRequestV1": {
        "type": "object",
        "properties": {
          "profileId": {
            "type": "string",
            "enum": ["report-standard-v1", "report-accessible-v1"]
          },
          "placementPolicy": {
            "type": "string",
            "enum": ["compose", "preserve"]
          },
          "locale": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "scenarioId": {
            "type": "string",
            "const": "saved-defaults"
          },
          "allowPageGrowth": {
            "type": "boolean"
          },
          "reportId": {
            "type": "string",
            "format": "uuid"
          },
          "changeSetId": {
            "type": "string",
            "format": "uuid"
          },
          "sealedStageHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 0
          },
          "expectedDocumentHash": {
            "$ref": "#/components/schemas/ReportCompositionRequestV1/properties/sealedStageHash"
          },
          "targetMode": {
            "type": "string",
            "enum": ["fixed", "responsive"]
          },
          "dataPolicy": {
            "type": "string",
            "const": "require_existing_output"
          }
        },
        "required": [
          "profileId",
          "placementPolicy",
          "locale",
          "timezone",
          "scenarioId",
          "allowPageGrowth",
          "reportId",
          "changeSetId",
          "sealedStageHash",
          "expectedRevision",
          "expectedDocumentHash",
          "targetMode",
          "dataPolicy"
        ],
        "additionalProperties": false
      },
      "ReportCompositionCommitRequestV1": {
        "type": "object",
        "properties": {
          "planHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 0
          },
          "expectedDocumentHash": {
            "$ref": "#/components/schemas/ReportCompositionCommitRequestV1/properties/planHash"
          },
          "expectedDependencyHash": {
            "$ref": "#/components/schemas/ReportCompositionCommitRequestV1/properties/planHash"
          },
          "acknowledgedAdvisoryIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "maxItems": 100000
          }
        },
        "required": [
          "planHash",
          "expectedRevision",
          "expectedDocumentHash",
          "expectedDependencyHash",
          "acknowledgedAdvisoryIds"
        ],
        "additionalProperties": false
      },
      "ReportCompositionJobResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "kind": {
                "type": "string",
                "const": "composition"
              },
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "reportId": {
                "type": "string",
                "format": "uuid"
              },
              "changeSetId": {
                "type": "string",
                "format": "uuid"
              },
              "status": {
                "type": "string",
                "enum": ["queued", "running", "completed", "cancelled", "failed", "expired"]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time"
              },
              "failureCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "access_revoked",
                      "stage_conflict",
                      "input_conflict",
                      "runtime_conflict",
                      "work_budget_exceeded",
                      "transient_retry_limit_exceeded",
                      "renderer_failed",
                      "composition_infeasible",
                      "nonconvergent",
                      "measurement_unverified",
                      "trace_limit",
                      "expired"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "progress": {
                "type": "object",
                "properties": {
                  "acceptedMeasurements": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3584
                  }
                },
                "required": ["acceptedMeasurements"],
                "additionalProperties": false
              },
              "plan": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "planHash": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$"
                      },
                      "documentHash": {
                        "$ref": "#/components/schemas/ReportCompositionJobResponseV1/properties/data/properties/plan/anyOf/0/properties/planHash"
                      }
                    },
                    "required": ["id", "planHash", "documentHash"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "version",
              "kind",
              "id",
              "reportId",
              "changeSetId",
              "status",
              "createdAt",
              "expiresAt",
              "failureCode",
              "progress",
              "plan"
            ],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "ReportCompositionPlanResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "reportId": {
                "type": "string",
                "format": "uuid"
              },
              "changeSetId": {
                "type": "string",
                "format": "uuid"
              },
              "planHash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "documentHash": {
                "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/planHash"
              },
              "dependencyHash": {
                "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/planHash"
              },
              "base": {
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "documentHash": {
                    "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/planHash"
                  }
                },
                "required": ["revision", "documentHash"],
                "additionalProperties": false
              },
              "targetMode": {
                "type": "string",
                "enum": ["fixed", "responsive"]
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time"
              },
              "currentInputsMatch": {
                "type": "boolean"
              },
              "requiredContexts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "surface": {
                      "type": "string",
                      "enum": ["private_view", "shared_projection", "shared_artifact", "print"]
                    },
                    "layoutMode": {
                      "type": "string",
                      "enum": ["fixed", "responsive"]
                    },
                    "canvasWidth": {
                      "type": "number",
                      "exclusiveMinimum": 0,
                      "maximum": 10000
                    },
                    "viewport": {
                      "type": "object",
                      "properties": {
                        "width": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 10000
                        },
                        "height": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 20000
                        }
                      },
                      "required": ["width", "height"],
                      "additionalProperties": false
                    },
                    "scale": {
                      "type": "number",
                      "exclusiveMinimum": 0,
                      "maximum": 10
                    },
                    "locale": {
                      "type": "string",
                      "minLength": 2,
                      "maxLength": 64
                    },
                    "timezone": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "scenarioId": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                    }
                  },
                  "required": [
                    "id",
                    "surface",
                    "layoutMode",
                    "canvasWidth",
                    "viewport",
                    "scale",
                    "locale",
                    "timezone",
                    "scenarioId"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 256
              },
              "assessment": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "assessmentId": {
                    "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                  },
                  "documentHash": {
                    "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                  },
                  "profile": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                      },
                      "version": {
                        "type": "number",
                        "const": 1
                      }
                    },
                    "required": ["id", "version"],
                    "additionalProperties": false
                  },
                  "coverage": {
                    "type": "object",
                    "properties": {
                      "requiredPageContexts": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "completedPageContexts": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "unverifiedPageContexts": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "complete": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "requiredPageContexts",
                      "completedPageContexts",
                      "unverifiedPageContexts",
                      "complete"
                    ],
                    "additionalProperties": false
                  },
                  "structure": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": ["valid", "invalid", "unverified"]
                      }
                    },
                    "required": ["status"],
                    "additionalProperties": false
                  },
                  "render": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": ["valid", "invalid", "unverified"]
                      }
                    },
                    "required": ["status"],
                    "additionalProperties": false
                  },
                  "design": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": ["assessed", "unverified"]
                      },
                      "advisoryCount": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "coverageGaps": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                        },
                        "maxItems": 64
                      }
                    },
                    "required": ["status", "advisoryCount", "coverageGaps"],
                    "additionalProperties": false
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": ["ready", "partial", "missing", "failed", "unverified"]
                      },
                      "issueCodes": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                        },
                        "maxItems": 256
                      }
                    },
                    "required": ["status", "issueCodes"],
                    "additionalProperties": false
                  },
                  "publication": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": ["not_published", "current", "stale", "failed", "unverified"]
                      }
                    },
                    "required": ["status"],
                    "additionalProperties": false
                  },
                  "safeToCommit": {
                    "type": "boolean"
                  },
                  "findingCount": {
                    "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/base/properties/revision"
                  }
                },
                "required": [
                  "version",
                  "assessmentId",
                  "documentHash",
                  "profile",
                  "coverage",
                  "structure",
                  "render",
                  "design",
                  "data",
                  "publication",
                  "safeToCommit",
                  "findingCount"
                ],
                "additionalProperties": false
              },
              "requiredAdvisoryAcknowledgmentCount": {
                "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/base/properties/revision"
              },
              "pages": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "position": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/base/properties/revision"
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 4096
                    },
                    "elementCount": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/base/properties/revision"
                    }
                  },
                  "required": ["id", "position", "title", "elementCount"],
                  "additionalProperties": false
                },
                "maxItems": 500
              }
            },
            "required": [
              "version",
              "id",
              "reportId",
              "changeSetId",
              "planHash",
              "documentHash",
              "dependencyHash",
              "base",
              "targetMode",
              "expiresAt",
              "currentInputsMatch",
              "requiredContexts",
              "assessment",
              "requiredAdvisoryAcknowledgmentCount",
              "pages"
            ],
            "additionalProperties": false
          },
          "placements": {
            "type": "object",
            "properties": {
              "pageId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "type": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/id"
                    },
                    "pageId": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/id"
                    },
                    "parentId": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/id"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "hidden": {
                      "type": "boolean"
                    },
                    "fixedPlacement": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/fixedPlacement/properties/x"
                        },
                        "width": {
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 10000
                        },
                        "height": {
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 20000
                        },
                        "z": {
                          "type": "integer",
                          "minimum": -100000,
                          "maximum": 100000
                        },
                        "rotation": {
                          "type": "number",
                          "minimum": -360,
                          "maximum": 360
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "flipY": {
                          "type": "boolean"
                        },
                        "anchor": {
                          "type": "string",
                          "enum": ["page", "content"]
                        },
                        "aspectLock": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "x",
                        "y",
                        "width",
                        "height",
                        "z",
                        "rotation",
                        "flipX",
                        "flipY",
                        "anchor",
                        "aspectLock"
                      ],
                      "additionalProperties": false
                    },
                    "responsivePlacement": {
                      "type": "object",
                      "properties": {
                        "containerLayout": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": ["stack", "grid", "wrap", "overlay"]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "containerDirection": {
                          "type": "string",
                          "enum": ["row", "column"],
                          "default": "column"
                        },
                        "containerColumns": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 12,
                          "default": 12
                        },
                        "equalHeight": {
                          "type": "boolean",
                          "default": false
                        },
                        "columnStart": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 12
                        },
                        "columnSpan": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 12
                        },
                        "row": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 10000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "order": {
                          "type": "integer",
                          "minimum": -10000,
                          "maximum": 10000
                        },
                        "align": {
                          "type": "string",
                          "enum": ["start", "center", "end", "stretch"]
                        },
                        "justify": {
                          "type": "string",
                          "enum": ["start", "center", "end", "stretch"]
                        },
                        "minWidth": {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "maxWidth": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/minWidth/anyOf/0"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "minHeight": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/minWidth/anyOf/0"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "maxHeight": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/minWidth/anyOf/0"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "aspectRatio": {
                          "anyOf": [
                            {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "padding": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 320
                        },
                        "gap": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 320
                        },
                        "keepTogether": {
                          "type": "boolean",
                          "default": true
                        },
                        "pageBreakBefore": {
                          "type": "boolean",
                          "default": false
                        },
                        "hidden": {
                          "type": "boolean"
                        },
                        "breakpointOverrides": {
                          "type": "object",
                          "properties": {
                            "desktop": {
                              "type": "object",
                              "properties": {
                                "containerLayout": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["stack", "grid", "wrap", "overlay"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "containerDirection": {
                                  "type": "string",
                                  "enum": ["row", "column"]
                                },
                                "containerColumns": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 12
                                },
                                "equalHeight": {
                                  "type": "boolean"
                                },
                                "columnStart": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 12
                                },
                                "columnSpan": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 12
                                },
                                "row": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 10000
                                },
                                "order": {
                                  "type": "integer",
                                  "minimum": -10000,
                                  "maximum": 10000
                                },
                                "align": {
                                  "type": "string",
                                  "enum": ["start", "center", "end", "stretch"]
                                },
                                "justify": {
                                  "type": "string",
                                  "enum": ["start", "center", "end", "stretch"]
                                },
                                "minWidth": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/minWidth/anyOf/0"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "maxWidth": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/minWidth/anyOf/0"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "minHeight": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/minWidth/anyOf/0"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "maxHeight": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/minWidth/anyOf/0"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "aspectRatio": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/aspectRatio/anyOf/0"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "padding": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "gap": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 320
                                },
                                "hidden": {
                                  "type": "boolean"
                                },
                                "paddingInsets": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "top": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "right": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "bottom": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        },
                                        "left": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 320
                                        }
                                      },
                                      "required": ["top", "right", "bottom", "left"],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "containerColumnWeights": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number",
                                        "exclusiveMinimum": 0,
                                        "maximum": 1000
                                      },
                                      "minItems": 1,
                                      "maxItems": 12
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            "tablet": {
                              "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/breakpointOverrides/properties/desktop"
                            },
                            "mobile": {
                              "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/breakpointOverrides/properties/desktop"
                            }
                          },
                          "additionalProperties": false
                        },
                        "paddingInsets": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/breakpointOverrides/properties/desktop/properties/paddingInsets/anyOf/0"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "containerColumnWeights": {
                          "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/placements/properties/data/items/properties/responsivePlacement/properties/breakpointOverrides/properties/desktop/properties/containerColumnWeights"
                        }
                      },
                      "required": [
                        "containerLayout",
                        "columnStart",
                        "columnSpan",
                        "row",
                        "order",
                        "align",
                        "justify",
                        "minWidth",
                        "maxWidth",
                        "minHeight",
                        "maxHeight",
                        "aspectRatio",
                        "padding",
                        "gap",
                        "breakpointOverrides"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["id", "type", "pageId", "parentId", "hidden"],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "nextCursor": {
                    "type": ["string", "null"]
                  },
                  "total": {
                    "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/base/properties/revision"
                  }
                },
                "required": ["nextCursor", "total"],
                "additionalProperties": false
              }
            },
            "required": ["pageId", "data", "pageInfo"],
            "additionalProperties": false
          },
          "findings": {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                    },
                    "ruleId": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                    },
                    "ruleVersion": {
                      "type": "number",
                      "const": 1
                    },
                    "relationId": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                    },
                    "severity": {
                      "type": "string",
                      "enum": ["required", "advisory", "informational"]
                    },
                    "evidenceStatus": {
                      "type": "string",
                      "enum": ["verified", "unverified"]
                    },
                    "validity": {
                      "type": "string",
                      "enum": ["valid", "invalid", "unverified"]
                    },
                    "pageId": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                    },
                    "entityIds": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                      },
                      "maxItems": 250
                    },
                    "contextId": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                    },
                    "issueCode": {
                      "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/requiredContexts/items/properties/id"
                    },
                    "observed": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expected": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/findings/properties/data/items/properties/observed/anyOf/0"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": ["css_px", "ratio", "count"]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "recommendedAction": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "increase_region_height",
                            "increase_region_width",
                            "resolve_overlapping_regions",
                            "revise_layout_relationships",
                            "resolve_data_output",
                            "provide_font",
                            "provide_asset",
                            "provide_probe",
                            "complete_coverage",
                            "declare_scroll_policy",
                            "allow_table_pagination",
                            "use_readable_type",
                            "increase_contrast",
                            "review_hierarchy",
                            "review_branding"
                          ]
                        }
                      },
                      "required": ["kind"],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "ruleId",
                    "ruleVersion",
                    "severity",
                    "evidenceStatus",
                    "validity",
                    "pageId",
                    "entityIds",
                    "contextId",
                    "issueCode",
                    "observed",
                    "expected",
                    "unit",
                    "recommendedAction"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "requiredAdvisoryAcknowledgmentIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "maxItems": 100
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "offset": {
                    "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/base/properties/revision"
                  },
                  "nextOffset": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/base/properties/revision"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "total": {
                    "$ref": "#/components/schemas/ReportCompositionPlanResponseV1/properties/data/properties/base/properties/revision"
                  }
                },
                "required": ["offset", "nextOffset", "total"],
                "additionalProperties": false
              }
            },
            "required": ["data", "requiredAdvisoryAcknowledgmentIds", "pageInfo"],
            "additionalProperties": false
          }
        },
        "required": ["data", "placements", "findings"],
        "additionalProperties": false
      },
      "ReportCompositionCommitResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "reportId": {
                "type": "string",
                "format": "uuid"
              },
              "planId": {
                "type": "string",
                "format": "uuid"
              },
              "planHash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "receiptHash": {
                "$ref": "#/components/schemas/ReportCompositionCommitResponseV1/properties/data/properties/planHash"
              },
              "idempotencyKey": {
                "type": "string",
                "format": "uuid"
              },
              "committedAt": {
                "type": "string",
                "format": "date-time"
              },
              "result": {
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "documentHash": {
                    "$ref": "#/components/schemas/ReportCompositionCommitResponseV1/properties/data/properties/planHash"
                  },
                  "nativeDocumentVersion": {
                    "type": "number",
                    "const": 4
                  },
                  "checkpointId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "operationBatchId": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "revision",
                  "documentHash",
                  "nativeDocumentVersion",
                  "checkpointId",
                  "operationBatchId"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "version",
              "id",
              "reportId",
              "planId",
              "planHash",
              "receiptHash",
              "idempotencyKey",
              "committedAt",
              "result"
            ],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": ["data", "replayed"],
        "additionalProperties": false
      },
      "McpDataConnectorsV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "connectorKey": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 96,
                      "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
                    },
                    "buildVersion": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "displayName": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "category": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 96
                    },
                    "description": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2000
                    },
                    "documentationUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "capabilities": {
                      "type": "object",
                      "properties": {
                        "connectorKey": {
                          "$ref": "#/components/schemas/McpDataConnectorsV1/properties/data/items/properties/definition/properties/connectorKey"
                        },
                        "contractVersion": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "availability": {
                          "type": "string",
                          "enum": [
                            "production",
                            "preview",
                            "internal_fixture",
                            "request_only",
                            "retired"
                          ]
                        },
                        "authenticationMethods": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "oauth2",
                              "oauth1",
                              "api_key",
                              "bearer_token",
                              "basic",
                              "service_account",
                              "key_pair",
                              "database_credentials",
                              "file",
                              "none"
                            ]
                          },
                          "minItems": 1
                        },
                        "accountDiscovery": {
                          "type": "string",
                          "enum": ["none", "flat", "hierarchical"]
                        },
                        "catalogDiscovery": {
                          "type": "string",
                          "enum": ["static", "dynamic", "hybrid"]
                        },
                        "queryTypes": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 96
                          },
                          "minItems": 1
                        },
                        "dateSemantics": {
                          "type": "object",
                          "properties": {
                            "absolute": {
                              "type": "boolean"
                            },
                            "relative": {
                              "type": "boolean"
                            },
                            "comparison": {
                              "type": "boolean"
                            },
                            "incremental": {
                              "type": "boolean"
                            },
                            "timeZone": {
                              "type": "string",
                              "enum": ["provider", "account", "query"]
                            },
                            "minimumFreshnessDelayMinutes": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "maximumHistoryDays": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "exclusiveMinimum": 0
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "absolute",
                            "relative",
                            "comparison",
                            "incremental",
                            "timeZone",
                            "minimumFreshnessDelayMinutes",
                            "maximumHistoryDays"
                          ],
                          "additionalProperties": false
                        },
                        "pushdown": {
                          "type": "object",
                          "properties": {
                            "filters": {
                              "type": "boolean"
                            },
                            "sorting": {
                              "type": "boolean"
                            },
                            "limit": {
                              "type": "boolean"
                            },
                            "pagination": {
                              "type": "boolean"
                            },
                            "aggregation": {
                              "type": "boolean"
                            },
                            "pivot": {
                              "type": "boolean"
                            },
                            "comparison": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "filters",
                            "sorting",
                            "limit",
                            "pagination",
                            "aggregation",
                            "pivot",
                            "comparison"
                          ],
                          "additionalProperties": false
                        },
                        "pagination": {
                          "type": "string",
                          "enum": ["none", "cursor", "offset", "page", "provider_specific"]
                        },
                        "rateLimitModel": {
                          "type": "string",
                          "enum": [
                            "none",
                            "fixed_window",
                            "sliding_window",
                            "quota_units",
                            "provider_specific"
                          ]
                        },
                        "supportedOutputFormats": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": ["json", "ndjson", "csv", "parquet", "html_preview"]
                          },
                          "minItems": 1
                        },
                        "compatibleDestinationKinds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 96,
                            "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
                          }
                        },
                        "supportsAccountTags": {
                          "type": "boolean"
                        },
                        "supportsCustomFields": {
                          "type": "boolean"
                        },
                        "supportsMediaFields": {
                          "type": "boolean"
                        },
                        "supportsRealtime": {
                          "type": "boolean"
                        },
                        "requiresMetric": {
                          "type": "boolean"
                        },
                        "requiresQueryCatalog": {
                          "type": "boolean"
                        },
                        "limits": {
                          "type": "object",
                          "properties": {
                            "maximumAccountsPerQuery": {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            },
                            "maximumFieldsPerQuery": {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            },
                            "maximumRowsPerRun": {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            },
                            "maximumConcurrentRequests": {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            }
                          },
                          "required": [
                            "maximumAccountsPerQuery",
                            "maximumFieldsPerQuery",
                            "maximumRowsPerRun",
                            "maximumConcurrentRequests"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "connectorKey",
                        "contractVersion",
                        "availability",
                        "authenticationMethods",
                        "accountDiscovery",
                        "catalogDiscovery",
                        "queryTypes",
                        "dateSemantics",
                        "pushdown",
                        "pagination",
                        "rateLimitModel",
                        "supportedOutputFormats",
                        "compatibleDestinationKinds",
                        "supportsAccountTags",
                        "supportsCustomFields",
                        "supportsMediaFields",
                        "supportsRealtime",
                        "limits"
                      ],
                      "additionalProperties": false
                    },
                    "releasedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "connectorKey",
                    "buildVersion",
                    "displayName",
                    "category",
                    "description",
                    "documentationUrl",
                    "capabilities",
                    "releasedAt",
                    "retiredAt"
                  ],
                  "additionalProperties": false
                },
                "readiness": {
                  "type": "object",
                  "properties": {
                    "selectable": {
                      "type": "boolean"
                    },
                    "reasonCode": {
                      "type": "string",
                      "maxLength": 96
                    }
                  },
                  "required": ["selectable", "reasonCode"],
                  "additionalProperties": false
                },
                "presentation": {
                  "type": "object",
                  "properties": {
                    "queryConfigurationInputs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "maxLength": 96
                          },
                          "labelKey": {
                            "type": "string",
                            "maxLength": 256
                          },
                          "type": {
                            "type": "string",
                            "enum": ["text", "sql", "integer"]
                          },
                          "queryTypeIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "defaultValue": {
                            "type": "string"
                          },
                          "maxLength": {
                            "type": "integer",
                            "exclusiveMinimum": 0
                          }
                        },
                        "required": ["key", "labelKey", "type", "defaultValue", "maxLength"],
                        "additionalProperties": false
                      },
                      "maxItems": 100
                    },
                    "brandDomain": {
                      "type": ["string", "null"]
                    },
                    "brandAssetPath": {
                      "type": ["string", "null"]
                    },
                    "accountModel": {
                      "type": "string",
                      "maxLength": 96
                    }
                  },
                  "required": [
                    "queryConfigurationInputs",
                    "brandDomain",
                    "brandAssetPath",
                    "accountModel"
                  ],
                  "additionalProperties": false
                }
              },
              "required": ["definition", "readiness", "presentation"],
              "additionalProperties": false
            },
            "maxItems": 500
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "McpDataConnectionsV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "connectorKey": {
                  "type": "string",
                  "maxLength": 96
                },
                "name": {
                  "type": "string",
                  "maxLength": 4000
                },
                "visibility": {
                  "type": "string",
                  "enum": ["private", "workspace", "restricted"]
                },
                "status": {
                  "type": "string",
                  "maxLength": 96
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/McpDataConnectionsV1/properties/data/items/properties/id"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reauthenticationRequiredAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "$ref": "#/components/schemas/McpDataConnectionsV1/properties/data/items/properties/reauthenticationRequiredAt/anyOf/0"
                },
                "accounts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/components/schemas/McpDataConnectionsV1/properties/data/items/properties/id"
                      },
                      "displayName": {
                        "$ref": "#/components/schemas/McpDataConnectionsV1/properties/data/items/properties/name"
                      },
                      "status": {
                        "type": "string",
                        "maxLength": 96
                      }
                    },
                    "required": ["id", "displayName", "status"],
                    "additionalProperties": false
                  },
                  "maxItems": 10000
                }
              },
              "required": [
                "id",
                "connectorKey",
                "name",
                "visibility",
                "status",
                "currentVersionId",
                "reauthenticationRequiredAt",
                "updatedAt",
                "accounts"
              ],
              "additionalProperties": false
            },
            "maxItems": 200
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 16,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"],
        "additionalProperties": false
      },
      "McpDataCataloguesV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "snapshots": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sourceAccountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "queryTypes": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          },
                          {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/McpDataCataloguesV1/properties/data/properties/snapshots/items/properties/queryTypes/items"
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": {
                              "$ref": "#/components/schemas/McpDataCataloguesV1/properties/data/properties/snapshots/items/properties/queryTypes/items"
                            }
                          }
                        ]
                      }
                    },
                    "queryOptions": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/McpDataCataloguesV1/properties/data/properties/snapshots/items/properties/queryTypes/items"
                      }
                    },
                    "limits": {
                      "type": "object",
                      "properties": {
                        "maximumDimensions": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "maximumMetrics": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "maximumRows": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": ["maximumDimensions", "maximumMetrics", "maximumRows"],
                      "additionalProperties": false
                    },
                    "reportingLagDays": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "completenessNote": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "snapshot": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "workspaceId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^ws_[a-f0-9]{32}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "connectorKey": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 96,
                          "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
                        },
                        "queryType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 96
                        },
                        "providerSchemaVersion": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fingerprint": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "configurationFingerprint": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "providerFieldId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 512
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 240
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 4000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "role": {
                                "type": "string",
                                "enum": ["dimension", "metric", "attribute", "identifier"]
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "string",
                                  "integer",
                                  "number",
                                  "decimal",
                                  "percent",
                                  "currency",
                                  "boolean",
                                  "date",
                                  "datetime",
                                  "duration",
                                  "url",
                                  "image_url",
                                  "json"
                                ]
                              },
                              "aggregation": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 96
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "compatibleFieldIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/McpDataCataloguesV1/properties/data/properties/snapshots/items/properties/snapshot/properties/fields/items/properties/id"
                                },
                                "maxItems": 10000
                              },
                              "supportedFilterOperators": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "equals",
                                    "not_equals",
                                    "in",
                                    "not_in",
                                    "contains",
                                    "not_contains",
                                    "starts_with",
                                    "ends_with",
                                    "regex",
                                    "not_regex",
                                    "greater_than",
                                    "greater_than_or_equal",
                                    "less_than",
                                    "less_than_or_equal",
                                    "between",
                                    "is_null",
                                    "is_not_null"
                                  ]
                                }
                              },
                              "semanticTags": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 96
                                },
                                "maxItems": 100
                              },
                              "queryTypeIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 96
                                },
                                "maxItems": 500
                              },
                              "hidden": {
                                "type": "boolean"
                              },
                              "deprecated": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "providerFieldId",
                              "label",
                              "description",
                              "role",
                              "type",
                              "aggregation",
                              "compatibleFieldIds",
                              "supportedFilterOperators",
                              "semanticTags",
                              "queryTypeIds",
                              "hidden",
                              "deprecated"
                            ],
                            "additionalProperties": false
                          },
                          "minItems": 1,
                          "maxItems": 50000
                        },
                        "discoveredAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "workspaceId",
                        "connectorKey",
                        "queryType",
                        "providerSchemaVersion",
                        "fingerprint",
                        "fields",
                        "discoveredAt",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    },
                    "status": {
                      "type": "string",
                      "maxLength": 96
                    }
                  },
                  "required": [
                    "sourceAccountId",
                    "queryTypes",
                    "queryOptions",
                    "limits",
                    "reportingLagDays",
                    "completenessNote",
                    "snapshot",
                    "status"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 10000
              },
              "changes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/McpDataCataloguesV1/properties/data/properties/snapshots/items/properties/sourceAccountId"
                    },
                    "sourceAccountId": {
                      "$ref": "#/components/schemas/McpDataCataloguesV1/properties/data/properties/snapshots/items/properties/sourceAccountId"
                    },
                    "addedFieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "removedFieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "changedFieldIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "affectedQueryCount": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "sourceAccountId",
                    "addedFieldIds",
                    "removedFieldIds",
                    "changedFieldIds",
                    "affectedQueryCount",
                    "createdAt"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              }
            },
            "required": ["snapshots", "changes"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "McpDataQueriesV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string",
                  "maxLength": 4000
                },
                "description": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/name"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "visibility": {
                  "type": "string",
                  "enum": ["private", "workspace", "restricted"]
                },
                "status": {
                  "type": "string",
                  "maxLength": 96
                },
                "currentVersionId": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/id"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "versionNumber": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "versionStatus": {
                  "type": ["string", "null"]
                },
                "catalogSnapshotIds": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/id"
                  },
                  "maxItems": 500
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "versionDocument": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "definition": {
                          "type": "object",
                          "properties": {
                            "schemaVersion": {
                              "type": "number",
                              "const": 2
                            },
                            "connectorKey": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 96,
                              "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
                            },
                            "queryType": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 96
                            },
                            "accountSelector": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "accounts"
                                    },
                                    "sourceAccountIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "minItems": 1,
                                      "maxItems": 500
                                    }
                                  },
                                  "required": ["kind", "sourceAccountIds"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "account_tags"
                                    },
                                    "accountTagIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "minItems": 1,
                                      "maxItems": 100
                                    }
                                  },
                                  "required": ["kind", "accountTagIds"],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "includeSourceAccount": {
                              "type": "boolean",
                              "default": true
                            },
                            "fields": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "fieldId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  },
                                  "role": {
                                    "type": "string",
                                    "enum": ["dimension", "metric", "attribute", "identifier"]
                                  },
                                  "outputPosition": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "alias": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 160
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "aggregation": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "none",
                                          "sum",
                                          "average",
                                          "minimum",
                                          "maximum",
                                          "count",
                                          "count_distinct",
                                          "provider_default"
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "fieldId",
                                  "role",
                                  "outputPosition",
                                  "alias",
                                  "aggregation"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1,
                              "maxItems": 250
                            },
                            "customFieldVersionIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "filter": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "condition"
                                        },
                                        "fieldId": {
                                          "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/fields/items/properties/fieldId"
                                        },
                                        "operator": {
                                          "type": "string",
                                          "enum": [
                                            "equals",
                                            "not_equals",
                                            "in",
                                            "not_in",
                                            "contains",
                                            "not_contains",
                                            "starts_with",
                                            "ends_with",
                                            "regex",
                                            "not_regex",
                                            "greater_than",
                                            "greater_than_or_equal",
                                            "less_than",
                                            "less_than_or_equal",
                                            "between",
                                            "is_null",
                                            "is_not_null"
                                          ]
                                        },
                                        "value": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            },
                                            {
                                              "type": "null"
                                            },
                                            {
                                              "type": "array",
                                              "items": {
                                                "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "additionalProperties": {
                                                "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                                              }
                                            }
                                          ]
                                        },
                                        "execution": {
                                          "type": "string",
                                          "enum": [
                                            "pushdown_required",
                                            "pushdown_preferred",
                                            "platform_allowed"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "fieldId",
                                        "operator",
                                        "value",
                                        "execution"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "group"
                                        },
                                        "conjunction": {
                                          "type": "string",
                                          "enum": ["and", "or"]
                                        },
                                        "children": {
                                          "type": "array",
                                          "items": {
                                            "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/filter/anyOf/0"
                                          },
                                          "minItems": 1,
                                          "maxItems": 100
                                        }
                                      },
                                      "required": ["kind", "conjunction", "children"],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "dateRange": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "absolute"
                                    },
                                    "start": {
                                      "type": "string",
                                      "format": "date"
                                    },
                                    "end": {
                                      "type": "string",
                                      "format": "date"
                                    }
                                  },
                                  "required": ["kind", "start", "end"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "relative"
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": ["day", "week", "month", "quarter", "year"]
                                    },
                                    "count": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 10000
                                    },
                                    "offset": {
                                      "type": "integer",
                                      "minimum": -10000,
                                      "maximum": 10000,
                                      "default": 0
                                    },
                                    "includeCurrent": {
                                      "type": "boolean",
                                      "default": false
                                    }
                                  },
                                  "required": ["kind", "unit", "count"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "rolling"
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": ["hour", "day", "week", "month"]
                                    },
                                    "count": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 10000
                                    },
                                    "lag": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 10000,
                                      "default": 0
                                    }
                                  },
                                  "required": ["kind", "unit", "count"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "incremental"
                                    },
                                    "cursorFieldId": {
                                      "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/fields/items/properties/fieldId"
                                    },
                                    "initialStart": {
                                      "type": "string",
                                      "format": "date"
                                    },
                                    "lookbackUnits": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 365
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": ["hour", "day"]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "cursorFieldId",
                                    "initialStart",
                                    "lookbackUnits",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "comparison": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "mode": {
                                      "type": "string",
                                      "enum": ["previous_period", "previous_year", "custom"]
                                    },
                                    "customRange": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/dateRange"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": ["enabled", "mode", "customRange"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sort": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "fieldId": {
                                    "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/fields/items/properties/fieldId"
                                  },
                                  "direction": {
                                    "type": "string",
                                    "enum": ["ascending", "descending"]
                                  },
                                  "nulls": {
                                    "type": "string",
                                    "enum": ["first", "last"]
                                  }
                                },
                                "required": ["fieldId", "direction", "nulls"],
                                "additionalProperties": false
                              },
                              "maxItems": 20
                            },
                            "rowLimit": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 100000000
                            },
                            "pagination": {
                              "type": "object",
                              "properties": {
                                "pageSize": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 100000
                                },
                                "maximumPages": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 100000
                                }
                              },
                              "required": ["pageSize", "maximumPages"],
                              "additionalProperties": false
                            },
                            "pivot": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "rowFieldIds": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/fields/items/properties/fieldId"
                                      },
                                      "minItems": 1,
                                      "maxItems": 25
                                    },
                                    "columnFieldIds": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/fields/items/properties/fieldId"
                                      },
                                      "minItems": 1,
                                      "maxItems": 10
                                    },
                                    "valueFieldIds": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/fields/items/properties/fieldId"
                                      },
                                      "minItems": 1,
                                      "maxItems": 25
                                    },
                                    "includeRowTotals": {
                                      "type": "boolean"
                                    },
                                    "includeColumnTotals": {
                                      "type": "boolean"
                                    },
                                    "emptyValue": {
                                      "type": "string",
                                      "enum": ["null", "zero"]
                                    }
                                  },
                                  "required": [
                                    "rowFieldIds",
                                    "columnFieldIds",
                                    "valueFieldIds",
                                    "includeRowTotals",
                                    "includeColumnTotals",
                                    "emptyValue"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sample": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "maximumRows": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 1000000
                                }
                              },
                              "required": ["enabled", "maximumRows"],
                              "additionalProperties": false
                            },
                            "timeZone": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "locale": {
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 35
                            },
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 3,
                                  "maxLength": 3
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "connectorOptions": {
                              "type": "object",
                              "additionalProperties": {}
                            },
                            "parameters": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 160
                                  },
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 160
                                  },
                                  "description": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 1000
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "valueType": {
                                    "type": "string",
                                    "enum": ["string", "number", "boolean", "date", "datetime"]
                                  },
                                  "required": {
                                    "type": "boolean"
                                  },
                                  "defaultValue": {
                                    "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                                  },
                                  "allowViewerOverride": {
                                    "type": "boolean"
                                  },
                                  "target": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "date_range_start"
                                          }
                                        },
                                        "required": ["kind"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "date_range_end"
                                          }
                                        },
                                        "required": ["kind"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "filter_value"
                                          },
                                          "fieldId": {
                                            "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/versionDocument/anyOf/0/properties/definition/properties/fields/items/properties/fieldId"
                                          },
                                          "occurrence": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "default": 0
                                          }
                                        },
                                        "required": ["kind", "fieldId"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "connector_option"
                                          },
                                          "optionId": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 160
                                          }
                                        },
                                        "required": ["kind", "optionId"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "row_limit"
                                          }
                                        },
                                        "required": ["kind"],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "description",
                                  "valueType",
                                  "required",
                                  "defaultValue",
                                  "allowViewerOverride",
                                  "target"
                                ],
                                "additionalProperties": false
                              },
                              "maxItems": 100,
                              "default": []
                            },
                            "requiredCapabilities": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "maxItems": 100
                            }
                          },
                          "required": [
                            "schemaVersion",
                            "connectorKey",
                            "queryType",
                            "accountSelector",
                            "fields",
                            "customFieldVersionIds",
                            "filter",
                            "dateRange",
                            "comparison",
                            "sort",
                            "rowLimit",
                            "pagination",
                            "pivot",
                            "sample",
                            "timeZone",
                            "locale",
                            "currency",
                            "connectorOptions",
                            "requiredCapabilities"
                          ],
                          "additionalProperties": false
                        },
                        "validation": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": ["valid", "valid_with_warnings", "invalid"]
                            },
                            "fieldCompatibilityFingerprint": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "outputSchemaFingerprint": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "issues": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 96
                                  },
                                  "severity": {
                                    "type": "string",
                                    "enum": ["warning", "error"]
                                  },
                                  "fieldPath": {
                                    "type": "array",
                                    "items": {
                                      "type": ["string", "number"]
                                    }
                                  },
                                  "parameters": {
                                    "type": "object",
                                    "additionalProperties": {
                                      "type": ["string", "number", "boolean", "null"]
                                    }
                                  },
                                  "repairActions": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 96
                                    },
                                    "maxItems": 10
                                  }
                                },
                                "required": [
                                  "code",
                                  "severity",
                                  "fieldPath",
                                  "parameters",
                                  "repairActions"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "status",
                            "fieldCompatibilityFingerprint",
                            "outputSchemaFingerprint",
                            "issues"
                          ],
                          "additionalProperties": false
                        },
                        "catalogSnapshotIds": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/id"
                          },
                          "maxItems": 500
                        },
                        "accountTagVersionIds": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/McpDataQueriesV1/properties/data/items/properties/id"
                          },
                          "maxItems": 100
                        }
                      },
                      "required": [
                        "definition",
                        "validation",
                        "catalogSnapshotIds",
                        "accountTagVersionIds"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "description",
                "visibility",
                "status",
                "currentVersionId",
                "versionNumber",
                "versionStatus",
                "catalogSnapshotIds",
                "updatedAt",
                "versionDocument"
              ],
              "additionalProperties": false
            },
            "maxItems": 200
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 16,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["data", "nextCursor"],
        "additionalProperties": false
      },
      "McpDataQueryContractV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "queryId": {
                "type": "string",
                "format": "uuid"
              },
              "queryVersionId": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "connectorKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 1000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "scalarType": {
                      "type": "string",
                      "enum": [
                        "string",
                        "integer",
                        "number",
                        "decimal",
                        "percent",
                        "currency",
                        "boolean",
                        "date",
                        "datetime",
                        "duration",
                        "url",
                        "image_url",
                        "json"
                      ]
                    },
                    "semanticRole": {
                      "type": "string",
                      "enum": ["dimension", "metric", "attribute", "identifier"]
                    },
                    "aggregation": {
                      "type": "string",
                      "enum": [
                        "none",
                        "sum",
                        "average",
                        "minimum",
                        "maximum",
                        "count",
                        "count_distinct"
                      ]
                    },
                    "isDefaultDate": {
                      "type": "boolean"
                    },
                    "imageDisplay": {
                      "type": "string",
                      "enum": ["none", "url", "image"],
                      "default": "none"
                    }
                  },
                  "required": [
                    "fieldId",
                    "name",
                    "description",
                    "scalarType",
                    "semanticRole",
                    "aggregation",
                    "isDefaultDate"
                  ],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 250
              },
              "parameters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "parameterId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "valueType": {
                      "type": "string",
                      "enum": ["string", "number", "boolean", "date", "datetime"]
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "allowViewerOverride": {
                      "type": "boolean"
                    },
                    "defaultValue": {
                      "type": ["string", "number", "boolean", "null"]
                    }
                  },
                  "required": [
                    "parameterId",
                    "name",
                    "valueType",
                    "required",
                    "allowViewerOverride",
                    "defaultValue"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "catalogueFingerprint": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "refreshFieldsRequired": {
                "type": "boolean"
              },
              "performance": {
                "type": "object",
                "properties": {
                  "maximumRows": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "recommendedPageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 5000
                  },
                  "maximumWaitSeconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 120
                  }
                },
                "required": ["maximumRows", "recommendedPageSize", "maximumWaitSeconds"],
                "additionalProperties": false
              },
              "authoring": {
                "type": "object",
                "properties": {
                  "definition": {
                    "type": "object",
                    "properties": {
                      "schemaVersion": {
                        "type": "number",
                        "const": 2
                      },
                      "connectorKey": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 96,
                        "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
                      },
                      "queryType": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 96
                      },
                      "accountSelector": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "accounts"
                              },
                              "sourceAccountIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "minItems": 1,
                                "maxItems": 500
                              }
                            },
                            "required": ["kind", "sourceAccountIds"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "account_tags"
                              },
                              "accountTagIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "minItems": 1,
                                "maxItems": 100
                              }
                            },
                            "required": ["kind", "accountTagIds"],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "includeSourceAccount": {
                        "type": "boolean",
                        "default": true
                      },
                      "fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fieldId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "role": {
                              "type": "string",
                              "enum": ["dimension", "metric", "attribute", "identifier"]
                            },
                            "outputPosition": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "alias": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "aggregation": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "none",
                                    "sum",
                                    "average",
                                    "minimum",
                                    "maximum",
                                    "count",
                                    "count_distinct",
                                    "provider_default"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["fieldId", "role", "outputPosition", "alias", "aggregation"],
                          "additionalProperties": false
                        },
                        "minItems": 1,
                        "maxItems": 250
                      },
                      "customFieldVersionIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "maxItems": 100
                      },
                      "filter": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "condition"
                                  },
                                  "fieldId": {
                                    "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/fields/items/properties/fieldId"
                                  },
                                  "operator": {
                                    "type": "string",
                                    "enum": [
                                      "equals",
                                      "not_equals",
                                      "in",
                                      "not_in",
                                      "contains",
                                      "not_contains",
                                      "starts_with",
                                      "ends_with",
                                      "regex",
                                      "not_regex",
                                      "greater_than",
                                      "greater_than_or_equal",
                                      "less_than",
                                      "less_than_or_equal",
                                      "between",
                                      "is_null",
                                      "is_not_null"
                                    ]
                                  },
                                  "value": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      },
                                      {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                                        }
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {
                                          "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                                        }
                                      }
                                    ]
                                  },
                                  "execution": {
                                    "type": "string",
                                    "enum": [
                                      "pushdown_required",
                                      "pushdown_preferred",
                                      "platform_allowed"
                                    ]
                                  }
                                },
                                "required": ["kind", "fieldId", "operator", "value", "execution"],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "group"
                                  },
                                  "conjunction": {
                                    "type": "string",
                                    "enum": ["and", "or"]
                                  },
                                  "children": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/filter/anyOf/0"
                                    },
                                    "minItems": 1,
                                    "maxItems": 100
                                  }
                                },
                                "required": ["kind", "conjunction", "children"],
                                "additionalProperties": false
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dateRange": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "absolute"
                              },
                              "start": {
                                "type": "string",
                                "format": "date"
                              },
                              "end": {
                                "type": "string",
                                "format": "date"
                              }
                            },
                            "required": ["kind", "start", "end"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "relative"
                              },
                              "unit": {
                                "type": "string",
                                "enum": ["day", "week", "month", "quarter", "year"]
                              },
                              "count": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 10000
                              },
                              "offset": {
                                "type": "integer",
                                "minimum": -10000,
                                "maximum": 10000,
                                "default": 0
                              },
                              "includeCurrent": {
                                "type": "boolean",
                                "default": false
                              }
                            },
                            "required": ["kind", "unit", "count"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rolling"
                              },
                              "unit": {
                                "type": "string",
                                "enum": ["hour", "day", "week", "month"]
                              },
                              "count": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 10000
                              },
                              "lag": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 10000,
                                "default": 0
                              }
                            },
                            "required": ["kind", "unit", "count"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "incremental"
                              },
                              "cursorFieldId": {
                                "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/fields/items/properties/fieldId"
                              },
                              "initialStart": {
                                "type": "string",
                                "format": "date"
                              },
                              "lookbackUnits": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 365
                              },
                              "unit": {
                                "type": "string",
                                "enum": ["hour", "day"]
                              }
                            },
                            "required": [
                              "kind",
                              "cursorFieldId",
                              "initialStart",
                              "lookbackUnits",
                              "unit"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "comparison": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "mode": {
                                "type": "string",
                                "enum": ["previous_period", "previous_year", "custom"]
                              },
                              "customRange": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/dateRange"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": ["enabled", "mode", "customRange"],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sort": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fieldId": {
                              "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/fields/items/properties/fieldId"
                            },
                            "direction": {
                              "type": "string",
                              "enum": ["ascending", "descending"]
                            },
                            "nulls": {
                              "type": "string",
                              "enum": ["first", "last"]
                            }
                          },
                          "required": ["fieldId", "direction", "nulls"],
                          "additionalProperties": false
                        },
                        "maxItems": 20
                      },
                      "rowLimit": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      },
                      "pagination": {
                        "type": "object",
                        "properties": {
                          "pageSize": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 100000
                          },
                          "maximumPages": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 100000
                          }
                        },
                        "required": ["pageSize", "maximumPages"],
                        "additionalProperties": false
                      },
                      "pivot": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "rowFieldIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/fields/items/properties/fieldId"
                                },
                                "minItems": 1,
                                "maxItems": 25
                              },
                              "columnFieldIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/fields/items/properties/fieldId"
                                },
                                "minItems": 1,
                                "maxItems": 10
                              },
                              "valueFieldIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/fields/items/properties/fieldId"
                                },
                                "minItems": 1,
                                "maxItems": 25
                              },
                              "includeRowTotals": {
                                "type": "boolean"
                              },
                              "includeColumnTotals": {
                                "type": "boolean"
                              },
                              "emptyValue": {
                                "type": "string",
                                "enum": ["null", "zero"]
                              }
                            },
                            "required": [
                              "rowFieldIds",
                              "columnFieldIds",
                              "valueFieldIds",
                              "includeRowTotals",
                              "includeColumnTotals",
                              "emptyValue"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sample": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "maximumRows": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 1000000
                          }
                        },
                        "required": ["enabled", "maximumRows"],
                        "additionalProperties": false
                      },
                      "timeZone": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "locale": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 35
                      },
                      "currency": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 3
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "connectorOptions": {
                        "type": "object",
                        "additionalProperties": {}
                      },
                      "parameters": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 160
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 160
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "valueType": {
                              "type": "string",
                              "enum": ["string", "number", "boolean", "date", "datetime"]
                            },
                            "required": {
                              "type": "boolean"
                            },
                            "defaultValue": {
                              "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                            },
                            "allowViewerOverride": {
                              "type": "boolean"
                            },
                            "target": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "date_range_start"
                                    }
                                  },
                                  "required": ["kind"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "date_range_end"
                                    }
                                  },
                                  "required": ["kind"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "filter_value"
                                    },
                                    "fieldId": {
                                      "$ref": "#/components/schemas/McpDataQueryContractV1/properties/data/properties/authoring/properties/definition/properties/fields/items/properties/fieldId"
                                    },
                                    "occurrence": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "default": 0
                                    }
                                  },
                                  "required": ["kind", "fieldId"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "connector_option"
                                    },
                                    "optionId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 160
                                    }
                                  },
                                  "required": ["kind", "optionId"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "row_limit"
                                    }
                                  },
                                  "required": ["kind"],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "description",
                            "valueType",
                            "required",
                            "defaultValue",
                            "allowViewerOverride",
                            "target"
                          ],
                          "additionalProperties": false
                        },
                        "maxItems": 100,
                        "default": []
                      },
                      "requiredCapabilities": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "maxItems": 100
                      }
                    },
                    "required": [
                      "schemaVersion",
                      "connectorKey",
                      "queryType",
                      "accountSelector",
                      "fields",
                      "customFieldVersionIds",
                      "filter",
                      "dateRange",
                      "comparison",
                      "sort",
                      "rowLimit",
                      "pagination",
                      "pivot",
                      "sample",
                      "timeZone",
                      "locale",
                      "currency",
                      "connectorOptions",
                      "requiredCapabilities"
                    ],
                    "additionalProperties": false
                  },
                  "validation": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": ["valid", "valid_with_warnings", "invalid"]
                      },
                      "fieldCompatibilityFingerprint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "outputSchemaFingerprint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "issues": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 96
                            },
                            "severity": {
                              "type": "string",
                              "enum": ["warning", "error"]
                            },
                            "fieldPath": {
                              "type": "array",
                              "items": {
                                "type": ["string", "number"]
                              }
                            },
                            "parameters": {
                              "type": "object",
                              "additionalProperties": {
                                "type": ["string", "number", "boolean", "null"]
                              }
                            },
                            "repairActions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 96
                              },
                              "maxItems": 10
                            }
                          },
                          "required": [
                            "code",
                            "severity",
                            "fieldPath",
                            "parameters",
                            "repairActions"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "status",
                      "fieldCompatibilityFingerprint",
                      "outputSchemaFingerprint",
                      "issues"
                    ],
                    "additionalProperties": false
                  },
                  "canonicalHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "catalogSnapshotIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 500
                  },
                  "accountTagVersionIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "maxItems": 100
                  }
                },
                "required": [
                  "definition",
                  "validation",
                  "canonicalHash",
                  "catalogSnapshotIds",
                  "accountTagVersionIds"
                ],
                "additionalProperties": false
              },
              "outputs": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "operationId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "runId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "artifactId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "schemaFingerprint": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "rowCount": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "finalizedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "operationId",
                        "runId",
                        "artifactId",
                        "schemaFingerprint",
                        "rowCount",
                        "finalizedAt",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 50
                  },
                  "nextCursor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 16,
                        "maxLength": 2048
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["data", "nextCursor"],
                "additionalProperties": false
              }
            },
            "required": [
              "queryId",
              "queryVersionId",
              "name",
              "description",
              "connectorKey",
              "fields",
              "parameters",
              "catalogueFingerprint",
              "refreshFieldsRequired",
              "performance",
              "authoring",
              "outputs"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "McpDataQueryMutationV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "queryId": {
                "type": "string",
                "format": "uuid"
              },
              "versionId": {
                "$ref": "#/components/schemas/McpDataQueryMutationV1/properties/data/properties/queryId"
              },
              "versionStatus": {
                "type": "string",
                "enum": ["draft", "published"]
              },
              "versionNumber": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "canonicalHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            },
            "required": ["queryId", "versionId", "versionStatus"],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": ["data", "replayed"],
        "additionalProperties": false
      },
      "McpDataOperationMutationV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "operationId": {
                "type": "string",
                "format": "uuid"
              },
              "status": {
                "type": "string",
                "enum": [
                  "accepted",
                  "planning",
                  "running",
                  "cancel_requested",
                  "succeeded",
                  "succeeded_with_warnings",
                  "failed",
                  "canceled"
                ]
              },
              "queryId": {
                "$ref": "#/components/schemas/McpDataOperationMutationV1/properties/data/properties/operationId"
              },
              "queryVersionId": {
                "$ref": "#/components/schemas/McpDataOperationMutationV1/properties/data/properties/operationId"
              }
            },
            "required": ["operationId", "status"],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": ["data", "replayed"],
        "additionalProperties": false
      },
      "McpDataOperationV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "operation": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "action": {
                    "type": "string",
                    "maxLength": 96
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "accepted",
                      "planning",
                      "running",
                      "cancel_requested",
                      "succeeded",
                      "succeeded_with_warnings",
                      "failed",
                      "canceled"
                    ]
                  },
                  "resourceType": {
                    "type": "string",
                    "maxLength": 96
                  },
                  "resourceId": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/McpDataOperationV1/properties/data/properties/operation/properties/id"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "resourceVersionId": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/McpDataOperationV1/properties/data/properties/operation/properties/id"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "errorCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 96
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "id",
                  "action",
                  "status",
                  "resourceType",
                  "resourceId",
                  "resourceVersionId",
                  "errorCode",
                  "createdAt"
                ],
                "additionalProperties": false
              },
              "result": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "artifactId": {
                        "$ref": "#/components/schemas/McpDataOperationV1/properties/data/properties/operation/properties/id"
                      },
                      "schemaFingerprint": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "rowCount": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "expiresAt": {
                        "$ref": "#/components/schemas/McpDataOperationV1/properties/data/properties/operation/properties/createdAt"
                      },
                      "finalizedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/McpDataOperationV1/properties/data/properties/operation/properties/createdAt"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "artifactId",
                      "schemaFingerprint",
                      "rowCount",
                      "expiresAt",
                      "finalizedAt"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["operation", "result"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "McpDataResultsV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "artifactId": {
                "type": "string",
                "format": "uuid"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      },
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/McpDataResultsV1/properties/data/properties/rows/items/additionalProperties"
                        }
                      },
                      {
                        "type": "object",
                        "additionalProperties": {
                          "$ref": "#/components/schemas/McpDataResultsV1/properties/data/properties/rows/items/additionalProperties"
                        }
                      }
                    ]
                  }
                },
                "maxItems": 5000
              },
              "rowCount": {
                "type": "integer",
                "minimum": 0
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time"
              },
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_-]+$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "output": {
                "type": "object",
                "properties": {
                  "artifactId": {
                    "$ref": "#/components/schemas/McpDataResultsV1/properties/data/properties/artifactId"
                  },
                  "schemaFingerprint": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "rowCount": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "expiresAt": {
                    "$ref": "#/components/schemas/McpDataResultsV1/properties/data/properties/expiresAt"
                  },
                  "finalizedAt": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/McpDataResultsV1/properties/data/properties/expiresAt"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "artifactId",
                  "schemaFingerprint",
                  "rowCount",
                  "expiresAt",
                  "finalizedAt"
                ],
                "additionalProperties": false
              },
              "pagination": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 5000
                  },
                  "returnedRows": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": ["limit", "returnedRows", "hasMore"],
                "additionalProperties": false
              }
            },
            "required": [
              "artifactId",
              "rows",
              "rowCount",
              "expiresAt",
              "nextCursor",
              "output",
              "pagination"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "McpDataCreateQueryV1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "visibility": {
            "type": "string",
            "enum": ["private", "workspace", "restricted"],
            "default": "private"
          },
          "catalogSnapshotIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 500
          },
          "definition": {
            "type": "object",
            "properties": {
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "connectorKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96,
                "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
              },
              "queryType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96
              },
              "accountSelector": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "accounts"
                      },
                      "sourceAccountIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "minItems": 1,
                        "maxItems": 500
                      }
                    },
                    "required": ["kind", "sourceAccountIds"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "account_tags"
                      },
                      "accountTagIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "minItems": 1,
                        "maxItems": 100
                      }
                    },
                    "required": ["kind", "accountTagIds"],
                    "additionalProperties": false
                  }
                ]
              },
              "includeSourceAccount": {
                "type": "boolean",
                "default": true
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "role": {
                      "type": "string",
                      "enum": ["dimension", "metric", "attribute", "identifier"]
                    },
                    "outputPosition": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "alias": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "aggregation": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "none",
                            "sum",
                            "average",
                            "minimum",
                            "maximum",
                            "count",
                            "count_distinct",
                            "provider_default"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["fieldId", "role", "outputPosition", "alias", "aggregation"],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 250
              },
              "customFieldVersionIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "maxItems": 100
              },
              "filter": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "condition"
                          },
                          "fieldId": {
                            "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/fields/items/properties/fieldId"
                          },
                          "operator": {
                            "type": "string",
                            "enum": [
                              "equals",
                              "not_equals",
                              "in",
                              "not_in",
                              "contains",
                              "not_contains",
                              "starts_with",
                              "ends_with",
                              "regex",
                              "not_regex",
                              "greater_than",
                              "greater_than_or_equal",
                              "less_than",
                              "less_than_or_equal",
                              "between",
                              "is_null",
                              "is_not_null"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                                }
                              }
                            ]
                          },
                          "execution": {
                            "type": "string",
                            "enum": ["pushdown_required", "pushdown_preferred", "platform_allowed"]
                          }
                        },
                        "required": ["kind", "fieldId", "operator", "value", "execution"],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "group"
                          },
                          "conjunction": {
                            "type": "string",
                            "enum": ["and", "or"]
                          },
                          "children": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/filter/anyOf/0"
                            },
                            "minItems": 1,
                            "maxItems": 100
                          }
                        },
                        "required": ["kind", "conjunction", "children"],
                        "additionalProperties": false
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dateRange": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "absolute"
                      },
                      "start": {
                        "type": "string",
                        "format": "date"
                      },
                      "end": {
                        "type": "string",
                        "format": "date"
                      }
                    },
                    "required": ["kind", "start", "end"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "relative"
                      },
                      "unit": {
                        "type": "string",
                        "enum": ["day", "week", "month", "quarter", "year"]
                      },
                      "count": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 10000
                      },
                      "offset": {
                        "type": "integer",
                        "minimum": -10000,
                        "maximum": 10000,
                        "default": 0
                      },
                      "includeCurrent": {
                        "type": "boolean",
                        "default": false
                      }
                    },
                    "required": ["kind", "unit", "count"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "rolling"
                      },
                      "unit": {
                        "type": "string",
                        "enum": ["hour", "day", "week", "month"]
                      },
                      "count": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 10000
                      },
                      "lag": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000,
                        "default": 0
                      }
                    },
                    "required": ["kind", "unit", "count"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "incremental"
                      },
                      "cursorFieldId": {
                        "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/fields/items/properties/fieldId"
                      },
                      "initialStart": {
                        "type": "string",
                        "format": "date"
                      },
                      "lookbackUnits": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 365
                      },
                      "unit": {
                        "type": "string",
                        "enum": ["hour", "day"]
                      }
                    },
                    "required": ["kind", "cursorFieldId", "initialStart", "lookbackUnits", "unit"],
                    "additionalProperties": false
                  }
                ]
              },
              "comparison": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "mode": {
                        "type": "string",
                        "enum": ["previous_period", "previous_year", "custom"]
                      },
                      "customRange": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/dateRange"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["enabled", "mode", "customRange"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sort": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/fields/items/properties/fieldId"
                    },
                    "direction": {
                      "type": "string",
                      "enum": ["ascending", "descending"]
                    },
                    "nulls": {
                      "type": "string",
                      "enum": ["first", "last"]
                    }
                  },
                  "required": ["fieldId", "direction", "nulls"],
                  "additionalProperties": false
                },
                "maxItems": 20
              },
              "rowLimit": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 100000000
              },
              "pagination": {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  },
                  "maximumPages": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  }
                },
                "required": ["pageSize", "maximumPages"],
                "additionalProperties": false
              },
              "pivot": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "rowFieldIds": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/fields/items/properties/fieldId"
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "columnFieldIds": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/fields/items/properties/fieldId"
                        },
                        "minItems": 1,
                        "maxItems": 10
                      },
                      "valueFieldIds": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/fields/items/properties/fieldId"
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "includeRowTotals": {
                        "type": "boolean"
                      },
                      "includeColumnTotals": {
                        "type": "boolean"
                      },
                      "emptyValue": {
                        "type": "string",
                        "enum": ["null", "zero"]
                      }
                    },
                    "required": [
                      "rowFieldIds",
                      "columnFieldIds",
                      "valueFieldIds",
                      "includeRowTotals",
                      "includeColumnTotals",
                      "emptyValue"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sample": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "maximumRows": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": ["enabled", "maximumRows"],
                "additionalProperties": false
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "locale": {
                "type": "string",
                "minLength": 2,
                "maxLength": 35
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "connectorOptions": {
                "type": "object",
                "additionalProperties": {}
              },
              "parameters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 1000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "valueType": {
                      "type": "string",
                      "enum": ["string", "number", "boolean", "date", "datetime"]
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "defaultValue": {
                      "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                    },
                    "allowViewerOverride": {
                      "type": "boolean"
                    },
                    "target": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_start"
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_end"
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "filter_value"
                            },
                            "fieldId": {
                              "$ref": "#/components/schemas/McpDataCreateQueryV1/properties/definition/properties/fields/items/properties/fieldId"
                            },
                            "occurrence": {
                              "type": "integer",
                              "minimum": 0,
                              "default": 0
                            }
                          },
                          "required": ["kind", "fieldId"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "connector_option"
                            },
                            "optionId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 160
                            }
                          },
                          "required": ["kind", "optionId"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "row_limit"
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "valueType",
                    "required",
                    "defaultValue",
                    "allowViewerOverride",
                    "target"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100,
                "default": []
              },
              "requiredCapabilities": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "maxItems": 100
              }
            },
            "required": [
              "schemaVersion",
              "connectorKey",
              "queryType",
              "accountSelector",
              "fields",
              "customFieldVersionIds",
              "filter",
              "dateRange",
              "comparison",
              "sort",
              "rowLimit",
              "pagination",
              "pivot",
              "sample",
              "timeZone",
              "locale",
              "currency",
              "connectorOptions",
              "requiredCapabilities"
            ],
            "additionalProperties": false
          },
          "publish": {
            "type": "boolean",
            "default": false
          }
        },
        "required": ["name", "catalogSnapshotIds", "definition"],
        "additionalProperties": false
      },
      "McpDataCreateQueryVersionV1": {
        "type": "object",
        "properties": {
          "catalogSnapshotIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "minItems": 1,
            "maxItems": 500
          },
          "definition": {
            "type": "object",
            "properties": {
              "schemaVersion": {
                "type": "number",
                "const": 2
              },
              "connectorKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96,
                "pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
              },
              "queryType": {
                "type": "string",
                "minLength": 1,
                "maxLength": 96
              },
              "accountSelector": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "accounts"
                      },
                      "sourceAccountIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "minItems": 1,
                        "maxItems": 500
                      }
                    },
                    "required": ["kind", "sourceAccountIds"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "account_tags"
                      },
                      "accountTagIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "minItems": 1,
                        "maxItems": 100
                      }
                    },
                    "required": ["kind", "accountTagIds"],
                    "additionalProperties": false
                  }
                ]
              },
              "includeSourceAccount": {
                "type": "boolean",
                "default": true
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "role": {
                      "type": "string",
                      "enum": ["dimension", "metric", "attribute", "identifier"]
                    },
                    "outputPosition": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "alias": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "aggregation": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "none",
                            "sum",
                            "average",
                            "minimum",
                            "maximum",
                            "count",
                            "count_distinct",
                            "provider_default"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["fieldId", "role", "outputPosition", "alias", "aggregation"],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 250
              },
              "customFieldVersionIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "maxItems": 100
              },
              "filter": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "condition"
                          },
                          "fieldId": {
                            "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/fields/items/properties/fieldId"
                          },
                          "operator": {
                            "type": "string",
                            "enum": [
                              "equals",
                              "not_equals",
                              "in",
                              "not_in",
                              "contains",
                              "not_contains",
                              "starts_with",
                              "ends_with",
                              "regex",
                              "not_regex",
                              "greater_than",
                              "greater_than_or_equal",
                              "less_than",
                              "less_than_or_equal",
                              "between",
                              "is_null",
                              "is_not_null"
                            ]
                          },
                          "value": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "null"
                              },
                              {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                                }
                              }
                            ]
                          },
                          "execution": {
                            "type": "string",
                            "enum": ["pushdown_required", "pushdown_preferred", "platform_allowed"]
                          }
                        },
                        "required": ["kind", "fieldId", "operator", "value", "execution"],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "group"
                          },
                          "conjunction": {
                            "type": "string",
                            "enum": ["and", "or"]
                          },
                          "children": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/filter/anyOf/0"
                            },
                            "minItems": 1,
                            "maxItems": 100
                          }
                        },
                        "required": ["kind", "conjunction", "children"],
                        "additionalProperties": false
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dateRange": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "absolute"
                      },
                      "start": {
                        "type": "string",
                        "format": "date"
                      },
                      "end": {
                        "type": "string",
                        "format": "date"
                      }
                    },
                    "required": ["kind", "start", "end"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "relative"
                      },
                      "unit": {
                        "type": "string",
                        "enum": ["day", "week", "month", "quarter", "year"]
                      },
                      "count": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 10000
                      },
                      "offset": {
                        "type": "integer",
                        "minimum": -10000,
                        "maximum": 10000,
                        "default": 0
                      },
                      "includeCurrent": {
                        "type": "boolean",
                        "default": false
                      }
                    },
                    "required": ["kind", "unit", "count"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "rolling"
                      },
                      "unit": {
                        "type": "string",
                        "enum": ["hour", "day", "week", "month"]
                      },
                      "count": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 10000
                      },
                      "lag": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000,
                        "default": 0
                      }
                    },
                    "required": ["kind", "unit", "count"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "incremental"
                      },
                      "cursorFieldId": {
                        "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/fields/items/properties/fieldId"
                      },
                      "initialStart": {
                        "type": "string",
                        "format": "date"
                      },
                      "lookbackUnits": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 365
                      },
                      "unit": {
                        "type": "string",
                        "enum": ["hour", "day"]
                      }
                    },
                    "required": ["kind", "cursorFieldId", "initialStart", "lookbackUnits", "unit"],
                    "additionalProperties": false
                  }
                ]
              },
              "comparison": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "mode": {
                        "type": "string",
                        "enum": ["previous_period", "previous_year", "custom"]
                      },
                      "customRange": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/dateRange"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": ["enabled", "mode", "customRange"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sort": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/fields/items/properties/fieldId"
                    },
                    "direction": {
                      "type": "string",
                      "enum": ["ascending", "descending"]
                    },
                    "nulls": {
                      "type": "string",
                      "enum": ["first", "last"]
                    }
                  },
                  "required": ["fieldId", "direction", "nulls"],
                  "additionalProperties": false
                },
                "maxItems": 20
              },
              "rowLimit": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 100000000
              },
              "pagination": {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  },
                  "maximumPages": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000
                  }
                },
                "required": ["pageSize", "maximumPages"],
                "additionalProperties": false
              },
              "pivot": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "rowFieldIds": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/fields/items/properties/fieldId"
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "columnFieldIds": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/fields/items/properties/fieldId"
                        },
                        "minItems": 1,
                        "maxItems": 10
                      },
                      "valueFieldIds": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/fields/items/properties/fieldId"
                        },
                        "minItems": 1,
                        "maxItems": 25
                      },
                      "includeRowTotals": {
                        "type": "boolean"
                      },
                      "includeColumnTotals": {
                        "type": "boolean"
                      },
                      "emptyValue": {
                        "type": "string",
                        "enum": ["null", "zero"]
                      }
                    },
                    "required": [
                      "rowFieldIds",
                      "columnFieldIds",
                      "valueFieldIds",
                      "includeRowTotals",
                      "includeColumnTotals",
                      "emptyValue"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sample": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "maximumRows": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": ["enabled", "maximumRows"],
                "additionalProperties": false
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "locale": {
                "type": "string",
                "minLength": 2,
                "maxLength": 35
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "connectorOptions": {
                "type": "object",
                "additionalProperties": {}
              },
              "parameters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 1000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "valueType": {
                      "type": "string",
                      "enum": ["string", "number", "boolean", "date", "datetime"]
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "defaultValue": {
                      "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/filter/anyOf/0/anyOf/0/properties/value"
                    },
                    "allowViewerOverride": {
                      "type": "boolean"
                    },
                    "target": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_start"
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date_range_end"
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "filter_value"
                            },
                            "fieldId": {
                              "$ref": "#/components/schemas/McpDataCreateQueryVersionV1/properties/definition/properties/fields/items/properties/fieldId"
                            },
                            "occurrence": {
                              "type": "integer",
                              "minimum": 0,
                              "default": 0
                            }
                          },
                          "required": ["kind", "fieldId"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "connector_option"
                            },
                            "optionId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 160
                            }
                          },
                          "required": ["kind", "optionId"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "row_limit"
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "description",
                    "valueType",
                    "required",
                    "defaultValue",
                    "allowViewerOverride",
                    "target"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100,
                "default": []
              },
              "requiredCapabilities": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "maxItems": 100
              }
            },
            "required": [
              "schemaVersion",
              "connectorKey",
              "queryType",
              "accountSelector",
              "fields",
              "customFieldVersionIds",
              "filter",
              "dateRange",
              "comparison",
              "sort",
              "rowLimit",
              "pagination",
              "pivot",
              "sample",
              "timeZone",
              "locale",
              "currency",
              "connectorOptions",
              "requiredCapabilities"
            ],
            "additionalProperties": false
          }
        },
        "required": ["catalogSnapshotIds", "definition"],
        "additionalProperties": false
      },
      "McpDataRunQueryV1": {
        "type": "object",
        "properties": {
          "queryVersionId": {
            "type": "string",
            "format": "uuid"
          },
          "invocation": {
            "type": "object",
            "properties": {
              "clientKind": {
                "type": "string",
                "enum": [
                  "looker_studio",
                  "power_bi",
                  "qlik",
                  "azure_data_factory",
                  "alteryx",
                  "n8n",
                  "tableau",
                  "generic_rest"
                ]
              },
              "consumerReferenceHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "clientBindingVersionId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "parameterValues": {
                "type": "object",
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    },
                    {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/McpDataRunQueryV1/properties/invocation/properties/parameterValues/additionalProperties"
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": {
                        "$ref": "#/components/schemas/McpDataRunQueryV1/properties/invocation/properties/parameterValues/additionalProperties"
                      }
                    }
                  ]
                },
                "default": {}
              },
              "selectedFieldIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "maxItems": 250,
                "default": []
              },
              "requestedAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "clientKind",
              "consumerReferenceHash",
              "clientBindingVersionId",
              "requestedAt"
            ],
            "additionalProperties": false
          }
        },
        "required": ["queryVersionId", "invocation"],
        "additionalProperties": false
      },
      "ReportAuthoringContextResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "workspace": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 4096
                  }
                },
                "required": ["id", "name"],
                "additionalProperties": false
              },
              "capabilities": {
                "type": "object",
                "properties": {
                  "canRead": {
                    "type": "boolean",
                    "const": true
                  },
                  "canCreate": {
                    "type": "boolean"
                  },
                  "authoringAvailable": {
                    "type": "boolean"
                  },
                  "authoringRuntimeReady": {
                    "type": "boolean"
                  },
                  "sharingSupported": {
                    "type": "boolean"
                  },
                  "sharingRuntimeReady": {
                    "type": "boolean"
                  },
                  "canPublish": {
                    "type": "boolean"
                  },
                  "sharingRequires": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": ["canRead", "canCreate", "authoringAvailable"],
                "additionalProperties": false
              },
              "fonts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "cssFamily": {
                      "type": "string",
                      "maxLength": 256
                    }
                  },
                  "required": ["id", "cssFamily"],
                  "additionalProperties": false
                },
                "maxItems": 50
              },
              "themePresets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "themeHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    }
                  },
                  "required": ["id", "name", "themeHash"],
                  "additionalProperties": false
                },
                "maxItems": 50
              },
              "logos": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "label": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4096
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "width": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "height": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["id", "label", "width", "height"],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "logoPageInfo": {
                "type": "object",
                "properties": {
                  "nextCursor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": ["nextCursor", "hasMore"],
                "additionalProperties": false
              },
              "guideVersion": {
                "type": "number",
                "const": 1
              },
              "guide": {
                "type": "string",
                "maxLength": 32768
              }
            },
            "required": [
              "workspace",
              "capabilities",
              "fonts",
              "themePresets",
              "logos",
              "logoPageInfo",
              "guideVersion",
              "guide"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "ReportNativePageResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "identity": {
                "type": "object",
                "properties": {
                  "reportId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "documentHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "nativeDocumentVersion": {
                    "type": "number",
                    "enum": [3, 4]
                  }
                },
                "required": ["reportId", "revision", "documentHash", "nativeDocumentVersion"],
                "additionalProperties": false
              },
              "records": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "page",
                        "configuration",
                        "element",
                        "effective_configuration",
                        "data_source"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "schemaId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "valueHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "encoding": {
                      "type": "string",
                      "const": "json"
                    },
                    "chunkIndex": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "chunkCount": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "json": {
                      "type": "string",
                      "maxLength": 65536
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "schemaId",
                    "valueHash",
                    "encoding",
                    "chunkIndex",
                    "chunkCount",
                    "json"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "totalRecords": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "nextCursor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": ["totalRecords", "nextCursor", "hasMore"],
                "additionalProperties": false
              },
              "page": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "title": {
                        "type": "string",
                        "maxLength": 512
                      },
                      "position": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "navigationVisible": {
                        "type": "boolean"
                      },
                      "hidden": {
                        "type": "boolean"
                      },
                      "background": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "solid"
                                  },
                                  "value": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "alpha": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  }
                                },
                                "required": ["kind", "value"],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "linear_gradient"
                                  },
                                  "angle": {
                                    "type": "number",
                                    "minimum": -360,
                                    "maximum": 360
                                  },
                                  "stops": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "offset": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "color": {
                                          "$ref": "#/components/schemas/ReportNativePageResponseV1/properties/data/properties/page/anyOf/0/properties/background/anyOf/0/anyOf/0/properties/value"
                                        },
                                        "alpha": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        }
                                      },
                                      "required": ["offset", "color"],
                                      "additionalProperties": false
                                    },
                                    "minItems": 2,
                                    "maxItems": 16
                                  }
                                },
                                "required": ["kind", "angle", "stops"],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "radial_gradient"
                                  },
                                  "stops": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/components/schemas/ReportNativePageResponseV1/properties/data/properties/page/anyOf/0/properties/background/anyOf/0/anyOf/1/properties/stops/items"
                                    },
                                    "minItems": 2,
                                    "maxItems": 16
                                  }
                                },
                                "required": ["kind", "stops"],
                                "additionalProperties": false
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "rootElementIds": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/ReportNativePageResponseV1/properties/data/properties/page/anyOf/0/properties/id"
                        },
                        "maxItems": 250
                      },
                      "fixed": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "width": {
                                "type": "number",
                                "exclusiveMinimum": 0,
                                "minimum": 320,
                                "maximum": 10000
                              },
                              "minimumHeight": {
                                "type": "number",
                                "exclusiveMinimum": 0,
                                "minimum": 240,
                                "maximum": 20000
                              },
                              "heightMode": {
                                "type": "string",
                                "enum": ["explicit", "auto_extend"]
                              },
                              "explicitHeight": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "exclusiveMinimum": 0,
                                    "minimum": 240,
                                    "maximum": 20000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "margins": {
                                "type": "object",
                                "properties": {
                                  "top": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 320
                                  },
                                  "right": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 320
                                  },
                                  "bottom": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 320
                                  },
                                  "left": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 320
                                  }
                                },
                                "required": ["top", "right", "bottom", "left"],
                                "additionalProperties": false
                              },
                              "bleed": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 320
                              },
                              "masterRegionElementIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ReportNativePageResponseV1/properties/data/properties/page/anyOf/0/properties/id"
                                },
                                "maxItems": 32
                              },
                              "gridSize": {
                                "type": "number",
                                "enum": [4, 8, 10, 20],
                                "default": 20
                              },
                              "guides": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "$ref": "#/components/schemas/ReportNativePageResponseV1/properties/data/properties/page/anyOf/0/properties/id"
                                    },
                                    "axis": {
                                      "type": "string",
                                      "enum": ["x", "y"]
                                    },
                                    "position": {
                                      "type": "number",
                                      "minimum": 0
                                    }
                                  },
                                  "required": ["id", "axis", "position"],
                                  "additionalProperties": false
                                },
                                "maxItems": 100,
                                "default": []
                              }
                            },
                            "required": [
                              "width",
                              "minimumHeight",
                              "heightMode",
                              "explicitHeight",
                              "margins",
                              "bleed",
                              "masterRegionElementIds"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "responsive": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "sectionIds": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/ReportNativePageResponseV1/properties/data/properties/page/anyOf/0/properties/id"
                                },
                                "maxItems": 250
                              },
                              "contentMaxWidth": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "exclusiveMinimum": 0,
                                    "maximum": 10000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "outerPadding": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 320
                              },
                              "gap": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 320
                              },
                              "breakpointOverrides": {
                                "type": "object",
                                "properties": {
                                  "desktop": {
                                    "type": "object",
                                    "properties": {
                                      "contentMaxWidth": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "exclusiveMinimum": 0,
                                            "maximum": 10000
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "outerPadding": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 320
                                      },
                                      "gap": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 320
                                      }
                                    },
                                    "additionalProperties": false
                                  },
                                  "tablet": {
                                    "$ref": "#/components/schemas/ReportNativePageResponseV1/properties/data/properties/page/anyOf/0/properties/responsive/anyOf/0/properties/breakpointOverrides/properties/desktop"
                                  },
                                  "mobile": {
                                    "$ref": "#/components/schemas/ReportNativePageResponseV1/properties/data/properties/page/anyOf/0/properties/responsive/anyOf/0/properties/breakpointOverrides/properties/desktop"
                                  }
                                },
                                "additionalProperties": false
                              },
                              "printGrouping": {
                                "type": "string",
                                "enum": ["preserve_sections", "allow_split"]
                              }
                            },
                            "required": [
                              "sectionIds",
                              "contentMaxWidth",
                              "outerPadding",
                              "gap",
                              "breakpointOverrides",
                              "printGrouping"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "position",
                      "navigationVisible",
                      "background",
                      "rootElementIds",
                      "fixed",
                      "responsive"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "pageId": {
                "type": "string",
                "maxLength": 256
              },
              "pageInRecords": {
                "type": "boolean"
              },
              "pageHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "effectiveConfigurationIncluded": {
                "type": "boolean"
              }
            },
            "required": [
              "identity",
              "records",
              "pageInfo",
              "page",
              "pageId",
              "pageInRecords",
              "pageHash",
              "effectiveConfigurationIncluded"
            ],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "ReportNativeConfigurationResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "identity": {
                "type": "object",
                "properties": {
                  "reportId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "documentHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "nativeDocumentVersion": {
                    "type": "number",
                    "enum": [3, 4]
                  }
                },
                "required": ["reportId", "revision", "documentHash", "nativeDocumentVersion"],
                "additionalProperties": false
              },
              "records": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "page",
                        "configuration",
                        "element",
                        "effective_configuration",
                        "data_source"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "schemaId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "valueHash": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "encoding": {
                      "type": "string",
                      "const": "json"
                    },
                    "chunkIndex": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "chunkCount": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "json": {
                      "type": "string",
                      "maxLength": 65536
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "schemaId",
                    "valueHash",
                    "encoding",
                    "chunkIndex",
                    "chunkCount",
                    "json"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "totalRecords": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "nextCursor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": ["totalRecords", "nextCursor", "hasMore"],
                "additionalProperties": false
              }
            },
            "required": ["identity", "records", "pageInfo"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "ReportPublicationStateResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "identity": {
                "type": "object",
                "properties": {
                  "reportId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "documentHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "nativeDocumentVersion": {
                    "type": "number",
                    "enum": [3, 4]
                  }
                },
                "required": ["reportId", "revision", "documentHash", "nativeDocumentVersion"],
                "additionalProperties": false
              },
              "publications": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sharedReportId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "artifactId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "artifactVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0
                    },
                    "state": {
                      "type": "string",
                      "enum": ["active", "expired", "revoked"]
                    },
                    "metadataStatus": {
                      "type": "string",
                      "enum": [
                        "native_identity",
                        "unverified_legacy",
                        "missing_artifact",
                        "invalid_manifest",
                        "source_version_unavailable"
                      ]
                    },
                    "source": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "revision": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "documentHash": {
                              "type": "string",
                              "pattern": "^[a-f0-9]{64}$"
                            },
                            "nativeDocumentVersion": {
                              "type": "number",
                              "enum": [3, 4]
                            },
                            "sourceReportVersionId": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "revision",
                            "documentHash",
                            "nativeDocumentVersion",
                            "sourceReportVersionId"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "documentFreshness": {
                      "type": "string",
                      "enum": ["same_identity", "different_identity", "unknown"]
                    },
                    "dataFreshness": {
                      "type": "string",
                      "enum": [
                        "same_current_identity",
                        "different_or_stale_identity",
                        "not_applicable",
                        "unknown"
                      ]
                    },
                    "payloadIntegrity": {
                      "type": "string",
                      "const": "not_assessed"
                    },
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "sharedReportId",
                    "artifactId",
                    "artifactVersion",
                    "state",
                    "metadataStatus",
                    "source",
                    "documentFreshness",
                    "dataFreshness",
                    "payloadIntegrity",
                    "generatedAt",
                    "expiresAt"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "pageInfo": {
                "type": "object",
                "properties": {
                  "nextCursor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": ["nextCursor", "hasMore"],
                "additionalProperties": false
              }
            },
            "required": ["identity", "publications", "pageInfo"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "ReportCreateDraftRequestV1": {
        "type": "object",
        "properties": {
          "version": {
            "type": "number",
            "const": 1
          },
          "clientReportId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 16384
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "layoutMode": {
            "type": "string",
            "enum": ["fixed", "responsive"],
            "default": "fixed"
          },
          "flow": {
            "type": "string",
            "enum": ["paged", "continuous"],
            "default": "paged"
          },
          "defaultPageWidth": {
            "type": "number",
            "minimum": 320,
            "maximum": 10000
          },
          "initialPage": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "title": {
                "type": "string",
                "maxLength": 512
              },
              "position": {
                "type": "integer",
                "minimum": 0
              },
              "navigationVisible": {
                "type": "boolean"
              },
              "hidden": {
                "type": "boolean"
              },
              "background": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "solid"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "alpha": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          }
                        },
                        "required": ["kind", "value"],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "linear_gradient"
                          },
                          "angle": {
                            "type": "number",
                            "minimum": -360,
                            "maximum": 360
                          },
                          "stops": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "offset": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "color": {
                                  "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                                },
                                "alpha": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                }
                              },
                              "required": ["offset", "color"],
                              "additionalProperties": false
                            },
                            "minItems": 2,
                            "maxItems": 16
                          }
                        },
                        "required": ["kind", "angle", "stops"],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "radial_gradient"
                          },
                          "stops": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/1/properties/stops/items"
                            },
                            "minItems": 2,
                            "maxItems": 16
                          }
                        },
                        "required": ["kind", "stops"],
                        "additionalProperties": false
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rootElementIds": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/id"
                },
                "maxItems": 250
              },
              "fixed": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "width": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "minimum": 320,
                        "maximum": 10000
                      },
                      "minimumHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "minimum": 240,
                        "maximum": 20000
                      },
                      "heightMode": {
                        "type": "string",
                        "enum": ["explicit", "auto_extend"]
                      },
                      "explicitHeight": {
                        "anyOf": [
                          {
                            "type": "number",
                            "exclusiveMinimum": 0,
                            "minimum": 240,
                            "maximum": 20000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "margins": {
                        "type": "object",
                        "properties": {
                          "top": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 320
                          },
                          "right": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 320
                          },
                          "bottom": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 320
                          },
                          "left": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 320
                          }
                        },
                        "required": ["top", "right", "bottom", "left"],
                        "additionalProperties": false
                      },
                      "bleed": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 320
                      },
                      "masterRegionElementIds": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/id"
                        },
                        "maxItems": 32
                      },
                      "gridSize": {
                        "type": "number",
                        "enum": [4, 8, 10, 20],
                        "default": 20
                      },
                      "guides": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/id"
                            },
                            "axis": {
                              "type": "string",
                              "enum": ["x", "y"]
                            },
                            "position": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": ["id", "axis", "position"],
                          "additionalProperties": false
                        },
                        "maxItems": 100,
                        "default": []
                      }
                    },
                    "required": [
                      "width",
                      "minimumHeight",
                      "heightMode",
                      "explicitHeight",
                      "margins",
                      "bleed",
                      "masterRegionElementIds"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "responsive": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "sectionIds": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/id"
                        },
                        "maxItems": 250
                      },
                      "contentMaxWidth": {
                        "anyOf": [
                          {
                            "type": "number",
                            "exclusiveMinimum": 0,
                            "maximum": 10000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "outerPadding": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 320
                      },
                      "gap": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 320
                      },
                      "breakpointOverrides": {
                        "type": "object",
                        "properties": {
                          "desktop": {
                            "type": "object",
                            "properties": {
                              "contentMaxWidth": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "exclusiveMinimum": 0,
                                    "maximum": 10000
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "outerPadding": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 320
                              },
                              "gap": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 320
                              }
                            },
                            "additionalProperties": false
                          },
                          "tablet": {
                            "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/responsive/anyOf/0/properties/breakpointOverrides/properties/desktop"
                          },
                          "mobile": {
                            "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/responsive/anyOf/0/properties/breakpointOverrides/properties/desktop"
                          }
                        },
                        "additionalProperties": false
                      },
                      "printGrouping": {
                        "type": "string",
                        "enum": ["preserve_sections", "allow_split"]
                      }
                    },
                    "required": [
                      "sectionIds",
                      "contentMaxWidth",
                      "outerPadding",
                      "gap",
                      "breakpointOverrides",
                      "printGrouping"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "title",
              "position",
              "navigationVisible",
              "background",
              "rootElementIds",
              "fixed",
              "responsive"
            ],
            "additionalProperties": false
          },
          "theme": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "presetId": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/id"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fontFamilies": {
                "type": "object",
                "properties": {
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "heading": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "monospace": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "required": ["body", "heading", "monospace"],
                "additionalProperties": false
              },
              "typeScale": {
                "type": "object",
                "additionalProperties": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 512
                },
                "propertyNames": {
                  "minLength": 1
                }
              },
              "typography": {
                "type": "object",
                "properties": {
                  "display": {
                    "type": "object",
                    "properties": {
                      "fontFamily": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "fontSize": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 512
                      },
                      "fontWeight": {
                        "type": "integer",
                        "minimum": 100,
                        "maximum": 900
                      },
                      "lineHeight": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 10
                      },
                      "letterSpacing": {
                        "type": "number",
                        "minimum": -20,
                        "maximum": 100
                      },
                      "color": {
                        "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                      }
                    },
                    "required": [
                      "fontFamily",
                      "fontSize",
                      "fontWeight",
                      "lineHeight",
                      "letterSpacing",
                      "color"
                    ],
                    "additionalProperties": false
                  },
                  "sectionHeading": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/typography/properties/display"
                  },
                  "subheading": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/typography/properties/display"
                  },
                  "body": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/typography/properties/display"
                  },
                  "caption": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/typography/properties/display"
                  },
                  "dataLabel": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/typography/properties/display"
                  },
                  "axisLabel": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/typography/properties/display"
                  },
                  "microAnnotation": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/typography/properties/display"
                  }
                },
                "required": [
                  "display",
                  "sectionHeading",
                  "subheading",
                  "body",
                  "caption",
                  "dataLabel",
                  "axisLabel",
                  "microAnnotation"
                ],
                "additionalProperties": false
              },
              "colors": {
                "type": "object",
                "properties": {
                  "foreground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "mutedForeground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "background": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "surface": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "border": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "accent": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "focus": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "positive": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "negative": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "warning": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "grid": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "axis": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "title": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "otherValue": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  }
                },
                "required": [
                  "foreground",
                  "mutedForeground",
                  "background",
                  "surface",
                  "border",
                  "accent"
                ],
                "additionalProperties": false
              },
              "component": {
                "type": "object",
                "properties": {
                  "background": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "opacity": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "borderColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "borderRadius": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "borderWidth": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 32
                  },
                  "borderStyle": {
                    "type": "string",
                    "enum": ["none", "solid", "dashed", "dotted"]
                  },
                  "shadow": {
                    "type": "string",
                    "enum": ["none", "subtle", "medium", "strong"]
                  }
                },
                "required": [
                  "background",
                  "opacity",
                  "borderColor",
                  "borderRadius",
                  "borderWidth",
                  "borderStyle",
                  "shadow"
                ],
                "additionalProperties": false
              },
              "accentStyle": {
                "type": "object",
                "properties": {
                  "fontFamily": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "foreground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "background": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  }
                },
                "required": ["fontFamily", "foreground", "background"],
                "additionalProperties": false
              },
              "textBox": {
                "type": "object",
                "properties": {
                  "fontFamily": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "foreground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "background": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "linkColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "visitedLinkColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "hideBorder": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "fontFamily",
                  "foreground",
                  "background",
                  "linkColor",
                  "visitedLinkColor",
                  "hideBorder"
                ],
                "additionalProperties": false
              },
              "chartPalette": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                },
                "minItems": 1,
                "maxItems": 32
              },
              "palette": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/id"
                    },
                    "color": {
                      "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                    },
                    "label": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/title"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["id", "color", "label"],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 64
              },
              "dimensionValueColors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldId": {
                      "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/id"
                    },
                    "valueId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 512
                    },
                    "color": {
                      "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                    },
                    "label": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/title"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["fieldId", "valueId", "color"],
                  "additionalProperties": false
                },
                "maxItems": 2000
              },
              "chart": {
                "type": "object",
                "properties": {
                  "gridColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "axisColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "lineWidth": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 32
                  },
                  "titleColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "textContrast": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "othersColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "barBorderColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "barBorderWidth": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 32
                  },
                  "groupedBarWidth": {
                    "type": "number",
                    "minimum": 0.1,
                    "maximum": 1
                  },
                  "positiveColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "negativeColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "headerVisibility": {
                    "type": "string",
                    "enum": ["always", "hover", "never"]
                  },
                  "colorMode": {
                    "type": "string",
                    "enum": ["series_order", "dimension_value"]
                  }
                },
                "required": ["gridColor", "axisColor", "lineWidth"],
                "additionalProperties": false
              },
              "table": {
                "type": "object",
                "properties": {
                  "density": {
                    "type": "string",
                    "enum": ["compact", "standard", "comfortable"]
                  },
                  "showRowDividers": {
                    "type": "boolean"
                  },
                  "background": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "headerBackground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "headerForeground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "alternateRowBackground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "gridColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "totalsBackground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "totalsForeground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "numericAlignment": {
                    "type": "string",
                    "enum": ["start", "end"]
                  },
                  "linkColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  }
                },
                "required": ["density", "showRowDividers"],
                "additionalProperties": false
              },
              "controls": {
                "type": "object",
                "properties": {
                  "radius": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "height": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 512
                  },
                  "background": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "foreground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "borderColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "labelPosition": {
                    "type": "string",
                    "enum": ["above", "inline", "hidden"]
                  },
                  "selectedBackground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "selectedForeground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "unselectedForeground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "trackColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "handleColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "popupBackground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "popupForeground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "popupBorderColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  }
                },
                "required": ["radius", "height"],
                "additionalProperties": false
              },
              "shapes": {
                "type": "object",
                "properties": {
                  "radius": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "borderWidth": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 32
                  },
                  "fillColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "borderColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "borderStyle": {
                    "type": "string",
                    "enum": ["none", "solid", "dashed", "dotted"]
                  }
                },
                "required": ["radius", "borderWidth"],
                "additionalProperties": false
              },
              "navigation": {
                "type": "object",
                "properties": {
                  "showPageNumbers": {
                    "type": "boolean"
                  },
                  "fontFamily": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "foreground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "activeForeground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "background": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "inactiveForeground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "activeBackground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "hoverBackground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "focusColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "borderColor": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "radius": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "height": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 512
                  }
                },
                "required": ["fontFamily", "foreground", "activeForeground", "background"],
                "additionalProperties": false
              },
              "print": {
                "type": "object",
                "properties": {
                  "background": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "foreground": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "surface": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "border": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  },
                  "accent": {
                    "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/background/anyOf/0/anyOf/0/properties/value"
                  }
                },
                "required": ["background", "foreground", "surface", "border", "accent"],
                "additionalProperties": false
              },
              "spacing": {
                "type": "object",
                "additionalProperties": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1000
                },
                "propertyNames": {
                  "minLength": 1
                }
              },
              "formatting": {
                "type": "object",
                "properties": {
                  "number": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["number", "percent", "currency", "duration"]
                      },
                      "locale": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 64
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "notation": {
                        "type": "string",
                        "enum": ["standard", "compact"]
                      },
                      "minimumFractionDigits": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 20
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maximumFractionDigits": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 20
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minimumSignificantDigits": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 21
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maximumSignificantDigits": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 21
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "currency": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[A-Z]{3}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "currencyDisplay": {
                        "type": "string",
                        "enum": ["symbol", "narrowSymbol", "code", "name"]
                      },
                      "accounting": {
                        "type": "boolean"
                      },
                      "unit": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "prefix": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "suffix": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "showPlusSign": {
                        "type": "boolean"
                      },
                      "negativeStyle": {
                        "type": "string",
                        "enum": ["minus", "parentheses"]
                      },
                      "customPattern": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 128
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "locale",
                      "notation",
                      "minimumFractionDigits",
                      "maximumFractionDigits",
                      "minimumSignificantDigits",
                      "maximumSignificantDigits",
                      "currency",
                      "currencyDisplay",
                      "accounting",
                      "unit",
                      "prefix",
                      "suffix",
                      "showPlusSign",
                      "negativeStyle",
                      "customPattern"
                    ],
                    "additionalProperties": false
                  },
                  "date": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": ["date", "time", "datetime"]
                      },
                      "locale": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 64
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "timeZone": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dateStyle": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": ["short", "medium", "long", "full"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "timeStyle": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": ["short", "medium", "long", "full"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "customPattern": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 128
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind",
                      "locale",
                      "timeZone",
                      "dateStyle",
                      "timeStyle",
                      "customPattern"
                    ],
                    "additionalProperties": false
                  },
                  "missing": {
                    "type": "object",
                    "properties": {
                      "missing": {
                        "type": "object",
                        "properties": {
                          "display": {
                            "type": "string",
                            "enum": ["dash", "blank", "zero", "label"]
                          },
                          "label": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 128
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": ["display", "label"],
                        "additionalProperties": false
                      },
                      "null": {
                        "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/formatting/properties/missing/properties/missing"
                      },
                      "not_applicable": {
                        "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/formatting/properties/missing/properties/missing"
                      },
                      "divide_by_zero": {
                        "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/formatting/properties/missing/properties/missing"
                      },
                      "suppressed": {
                        "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/theme/properties/formatting/properties/missing/properties/missing"
                      }
                    },
                    "required": [
                      "missing",
                      "null",
                      "not_applicable",
                      "divide_by_zero",
                      "suppressed"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": ["number", "date", "missing"],
                "additionalProperties": false
              },
              "fontCatalogueVersion": {
                "type": "number",
                "const": 1
              }
            },
            "required": [
              "version",
              "fontFamilies",
              "typeScale",
              "colors",
              "chartPalette",
              "chart",
              "table",
              "controls",
              "shapes",
              "spacing"
            ],
            "additionalProperties": false
          },
          "themePresetId": {
            "type": "string",
            "enum": ["signal", "observatory", "editorial", "grove", "spectrum"]
          },
          "print": {
            "type": "object",
            "properties": {
              "pageSize": {
                "type": "string",
                "enum": ["document", "a4", "letter"]
              },
              "orientation": {
                "type": "string",
                "enum": ["portrait", "landscape", "auto"]
              },
              "repeatMasterRegions": {
                "type": "boolean"
              },
              "includeBackgrounds": {
                "type": "boolean"
              },
              "scale": {
                "type": "string",
                "enum": ["actual_size", "fit_width", "fit_page"]
              },
              "margins": {
                "$ref": "#/components/schemas/ReportCreateDraftRequestV1/properties/initialPage/properties/fixed/anyOf/0/properties/margins",
                "default": {
                  "top": 24,
                  "right": 24,
                  "bottom": 24,
                  "left": 24
                }
              },
              "scaleCap": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 1,
                "default": 1
              },
              "allowElementSplitting": {
                "type": "boolean",
                "default": false
              }
            },
            "required": [
              "pageSize",
              "orientation",
              "repeatMasterRegions",
              "includeBackgrounds",
              "scale"
            ],
            "additionalProperties": false
          }
        },
        "required": ["version", "clientReportId", "name"],
        "additionalProperties": false
      },
      "ReportCreateDraftResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string",
                "maxLength": 4096
              },
              "revision": {
                "type": "integer",
                "minimum": 0
              },
              "documentHash": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nativeDocumentVersion": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ReportCreateDraftResponseV1/properties/data/properties/revision"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "layoutMode": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["fixed", "responsive"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "manifest": {
                "type": "object",
                "properties": {
                  "identity": {
                    "type": "object",
                    "properties": {
                      "reportId": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "documentHash": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "nativeDocumentVersion": {
                        "type": "number",
                        "enum": [3, 4]
                      }
                    },
                    "required": ["reportId", "revision", "documentHash", "nativeDocumentVersion"],
                    "additionalProperties": false
                  },
                  "configurationSchemaId": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "configurationHash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "pages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "pageHash": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "elementsHash": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "elementCount": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": ["id", "pageHash", "elementsHash", "elementCount"],
                      "additionalProperties": false
                    },
                    "maxItems": 500
                  },
                  "dataSourceAttachmentIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "maxItems": 1000
                  }
                },
                "required": [
                  "identity",
                  "configurationSchemaId",
                  "configurationHash",
                  "pages",
                  "dataSourceAttachmentIds"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "name",
              "revision",
              "documentHash",
              "nativeDocumentVersion",
              "updatedAt",
              "layoutMode",
              "manifest"
            ],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": ["data", "replayed"],
        "additionalProperties": false
      },
      "SeoMcpRequest": {
        "type": "object",
        "required": ["jsonrpc", "method"],
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          },
          "method": {
            "type": "string",
            "description": "An MCP JSON-RPC request or notification method."
          },
          "params": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": false
      },
      "SeoMcpResponse": {
        "type": "object",
        "required": ["jsonrpc", "id"],
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "result": {},
          "error": {
            "type": "object",
            "required": ["code", "message"],
            "properties": {
              "code": {
                "type": "integer"
              },
              "message": {
                "type": "string"
              },
              "data": {}
            },
            "additionalProperties": false
          }
        },
        "oneOf": [
          {
            "required": ["result"]
          },
          {
            "required": ["error"]
          }
        ],
        "additionalProperties": false
      },
      "SeoHttpError": {
        "type": "object",
        "required": ["error"],
        "properties": {
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "required": ["code"],
                "properties": {
                  "code": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "ReportImageUploadRequestV1": {
        "type": "object",
        "properties": {
          "version": {
            "type": "number",
            "const": 1
          },
          "source": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "url"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048
                  }
                },
                "required": ["kind", "url"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "base64"
                  },
                  "mimeType": {
                    "type": "string",
                    "enum": ["image/png", "image/jpeg", "image/webp"]
                  },
                  "data": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 1333336,
                    "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
                  }
                },
                "required": ["kind", "mimeType", "data"],
                "additionalProperties": false
              }
            ]
          },
          "expectedSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Optional exact-file checksum supplied by the user or computed from actual bytes. Never guess; omit otherwise. The server computes its own checksum."
          }
        },
        "required": ["version", "source"],
        "additionalProperties": false
      },
      "ReportImageUploadResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "assetId": {
                "type": "string",
                "format": "uuid"
              },
              "filePath": {
                "type": "string",
                "minLength": 1
              },
              "mimeType": {
                "type": "string",
                "enum": ["image/png", "image/jpeg", "image/webp"]
              },
              "byteSize": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 1000000
              },
              "width": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "height": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "hasAlpha": {
                "type": "boolean"
              },
              "sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            },
            "required": [
              "assetId",
              "filePath",
              "mimeType",
              "byteSize",
              "width",
              "height",
              "hasAlpha",
              "sha256"
            ],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": ["data", "replayed"],
        "additionalProperties": false
      },
      "CreateReportShareRequestV1": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "minimum": 0
          },
          "expectedDocumentHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "title": {
            "type": "string",
            "maxLength": 160
          },
          "accessMode": {
            "type": "string",
            "enum": ["unlisted", "workspace_sign_in", "authenticated_allowlist", "password"],
            "default": "unlisted"
          },
          "password": {
            "type": "string",
            "minLength": 10,
            "maxLength": 128
          },
          "allowedUserIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "maxItems": 250
          },
          "allowedPageIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "maxItems": 100
          },
          "initialPageId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "allowDownloadData": {
            "type": "boolean",
            "default": false
          },
          "allowCopyReport": {
            "type": "boolean",
            "default": false
          },
          "allowExternalLinks": {
            "type": "boolean",
            "default": true
          },
          "watermarkEnabled": {
            "type": "boolean",
            "default": true
          },
          "branding": {
            "type": "string",
            "enum": ["chatobserver", "workspace_allowed"],
            "default": "chatobserver"
          }
        },
        "required": ["expectedRevision"],
        "additionalProperties": false
      },
      "ReportShareResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "reportId": {
                "type": "string",
                "format": "uuid"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "accessMode": {
                "type": "string",
                "enum": ["unlisted", "workspace_sign_in", "authenticated_allowlist", "password"]
              },
              "artifactVersion": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "revoked": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "reportId",
              "url",
              "accessMode",
              "artifactVersion",
              "expiresAt",
              "revoked"
            ],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "AttachReportQueryRequestV1": {
        "type": "object",
        "properties": {
          "stableKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z][a-z0-9_]*$"
          },
          "displayName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "queryId": {
            "type": "string",
            "format": "uuid"
          },
          "queryVersionId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": ["stableKey", "displayName", "queryId", "queryVersionId"],
        "additionalProperties": false
      },
      "ReportQueryAttachmentResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "attachmentId": {
                "type": "string",
                "format": "uuid"
              },
              "reportId": {
                "type": "string",
                "format": "uuid"
              },
              "stableKey": {
                "type": "string",
                "maxLength": 128
              },
              "displayName": {
                "type": "string",
                "maxLength": 160
              },
              "attachmentVersionId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "generationId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "maxLength": 64
              },
              "catalogue": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "attachmentId": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "source": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": ["metrics_query", "native", "upload", "blend"]
                          },
                          "connectorKey": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "sourceAccountIds": {
                            "type": "array",
                            "items": {
                              "type": "integer",
                              "exclusiveMinimum": 0
                            },
                            "maxItems": 25
                          },
                          "catalogueSnapshotIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "maxItems": 25
                          }
                        },
                        "required": [
                          "kind",
                          "connectorKey",
                          "sourceAccountIds",
                          "catalogueSnapshotIds"
                        ],
                        "additionalProperties": false
                      },
                      "fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 8,
                              "maxLength": 128
                            },
                            "sourceFieldId": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "displayName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 160
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "role": {
                              "type": "string",
                              "enum": ["dimension", "measure", "parameter"]
                            },
                            "dataType": {
                              "type": "string",
                              "enum": [
                                "string",
                                "boolean",
                                "integer",
                                "decimal",
                                "percent",
                                "currency",
                                "date",
                                "datetime",
                                "duration",
                                "url",
                                "image_url",
                                "country",
                                "region",
                                "city",
                                "latitude",
                                "longitude",
                                "enum"
                              ]
                            },
                            "defaultAggregation": {
                              "type": "string",
                              "enum": [
                                "none",
                                "sum",
                                "average",
                                "weighted_average",
                                "count",
                                "count_distinct",
                                "minimum",
                                "maximum",
                                "median"
                              ]
                            },
                            "allowedAggregations": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/ReportQueryAttachmentResponseV1/properties/data/properties/catalogue/anyOf/0/properties/fields/items/properties/defaultAggregation"
                              },
                              "minItems": 1,
                              "maxItems": 12
                            },
                            "format": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "number",
                                        "percent",
                                        "currency",
                                        "date",
                                        "datetime",
                                        "duration"
                                      ]
                                    },
                                    "locale": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 2,
                                          "maxLength": 32
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "currencyCode": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "pattern": "^[A-Z]{3}$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "minimumFractionDigits": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 20
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maximumFractionDigits": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 20
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "compact": {
                                      "type": "boolean"
                                    },
                                    "dateStyle": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": ["short", "medium", "long", "full"]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "timeStyle": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": ["short", "medium", "long", "full"]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "locale",
                                    "currencyCode",
                                    "minimumFractionDigits",
                                    "maximumFractionDigits",
                                    "compact",
                                    "dateStyle",
                                    "timeStyle"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "semanticTags": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "maxItems": 40
                            },
                            "nullable": {
                              "type": "boolean"
                            },
                            "hidden": {
                              "type": "boolean"
                            },
                            "sensitive": {
                              "type": "boolean"
                            },
                            "filter": {
                              "type": "object",
                              "properties": {
                                "allowed": {
                                  "type": "boolean"
                                },
                                "operators": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "maxItems": 30
                                },
                                "valueResolverId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": ["allowed", "operators", "valueResolverId"],
                              "additionalProperties": false
                            },
                            "orderable": {
                              "type": "boolean"
                            },
                            "lineage": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "metrics"
                                    },
                                    "connectorKey": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    "sourceAccountId": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0
                                    },
                                    "catalogueSnapshotId": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "sourceFieldId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "providerFieldId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 512
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "origin": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 64
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "connectorKey",
                                    "sourceAccountId",
                                    "catalogueSnapshotId",
                                    "sourceFieldId",
                                    "providerFieldId",
                                    "origin"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "native"
                                    },
                                    "datasetId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "sourceFieldId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": ["kind", "datasetId", "sourceFieldId"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "upload"
                                    },
                                    "uploadVersionId": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "columnId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": ["kind", "uploadVersionId", "columnId"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "calculated"
                                    },
                                    "definitionId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "dependencyFieldIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "maxItems": 100
                                    }
                                  },
                                  "required": ["kind", "definitionId", "dependencyFieldIds"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "blend"
                                    },
                                    "blendId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "inputFieldIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "minItems": 1,
                                      "maxItems": 200
                                    }
                                  },
                                  "required": ["kind", "blendId", "inputFieldIds"],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "sourceFieldId",
                            "displayName",
                            "description",
                            "role",
                            "dataType",
                            "defaultAggregation",
                            "allowedAggregations",
                            "format",
                            "semanticTags",
                            "nullable",
                            "hidden",
                            "sensitive",
                            "filter",
                            "orderable",
                            "lineage"
                          ],
                          "additionalProperties": false
                        },
                        "maxItems": 5000
                      },
                      "generatedAt": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "schemaFingerprint": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$"
                      }
                    },
                    "required": [
                      "version",
                      "attachmentId",
                      "source",
                      "fields",
                      "generatedAt",
                      "schemaFingerprint"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "generation": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "freshness": {
                        "type": "string",
                        "maxLength": 64
                      },
                      "rowCount": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "warnings": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 128
                        },
                        "maxItems": 500
                      }
                    },
                    "required": ["status", "freshness", "rowCount", "warnings"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "attachmentId",
              "reportId",
              "stableKey",
              "displayName",
              "attachmentVersionId",
              "generationId",
              "status",
              "catalogue",
              "generation"
            ],
            "additionalProperties": false
          },
          "adoption": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": ["complete", "pending", "failed", "needs_repair"]
              },
              "issueCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 128
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "generationId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["state", "issueCode", "generationId"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "ReportSaveResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "reportId": {
                "type": "string",
                "format": "uuid"
              },
              "revision": {
                "type": "integer",
                "minimum": 0
              },
              "operationId": {
                "type": "string",
                "format": "uuid"
              },
              "assessment": {
                "type": "string",
                "const": "not_assessed"
              }
            },
            "required": ["reportId", "revision", "operationId", "assessment"],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": ["data", "replayed"],
        "additionalProperties": false
      },
      "ReportSaveRequestV1": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "minimum": 0
          },
          "layoutPolicy": {
            "type": "string",
            "enum": ["compose", "preserve"],
            "default": "compose"
          },
          "allowPageGrowth": {
            "type": "boolean",
            "default": true
          },
          "operations": {
            "type": "array",
            "minItems": 1,
            "maxItems": 256,
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ReportAppendTextCommandV1"
                },
                {
                  "$ref": "#/components/schemas/ReportAuthoringBatchV2/properties/operations/items"
                }
              ]
            }
          }
        },
        "required": ["expectedRevision", "operations"],
        "additionalProperties": false
      },
      "ReportAppendTextCommandV1": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "append_text"
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "A new, stable element identity, for example text-1."
          },
          "text": {
            "type": "string",
            "maxLength": 100000,
            "description": "The exact visible plain text."
          },
          "pageId": {
            "$ref": "#/components/schemas/ReportAppendTextCommandV1/properties/id",
            "description": "Defaults to the first logical page."
          },
          "regionId": {
            "$ref": "#/components/schemas/ReportAppendTextCommandV1/properties/pageId",
            "description": "Optional existing composition region. Omit for a new empty page or an unambiguous body column."
          },
          "textStyle": {
            "type": "string",
            "enum": ["paragraph", "h1", "h2", "h3", "quote", "code"],
            "default": "paragraph"
          }
        },
        "required": ["kind", "id", "text"],
        "additionalProperties": false
      },
      "ReportNativeDatasetRequestV1": {
        "type": "object",
        "properties": {
          "stableKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[a-z][a-z0-9_]*$"
          },
          "displayName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "datasetId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "selectedFieldIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "minItems": 1,
            "maxItems": 500
          }
        },
        "required": ["stableKey", "displayName", "datasetId"],
        "additionalProperties": false
      },
      "ReportNativeDatasetsResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "maxLength": 256
                },
                "label": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "sourceId": {
                  "type": "string"
                },
                "shape": {
                  "type": "string"
                },
                "supportedViewIntents": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "fields": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "aggregate": {
                        "type": "string"
                      }
                    },
                    "required": ["id", "label", "type"],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "label",
                "description",
                "sourceId",
                "shape",
                "supportedViewIntents",
                "fields"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "McpWorkspaceCreateRequestV1": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "primaryDomain": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253
          }
        },
        "required": ["name", "primaryDomain"],
        "additionalProperties": false
      },
      "McpWorkspaceCreateResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^ws_[a-f0-9]{32}$"
              },
              "name": {
                "type": "string"
              },
              "primaryDomain": {
                "type": "string"
              },
              "role": {
                "type": "string",
                "enum": ["owner", "admin"]
              }
            },
            "required": ["id", "name", "primaryDomain", "role"],
            "additionalProperties": false
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "McpWorkspacesResponseV1": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "role": {
                  "type": "string"
                },
                "capabilities": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "workspaces:create",
                      "seo:read",
                      "seo:write",
                      "seo:run",
                      "seo:manage",
                      "prompts:read",
                      "prompts:create",
                      "prompts:write",
                      "prompts:run",
                      "competitors:read",
                      "competitors:write",
                      "competitors:confirm",
                      "sources:read",
                      "sources:write",
                      "groups:read",
                      "groups:write",
                      "sentiment:read",
                      "usage:read",
                      "ai-referrals:read",
                      "crawler-logs:read",
                      "coverage:read",
                      "coverage:write",
                      "reports:read",
                      "reports:write",
                      "reports:publish",
                      "data:read",
                      "data:write",
                      "data:execute"
                    ]
                  }
                }
              },
              "required": ["id", "name", "role", "capabilities"],
              "additionalProperties": false
            }
          }
        },
        "required": ["data"],
        "additionalProperties": false
      },
      "postV2MetricsClientAuthSessionsSessionIdRenewRequest": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "format": "uuid"
          },
          "renewalToken": {
            "type": "string",
            "pattern": "^mcr_[A-Za-z0-9_-]{43,64}$"
          },
          "audience": {
            "type": "string",
            "const": "chatobserver-metrics-sheets"
          },
          "documentReferenceHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "nextRenewalToken": {
            "type": "string",
            "pattern": "^mcr_[A-Za-z0-9_-]{43,64}$"
          },
          "nextSessionToken": {
            "type": "string",
            "pattern": "^mcs_[A-Za-z0-9_-]{43,64}$"
          },
          "requestId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "sessionId",
          "renewalToken",
          "audience",
          "documentReferenceHash",
          "nextRenewalToken",
          "nextSessionToken",
          "requestId"
        ],
        "additionalProperties": false
      },
      "postV2MetricsClientAuthSessionsSessionIdRenewResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "token": {
                "type": "string"
              },
              "sessionId": {
                "type": "string"
              },
              "workspaceId": {
                "type": "string"
              },
              "actorId": {
                "type": "string"
              },
              "clientKind": {
                "enum": ["google_sheets", "excel"],
                "type": "string"
              },
              "scopes": {
                "type": "array",
                "items": {
                  "enum": ["client:read", "client:write", "client:execute"],
                  "type": "string"
                }
              },
              "expiresAt": {
                "type": "string"
              },
              "documentReferenceHash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "renewal": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "pattern": "^mcr_[A-Za-z0-9_-]{43,64}$"
                  },
                  "expiresAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": ["token", "expiresAt"],
                "additionalProperties": false
              }
            },
            "required": [
              "token",
              "sessionId",
              "workspaceId",
              "actorId",
              "clientKind",
              "scopes",
              "expiresAt",
              "documentReferenceHash",
              "renewal"
            ]
          }
        },
        "required": ["data"]
      },
      "postV2MetricsClientAuthSessionsSessionIdRevokeRequest": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "format": "uuid"
          },
          "renewalToken": {
            "type": "string",
            "pattern": "^mcr_[A-Za-z0-9_-]{43,64}$"
          },
          "audience": {
            "type": "string",
            "const": "chatobserver-metrics-sheets"
          },
          "documentReferenceHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": ["sessionId", "renewalToken", "audience", "documentReferenceHash"],
        "additionalProperties": false
      },
      "postV2MetricsClientAuthSessionsSessionIdRevokeResponse200": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "sessionId": {
                "type": "string",
                "format": "uuid"
              },
              "status": {
                "type": "string",
                "const": "revoked"
              }
            },
            "required": ["sessionId", "status"]
          }
        },
        "required": ["data"]
      }
    },
    "responses": {}
  }
}
