{
  "$id": "https://elicitra.eigen.rest/developers/v6/schemas/mcp/campaign_get.output.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "campaign": {
          "additionalProperties": false,
          "properties": {
            "campaignKey": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "channel": {
              "enum": [
                "phone_call",
                "web_call",
                "text_chat"
              ],
              "type": "string"
            },
            "editorUrl": {
              "maxLength": 2048,
              "type": "string"
            },
            "intake": {
              "additionalProperties": false,
              "properties": {
                "callback": {
                  "additionalProperties": false,
                  "properties": {
                    "capacityPerSlot": {
                      "maximum": 100,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "label": {
                      "anyOf": [
                        {
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "label",
                    "capacityPerSlot"
                  ],
                  "type": "object"
                },
                "ctaLabel": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "headline": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "quickAnswers": {
                  "additionalProperties": false,
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "label": {
                      "anyOf": [
                        {
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "label"
                  ],
                  "type": "object"
                },
                "subheadline": {
                  "anyOf": [
                    {
                      "maxLength": 8192,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "title": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "title",
                "headline",
                "subheadline",
                "ctaLabel",
                "callback",
                "quickAnswers"
              ],
              "type": "object"
            },
            "mcpEditability": {
              "additionalProperties": false,
              "properties": {
                "editable": {
                  "type": "boolean"
                },
                "editorUrl": {
                  "maxLength": 2048,
                  "type": "string"
                },
                "reason": {
                  "enum": [
                    "draft",
                    "not_draft",
                    "open_interactions"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "editable",
                "reason",
                "editorUrl"
              ],
              "type": "object"
            },
            "name": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "review": {
              "additionalProperties": false,
              "properties": {
                "campaignKey": {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                "draftReady": {
                  "type": "boolean"
                },
                "editorUrl": {
                  "maxLength": 2048,
                  "type": "string"
                },
                "issues": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "code": {
                        "enum": [
                          "CAMPAIGN_NOT_DRAFT",
                          "INTAKE_TITLE_REQUIRED",
                          "INTAKE_HEADLINE_REQUIRED",
                          "INTAKE_CTA_REQUIRED",
                          "PUBLISH_PROVIDER_NOT_PUBLISHED",
                          "PUBLISH_PROVIDER_STALE",
                          "PUBLISH_PROVIDER_ERROR",
                          "PUBLISH_CHANNEL_PROMPT_NOT_READY",
                          "PUBLISH_TEXT_CHAT_BUDGET_NOT_READY",
                          "PUBLISH_KNOWLEDGE_BASE_NOT_READY",
                          "PUBLISH_KNOWLEDGE_BASE_TIER_UNAVAILABLE",
                          "PUBLISH_CALLER_NUMBER_REQUIRED",
                          "PUBLISH_CALLER_NUMBER_UNAVAILABLE",
                          "PUBLISH_CALLER_NUMBER_TIER_UNAVAILABLE",
                          "PUBLISH_QUICK_ANSWERS_NOT_READY",
                          "ACCESS_CONFIGURATION_REQUIRED"
                        ],
                        "type": "string"
                      },
                      "message": {
                        "maxLength": 1024,
                        "type": "string"
                      },
                      "path": {
                        "maxLength": 512,
                        "type": "string"
                      }
                    },
                    "required": [
                      "path",
                      "code",
                      "message"
                    ],
                    "type": "object"
                  },
                  "maxItems": 20,
                  "type": "array"
                },
                "operatorActions": {
                  "items": {
                    "enum": [
                      "open_campaign_editor",
                      "configure_access",
                      "prepare_scenario",
                      "assign_caller_number",
                      "review_quick_answers",
                      "publish_campaign"
                    ],
                    "type": "string"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "publishReadiness": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "anyOf": [
                        {
                          "enum": [
                            "CAMPAIGN_NOT_DRAFT",
                            "INTAKE_TITLE_REQUIRED",
                            "INTAKE_HEADLINE_REQUIRED",
                            "INTAKE_CTA_REQUIRED",
                            "PUBLISH_PROVIDER_NOT_PUBLISHED",
                            "PUBLISH_PROVIDER_STALE",
                            "PUBLISH_PROVIDER_ERROR",
                            "PUBLISH_CHANNEL_PROMPT_NOT_READY",
                            "PUBLISH_TEXT_CHAT_BUDGET_NOT_READY",
                            "PUBLISH_KNOWLEDGE_BASE_NOT_READY",
                            "PUBLISH_KNOWLEDGE_BASE_TIER_UNAVAILABLE",
                            "PUBLISH_CALLER_NUMBER_REQUIRED",
                            "PUBLISH_CALLER_NUMBER_UNAVAILABLE",
                            "PUBLISH_CALLER_NUMBER_TIER_UNAVAILABLE",
                            "PUBLISH_QUICK_ANSWERS_NOT_READY",
                            "ACCESS_CONFIGURATION_REQUIRED"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ready": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ready",
                    "code"
                  ],
                  "type": "object"
                },
                "revision": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "warnings": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "code": {
                        "enum": [
                          "CAMPAIGN_NOT_DRAFT",
                          "INTAKE_TITLE_REQUIRED",
                          "INTAKE_HEADLINE_REQUIRED",
                          "INTAKE_CTA_REQUIRED",
                          "PUBLISH_PROVIDER_NOT_PUBLISHED",
                          "PUBLISH_PROVIDER_STALE",
                          "PUBLISH_PROVIDER_ERROR",
                          "PUBLISH_CHANNEL_PROMPT_NOT_READY",
                          "PUBLISH_TEXT_CHAT_BUDGET_NOT_READY",
                          "PUBLISH_KNOWLEDGE_BASE_NOT_READY",
                          "PUBLISH_KNOWLEDGE_BASE_TIER_UNAVAILABLE",
                          "PUBLISH_CALLER_NUMBER_REQUIRED",
                          "PUBLISH_CALLER_NUMBER_UNAVAILABLE",
                          "PUBLISH_CALLER_NUMBER_TIER_UNAVAILABLE",
                          "PUBLISH_QUICK_ANSWERS_NOT_READY",
                          "ACCESS_CONFIGURATION_REQUIRED"
                        ],
                        "type": "string"
                      },
                      "message": {
                        "maxLength": 1024,
                        "type": "string"
                      },
                      "path": {
                        "maxLength": 512,
                        "type": "string"
                      }
                    },
                    "required": [
                      "path",
                      "code",
                      "message"
                    ],
                    "type": "object"
                  },
                  "maxItems": 20,
                  "type": "array"
                }
              },
              "required": [
                "campaignKey",
                "revision",
                "draftReady",
                "publishReadiness",
                "issues",
                "warnings",
                "operatorActions",
                "editorUrl"
              ],
              "type": "object"
            },
            "revision": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            },
            "scenario": {
              "additionalProperties": false,
              "properties": {
                "language": {
                  "enum": [
                    "it-IT",
                    "en-US",
                    "es-ES",
                    "fr-FR",
                    "de-DE",
                    "hi-IN",
                    "ru-RU",
                    "pt-PT",
                    "ja-JP",
                    "nl-NL"
                  ],
                  "type": "string"
                },
                "name": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "revision": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "scenarioId": {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                },
                "slug": {
                  "maxLength": 128,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "scenarioId",
                "slug",
                "name",
                "language",
                "revision"
              ],
              "type": "object"
            },
            "status": {
              "enum": [
                "DRAFT",
                "ACTIVE",
                "ARCHIVED"
              ],
              "type": "string"
            },
            "textChatBudget": {
              "anyOf": [
                {
                  "enum": [
                    "SHORT",
                    "STANDARD",
                    "EXTENDED"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "theme": {
              "additionalProperties": false,
              "properties": {
                "brandName": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "fontPreset": {
                  "enum": [
                    "inter",
                    "system",
                    "serif",
                    "mono"
                  ],
                  "type": "string"
                },
                "logoUrl": {
                  "anyOf": [
                    {
                      "format": "uri",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "radiusDensity": {
                  "enum": [
                    "compact",
                    "medium",
                    "soft"
                  ],
                  "type": "string"
                },
                "tokens": {
                  "additionalProperties": false,
                  "properties": {
                    "accent": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    },
                    "accentText": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    },
                    "background": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    },
                    "border": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    },
                    "button": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    },
                    "buttonText": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    },
                    "mutedText": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    },
                    "surface": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    },
                    "surfaceAlt": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    },
                    "text": {
                      "maxLength": 64,
                      "pattern": "^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|(?:rgb|rgba|hsl|hsla)\\([0-9.%+,/\\s-]+\\))$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "background",
                    "surface",
                    "surfaceAlt",
                    "text",
                    "mutedText",
                    "accent",
                    "accentText",
                    "border",
                    "button",
                    "buttonText"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "brandName",
                "logoUrl",
                "fontPreset",
                "radiusDensity",
                "tokens"
              ],
              "type": "object"
            },
            "updatedAt": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            }
          },
          "required": [
            "campaignKey",
            "name",
            "status",
            "channel",
            "textChatBudget",
            "scenario",
            "revision",
            "updatedAt",
            "mcpEditability",
            "intake",
            "theme",
            "review",
            "editorUrl"
          ],
          "type": "object"
        }
      },
      "required": [
        "campaign"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "NOT_FOUND",
            "REVISION_CONFLICT",
            "SCENARIO_LOCKED",
            "CAMPAIGN_LOCKED",
            "VALIDATION_FAILED",
            "QUOTA_EXCEEDED",
            "TOOL_NOT_AVAILABLE",
            "IDEMPOTENCY_KEY_REUSED",
            "REMOVAL_ACKNOWLEDGEMENT_REQUIRED",
            "UNAUTHORIZED",
            "FORBIDDEN",
            "RATE_LIMITED",
            "SERVICE_UNAVAILABLE"
          ],
          "type": "string"
        },
        "currentRevision": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "docsUrl": {
          "maxLength": 2048,
          "type": "string"
        },
        "editorUrl": {
          "maxLength": 2048,
          "type": "string"
        },
        "field": {
          "maxLength": 256,
          "type": "string"
        },
        "issues": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "maxLength": 128,
                "type": "string"
              },
              "message": {
                "maxLength": 1024,
                "type": "string"
              },
              "path": {
                "maxLength": 512,
                "type": "string"
              }
            },
            "required": [
              "path",
              "code",
              "message"
            ],
            "type": "object"
          },
          "maxItems": 100,
          "type": "array"
        },
        "message": {
          "maxLength": 1024,
          "minLength": 1,
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        },
        "studioUrl": {
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  ],
  "title": "campaign_get output",
  "type": "object"
}
