{
  "openapi": "3.0.1",
  "info": {
    "title": "FreeDomainsBot API",
    "description": "An API for managing searches and plans",
    "contact": {
      "name": "Support",
      "email": "support@example.com"
    },
    "version": "v1"
  },
  "paths": {
    "/Admin/settings/kv/{key}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Generic read for any GlobalSetting by key",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Generic upsert for any GlobalSetting by key",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cacheKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenericSettingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenericSettingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenericSettingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "Delete a GlobalSetting by key",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cacheKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Admin/settings/kv": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "List all GlobalSettings keys (no values — use GET kv/{key} for values)",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/freeSearchLimit": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get global free search limit from database",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update global free search limit in database (takes effect immediately, no restart needed)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFreeSearchLimitRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFreeSearchLimitRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFreeSearchLimitRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/visitorLimits": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get all visitor limits from GlobalSettings",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update visitor limits in GlobalSettings (takes effect in 5 minutes via cache refresh)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVisitorLimitsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVisitorLimitsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVisitorLimitsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/visitorExplorationGuidance": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get visitor exploration guidance configuration (signal-driven style pairings for guided journey)",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update visitor exploration guidance configuration",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VisitorExplorationConfig"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VisitorExplorationConfig"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VisitorExplorationConfig"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/users/{email}/resetSearches": {
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "COMPLETE ACCOUNT DELETION - Permanently deletes user account and ALL associated data (DESTRUCTIVE - use with caution).\r\nDeletes: User account (login credentials), user roles, refresh tokens, magic link tokens, searches, domains, chat logs,\r\ntoken usage, billing/plan histories, visitor summaries, and all related records. User will need to re-register to use the system.",
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "confirm",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Admin/visitors/reset": {
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "Complete visitor reset - deletes all visitor data including searches, VisitorSummary, and PlanHistory records (for testing visitor emulation).\r\nRemoves all traces of the visitor from the system.",
        "parameters": [
          {
            "name": "visitorId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "browserFingerprint",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Admin/users/{email}/stats": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get statistics about a user's data (searches, domains, tokens) for review before reset",
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/preValidation": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get domain pre-validation quality scoring settings",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update domain pre-validation quality scoring settings (takes effect within 5 minutes via cache refresh)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePreValidationOptionsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePreValidationOptionsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePreValidationOptionsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/searches/{searchId}/rejected-domains": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get rejected domains for a search (admin review)",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/domains/{domainId}/rescue": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Rescue a rejected domain (un-reject and optionally queue for availability check)",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/postValidation": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get domain post-validation similarity settings",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update domain post-validation similarity settings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePostValidationSettingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePostValidationSettingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePostValidationSettingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/search/{searchId}/similarity": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get similarity analysis for a search",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/dashboard": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get dashboard display settings from GlobalSettings",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update dashboard display settings in GlobalSettings (takes effect immediately)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDashboardSettingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDashboardSettingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDashboardSettingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/pruning": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get domain pruning settings",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update domain pruning settings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePruningSettingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePruningSettingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePruningSettingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/rescue": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get domain rescue settings for recovering structurally-rejected domains",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update domain rescue settings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDomainRescueSettingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDomainRescueSettingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDomainRescueSettingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/getSearchesByDates": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Search all searches by date range with filters (admin only).\r\nReturns searches across all users/visitors, including failed searches for diagnosis.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSearchCriteria"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSearchCriteria"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSearchCriteria"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/segmentation": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get the active segmentation policy including quality floor and all segments.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update the active segmentation policy (full replacement).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentationPolicyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentationPolicyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentationPolicyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/segmentation/quality-floor": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get the quality floor configuration from the active policy.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update the quality floor configuration.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityFloorConfig"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityFloorConfig"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityFloorConfig"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/segmentation/segments": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get all segment configurations from the active policy.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/segmentation/segments/{segmentKey}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get a specific segment configuration by key.",
        "parameters": [
          {
            "name": "segmentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update a specific segment configuration.",
        "parameters": [
          {
            "name": "segmentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentConfig"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentConfig"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentConfig"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Admin/settings/segmentation/style-traits": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get all style-to-segment trait mappings.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/segmentation/style-traits/{styleId}": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update style-to-segment trait mapping for a specific style.",
        "parameters": [
          {
            "name": "styleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStyleTraitsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStyleTraitsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStyleTraitsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Admin/settings/signals": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get the active signal display configuration.\r\nControls which \"signal chips\" are shown on domains in the Decision Support View.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update the signal display configuration.\r\nCreates a new version and archives the previous one.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignalDisplayConfigDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SignalDisplayConfigDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SignalDisplayConfigDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/signals/preview": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Preview signals for a specific domain.\r\nUseful for testing signal configuration without affecting production.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignalPreviewRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SignalPreviewRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SignalPreviewRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/domainRegistrationCost": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get domain registration cost from database",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update domain registration cost in database (takes effect immediately)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDomainRegistrationCostRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDomainRegistrationCostRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDomainRegistrationCostRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/storefront": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get all storefront settings.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update storefront settings. Only provided fields are updated.\r\nChanges take effect within 5 minutes (cache TTL).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStorefrontSettingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStorefrontSettingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStorefrontSettingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Admin/settings/storefront/verticals/{slug}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get per-vertical display settings for admin UI.\r\nReturns data: null if no settings exist (frontend uses defaults).",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Create or update per-vertical display settings.\r\nUpserts: creates if not exists, updates if exists.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVerticalDisplaySettingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVerticalDisplaySettingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVerticalDisplaySettingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Admin/domains/{domainId}/retry-dns": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Admin endpoint to retry DNS setup for a domain (bypasses user auth)",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Agent/execute": {
      "post": {
        "tags": [
          "Agent"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteAgentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteAgentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteAgentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent": {
      "get": {
        "tags": [
          "Agent"
        ],
        "parameters": [
          {
            "name": "prodOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "tags",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "Agent"
        ],
        "summary": "Create a new agent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}": {
      "get": {
        "tags": [
          "Agent"
        ],
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "prodOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "Agent"
        ],
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "Agent"
        ],
        "summary": "Soft delete an agent by agentKey",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}/versions": {
      "get": {
        "tags": [
          "Agent"
        ],
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}/bindings": {
      "get": {
        "tags": [
          "Agent"
        ],
        "summary": "Get all operation bindings for an agent with their operations and prompts",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "Agent"
        ],
        "summary": "Add a new binding to an agent (auto-increments execution order)",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentOperationBindingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentOperationBindingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentOperationBindingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}/bindings/{bindingId}": {
      "put": {
        "tags": [
          "Agent"
        ],
        "summary": "Update an existing binding (prompt, order, role, conditions)",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentOperationBindingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentOperationBindingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentOperationBindingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "Agent"
        ],
        "summary": "Remove a binding and resequence remaining bindings",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}/bindings/reorder": {
      "put": {
        "tags": [
          "Agent"
        ],
        "summary": "Bulk reorder bindings for an agent",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderBindingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderBindingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderBindingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}/bindings/sync": {
      "put": {
        "tags": [
          "Agent"
        ],
        "summary": "Sync all bindings for an agent (complete replacement - handles adds, updates, removes, reorders)",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncBindingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncBindingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SyncBindingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/byId/{agentId}": {
      "delete": {
        "tags": [
          "Agent"
        ],
        "summary": "Soft delete an agent by agentId (for agents with empty agentKey)",
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}/test": {
      "post": {
        "tags": [
          "Agent"
        ],
        "summary": "Test an agent with provided input",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestAgentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TestAgentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TestAgentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}/metrics": {
      "get": {
        "tags": [
          "Agent"
        ],
        "summary": "Get usage metrics and statistics for an agent",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/tags": {
      "get": {
        "tags": [
          "Agent"
        ],
        "summary": "Get all unique tags from all agents",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}/template/export": {
      "get": {
        "tags": [
          "Agent"
        ],
        "summary": "Export agent as a template (agent metadata + bindings + dependencies)",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/template/import": {
      "post": {
        "tags": [
          "Agent"
        ],
        "summary": "Import agent template (overwrite existing agent with same key)",
        "parameters": [
          {
            "name": "overwriteExisting",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Agent/{agentKey}/template/clone": {
      "post": {
        "tags": [
          "Agent"
        ],
        "summary": "Clone agent with new name in format \"Copy of {original}_{timestamp}\"",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "newAgentKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/AgentResults": {
      "get": {
        "tags": [
          "AgentResults"
        ],
        "summary": "List all agent results with optional filtering and pagination",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "successOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/AgentResults/{id}": {
      "get": {
        "tags": [
          "AgentResults"
        ],
        "summary": "Get a specific agent result by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/AgentResults/agent/{agentKey}": {
      "get": {
        "tags": [
          "AgentResults"
        ],
        "summary": "Get all results for a specific agent",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "successOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/AgentResults/experiment/{experimentId}": {
      "get": {
        "tags": [
          "AgentResults"
        ],
        "summary": "Get all results for a specific experiment",
        "parameters": [
          {
            "name": "experimentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "experimentArm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/AgentResults/execution/{executionId}": {
      "get": {
        "tags": [
          "AgentResults"
        ],
        "summary": "Get agent result by execution ID",
        "parameters": [
          {
            "name": "executionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Analytics/trackDomainRegister": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "summary": "Track a domain_register_clicked event when user clicks to register a domain.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainRegisterRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainRegisterRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainRegisterRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Analytics/trackDomainShortlist": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "summary": "Track a domain_shortlisted event when user adds a domain to their shortlist.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainActionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainActionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainActionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Analytics/trackDomainDislike": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "summary": "Track a domain_disliked event when user dislikes/removes a domain.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainActionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainActionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainActionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Analytics/track": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "summary": "Generic event tracking endpoint for custom frontend events.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenericEventRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenericEventRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenericEventRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Analytics/trackPlanCheckoutStarted": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "summary": "Track a plan_checkout_started event when user initiates plan purchase.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanCheckoutStartedRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanCheckoutStartedRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PlanCheckoutStartedRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/summary": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get analytics summary grouped by event name for a given time period.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/daily": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get daily event counts for charting.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          },
          {
            "name": "eventName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/funnel": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get conversion funnel data.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/campaigns": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get campaign attribution data.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/devices": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get device breakdown data.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/recent": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get recent events for debugging/monitoring.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "eventName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/settings": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get or update the Analytics.SaveToDatabase setting.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/settings/toggle": {
      "post": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Toggle analytics tracking on/off.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleTrackingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleTrackingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleTrackingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/count": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get total event count for dashboard display.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/events-summary": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get all events for a date range with rates calculated (% of searches).\r\nThis is the primary endpoint for the analytics dashboard.",
        "parameters": [
          {
            "name": "fromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "campaignSource",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deviceType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/compare": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Compare two periods - all calculations done server-side.",
        "parameters": [
          {
            "name": "period1From",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "period1To",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "period2From",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "period2To",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "campaignSource",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deviceType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/AnalyticsAdmin/campaign-sources": {
      "get": {
        "tags": [
          "AnalyticsAdmin"
        ],
        "summary": "Get list of distinct campaign sources (for filter dropdown).",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Auth/refresh": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Refresh access token using a valid refresh token.\r\nAllows users to stay logged in across browser sessions.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Auth/revoke": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "Revoke a refresh token (sign out).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts": {
      "get": {
        "tags": [
          "CampaignContext"
        ],
        "summary": "List all campaign contexts (admin).\r\nIncludes storefront inventory counts per context.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "CampaignContext"
        ],
        "summary": "Create a new campaign context token.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCampaignContextRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCampaignContextRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCampaignContextRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/industries": {
      "get": {
        "tags": [
          "CampaignContext"
        ],
        "summary": "List all industries (for dropdowns when assigning industry to a context).",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/campaign-contexts/active": {
      "get": {
        "tags": [
          "CampaignContext"
        ],
        "summary": "List active contexts (public — used by frontend for ctx resolution).\r\nReturns token, label, and placeholderSetId for each active context.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{id}": {
      "get": {
        "tags": [
          "CampaignContext"
        ],
        "summary": "Get a single campaign context by ID.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "CampaignContext"
        ],
        "summary": "Update an existing campaign context.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCampaignContextRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCampaignContextRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCampaignContextRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "CampaignContext"
        ],
        "summary": "Hard-delete a campaign context.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/campaign-contexts/keyword-map": {
      "get": {
        "tags": [
          "CampaignContext"
        ],
        "summary": "Generate a static keyword→vertical→category mapping JSON for storefront use.\r\nReturns the mapping directly; storefront build can fetch and cache as a static asset.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/categories": {
      "get": {
        "tags": [
          "Category"
        ],
        "summary": "Get all active categories",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowCategory"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowCategory"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowCategory"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Category"
        ],
        "summary": "Create a new category",
        "requestBody": {
          "description": "Category creation request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCategoryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCategoryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCategoryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCategory"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCategory"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCategory"
                }
              }
            }
          }
        }
      }
    },
    "/api/categories/{id}": {
      "get": {
        "tags": [
          "Category"
        ],
        "summary": "Get a specific category by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Category ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCategory"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCategory"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCategory"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Category"
        ],
        "summary": "Update an existing category",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Category ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Category update request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCategoryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCategoryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCategoryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCategory"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCategory"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCategory"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Category"
        ],
        "summary": "Delete a category (soft delete)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Category ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/champions/experiments/{experimentId}/extract": {
      "post": {
        "tags": [
          "Champion"
        ],
        "summary": "Extract champions from completed experiment",
        "parameters": [
          {
            "name": "experimentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/champions": {
      "get": {
        "tags": [
          "Champion"
        ],
        "summary": "Get current champions for all operations",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/champions/operations/{operationName}": {
      "get": {
        "tags": [
          "Champion"
        ],
        "summary": "Get champion for specific operation",
        "parameters": [
          {
            "name": "operationName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "Champion"
        ],
        "summary": "Deactivate champion for an operation",
        "parameters": [
          {
            "name": "operationName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/champions/operations/{operationName}/history": {
      "get": {
        "tags": [
          "Champion"
        ],
        "summary": "Get champion history for an operation",
        "parameters": [
          {
            "name": "operationName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/champions/{id}/validate": {
      "post": {
        "tags": [
          "Champion"
        ],
        "summary": "Trigger revalidation of a champion",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sampleSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/champions/assessment/decision": {
      "post": {
        "tags": [
          "Champion"
        ],
        "summary": "Submit champion decisions after workflow change assessment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChampionDecisionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChampionDecisionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChampionDecisionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/champions/{id}/context": {
      "get": {
        "tags": [
          "Champion"
        ],
        "summary": "Get validation context for a champion",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/champions/workflow/{workflowId}": {
      "get": {
        "tags": [
          "Champion"
        ],
        "summary": "Get all champions for a specific workflow",
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/champions/workflow/{workflowId}/assess": {
      "post": {
        "tags": [
          "Champion"
        ],
        "summary": "Assess workflow changes and their impact on champions",
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/ConstraintAdmin/groups": {
      "get": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Get all constraint groups",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConstraintGroupDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConstraintGroupDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConstraintGroupDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Create a new constraint group",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConstraintGroupDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConstraintGroupDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateConstraintGroupDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintGroupDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintGroupDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintGroupDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/ConstraintAdmin/groups/{id}": {
      "get": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Get a single constraint group",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintGroupDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintGroupDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintGroupDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Update a constraint group",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConstraintGroupDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConstraintGroupDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConstraintGroupDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Delete a constraint group",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/ConstraintAdmin/groups/{groupId}/keywords": {
      "get": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Get keywords for a constraint group",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConstraintKeywordDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConstraintKeywordDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConstraintKeywordDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Add a keyword to a constraint group",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddKeywordDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddKeywordDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddKeywordDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintKeywordDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintKeywordDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintKeywordDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/ConstraintAdmin/groups/{groupId}/keywords/bulk": {
      "post": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Bulk add keywords to a constraint group",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddKeywordsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddKeywordsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAddKeywordsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAddResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAddResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAddResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/ConstraintAdmin/keywords/{id}": {
      "put": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Update a keyword",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateKeywordDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateKeywordDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateKeywordDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Delete a keyword",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/ConstraintAdmin/test": {
      "post": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Test constraint evaluation without affecting any searches",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestConstraintsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TestConstraintsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TestConstraintsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintEvaluationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintEvaluationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConstraintEvaluationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/ConstraintAdmin/cache/refresh": {
      "post": {
        "tags": [
          "ConstraintAdmin"
        ],
        "summary": "Manually refresh the constraint cache",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Contact/send": {
      "post": {
        "tags": [
          "Contact"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactForm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactForm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ContactForm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Content": {
      "get": {
        "tags": [
          "Content"
        ],
        "summary": "Get DB overrides for a specific page with ctx-aware resolution.\r\nResolution chain: ctx-specific override > default override > (frontend merges JSON defaults)",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page name (e.g., \"homepage\", \"dashboard\", \"common\")",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Language code (default: \"en\")",
            "schema": {
              "type": "string",
              "default": "en"
            }
          },
          {
            "name": "ctx",
            "in": "query",
            "description": "Optional campaign context token for vertical-specific content",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Content/admin/overrides": {
      "get": {
        "tags": [
          "Content"
        ],
        "summary": "Get all DB overrides for admin CMS page (with metadata)",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page name (optional - returns all if not specified)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Language code (default: \"en\")",
            "schema": {
              "type": "string",
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Content/admin/update": {
      "post": {
        "tags": [
          "Content"
        ],
        "summary": "Update or create a content string override",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Content/admin/{page}/{keyName}": {
      "delete": {
        "tags": [
          "Content"
        ],
        "summary": "Delete a content string override (revert to JSON default)",
        "parameters": [
          {
            "name": "page",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "en"
            }
          },
          {
            "name": "ctx",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/ContentFilter/validate": {
      "post": {
        "tags": [
          "ContentFilter"
        ],
        "summary": "Validate input text before search - called by frontend",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentValidationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentValidationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ContentValidationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ContentValidationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentValidationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentValidationResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/ContentFilter/scan-output": {
      "post": {
        "tags": [
          "ContentFilter"
        ],
        "summary": "Scan output domains - internal use only",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/ContentFilter/terms": {
      "get": {
        "tags": [
          "ContentFilter"
        ],
        "summary": "Get all filter terms - admin only",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentFilterTermDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentFilterTermDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentFilterTermDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ContentFilter"
        ],
        "summary": "Add new filter term - admin only",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTermRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTermRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddTermRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ContentFilterTermDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentFilterTermDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentFilterTermDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/ContentFilter/terms/{termId}": {
      "put": {
        "tags": [
          "ContentFilter"
        ],
        "summary": "Update filter term - admin only",
        "parameters": [
          {
            "name": "termId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTermRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTermRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddTermRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "ContentFilter"
        ],
        "summary": "Delete filter term - admin only",
        "parameters": [
          {
            "name": "termId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/ContentFilter/audit": {
      "get": {
        "tags": [
          "ContentFilter"
        ],
        "summary": "Get audit logs - admin only",
        "parameters": [
          {
            "name": "From",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "To",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Result",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ValidationResult"
            }
          },
          {
            "name": "Category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AuditLogResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditLogResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditLogResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/ContentFilter/statistics": {
      "get": {
        "tags": [
          "ContentFilter"
        ],
        "summary": "Get blocked statistics - admin only",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/ContentFilter/cache/invalidate": {
      "post": {
        "tags": [
          "ContentFilter"
        ],
        "summary": "Invalidate cache - admin only",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Conversion/trigger": {
      "post": {
        "tags": [
          "Conversion"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConversionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConversionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConversionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Deployment/proposals": {
      "get": {
        "tags": [
          "Deployment"
        ],
        "summary": "Get all deployment proposals with optional filtering",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "Filter by approval status",
            "schema": {
              "$ref": "#/components/schemas/ApprovalStatus"
            }
          },
          {
            "name": "riskLevel",
            "in": "query",
            "description": "Filter by risk level",
            "schema": {
              "$ref": "#/components/schemas/DeploymentRisk"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of results per page",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "pageOffset",
            "in": "query",
            "description": "Page offset for pagination",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DeploymentProposalResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DeploymentProposalResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DeploymentProposalResponse"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Deployment"
        ],
        "summary": "Create a new deployment proposal from experiment results",
        "requestBody": {
          "description": "Deployment proposal creation request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDeploymentProposalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDeploymentProposalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDeploymentProposalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentProposalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentProposalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentProposalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Deployment/proposals/{id}": {
      "get": {
        "tags": [
          "Deployment"
        ],
        "summary": "Get specific deployment proposal details",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Deployment proposal ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentProposalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentProposalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentProposalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Deployment/proposals/{id}/approve": {
      "put": {
        "tags": [
          "Deployment"
        ],
        "summary": "Approve and deploy a proposal (Admin only)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Deployment proposal ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Approval request with comments",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApprovalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApprovalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApprovalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Deployment/proposals/{id}/reject": {
      "put": {
        "tags": [
          "Deployment"
        ],
        "summary": "Reject a deployment proposal (Admin only)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Deployment proposal ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Rejection request with reason",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApprovalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApprovalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApprovalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Deployment/agent-proposals": {
      "post": {
        "tags": [
          "Deployment"
        ],
        "summary": "Propose agent configuration changes (requires approval workflow)",
        "requestBody": {
          "description": "Agent modification proposal request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentModificationProposalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentModificationProposalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgentModificationProposalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Deployment/agent-proposals/{id}": {
      "get": {
        "tags": [
          "Deployment"
        ],
        "summary": "Get agent modification proposal details",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Agent proposal ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentProposalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Deployment/agent-proposals/{id}/approve": {
      "put": {
        "tags": [
          "Deployment"
        ],
        "summary": "Approve and deploy agent modifications (Admin only)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Agent proposal ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Approval request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentApprovalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentApprovalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgentApprovalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentApprovalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentApprovalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentApprovalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Deployment/agent-proposals/{id}/reject": {
      "put": {
        "tags": [
          "Deployment"
        ],
        "summary": "Reject agent modification proposal (Admin only)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Agent proposal ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Rejection request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentApprovalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentApprovalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgentApprovalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AgentApprovalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentApprovalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentApprovalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Deployment/agents/{agentKey}/audit": {
      "get": {
        "tags": [
          "Deployment"
        ],
        "summary": "Get audit trail for agent changes",
        "parameters": [
          {
            "name": "agentKey",
            "in": "path",
            "description": "Agent key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Page size",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "pageOffset",
            "in": "query",
            "description": "Page offset",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentAuditEntry"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentAuditEntry"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgentAuditEntry"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/domains/{domainId}/dns-records": {
      "get": {
        "tags": [
          "Dns"
        ],
        "summary": "Get all DNS records for a domain",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DnsRecordDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DnsRecordDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DnsRecordDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Dns"
        ],
        "summary": "Create a new DNS record",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDnsRecordRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDnsRecordRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDnsRecordRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DnsRecordDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsRecordDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsRecordDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/domains/{domainId}/dns-records/{recordId}": {
      "get": {
        "tags": [
          "Dns"
        ],
        "summary": "Get a specific DNS record",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "recordId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DnsRecordDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsRecordDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsRecordDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Dns"
        ],
        "summary": "Update a DNS record",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "recordId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDnsRecordRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDnsRecordRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDnsRecordRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DnsRecordDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsRecordDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsRecordDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Dns"
        ],
        "summary": "Delete a DNS record",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "recordId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/domains/{domainId}/retry-dns": {
      "post": {
        "tags": [
          "Dns"
        ],
        "summary": "Retry DNS zone setup for a domain with PendingDns status",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DnsZoneSetupResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsZoneSetupResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsZoneSetupResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/domain-detail/{id}/generate": {
      "post": {
        "tags": [
          "DomainDetail"
        ],
        "summary": "Generate detail page content for a single domain (the \"Generate Brand Page\" action).\r\nRuns DomainDetailEnrichment, writes CMS keys, sets status to Draft.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/domain-detail/{id}/transition": {
      "post": {
        "tags": [
          "DomainDetail"
        ],
        "summary": "Transition a domain's detail page status.\r\nValidates legal transitions per the state machine (§1.2).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransitionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TransitionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TransitionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/domain-detail/{id}/regenerate": {
      "post": {
        "tags": [
          "DomainDetail"
        ],
        "summary": "Regenerate detail page assets for a domain in Preview state.\r\nSelectively regenerates specified targets (content, hero, mockups).\r\nDomain stays in Preview for re-review.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/domain-detail/{id}/assign-preset": {
      "post": {
        "tags": [
          "DomainDetail"
        ],
        "summary": "Assign a LogoPresetId to a domain without regenerating the logo.\r\nFor back-filling existing domains that already have logos but no stored preset.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPresetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPresetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssignPresetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/domain-detail/{id}/status": {
      "get": {
        "tags": [
          "DomainDetail"
        ],
        "summary": "Get per-domain asset status and detail page state.\r\nShows logo, hero, mockup URLs, DetailPageStatus, IsStorefrontReady — all in one view.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/domain-detail/{id}/operations": {
      "get": {
        "tags": [
          "DomainDetail"
        ],
        "summary": "Get per-domain operation history from ChatLog.\r\nShows all LLM operations (content enrichment, hero generation, logo generation) for this domain.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/domain-detail/{id}/hero": {
      "patch": {
        "tags": [
          "DomainDetail"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateHeroRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateHeroRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateHeroRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/domain-detail/{id}/test-redirect": {
      "post": {
        "tags": [
          "DomainDetail"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "DomainDetail"
        ],
        "summary": "Test endpoint: remove redirect rule from Cloudflare for a domain.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/DomainExamples/workflow/{workflowId}/champions": {
      "get": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Returns all champion mappings for a workflow across all Industry/Tone combinations",
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChampionMappingDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChampionMappingDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChampionMappingDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/DomainExamples/variants/generate": {
      "post": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Triggers ExemplarVariantAgent to generate variants for the specified industry/tone",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateVariantsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateVariantsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateVariantsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VariantGenerationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VariantGenerationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VariantGenerationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/DomainExamples/variants/{industry}/{tone}": {
      "get": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Returns all variants for Industry/Tone including their status and performance metrics",
        "parameters": [
          {
            "name": "industry",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tone",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VariantDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VariantDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VariantDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/DomainExamples/experiment/create": {
      "post": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Creates workflow evaluation run that tests specified variants",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExperimentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExperimentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExperimentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentCreationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentCreationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentCreationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/DomainExamples/experiment/{runId}/analysis": {
      "get": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Analyzes which exemplar performed best in the experiment",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentAnalysisDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentAnalysisDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentAnalysisDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/DomainExamples/champion/promote": {
      "post": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Promotes exemplar as champion for specific workflow+context based on experiment results",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteChampionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteChampionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteChampionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ChampionPromotionResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChampionPromotionResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChampionPromotionResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/DomainExamples/variants/search": {
      "post": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Returns all latest versions of variants based on optional industry/tone/keywords filters",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchVariantsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchVariantsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchVariantsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VariantDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VariantDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VariantDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/DomainExamples/{id}": {
      "get": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Get a specific exemplar by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExemplarDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExemplarDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExemplarDetailsDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Update an existing exemplar",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateExemplarRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateExemplarRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateExemplarRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExemplarDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExemplarDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExemplarDetailsDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Delete an exemplar",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/DomainExamples": {
      "post": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Create a new exemplar",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExemplarRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExemplarRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExemplarRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExemplarDetailsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExemplarDetailsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExemplarDetailsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/DomainExamples/coverage": {
      "get": {
        "tags": [
          "DomainExamples"
        ],
        "summary": "Returns matrix showing which workflow+industry+tone combinations have champions vs gaps",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageMatrixDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageMatrixDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageMatrixDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/domains": {
      "get": {
        "tags": [
          "Domains"
        ],
        "summary": "Get all registered domains for the authenticated user (Admin only)",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegisteredDomainDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegisteredDomainDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegisteredDomainDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Domains"
        ],
        "summary": "Get registered domains for a specific user by their Id",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDomainsByUserIdRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDomainsByUserIdRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDomainsByUserIdRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegisteredDomainDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegisteredDomainDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegisteredDomainDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/domains/{domainId}": {
      "get": {
        "tags": [
          "Domains"
        ],
        "summary": "Get a specific registered domain by ID",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RegisteredDomainDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisteredDomainDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisteredDomainDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Evaluation/evaluate": {
      "post": {
        "tags": [
          "Evaluation"
        ],
        "summary": "Evaluate an execution run using a specified rubric\r\nPOST /api/evaluation/evaluate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateExecutionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateExecutionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateExecutionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluateExecutionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluateExecutionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluateExecutionResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Evaluation/{runId}/report": {
      "get": {
        "tags": [
          "Evaluation"
        ],
        "summary": "Get evaluation report for an execution run\r\nGET /api/evaluation/{runId}/report",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationReportDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationReportDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationReportDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Evaluation/{runId}/comparison": {
      "get": {
        "tags": [
          "Evaluation"
        ],
        "summary": "Get A/B comparison for an execution run\r\nGET /api/evaluation/{runId}/comparison",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeGoldenKeywordAnalysis",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "confidenceLevel",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 0.95
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StatisticalComparisonDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatisticalComparisonDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatisticalComparisonDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Evaluation/{runId}/proposal": {
      "post": {
        "tags": [
          "Evaluation"
        ],
        "summary": "Generate deployment proposal for an execution run\r\nPOST /api/evaluation/{runId}/proposal",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateProposalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateProposalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateProposalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentProposalDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentProposalDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentProposalDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Evaluation/rubrics": {
      "get": {
        "tags": [
          "Evaluation"
        ],
        "summary": "Get available rubric templates\r\nGET /api/evaluation/rubrics",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RubricTemplateDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RubricTemplateDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RubricTemplateDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Execution/start": {
      "post": {
        "tags": [
          "Execution"
        ],
        "summary": "Start test suite execution\r\nPOST /api/execution/start",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartExecutionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StartExecutionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StartExecutionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StartExecutionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartExecutionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StartExecutionResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Execution/{runId}/status": {
      "get": {
        "tags": [
          "Execution"
        ],
        "summary": "Get execution status and progress\r\nGET /api/execution/{runId}/status",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionStatusResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Execution/{runId}/results": {
      "get": {
        "tags": [
          "Execution"
        ],
        "summary": "Get execution results\r\nGET /api/execution/{runId}/results",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionResultsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionResultsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionResultsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Execution/{runId}/cancel": {
      "post": {
        "tags": [
          "Execution"
        ],
        "summary": "Cancel running execution\r\nPOST /api/execution/{runId}/cancel",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelExecutionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelExecutionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelExecutionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CancelExecutionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelExecutionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelExecutionResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/ExemplarOrchestration/optimize-exemplars/{workflowId}": {
      "post": {
        "tags": [
          "ExemplarOrchestration"
        ],
        "summary": "Starts optimization for all Industry/Tone combinations for a specific workflow",
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OptimizeWorkflowRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OptimizeWorkflowRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OptimizeWorkflowRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/ExemplarOrchestration/optimize-single": {
      "post": {
        "tags": [
          "ExemplarOrchestration"
        ],
        "summary": "Optimizes single workflow+industry+tone combination",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OptimizeSingleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OptimizeSingleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OptimizeSingleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/ExemplarOrchestration/job/{jobId}": {
      "get": {
        "tags": [
          "ExemplarOrchestration"
        ],
        "summary": "Returns job status and progress",
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/ExemplarOrchestration/bulk-optimize": {
      "post": {
        "tags": [
          "ExemplarOrchestration"
        ],
        "summary": "Triggers optimization for all workflows",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkOptimizeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkOptimizeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkOptimizeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptimizationJobResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/ExemplarOrchestration/active-jobs": {
      "get": {
        "tags": [
          "ExemplarOrchestration"
        ],
        "summary": "Get all active optimization jobs",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OptimizationJobSummaryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OptimizationJobSummaryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OptimizationJobSummaryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Experiments": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Create a new experiment\r\nPOST /api/experiments",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExperimentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExperimentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExperimentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Experiments"
        ],
        "summary": "Get all experiments\r\nGET /api/experiments",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ExperimentState"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ExperimentDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ExperimentDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ExperimentDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Experiments/{id}": {
      "get": {
        "tags": [
          "Experiments"
        ],
        "summary": "Get experiment by ID\r\nGET /api/experiments/{id}",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Experiments"
        ],
        "summary": "Delete an experiment (only if Draft or Completed)\r\nDELETE /api/experiments/{id}",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/{id}/events": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Batch accept experiment events for tracking\r\nPOST /api/experiments/{id}/events",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExperimentEventDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExperimentEventDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExperimentEventDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/{id}/stats": {
      "get": {
        "tags": [
          "Experiments"
        ],
        "summary": "Get experiment statistics with time windowing\r\nGET /api/experiments/{id}/stats",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "window",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "1h"
            }
          },
          {
            "name": "tz",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "UTC"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentStatsResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentStatsResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentStatsResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Experiments/{id}/traffic": {
      "patch": {
        "tags": [
          "Experiments"
        ],
        "summary": "Update traffic allocation (only in UnderTesting state)\r\nPATCH /api/experiments/{id}/traffic",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrafficConfigDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrafficConfigDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrafficConfigDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrafficConfigDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrafficConfigDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrafficConfigDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Experiments/{id}/start": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Start an experiment (Draft -> UnderTesting)\r\nPOST /api/experiments/{id}/start",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/{id}/pause": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Pause an experiment (UnderTesting -> Paused)\r\nPOST /api/experiments/{id}/pause",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/{id}/resume": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Resume a paused experiment (Paused -> UnderTesting)\r\nPOST /api/experiments/{id}/resume",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/{id}/promote": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Promote winning arm (requires approval and validation)\r\nPOST /api/experiments/{id}/promote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/{id}/rollback": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Rollback experiment to control arm\r\nPOST /api/experiments/{id}/rollback",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/{id}/budget": {
      "get": {
        "tags": [
          "Experiments"
        ],
        "summary": "Get experiment budget information\r\nGET /api/experiments/{id}/budget",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentBudgetDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentBudgetDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentBudgetDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Experiments"
        ],
        "summary": "Update experiment budget\r\nPUT /api/experiments/{id}/budget",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExperimentBudgetDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExperimentBudgetDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExperimentBudgetDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentBudgetDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentBudgetDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentBudgetDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Experiments/{id}/select-arm": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Get arm selection for a search request\r\nPOST /api/experiments/{id}/select-arm",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ArmSelectionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArmSelectionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArmSelectionDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Experiments/{id}/complete": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Complete an experiment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/{id}/clone": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Clone an experiment with reset stats",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloneExperimentDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CloneExperimentDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CloneExperimentDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Experiments/{id}/results": {
      "get": {
        "tags": [
          "Experiments"
        ],
        "summary": "Get experiment results with statistical analysis",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "window",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/active": {
      "get": {
        "tags": [
          "Experiments"
        ],
        "summary": "Get active experiments with pagination",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Experiments/{id}/export": {
      "post": {
        "tags": [
          "Experiments"
        ],
        "summary": "Export experiment data",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExperimentExportRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExperimentExportRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExperimentExportRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/status": {
      "get": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Factory dashboard: all verticals with current inventory, thresholds, and active run status.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs": {
      "get": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "List factory runs with optional filtering.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}": {
      "get": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Get a single factory run with full details.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/trigger/{contextToken}": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Manually trigger a factory run for a specific vertical.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/monitor": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Manually advance a single factory run — polls eval run status and transitions to AwaitingReview if complete.\r\nUse for end-to-end testing: trigger → poll monitor → review candidates → approve.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/candidates": {
      "get": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "List candidates for a factory run with LLM rankings and similarity annotations.\r\nBy default returns only actionable candidates (Pending + PreApproved).\r\nUse ?includeAll=true to see full history including Rejected/Approved.\r\nUse ?status=X to filter to a specific status.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/candidates/{candidateId}": {
      "put": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Update a single candidate — override status, add notes.\r\nSets EditorialOverride=true so re-ranking won't overwrite admin decisions.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "candidateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCandidateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCandidateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCandidateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/candidates/reset": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Reset candidates back to Pending status, clearing all annotations and pricing.\r\nIf no candidates exist yet, populates them from the evaluation run first.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/rank": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Trigger or re-trigger LLM ranking for a factory run's candidates.\r\nOnly re-ranks Pending cluster-primary candidates that haven't been editorially overridden.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/curate-families": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Stage 2: Per-family presentation curation using StorefrontEditorialFamilyCuration operation.\r\nSets IsPresentationWorthyInFamily on candidates. Independent of EditorialFamilyPolicyJson.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/evaluate-domain": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Ad-hoc evaluation of a single domain against a vertical using DomainStorefrontEvaluator.\r\nReturns brand strength, storefront fit, and KEEP/SKIP decision.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateDomainRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateDomainRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateDomainRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/re-run": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Re-run the full end-to-end pipeline: re-populate → cleanup → similarity → rank →\r\ncurate → pricing → auto-approve → approve (enrich + copy to pool + logo generation).",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/auto-approve": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Run auto-approval only — evaluate PreApproved candidates against approval thresholds\r\nand mark passing ones as Approved. Does NOT enrich or copy to VerticalDomains.\r\nUseful for fine-tuning vertical-specific approval overrides.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/approve": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Finalize all explicitly Approved candidates — enrich, copy to VerticalDomains pool, and complete the factory run.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/pricing/run": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Trigger the pricing pipeline: deterministic on all non-Rejected .com candidates,\r\neditorial on PreApproved/FamilyWorthy only. Safe to call multiple times (idempotent).",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeApproved",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/candidates/{candidateId}/pricing": {
      "put": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Manual pricing override for a single candidate.\r\nPrice must be from allowed buckets for the target tier.\r\nSets EditorialOverride=true to prevent re-pricing from overwriting.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "candidateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PricingOverrideRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PricingOverrideRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PricingOverrideRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/log": {
      "get": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Retrieve the per-run Serilog log file for a factory run.\r\nSame pattern as SearchController.GetSearchLog.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/fail": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Mark a stuck factory run as Failed. Use when a run is stuck in\r\nQueued/Resetting/Executing/Monitoring and will never recover (e.g. after a server restart).\r\nDoes NOT touch the vertical's FactoryEvaluationRunId — only the FactoryRun record.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FailRunRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FailRunRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FailRunRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/reset": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FailRunRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FailRunRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FailRunRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/runs/{runId}/cleanup": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Cleanup candidates: reject any whose source domain is taken, update SourcePhraseFamily.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CleanupCandidatesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CleanupCandidatesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CleanupCandidatesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/filter-presets": {
      "get": {
        "tags": [
          "FactoryAdmin"
        ],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFilterPresetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFilterPresetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFilterPresetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/filter-presets/{id}": {
      "delete": {
        "tags": [
          "FactoryAdmin"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/analytics/{contextToken}/test-suite-analysis": {
      "get": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Analyze which keyword+style combos produced storefront-ready domains for a vertical.\r\nSupports filtering by date range and phrase families.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "phraseFamilies",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/analytics/{contextToken}/generate-test-suite": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Generate an optimized test suite from approved domains for a vertical.\r\nSet DryRun=false to actually create the evaluation run.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTestSuiteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTestSuiteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTestSuiteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/analytics/{contextToken}/threshold-analysis": {
      "get": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Analyze score distributions for approved vs rejected candidates to find optimal thresholds.\r\nSupports filtering by search phrase set names and date range.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "searchSetNames",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/analytics/{contextToken}/threshold-simulation": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Simulate custom approval thresholds: how many approved/rejected candidates would pass.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WhatIfRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WhatIfRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WhatIfRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/analytics/{contextToken}/threshold-auto-tune": {
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Compute optimal thresholds and optionally apply them. DryRun=true by default.\r\nApplyTo: \"vertical\" (per-vertical override) or \"global\" (GlobalSettings).",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutoTuneRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AutoTuneRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AutoTuneRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/factory/analytics/{contextToken}/backfill-traceability": {
      "get": {
        "tags": [
          "FactoryAdmin"
        ],
        "summary": "Backfill missing traceability fields (SourceParentKeyword, SourcePathwayName, SourcePhraseFamily)\r\non VerticalDomains by tracing from SourceSearchId to the Search record.\r\nGET = dry run preview, POST = apply changes.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "FactoryAdmin"
        ],
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Factory/{contextToken}/strategy-context": {
      "get": {
        "tags": [
          "FactoryStrategy"
        ],
        "summary": "Returns assembled input payload for strategy agent without executing.\r\nUsed for debugging and inspection.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Factory/{contextToken}/generate-strategy": {
      "post": {
        "tags": [
          "FactoryStrategy"
        ],
        "summary": "Manually trigger strategy generation independent of a factory run.\r\nExecutes the agent, validates output, returns the result.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/FilterInstructions": {
      "get": {
        "tags": [
          "FilterInstructions"
        ],
        "parameters": [
          {
            "name": "promptId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilterInstruction"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilterInstruction"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FilterInstruction"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/FilterInstructions/{filterCode}/template": {
      "get": {
        "tags": [
          "FilterInstructions"
        ],
        "parameters": [
          {
            "name": "filterCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FilterInstructionTemplate"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilterInstructionTemplate"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilterInstructionTemplate"
                }
              }
            }
          }
        }
      }
    },
    "/api/FilterInstructions/rules": {
      "post": {
        "tags": [
          "FilterInstructions"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RuleModificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RuleModificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RuleModificationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FilterInstruction"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilterInstruction"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilterInstruction"
                }
              }
            }
          }
        }
      }
    },
    "/api/FilterInstructions/rules/{filterCode}/{ruleId}": {
      "put": {
        "tags": [
          "FilterInstructions"
        ],
        "parameters": [
          {
            "name": "filterCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RuleModificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RuleModificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RuleModificationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FilterInstruction"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilterInstruction"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilterInstruction"
                }
              }
            }
          }
        }
      }
    },
    "/api/FilterInstructions/rules/{filterCode}": {
      "delete": {
        "tags": [
          "FilterInstructions"
        ],
        "parameters": [
          {
            "name": "filterCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "promptName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "section",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orderIndex",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "subOrder",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "filterValue",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/GoogleAuth/signin": {
      "post": {
        "tags": [
          "GoogleAuth"
        ],
        "summary": "Sign in with Google ID token and receive a JWT for API authentication",
        "requestBody": {
          "description": "Google sign-in request containing the ID token",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GoogleSignInRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GoogleSignInRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GoogleSignInRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Help/categories": {
      "post": {
        "tags": [
          "Help"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HelpCategory"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/HelpCategory"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/HelpCategory"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/HelpCategory"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HelpCategory"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/HelpCategory"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Help"
        ],
        "parameters": [
          {
            "name": "includeArticles",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "articleType",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "general"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HelpCategory"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HelpCategory"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HelpCategory"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Help/categories/{id}": {
      "put": {
        "tags": [
          "Help"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HelpCategory"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/HelpCategory"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/HelpCategory"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/HelpCategory"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HelpCategory"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/HelpCategory"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Help"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Help/articles": {
      "post": {
        "tags": [
          "Help"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HelpArticle"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/HelpArticle"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/HelpArticle"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/HelpArticle"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HelpArticle"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/HelpArticle"
                }
              }
            }
          }
        }
      }
    },
    "/api/Help/categories/{categoryId}/articles": {
      "get": {
        "tags": [
          "Help"
        ],
        "parameters": [
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HelpArticle"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HelpArticle"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HelpArticle"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Help/articles/{id}": {
      "put": {
        "tags": [
          "Help"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HelpArticle"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/HelpArticle"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/HelpArticle"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/HelpArticle"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HelpArticle"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/HelpArticle"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Help"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/IntentAdmin/feature-status": {
      "get": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Gets the current feature flag status",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IntentFeatureStatus"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentFeatureStatus"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentFeatureStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Sets the feature flag in the database",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFeatureFlagRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFeatureFlagRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetFeatureFlagRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/IntentAdmin/signals": {
      "get": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Gets all signals",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SignalDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SignalDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SignalDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Creates a new signal",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSignalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSignalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSignalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SignalDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/IntentAdmin/signals/{id}": {
      "put": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Updates a signal",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSignalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSignalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSignalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Deletes a signal",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/IntentAdmin/signals/{signalId}/keywords": {
      "get": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Gets keywords for a signal",
        "parameters": [
          {
            "name": "signalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SignalKeywordDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SignalKeywordDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SignalKeywordDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Adds a keyword to a signal",
        "parameters": [
          {
            "name": "signalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddKeywordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddKeywordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddKeywordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SignalKeywordDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalKeywordDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalKeywordDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/IntentAdmin/signals/{signalId}/keywords/bulk": {
      "post": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Bulk import keywords for a signal",
        "parameters": [
          {
            "name": "signalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkImportKeywordsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkImportKeywordsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkImportKeywordsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BulkImportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkImportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkImportResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/IntentAdmin/keywords/{id}": {
      "put": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Updates a keyword",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateKeywordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateKeywordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateKeywordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Deletes a keyword",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/IntentAdmin/rules": {
      "get": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Gets all workflow rules",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IntentWorkflowRuleDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IntentWorkflowRuleDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IntentWorkflowRuleDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Creates a workflow rule",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRuleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRuleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRuleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IntentWorkflowRuleDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentWorkflowRuleDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentWorkflowRuleDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/IntentAdmin/rules/{id}": {
      "put": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Updates a workflow rule",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRuleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRuleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRuleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Deletes a workflow rule",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/IntentAdmin/rules/{ruleId}/styles": {
      "get": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Get style configurations for a rule",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RuleStyleWorkflowDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RuleStyleWorkflowDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RuleStyleWorkflowDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Update all style configurations for a rule (replaces existing)",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRuleStylesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRuleStylesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRuleStylesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/IntentAdmin/rules/{ruleId}/styles/{styleId}": {
      "post": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Add or update a single style configuration for a rule",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "styleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RuleStyleConfigInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RuleStyleConfigInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RuleStyleConfigInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RuleStyleWorkflowDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RuleStyleWorkflowDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RuleStyleWorkflowDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Delete a style configuration from a rule",
        "parameters": [
          {
            "name": "ruleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "styleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/IntentAdmin/test-classify": {
      "post": {
        "tags": [
          "IntentAdmin"
        ],
        "summary": "Tests intent classification on a query",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestClassifyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TestClassifyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TestClassifyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IntentClassificationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentClassificationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentClassificationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/LandingPages": {
      "get": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Get all active landing pages",
        "parameters": [
          {
            "name": "includeInactive",
            "in": "query",
            "description": "Include inactive landing pages",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LandingPage"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LandingPage"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LandingPage"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Create a new landing page",
        "requestBody": {
          "description": "Landing page to create",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LandingPage"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LandingPage"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LandingPage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              }
            }
          }
        }
      }
    },
    "/api/LandingPages/{id}": {
      "get": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Get a specific landing page by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Landing page ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Update an existing landing page",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Landing page ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Updated landing page data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LandingPage"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LandingPage"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LandingPage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Delete a landing page (soft delete)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Landing page ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/LandingPages/slug/{slug}": {
      "get": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Get a landing page by slug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "description": "URL slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              }
            }
          }
        }
      }
    },
    "/api/LandingPages/page/{urlPath}": {
      "get": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Get enhanced landing page DTO by URL path with all sections populated\r\nIncludes hero, benefits, domain examples, and FAQs",
        "parameters": [
          {
            "name": "urlPath",
            "in": "path",
            "description": "URL path/slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPageDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPageDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPageDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/LandingPages/page/{urlPath}/refresh-cache": {
      "post": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Refresh cache for a specific landing page",
        "parameters": [
          {
            "name": "urlPath",
            "in": "path",
            "description": "URL path/slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/LandingPages/category/{category}": {
      "get": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Get landing pages by category",
        "parameters": [
          {
            "name": "category",
            "in": "path",
            "description": "Category name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LandingPage"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LandingPage"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LandingPage"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/LandingPages/upsert": {
      "post": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Upsert a landing page (insert if new, update if exists based on slug)",
        "requestBody": {
          "description": "Landing page to upsert",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LandingPage"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LandingPage"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LandingPage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPage"
                }
              }
            }
          }
        }
      }
    },
    "/api/LandingPages/{id}/hard": {
      "delete": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Permanently delete a landing page",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Landing page ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/LandingPages/{landingPageId}/domains": {
      "post": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Add a domain to a landing page",
        "parameters": [
          {
            "name": "landingPageId",
            "in": "path",
            "description": "Landing page ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Domain link request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDomainRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDomainRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddDomainRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPageDomain"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPageDomain"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPageDomain"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Get all domains for a landing page",
        "parameters": [
          {
            "name": "landingPageId",
            "in": "path",
            "description": "Landing page ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LandingPageDomain"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LandingPageDomain"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LandingPageDomain"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/LandingPages/domains/{landingPageDomainId}": {
      "put": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Update domain display order",
        "parameters": [
          {
            "name": "landingPageDomainId",
            "in": "path",
            "description": "Landing page domain link ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Update request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDisplayOrderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDisplayOrderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDisplayOrderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPageDomain"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPageDomain"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LandingPageDomain"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Remove a domain from a landing page",
        "parameters": [
          {
            "name": "landingPageDomainId",
            "in": "path",
            "description": "Landing page domain link ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/LandingPages/trigger-sync": {
      "post": {
        "tags": [
          "LandingPages"
        ],
        "summary": "Trigger landing page sync to static HTML",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/learning/improvement-candidates": {
      "get": {
        "tags": [
          "Learning"
        ],
        "summary": "Get router patterns that are candidates for improvement",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ImprovementCandidatesResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImprovementCandidatesResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImprovementCandidatesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/learning/generate-experiment": {
      "post": {
        "tags": [
          "Learning"
        ],
        "summary": "Generate an experiment proposal for improving a specific pattern",
        "requestBody": {
          "description": "Experiment generation request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateExperimentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateExperimentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateExperimentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentProposal"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentProposal"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperimentProposal"
                }
              }
            }
          }
        }
      }
    },
    "/api/learning/performance-recommendations": {
      "get": {
        "tags": [
          "Learning"
        ],
        "summary": "Get performance recommendations for patterns",
        "parameters": [
          {
            "name": "patternId",
            "in": "query",
            "description": "Optional specific pattern ID",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PerformanceRecommendationsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerformanceRecommendationsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerformanceRecommendationsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/learning/coverage-gaps": {
      "get": {
        "tags": [
          "Learning"
        ],
        "summary": "Get coverage gap analysis to identify routing improvements",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageGapAnalysis"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageGapAnalysis"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageGapAnalysis"
                }
              }
            }
          }
        }
      }
    },
    "/api/learning/successful-patterns": {
      "get": {
        "tags": [
          "Learning"
        ],
        "summary": "Get successful patterns that could be expanded or replicated",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessfulPatternsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessfulPatternsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessfulPatternsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/learning/insights": {
      "get": {
        "tags": [
          "Learning"
        ],
        "summary": "Get learning insights summary",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LearningInsightsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LearningInsightsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LearningInsightsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/current": {
      "get": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Returns the currently active logo config version for the vertical.\r\n404 if no active version exists.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/versions": {
      "get": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Lists all versions for the vertical (metadata only, no body) ordered newest-first.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/versions/{versionId}": {
      "get": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Returns a specific version (full body).",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/versions/{versionId}/logos": {
      "get": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Returns the LogoVersions tagged with this config version (for comparison).\r\nEach row carries `configVersionNumber` for the row's source config — by\r\ndefinition this matches the queried version, surfaced for FE consistency\r\nwith /existing-logos.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/existing-logos": {
      "get": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Returns all currently-active LogoVersions for the vertical's active domains,\r\neach tagged with its source config version. Used by the §6.2 Existing tab —\r\nthe FE compares each row's `configVersionNumber` against `activeConfigVersionNumber`\r\nto surface the stale indicator.\r\n            \r\n`configVersionNumber` is null for logos generated before 2026-05-02 (before\r\nthe ConfigVersionId column existed). The FE should treat null as \"stale —\r\ngenerated before versioning\" — i.e., always different from the current active.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config": {
      "put": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Creates a new logo config version. Dedupes byte-identical saves: if the\r\nincoming JSON normalizes to the same canonical form as the active version,\r\nreturns the existing active version with no new row created.\r\nNew versions are NOT auto-activated — call POST /versions/{id}/activate.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveVersionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveVersionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveVersionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/versions/{versionId}/activate": {
      "post": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Activates a specific version. Deactivates any currently-active version\r\nfor the same vertical in the same transaction.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/word-treatment-eligibility": {
      "get": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Returns per-domain word-treatment eligibility for the vertical's domain list.\r\nEligibility is structural (computed from name shape via AssignWordTreatment heuristic)\r\n— NOT per-vertical. The \"assigned\" field is what the heuristic would emit today\r\nwithout per-vertical bias (wordTreatmentWeights deferred to phase 2 per §14 q1).\r\n            \r\nUse this to populate §5b's read-only \"X/Y eligible\" badges and the eligibility-hover\r\nlist of qualifying domains.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/predicted": {
      "get": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Returns the predicted preset assignment per domain under the active config (or\r\noptional draft passed via query string `?draftConfigJson=`). Reuses the engine's\r\nAssignBatchFromPresetsAsync so output is exact-fidelity to what generation would do.\r\n            \r\nUse this to populate the §6.1 Predicted tab. For the §6.2 Existing tab, use the\r\nalready-deployed `/versions/{vid}/logos` endpoint.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/optimize": {
      "post": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Runs the deterministic four-check audit (§8.2 of storefront-logos spec).\r\nReturns proposed revisions per §10.2. Sub-second; no LLM, no async work.\r\n            \r\nBody is optional. If `draftConfig` is null, the audit runs against the\r\nvertical's currently active logo config version.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OptimizeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OptimizeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OptimizeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/campaign-contexts/{contextToken}/logo-config/apply-revisions": {
      "post": {
        "tags": [
          "LogoConfig"
        ],
        "summary": "Transactional acceptance of optimizer revisions per §11.5. Bundles in one\r\nSQL transaction:\r\n  - mutate PresetsJson (preset edits via PresetEdits[], new presets via NewPresets[])\r\n  - mutate PresetsJson.registers (NewRegisters[]) — initialized from preset.registerTags union if absent\r\n  - INSERT new CampaignContextLogoConfigVersions row from ConfigDraftJson (inactive)\r\nAll-or-nothing — partial application would leave the vertical referencing presets\r\nor registers that don't exist.\r\n            \r\nNew version is NOT auto-activated — operator must hit /versions/{vid}/activate.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyRevisionsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyRevisionsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyRevisionsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/logo-templates/schema": {
      "get": {
        "tags": [
          "LogoTemplates"
        ],
        "summary": "Returns the parsed schema vocabularies the editor needs to render dimension\r\npickers: wordTreatment, iconShape, layout, typographyStyle, colorScheme, stance.\r\n            \r\nEach option carries `code` and `promptText`. ColorScheme entries additionally\r\ncarry `background`, `textColors`, `logoColors`, `accentColors` for swatch\r\nrendering. IconShape entries additionally carry `hints[]` if defined.\r\n            \r\nengineConfig (image size + trim defaults) is also surfaced for the §4a card.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/auth/magic-link/request": {
      "post": {
        "tags": [
          "MagicLink"
        ],
        "summary": "Request a magic link to be sent to the specified email",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MagicLinkRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MagicLinkRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MagicLinkRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/auth/magic-link/verify/{token}": {
      "get": {
        "tags": [
          "MagicLink"
        ],
        "summary": "Verify a magic link token and authenticate the user",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/auth/magic-link/status/{tokenId}": {
      "get": {
        "tags": [
          "MagicLink"
        ],
        "summary": "Check the status of a magic link token",
        "parameters": [
          {
            "name": "tokenId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Migration/migrate-agents-to-workflows": {
      "post": {
        "tags": [
          "Migration"
        ],
        "summary": "Migrate agents from ConfigurationJson to dedicated workflows with operations and prompts",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Migration/create-agent-workflows": {
      "post": {
        "tags": [
          "Migration"
        ],
        "summary": "Create missing workflows for agents that have bindings but no workflows",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Migration/agent-migration-status": {
      "get": {
        "tags": [
          "Migration"
        ],
        "summary": "Get agent migration status - shows which agents need migration",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/ModelPricing/all": {
      "get": {
        "tags": [
          "ModelPricing"
        ],
        "summary": "Get all model pricing (current and historical)",
        "parameters": [
          {
            "name": "currentOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "provider",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/ModelPricing/providers": {
      "get": {
        "tags": [
          "ModelPricing"
        ],
        "summary": "Get list of supported providers",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/ModelPricing/{modelName}": {
      "get": {
        "tags": [
          "ModelPricing"
        ],
        "summary": "Get pricing for a specific model",
        "parameters": [
          {
            "name": "modelName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ModelPricing"
        ],
        "summary": "Update model pricing (creates new version and expires old one)",
        "parameters": [
          {
            "name": "modelName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateModelPricingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateModelPricingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateModelPricingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/ModelPricing": {
      "post": {
        "tags": [
          "ModelPricing"
        ],
        "summary": "Add new model pricing",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddModelPricingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddModelPricingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddModelPricingRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/ModelPricing/{id}": {
      "delete": {
        "tags": [
          "ModelPricing"
        ],
        "summary": "Delete model pricing (admin only - use with caution)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/monitoring/metrics": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "summary": "Get production metrics for a specific pattern or all patterns",
        "parameters": [
          {
            "name": "patternId",
            "in": "query",
            "description": "Optional router pattern ID",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Number of days to retrieve (default: 7)",
            "schema": {
              "maximum": 90,
              "minimum": 1,
              "type": "integer",
              "format": "int32",
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductionMetrics"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductionMetrics"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductionMetrics"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/monitoring/alerts": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "summary": "Get active performance alerts",
        "parameters": [
          {
            "name": "severity",
            "in": "query",
            "description": "Optional filter by severity level",
            "schema": {
              "$ref": "#/components/schemas/Severity"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PerformanceAlert"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PerformanceAlert"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PerformanceAlert"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/monitoring/pattern-performance": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "summary": "Get pattern performance summary",
        "parameters": [
          {
            "name": "patternId",
            "in": "query",
            "description": "Router pattern ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Number of days for analysis (default: 7)",
            "schema": {
              "maximum": 90,
              "minimum": 1,
              "type": "integer",
              "format": "int32",
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PatternPerformanceSummary"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternPerformanceSummary"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternPerformanceSummary"
                }
              }
            }
          }
        }
      }
    },
    "/api/monitoring/coverage": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "summary": "Get coverage analysis showing routing effectiveness",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "description": "Number of days for analysis (default: 7)",
            "schema": {
              "maximum": 90,
              "minimum": 1,
              "type": "integer",
              "format": "int32",
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageAnalysisReport"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageAnalysisReport"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageAnalysisReport"
                }
              }
            }
          }
        }
      }
    },
    "/api/monitoring/alerts/{alertId}/resolve": {
      "post": {
        "tags": [
          "Monitoring"
        ],
        "summary": "Resolve a performance alert",
        "parameters": [
          {
            "name": "alertId",
            "in": "path",
            "description": "Alert ID to resolve",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "description": "Resolution details",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveAlertRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveAlertRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveAlertRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/monitoring/collect-metrics": {
      "post": {
        "tags": [
          "Monitoring"
        ],
        "summary": "Manually trigger metrics collection",
        "parameters": [
          {
            "name": "minutes",
            "in": "query",
            "description": "Time window in minutes (default: 15)",
            "schema": {
              "maximum": 1440,
              "minimum": 1,
              "type": "integer",
              "format": "int32",
              "default": 15
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/offers": {
      "get": {
        "tags": [
          "OfferAdmin"
        ],
        "summary": "List offers with filtering by status and context.\r\nPass pending=true to return all non-terminal offers (Pending, ManualReview, AutoAccepted, Accepted).\r\nIf both status and pending are provided, status wins.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/OfferStatus"
            }
          },
          {
            "name": "pending",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "contextToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "pageOffset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/offers/{offerId}/review": {
      "put": {
        "tags": [
          "OfferAdmin"
        ],
        "summary": "Review an offer: accept or reject with admin notes.",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewOfferRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewOfferRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewOfferRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/offers/{offerId}/close": {
      "post": {
        "tags": [
          "OfferAdmin"
        ],
        "summary": "Force-close an offer as Rejected from any non-terminal state.\r\nUse when an offer is stuck (e.g., AutoAccepted/Accepted with no conversion) and admin wants to clear the queue.\r\nDoes not fire a buyer email — admin replies manually.",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloseOfferRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CloseOfferRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CloseOfferRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/OTP/requestOTP": {
      "post": {
        "tags": [
          "OTP"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OTPRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OTPRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OTPRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/OTP/validateOTP": {
      "post": {
        "tags": [
          "OTP"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OTPValidateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OTPValidateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OTPValidateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/paypal/create-order": {
      "post": {
        "tags": [
          "PayPal"
        ],
        "summary": "Create a PayPal order for mobile redirect flow",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/paypal/create-plan-order": {
      "post": {
        "tags": [
          "PayPal"
        ],
        "summary": "Create a PayPal order for plan purchase (mobile redirect flow)\r\nUses CAPTURE intent for immediate payment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanOrderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanOrderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanOrderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrderResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/paypal/capture-plan-order": {
      "post": {
        "tags": [
          "PayPal"
        ],
        "summary": "Capture a PayPal order and activate the plan (mobile redirect flow)\r\nCalled after user returns from PayPal approval",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CapturePlanOrderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CapturePlanOrderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CapturePlanOrderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CapturePlanOrderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapturePlanOrderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapturePlanOrderResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Plan/addPlan": {
      "post": {
        "tags": [
          "Plan"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPlanRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPlanRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPlanRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Plan/addPlanWithDates": {
      "post": {
        "tags": [
          "Plan"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPlanWithDatesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPlanWithDatesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPlanWithDatesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Plan/terminatePlan": {
      "post": {
        "tags": [
          "Plan"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TerminatePlanRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TerminatePlanRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TerminatePlanRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Plan/getPlan": {
      "get": {
        "tags": [
          "Plan"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "enhanced",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Plan/quota": {
      "get": {
        "tags": [
          "Plan"
        ],
        "summary": "Get instant quota check for a user including view access permissions.",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Plan/history": {
      "get": {
        "tags": [
          "Plan"
        ],
        "summary": "Get billing/plan history for a user (for frontend settings page)",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/plan-configurations": {
      "get": {
        "tags": [
          "PlanConfiguration"
        ],
        "summary": "List all plan configurations",
        "parameters": [
          {
            "name": "includeInactive",
            "in": "query",
            "description": "Include inactive configurations (default: false)",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "code",
            "in": "query",
            "description": "Filter by planCode (optional)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "PlanConfiguration"
        ],
        "summary": "Create a new plan configuration",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanConfigurationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanConfigurationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/plan-configurations/{id}": {
      "get": {
        "tags": [
          "PlanConfiguration"
        ],
        "summary": "Get plan configuration by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "PlanConfiguration"
        ],
        "summary": "Update an existing plan configuration",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePlanConfigurationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePlanConfigurationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePlanConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "PlanConfiguration"
        ],
        "summary": "Delete (deactivate) a plan configuration",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/plan-configurations/by-duration/{days}": {
      "get": {
        "tags": [
          "PlanConfiguration"
        ],
        "summary": "Get plan configuration by duration\r\nReturns first active match, ordered by newest first",
        "parameters": [
          {
            "name": "days",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/plan-configurations/{id}/activate": {
      "put": {
        "tags": [
          "PlanConfiguration"
        ],
        "summary": "Activate a plan configuration",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/plan-configurations/{id}/deactivate": {
      "put": {
        "tags": [
          "PlanConfiguration"
        ],
        "summary": "Deactivate a plan configuration",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/plan-configurations/{id}/usage": {
      "get": {
        "tags": [
          "PlanConfiguration"
        ],
        "summary": "Get usage statistics for a plan configuration",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Planner/compose-plan": {
      "post": {
        "tags": [
          "Planner"
        ],
        "summary": "Compose a workflow from a purpose/goal description\r\nPOST /api/planner/compose-plan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ComposePlanRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ComposePlanRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ComposePlanRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ComposePlanResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComposePlanResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComposePlanResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Planner/validate": {
      "post": {
        "tags": [
          "Planner"
        ],
        "summary": "Validate a workflow definition\r\nPOST /api/planner/validate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateWorkflowRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidateWorkflowResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidateWorkflowResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidateWorkflowResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Planner/estimate-cost": {
      "post": {
        "tags": [
          "Planner"
        ],
        "summary": "Estimate the cost and performance of a workflow\r\nPOST /api/planner/estimate-cost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EstimateCostRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EstimateCostRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EstimateCostRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCostEstimate"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCostEstimate"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowCostEstimate"
                }
              }
            }
          }
        }
      }
    },
    "/api/Planner/analyze": {
      "post": {
        "tags": [
          "Planner"
        ],
        "summary": "Comprehensive workflow analysis (validation + cost estimation)\r\nPOST /api/planner/analyze",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnalyzeWorkflowRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AnalyzeWorkflowRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AnalyzeWorkflowRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowAnalysisResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowAnalysisResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowAnalysisResponse"
                }
              }
            }
          }
        }
      }
    },
    "/PremiumFilters/AddFilter": {
      "post": {
        "tags": [
          "PremiumFilters"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFilterRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFilterRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFilterRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        }
      }
    },
    "/PremiumFilters/GetFilters": {
      "get": {
        "tags": [
          "PremiumFilters"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/refPremiumFilterDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/refPremiumFilterDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/refPremiumFilterDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PremiumFilters/{id}": {
      "delete": {
        "tags": [
          "PremiumFilters"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PremiumFilters/values/{valueId}": {
      "delete": {
        "tags": [
          "PremiumFilters"
        ],
        "parameters": [
          {
            "name": "valueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/presets/{presetId}": {
      "patch": {
        "tags": [
          "Presets"
        ],
        "summary": "In-place modification of an existing preset (Shape A in optimizer revisions).\r\nBody is a partial preset — fields included are overwritten, fields omitted are\r\npreserved. The preset id in the URL is authoritative; if the body contains an\r\nid, it must match.",
        "parameters": [
          {
            "name": "presetId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonNode"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonNode"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonNode"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/presets": {
      "post": {
        "tags": [
          "Presets"
        ],
        "summary": "Append a new preset to the catalog. Body must be a complete preset object\r\nwith at least `id` (uniqueness enforced) and the five core dimension fields.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonNode"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonNode"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonNode"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/registers": {
      "get": {
        "tags": [
          "Registers"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "Registers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterEntry"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterEntry"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterEntry"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/registration/pricing": {
      "get": {
        "tags": [
          "Registration"
        ],
        "summary": "Get domain registration pricing (public endpoint)",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/registration/prevalidate": {
      "post": {
        "tags": [
          "Registration"
        ],
        "summary": "Prevalidate domain availability with registrar (authoritative check)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrevalidateRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PrevalidateRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PrevalidateRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PrevalidationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrevalidationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrevalidationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/registration/prevalidate/{prevalidationId}": {
      "get": {
        "tags": [
          "Registration"
        ],
        "summary": "Get existing prevalidation by ID",
        "parameters": [
          {
            "name": "prevalidationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PrevalidationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrevalidationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrevalidationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/registration/register": {
      "post": {
        "tags": [
          "Registration"
        ],
        "summary": "Register a domain (requires valid prevalidation and authentication)\r\nSupports two payment flows:\r\n- Desktop popup: Frontend passes paypalAuthorizationId (already authorized)\r\n- Mobile redirect: Frontend passes paypalOrderId (backend handles authorize + capture)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDomainRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDomainRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDomainRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/registration/domains/{registeredDomainId}/payment": {
      "post": {
        "tags": [
          "Registration"
        ],
        "summary": "Log a payment for a registered domain (called after PayPal capture)",
        "parameters": [
          {
            "name": "registeredDomainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LogPaymentRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LogPaymentRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LogPaymentRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DomainPaymentResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainPaymentResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainPaymentResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/registration/transfer-availability/{slug}": {
      "get": {
        "tags": [
          "Registration"
        ],
        "summary": "Pre-purchase check for an owned-asset domain: is it transferable today, or inside ICANN's\r\n60-day post-registration window? Returns the earliest transfer date when locked, so the\r\nfrontend can show buyers an awareness notice BEFORE they start a transaction.\r\nRead-only — does not unlock the domain or request an auth code.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TransferAvailabilityResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferAvailabilityResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferAvailabilityResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/registration/transfer": {
      "post": {
        "tags": [
          "Registration"
        ],
        "summary": "Transfer an owned-asset domain to a buyer.\r\nNo prevalidation needed — we own the domain. Different post-payment flow from /register.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferDomainRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferDomainRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TransferDomainRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TransferResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/registration/transfers/{transferId}/resend": {
      "post": {
        "tags": [
          "Registration"
        ],
        "summary": "Resend auth code email for an existing transfer (buyer self-service).",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TransferResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/registration/transfers/{transferId}/regenerate": {
      "post": {
        "tags": [
          "Registration"
        ],
        "summary": "Regenerate auth code for an existing transfer (buyer self-service).",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TransferResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/rotation/trigger": {
      "post": {
        "tags": [
          "RotationAdmin"
        ],
        "summary": "Manually trigger rotation for all verticals (or a specific one).",
        "parameters": [
          {
            "name": "contextToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/rotation/current": {
      "get": {
        "tags": [
          "RotationAdmin"
        ],
        "summary": "View today's rotation selection for a vertical.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/rotation/history": {
      "get": {
        "tags": [
          "RotationAdmin"
        ],
        "summary": "View rotation history for a vertical (last N days).",
        "parameters": [
          {
            "name": "contextToken",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 7
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/createSearch": {
      "post": {
        "tags": [
          "Search"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequestModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequestModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequestModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/createStreamingSearch": {
      "post": {
        "tags": [
          "Search"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequestModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequestModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequestModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/deleteSearch/{searchId}": {
      "delete": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/regenerate/{searchId}": {
      "post": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateDomainRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateDomainRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateDomainRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/getSearch/{searchId}": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDto"
                }
              }
            }
          }
        }
      }
    },
    "/Search/getChatHistory/{correlationId}": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "correlationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatHistoryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatHistoryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatHistoryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Search/updateSearchStatus": {
      "post": {
        "tags": [
          "Search"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/updateSearch/{searchId}": {
      "post": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateDomainRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateDomainRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateDomainRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/getSearchesbyEmail/{email}": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 6
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "includeAll",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDtoPagedResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDtoPagedResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDtoPagedResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Search/getSearchesbyEmail": {
      "post": {
        "tags": [
          "Search"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchCriteria"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchCriteria"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchCriteria"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDtoPagedResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDtoPagedResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDtoPagedResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Search/getSearchesByVisitorId": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "Gets paginated searches for a visitor by VisitorId",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VisitorSearchCriteria"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VisitorSearchCriteria"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VisitorSearchCriteria"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDtoPagedResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDtoPagedResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchWithDomainCountDtoPagedResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Search/getSearchInfo": {
      "post": {
        "tags": [
          "Search"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResultInfo"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResultInfo"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResultInfo"
                }
              }
            }
          }
        }
      }
    },
    "/Search/searchCountByEmail": {
      "post": {
        "tags": [
          "Search"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/searchCountByVisitorId": {
      "post": {
        "tags": [
          "Search"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VisitorIdRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VisitorIdRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VisitorIdRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/createDomain": {
      "post": {
        "tags": [
          "Search"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainRequestModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainRequestModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainRequestModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/getdomains/{searchId}": {
      "get": {
        "tags": [
          "Search"
        ],
        "summary": "Get domains for a search.",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "description": "The search ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "segmented",
            "in": "query",
            "description": "When true, returns segmented response for decision support view.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "Include archived domains.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "includeRejected",
            "in": "query",
            "description": "Include rejected domains.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "availableOnly",
            "in": "query",
            "description": "Filter to domains with at least one available TLD.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "likedOnly",
            "in": "query",
            "description": "Filter to liked domains only.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "tld",
            "in": "query",
            "description": "Filter to domains where this specific TLD is available (e.g., \".com\").",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/domains/enrichdomain": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "[DEPRECATED] Use POST /domains/{domainId}/enrich instead.\r\nTriggers enrichment for a domain. Does NOT update isLiked status.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string",
                "format": "uuid"
              }
            },
            "text/json": {
              "schema": {
                "type": "string",
                "format": "uuid"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        },
        "deprecated": true
      }
    },
    "/Search/domains/enriched/{searchId}": {
      "get": {
        "tags": [
          "Search"
        ],
        "summary": "Gets all enriched domains for a search.\r\nReturns domains that have Rationale, Advantages, and Disadvantages populated.\r\nUseful for frontend caching to avoid calling enrichdomain for each domain expansion.",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/domains/getDomainbyId/{domainId}": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Search/getsingledomain/{searchId}": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDetailsDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDetailsDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDetailsDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Search/{domainId}": {
      "delete": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/domains/{domainId}/quickscore": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QuickScoreDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickScoreDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickScoreDto"
                }
              }
            }
          }
        }
      }
    },
    "/Search/domains/{domainId}/detailed-analysis": {
      "post": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/domains/{domainId}/full-score": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DetailedScoreDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetailedScoreDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetailedScoreDto"
                }
              }
            }
          }
        }
      }
    },
    "/Search/domains/{domainId}/like": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "Updates the saved/liked status of a domain.\r\nDoes NOT trigger enrichment - use /enrich endpoint for that.\r\nThis is for the \"Save\" button in the UI.",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLikeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLikeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLikeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "Search"
        ],
        "summary": "Removes the like/dislike status from a domain (resets to neutral).\r\nUse this to \"unlike\" a domain without disliking it.",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/domains/{domainId}/enrich": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "Triggers enrichment for a domain.\r\nDoes NOT update the isLiked/saved status - use /like endpoint for that.\r\nReturns cached data if domain is already enriched (for full enrichment).",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "description": "The domain ID to enrich.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Enrichment type: \"all\" (default) for rationale+advantages+disadvantages, \"advantages\" for advantages only.",
            "schema": {
              "type": "string",
              "default": "all"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/getSearchSuggestions": {
      "post": {
        "tags": [
          "Search"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSuggestionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSuggestionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSuggestionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        }
      }
    },
    "/Search/getSearchLog/{searchId}": {
      "get": {
        "tags": [
          "Search"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/{searchId}/synapse": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "Activates Synapse for a search, creating multiple pathway searches",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "Search"
        ],
        "summary": "Deactivates Synapse for a parent search, cancelling all in-progress pathway searches",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/{searchId}/synapse/status": {
      "get": {
        "tags": [
          "Search"
        ],
        "summary": "Gets the current Synapse status for a parent search",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/{searchId}/synapse/merge": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "Manually triggers merge operation for Synapse pathway results",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/{searchId}/synapse/tasks": {
      "get": {
        "tags": [
          "Search"
        ],
        "summary": "Gets list of active background tasks for a Synapse search (Admin only)",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/enhanceFilters": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "Enhances filters with inferred industry and style-based tone using Synapse logic",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnhanceFiltersRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EnhanceFiltersRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EnhanceFiltersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Search/{searchId}/enrich": {
      "post": {
        "tags": [
          "Search"
        ],
        "summary": "Manually trigger enrichment pass on a search (morpheme Mode 2).\r\nExtracts roots from high-quality taken domains, mutates them, and returns new candidates.",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/SearchInstructions/personal": {
      "get": {
        "tags": [
          "SearchInstructions"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchInstruction"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchInstruction"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchInstruction"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SearchInstructions"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchInstruction"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchInstruction"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchInstruction"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchInstruction"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchInstruction"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchInstruction"
                }
              }
            }
          }
        }
      }
    },
    "/SearchInstructions/apply": {
      "post": {
        "tags": [
          "SearchInstructions"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchInstructionApplication"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchInstructionApplication"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchInstructionApplication"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/SearchInstructions/search/{searchId}/instructions": {
      "get": {
        "tags": [
          "SearchInstructions"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchInstructionApplication"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchInstructionApplication"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchInstructionApplication"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/SearchInstructions/{id}": {
      "get": {
        "tags": [
          "SearchInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchInstruction"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchInstruction"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchInstruction"
                }
              }
            }
          }
        }
      }
    },
    "/SearchInstructions/personal/{id}": {
      "put": {
        "tags": [
          "SearchInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchInstruction"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchInstruction"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchInstruction"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "SearchInstructions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SearchPhrase/sets": {
      "get": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Retrieve all search phrase sets with filtering and pagination",
        "parameters": [
          {
            "name": "Industry",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IsActive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortOrder",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "maximum": 2147483647,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "maximum": 500,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchPhraseSetDtoPagedResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchPhraseSetDtoPagedResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchPhraseSetDtoPagedResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/SearchPhrase/sets/{id}": {
      "get": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Get detailed information about a specific search phrase set",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchPhraseSetDetailDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchPhraseSetDetailDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchPhraseSetDetailDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Update search phrase set metadata",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSetCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSetCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSetCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SearchPhrase/sets/generate": {
      "post": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Create a new search phrase set using the agent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateSetCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateSetCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateSetCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SearchPhrase/sets/{id}/archive": {
      "post": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Archive a search phrase set (soft delete)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SearchPhrase/sets/{id}/extend": {
      "post": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Extend an existing set with additional search phrases via agent",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendSetCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendSetCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendSetCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendSetResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendSetResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendSetResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/SearchPhrase/sets/{id}/phrases": {
      "post": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Manually add a single search phrase to a set",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPhraseCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPhraseCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddPhraseCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SearchPhrase/sets/{setId}/phrases/{phraseId}": {
      "put": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Edit an existing search phrase",
        "parameters": [
          {
            "name": "setId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "phraseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePhraseCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePhraseCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePhraseCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Remove a search phrase from a set",
        "parameters": [
          {
            "name": "setId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "phraseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SearchPhrase/sets/{id}/usage": {
      "post": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Record usage of search phrases in an experiment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUsageCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUsageCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUsageCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RecordUsageResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordUsageResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordUsageResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/SearchPhrase/sets/{id}/performance": {
      "get": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Get performance analytics for a search phrase set",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "StartDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EndDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PerformanceAnalyticsDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerformanceAnalyticsDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerformanceAnalyticsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/SearchPhrase/sets/{id}/clone": {
      "post": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Clone an existing search phrase set as a starting point",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloneSetCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CloneSetCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CloneSetCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SearchPhrase/sets/merge": {
      "post": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Merge distinct phrases from multiple sets into a new set",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MergeSetsCommand"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MergeSetsCommand"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MergeSetsCommand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SearchPhrase/sets/{setId}/random": {
      "get": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Get random phrases from a specific set",
        "parameters": [
          {
            "name": "setId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "count",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SearchPhrase/by-context/{ctx}/random": {
      "get": {
        "tags": [
          "SearchPhrase"
        ],
        "summary": "Get random placeholder phrases for a campaign context.\r\nConvenience endpoint that looks up the context's PlaceholderSetId automatically.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "description": "Campaign context token (e.g., \"local_services\")",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "count",
            "in": "query",
            "description": "Number of random phrases to return (1-100, default 5)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/SearchSuggestion/createSearchSuggestion/{searchId}": {
      "post": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSuggestionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSuggestionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSuggestionDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestion"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestion"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestion"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/getSearchSuggestionsBySearchId/{searchId}": {
      "get": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchSuggestion"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchSuggestion"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchSuggestion"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/getSearchSuggestion/{suggestionId}": {
      "get": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "suggestionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestion"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestion"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestion"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/updateSearchSuggestion/{suggestionId}": {
      "put": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "suggestionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSuggestionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSuggestionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSuggestionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestion"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestion"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchSuggestion"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/acceptSearchSuggestion/{suggestionId}": {
      "post": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "suggestionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/deleteSearchSuggestion/{suggestionId}": {
      "delete": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "suggestionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/generateSearchSuggestion/{searchId}": {
      "post": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "keywords",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filtersJson",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "style",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "default"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/getRefinedSearchPhrase/{searchId}": {
      "get": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "keywords",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filtersJson",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "style",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "default"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedSearchPhraseResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedSearchPhraseResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedSearchPhraseResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/getRefinedFilters/{searchId}": {
      "get": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "refinedKeywords",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filtersJson",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "style",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "default"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedFiltersResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedFiltersResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedFiltersResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/generateStandaloneSuggestion": {
      "post": {
        "tags": [
          "SearchSuggestion"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StandaloneSuggestionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StandaloneSuggestionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StandaloneSuggestionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StandaloneSuggestionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandaloneSuggestionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StandaloneSuggestionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/getRefinedSearchPhraseStandalone": {
      "get": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keywords",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filtersJson",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "style",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "default"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedSearchPhraseResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedSearchPhraseResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedSearchPhraseResponse"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/getRefinedFiltersStandalone": {
      "get": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "refinedKeywords",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filtersJson",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "style",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "default"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedFiltersResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedFiltersResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefinedFiltersResponse"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/associateSuggestionWithSearch/{suggestionId}/{searchId}": {
      "post": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "suggestionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/SearchSuggestion/getSuggestionsByEmail/{email}": {
      "get": {
        "tags": [
          "SearchSuggestion"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchSuggestion"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchSuggestion"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchSuggestion"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/SharedOperations": {
      "get": {
        "tags": [
          "SharedOperations"
        ],
        "summary": "GET: api/shared-operations\r\nReturns all shared operations with optional filtering",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "isActive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/OperationType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SharedOperationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SharedOperationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SharedOperationDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SharedOperations"
        ],
        "summary": "POST: api/shared-operations\r\nCreates a new shared operation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSharedOperationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSharedOperationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSharedOperationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SharedOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/SharedOperations/{id}": {
      "get": {
        "tags": [
          "SharedOperations"
        ],
        "summary": "GET: api/shared-operations/{id}\r\nReturns a specific shared operation by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SharedOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedOperationDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "SharedOperations"
        ],
        "summary": "PUT: api/shared-operations/{id}\r\nUpdates an existing shared operation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSharedOperationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSharedOperationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSharedOperationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "SharedOperations"
        ],
        "summary": "DELETE: api/shared-operations/{id}\r\nSoft deletes a shared operation (sets IsActive = false)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/SharedOperations/by-type/{type}": {
      "get": {
        "tags": [
          "SharedOperations"
        ],
        "summary": "GET: api/shared-operations/by-type/{type}\r\nReturns operations by type (e.g., ExtractCompetitorKeywords)",
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/OperationType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SharedOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/SharedOperations/by-category/{category}": {
      "get": {
        "tags": [
          "SharedOperations"
        ],
        "summary": "GET: api/shared-operations/by-category/{category}\r\nReturns all operations in a specific category",
        "parameters": [
          {
            "name": "category",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SharedOperationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SharedOperationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SharedOperationDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/SharedOperations/categories": {
      "get": {
        "tags": [
          "SharedOperations"
        ],
        "summary": "GET: api/shared-operations/categories\r\nReturns all available categories",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/SharedOperations/types": {
      "get": {
        "tags": [
          "SharedOperations"
        ],
        "summary": "GET: api/shared-operations/types\r\nReturns all available operation types with descriptions",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              }
            }
          }
        }
      }
    },
    "/api/Snapshot": {
      "get": {
        "tags": [
          "Snapshot"
        ],
        "summary": "Get all deployment snapshots",
        "parameters": [
          {
            "name": "includeAutomatic",
            "in": "query",
            "description": "Include automatic snapshots",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of results per page",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "pageOffset",
            "in": "query",
            "description": "Page offset for pagination",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SnapshotResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SnapshotResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SnapshotResponse"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Snapshot"
        ],
        "summary": "Create a manual snapshot of current state",
        "requestBody": {
          "description": "Snapshot creation request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSnapshotRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSnapshotRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSnapshotRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Snapshot/current": {
      "get": {
        "tags": [
          "Snapshot"
        ],
        "summary": "Get the current production snapshot",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Snapshot/{id}": {
      "get": {
        "tags": [
          "Snapshot"
        ],
        "summary": "Get specific snapshot details",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Snapshot ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Snapshot/{id}/restore": {
      "post": {
        "tags": [
          "Snapshot"
        ],
        "summary": "Restore a snapshot (Admin only)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Snapshot ID to restore",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Restore request with options",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreSnapshotRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreSnapshotRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreSnapshotRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreSnapshotResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreSnapshotResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreSnapshotResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Snapshot/{id}/diff/{id2}": {
      "get": {
        "tags": [
          "Snapshot"
        ],
        "summary": "Compare two snapshots to see differences",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "First snapshot ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id2",
            "in": "path",
            "description": "Second snapshot ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotComparisonResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotComparisonResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SnapshotComparisonResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/storefront/sitemap": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Get the storefront sitemap: categories → navigation groups → verticals.\r\nUsed by Astro SSG to build the full site structure.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/categories": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Get storefront categories with domain counts, ordered by DisplayOrder.\r\nOnly returns active categories that are not hidden.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/verticals/{storefrontSlug}": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Get storefront domains for a vertical.\r\nIf daily rotation is active, returns the pre-computed curated set.\r\nOtherwise falls back to paginated query with PublicExposureCap.\r\nCached server-side for 10 min — invalidated when inventory changes.",
        "parameters": [
          {
            "name": "storefrontSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 24
            }
          },
          {
            "name": "featuredCount",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/verticals/{storefrontSlug}/featured": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Get featured domains for a vertical (daily rotation for homepage/landing pages).\r\nIf daily rotation is active, returns the pre-computed featured set.\r\nOtherwise falls back to seed-based shuffle.\r\nCached server-side for 1 hour — invalidated when inventory changes.",
        "parameters": [
          {
            "name": "storefrontSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "count",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 6
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/homepage-picks": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Homepage editor's picks — top 4 asset-backed domains, one per vertical, sorted by price desc.\r\nStatic query (no rotation/cron), cached same as other storefront endpoints.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/verticals/{storefrontSlug}/collection": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Asset-backed domains for a vertical's permanent \"From our premium collection\" footer section.\r\nReturns ALL owned domains for the vertical — not subject to daily rotation or featured exclusion.\r\nThe frontend should exclude any domains already displayed in the featured or all-domains sections\r\nto avoid duplication on the page.\r\nCached for 72 hours, invalidated on inventory change.",
        "parameters": [
          {
            "name": "storefrontSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/checkout/{publicSlug}": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Get checkout context for a storefront domain.\r\nReturns domain info, pricing, and offer context needed to render a checkout page.\r\nNo GUIDs exposed — uses PublicSlug for identification.",
        "parameters": [
          {
            "name": "publicSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offer",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/domains/{publicSlug}": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Get domain detail — rationale, advantages, tagline.\r\nUsed by \"Why this works?\" on-demand disclosure from listing cards.\r\nCached server-side for 10 min — invalidated when inventory changes.",
        "parameters": [
          {
            "name": "publicSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/offers": {
      "post": {
        "tags": [
          "Storefront"
        ],
        "summary": "Submit an offer for a storefront domain.\r\nAnonymous — no authentication required. Buyer identified by email.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicOfferRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicOfferRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PublicOfferRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/verticals/{slug}/settings": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Get per-vertical display settings for a storefront.\r\nCalled server-to-server by Vercel serverless functions.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/cms/domain-content/{publicSlug}": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "CMS content hotload endpoint for Vercel function fallback.\r\nReturns all CMS keys for a domain's detail page scope.\r\nCalled only when the JSON locale file hasn't been synced yet.",
        "parameters": [
          {
            "name": "publicSlug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/verticals/{contextToken}/related": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Related domains endpoint for detail page cross-linking.\r\nReturns up to count storefront-ready domains from the same vertical\r\nwhere DetailPageStatus = Published, excluding the current domain.\r\nDaily rotation via deterministic seed.",
        "parameters": [
          {
            "name": "contextToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exclude",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "count",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 6
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/llms-data": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Data endpoint for llms.txt generation.\r\nReturns all active verticals + all Published domains with positioning and price.\r\nUsed by Vercel serverless function to generate /llms.txt and /llms-full.txt.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/storefront/sitemap/domains": {
      "get": {
        "tags": [
          "Storefront"
        ],
        "summary": "Sitemap data for domain detail pages.\r\nReturns all Published domains with lastmod dates for sitemap.xml inclusion.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/storefront-categories": {
      "get": {
        "tags": [
          "StorefrontCategory"
        ],
        "summary": "List all storefront categories ordered by DisplayOrder.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "post": {
        "tags": [
          "StorefrontCategory"
        ],
        "summary": "Create a new storefront category.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertStorefrontCategoryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertStorefrontCategoryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertStorefrontCategoryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/storefront-categories/{id}": {
      "get": {
        "tags": [
          "StorefrontCategory"
        ],
        "summary": "Get a single storefront category with its verticals.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "put": {
        "tags": [
          "StorefrontCategory"
        ],
        "summary": "Update a storefront category.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertStorefrontCategoryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertStorefrontCategoryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertStorefrontCategoryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "delete": {
        "tags": [
          "StorefrontCategory"
        ],
        "summary": "Delete a storefront category. Sets linked CampaignContexts' StorefrontCategoryId to null.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Style": {
      "get": {
        "tags": [
          "Style"
        ],
        "summary": "Get all styles",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Style"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Style"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Style"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Style"
        ],
        "summary": "Create a new style",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStyleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStyleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStyleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              }
            }
          }
        }
      }
    },
    "/Style/active": {
      "get": {
        "tags": [
          "Style"
        ],
        "summary": "Get active styles only",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Style"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Style"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Style"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Style/{id}": {
      "get": {
        "tags": [
          "Style"
        ],
        "summary": "Get style by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Style"
        ],
        "summary": "Update an existing style",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStyleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStyleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateStyleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Style"
        ],
        "summary": "Delete a style (soft delete)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Style/name/{name}": {
      "get": {
        "tags": [
          "Style"
        ],
        "summary": "Get style by name",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Style"
                }
              }
            }
          }
        }
      }
    },
    "/Style/apply": {
      "post": {
        "tags": [
          "Style"
        ],
        "summary": "Apply a style to content",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyStyleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyStyleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyStyleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/Style/{id}/test": {
      "post": {
        "tags": [
          "Style"
        ],
        "summary": "Test a style with sample content",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StyleTestRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StyleTestRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StyleTestRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StyleTestResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleTestResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleTestResult"
                }
              }
            }
          }
        }
      }
    },
    "/Style/recommendations": {
      "post": {
        "tags": [
          "Style"
        ],
        "summary": "Get style recommendations for content",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRecommendationsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRecommendationsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetRecommendationsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StyleRecommendation"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StyleRecommendation"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StyleRecommendation"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Style/{id}/analysis": {
      "get": {
        "tags": [
          "Style"
        ],
        "summary": "Get style usage analysis",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StyleAnalysis"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleAnalysis"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StyleAnalysis"
                }
              }
            }
          }
        }
      }
    },
    "/Style/{id}/usage": {
      "post": {
        "tags": [
          "Style"
        ],
        "summary": "Record style usage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUsageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUsageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordUsageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Style/{id}/performance": {
      "post": {
        "tags": [
          "Style"
        ],
        "summary": "Record style performance",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordPerformanceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecordPerformanceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecordPerformanceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Style/synapse": {
      "get": {
        "tags": [
          "Style"
        ],
        "summary": "Get styles suitable for Synapse",
        "parameters": [
          {
            "name": "context",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Style"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Style"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Style"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Style/{id}/parameters": {
      "get": {
        "tags": [
          "Style"
        ],
        "summary": "Get style parameters",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "object",
                  "additionalProperties": { }
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": { }
                }
              },
              "text/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": { }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/synapse-styles/configurations": {
      "get": {
        "tags": [
          "SynapseStyleWorkflowAdmin"
        ],
        "summary": "GET /api/admin/synapse-styles/configurations - Get all styles with their workflow configurations",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StyleConfigurationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StyleConfigurationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StyleConfigurationDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/synapse-styles/{styleId}/workflows": {
      "get": {
        "tags": [
          "SynapseStyleWorkflowAdmin"
        ],
        "summary": "GET /api/admin/synapse-styles/{styleId}/workflows - Get workflows for a specific style",
        "parameters": [
          {
            "name": "styleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseStyleWorkflowDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseStyleWorkflowDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseStyleWorkflowDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "SynapseStyleWorkflowAdmin"
        ],
        "summary": "PUT /api/admin/synapse-styles/{styleId}/workflows - Assign or update workflow for a style+operation\r\nBusiness Rule: Each style can have only ONE active workflow per operation",
        "parameters": [
          {
            "name": "styleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignWorkflowToStyleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignWorkflowToStyleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssignWorkflowToStyleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseStyleWorkflowDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseStyleWorkflowDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseStyleWorkflowDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/synapse-styles/{styleId}/workflows/{operationName}": {
      "delete": {
        "tags": [
          "SynapseStyleWorkflowAdmin"
        ],
        "summary": "DELETE /api/admin/synapse-styles/{styleId}/workflows/{operationName} - Remove workflow assignment",
        "parameters": [
          {
            "name": "styleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "operationName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/synapse-styles/seed-defaults": {
      "post": {
        "tags": [
          "SynapseStyleWorkflowAdmin"
        ],
        "summary": "POST /api/admin/synapse-styles/seed-defaults - Seed IsStableDefault workflow for all styles",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/synapse-tiers": {
      "get": {
        "tags": [
          "SynapseTierAdmin"
        ],
        "summary": "GET /api/admin/synapse-tiers - List all tiers",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseTierDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseTierDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseTierDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SynapseTierAdmin"
        ],
        "summary": "POST /api/admin/synapse-tiers - Create tier",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSynapseTierRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSynapseTierRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSynapseTierRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/synapse-tiers/{id}": {
      "get": {
        "tags": [
          "SynapseTierAdmin"
        ],
        "summary": "GET /api/admin/synapse-tiers/{id} - Get single tier",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "SynapseTierAdmin"
        ],
        "summary": "PUT /api/admin/synapse-tiers/{id} - Update tier\r\nIf defaultStyles is provided, performs upsert (replaces all existing styles)\r\nIf defaultStyles is null/omitted, existing styles are preserved",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSynapseTierRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSynapseTierRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSynapseTierRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "SynapseTierAdmin"
        ],
        "summary": "DELETE /api/admin/synapse-tiers/{id} - Soft delete tier",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/synapse-tiers/{id}/set-default": {
      "post": {
        "tags": [
          "SynapseTierAdmin"
        ],
        "summary": "POST /api/admin/synapse-tiers/{id}/set-default - Set tier as default",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/synapse-tiers/{tierId}/styles": {
      "get": {
        "tags": [
          "SynapseTierAdmin"
        ],
        "summary": "GET /api/admin/synapse-tiers/{tierId}/styles - Get all tier-style configurations for a tier",
        "parameters": [
          {
            "name": "tierId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseTierStyleDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseTierStyleDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseTierStyleDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/synapse-tiers/{tierId}/styles/{styleId}": {
      "get": {
        "tags": [
          "SynapseTierAdmin"
        ],
        "summary": "GET /api/admin/synapse-tiers/{tierId}/styles/{styleId} - Get specific tier-style configuration",
        "parameters": [
          {
            "name": "tierId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "styleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierStyleDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierStyleDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierStyleDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "SynapseTierAdmin"
        ],
        "summary": "PUT /api/admin/synapse-tiers/{tierId}/styles/{styleId} - Update tier-style configuration\r\nUpdates guardrails and search setting overrides for a specific tier-style combination",
        "parameters": [
          {
            "name": "tierId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "styleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSynapseTierStyleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSynapseTierStyleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSynapseTierStyleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierStyleDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierStyleDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierStyleDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/synapse-tiers/{tierId}/workflows": {
      "get": {
        "tags": [
          "SynapseTierWorkflowAdmin"
        ],
        "summary": "GET /api/admin/synapse-tiers/{tierId}/workflows - Get workflows for tier",
        "parameters": [
          {
            "name": "tierId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseTierWorkflowDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseTierWorkflowDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SynapseTierWorkflowDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SynapseTierWorkflowAdmin"
        ],
        "summary": "POST /api/admin/synapse-tiers/{tierId}/workflows - Assign workflow to tier\r\nBusiness Rule: Each tier can have only ONE active workflow at a time",
        "parameters": [
          {
            "name": "tierId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignWorkflowToTierRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignWorkflowToTierRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssignWorkflowToTierRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierWorkflowDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierWorkflowDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierWorkflowDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/synapse-tiers/{tierId}/workflows/{workflowId}": {
      "put": {
        "tags": [
          "SynapseTierWorkflowAdmin"
        ],
        "summary": "PUT /api/admin/synapse-tiers/{tierId}/workflows/{workflowId} - Update assignment",
        "parameters": [
          {
            "name": "tierId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "boolean"
              }
            },
            "text/json": {
              "schema": {
                "type": "boolean"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "boolean"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierWorkflowDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierWorkflowDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SynapseTierWorkflowDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "SynapseTierWorkflowAdmin"
        ],
        "summary": "DELETE /api/admin/synapse-tiers/{tierId}/workflows/{workflowId} - Remove assignment",
        "parameters": [
          {
            "name": "tierId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/configuration/test-auth": {
      "get": {
        "tags": [
          "SystemConfiguration"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/configuration/domain-search-basic": {
      "get": {
        "tags": [
          "SystemConfiguration"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DomainSearchConfigDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainSearchConfigDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainSearchConfigDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "SystemConfiguration"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainSearchConfigDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainSearchConfigDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainSearchConfigDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/configuration/domain-search-basic/invalidate-cache": {
      "post": {
        "tags": [
          "SystemConfiguration"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/TestCase/pending": {
      "get": {
        "tags": [
          "TestCase"
        ],
        "summary": "Get pending test cases that require approval",
        "parameters": [
          {
            "name": "sourceType",
            "in": "query",
            "description": "Optional filter by source type",
            "schema": {
              "$ref": "#/components/schemas/TestCaseSourceType"
            }
          },
          {
            "name": "testSuiteId",
            "in": "query",
            "description": "Optional filter by test suite ID",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PendingTestCasesResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PendingTestCasesResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PendingTestCasesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/TestCase/{testCaseId}/approval": {
      "put": {
        "tags": [
          "TestCase"
        ],
        "summary": "Approve or reject a test case",
        "parameters": [
          {
            "name": "testCaseId",
            "in": "path",
            "description": "ID of the test case to approve/reject",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Approval request details",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestCaseApprovalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TestCaseApprovalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TestCaseApprovalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestCaseApprovalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestCaseApprovalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestCaseApprovalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/TestCase/bulk-approve": {
      "put": {
        "tags": [
          "TestCase"
        ],
        "summary": "Bulk approve multiple test cases",
        "requestBody": {
          "description": "Array of test case IDs to approve",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestCaseApprovalResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestCaseApprovalResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestCaseApprovalResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/TestCase/approval-stats": {
      "get": {
        "tags": [
          "TestCase"
        ],
        "summary": "Get test case approval statistics",
        "parameters": [
          {
            "name": "testSuiteId",
            "in": "query",
            "description": "Optional test suite ID filter",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/test-execution/summary/{testRunId}": {
      "get": {
        "tags": [
          "TestExecution"
        ],
        "summary": "Get test execution summary for a specific test run",
        "parameters": [
          {
            "name": "testRunId",
            "in": "path",
            "description": "Test run identifier",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestExecutionSummaryResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestExecutionSummaryResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestExecutionSummaryResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/test-execution/cost/{testRunId}": {
      "get": {
        "tags": [
          "TestExecution"
        ],
        "summary": "Get cost analysis for a specific test run",
        "parameters": [
          {
            "name": "testRunId",
            "in": "path",
            "description": "Test run identifier",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestCostAnalysisResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestCostAnalysisResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestCostAnalysisResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/test-execution/history": {
      "get": {
        "tags": [
          "TestExecution"
        ],
        "summary": "Get test execution history summary",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "description": "Number of days to include in history (default: 30)",
            "schema": {
              "maximum": 365,
              "minimum": 1,
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestExecutionHistoryResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestExecutionHistoryResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestExecutionHistoryResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/test-execution/compare": {
      "post": {
        "tags": [
          "TestExecution"
        ],
        "summary": "Compare multiple test runs",
        "requestBody": {
          "description": "Test run comparison request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompareTestRunsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompareTestRunsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompareTestRunsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestRunComparisonResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestRunComparisonResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestRunComparisonResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/TestSuite": {
      "get": {
        "tags": [
          "TestSuite"
        ],
        "summary": "Get all test suites with optional filtering",
        "parameters": [
          {
            "name": "experimentId",
            "in": "query",
            "description": "Optional experiment ID filter",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Optional status filter",
            "schema": {
              "$ref": "#/components/schemas/TestSuiteStatus"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TestSuiteDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TestSuiteDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TestSuiteDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "TestSuite"
        ],
        "summary": "Create a new test suite",
        "requestBody": {
          "description": "Test suite creation request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTestSuiteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTestSuiteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTestSuiteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/TestSuite/{id}": {
      "get": {
        "tags": [
          "TestSuite"
        ],
        "summary": "Get a specific test suite with all test cases",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Test suite ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "TestSuite"
        ],
        "summary": "Delete a test suite and all its test cases",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Test suite ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteOperationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteOperationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteOperationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/TestSuite/{id}/test-cases": {
      "post": {
        "tags": [
          "TestSuite"
        ],
        "summary": "Add test cases to an existing test suite",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Test suite ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Test cases to add",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TestCaseDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TestCaseDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TestCaseDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteOperationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteOperationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteOperationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/TestSuite/{id}/status": {
      "put": {
        "tags": [
          "TestSuite"
        ],
        "summary": "Update test suite status",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Test suite ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Status update request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTestSuiteStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTestSuiteStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTestSuiteStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/TestSuite/generate": {
      "post": {
        "tags": [
          "TestSuite"
        ],
        "summary": "Generic test case generation using any agent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTestCasesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTestCasesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateTestCasesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/TestSuite/{id}/validate": {
      "post": {
        "tags": [
          "TestSuite"
        ],
        "summary": "Validate test suite readiness for execution",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Test suite ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteOperationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteOperationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSuiteOperationResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/TestSuite/statistics": {
      "get": {
        "tags": [
          "TestSuite"
        ],
        "summary": "Get test suite statistics and summary",
        "parameters": [
          {
            "name": "experimentId",
            "in": "query",
            "description": "Optional experiment ID filter",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/TokenUsage/user/{email}": {
      "get": {
        "tags": [
          "TokenUsage"
        ],
        "summary": "Get token usage summary for a specific user (lifetime + monthly)",
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserTokenUsageSummary"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserTokenUsageSummary"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserTokenUsageSummary"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TokenUsage/search/{searchId}": {
      "get": {
        "tags": [
          "TokenUsage"
        ],
        "summary": "Get token usage summary for a specific search",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchTokenUsageSummary"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchTokenUsageSummary"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchTokenUsageSummary"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TokenUsage/search/{searchId}/details": {
      "get": {
        "tags": [
          "TokenUsage"
        ],
        "summary": "Get detailed token usage logs for a specific search (all LLM calls)",
        "parameters": [
          {
            "name": "searchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMTokenUsageLog"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMTokenUsageLog"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMTokenUsageLog"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/TokenUsage/user/{email}/searches": {
      "get": {
        "tags": [
          "TokenUsage"
        ],
        "summary": "Get token summaries for all searches by a user",
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/TokenUsage/leaderboard": {
      "get": {
        "tags": [
          "TokenUsage"
        ],
        "summary": "Get token usage leaderboard (top users by token consumption or cost)",
        "parameters": [
          {
            "name": "topN",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "cost"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/TokenUsage/pricing": {
      "get": {
        "tags": [
          "TokenUsage"
        ],
        "summary": "Get current model pricing for all providers",
        "parameters": [
          {
            "name": "provider",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/TokenUsage/stats/global": {
      "get": {
        "tags": [
          "TokenUsage"
        ],
        "summary": "Get aggregated token statistics across all users",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/TokenUsage/user/{email}/operations": {
      "get": {
        "tags": [
          "TokenUsage"
        ],
        "summary": "Get token usage breakdown by operation for a user",
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/TokenUsage/logs": {
      "get": {
        "tags": [
          "TokenUsage"
        ],
        "summary": "Get detailed token logs with optional filtering",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/User/info": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get user information including roles",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/User/updateRoles": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Update user roles (upsert - replaces all existing roles with provided roles)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRolesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRolesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRolesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/User/roles": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get all available roles",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/User/migrateVisitorSearches": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Migrate visitor searches to a registered user account.\r\nLinks searches by VisitorId column and creates audit trail in PlanHistory.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MigrateVisitorRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MigrateVisitorRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MigrateVisitorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/User/capture-email": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Captures a visitor's email for a specific purpose (e.g., sending search reports).\r\nDoes NOT migrate searches or create a user account - just records the email association.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaptureVisitorEmailRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CaptureVisitorEmailRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CaptureVisitorEmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/User/captured-emails/{visitorId}": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Retrieves captured emails for a visitor (useful for checking if email was already provided).",
        "parameters": [
          {
            "name": "visitorId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/user/synapse-preferences": {
      "get": {
        "tags": [
          "UserSynapsePreference"
        ],
        "summary": "GET /api/user/synapse-preferences?email={email} - Get user's preferences",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserSynapsePreferenceDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSynapsePreferenceDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSynapsePreferenceDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "UserSynapsePreference"
        ],
        "summary": "POST /api/user/synapse-preferences - Create or update user preferences",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserSynapsePreferenceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserSynapsePreferenceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserSynapsePreferenceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserSynapsePreferenceDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSynapsePreferenceDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSynapsePreferenceDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/user/synapse-preferences/available-styles": {
      "get": {
        "tags": [
          "UserSynapsePreference"
        ],
        "summary": "GET /api/user/synapse-preferences/available-styles - Get all active pathway styles (catalog)\r\nNote: This returns the full catalog. User limits come from /Plan/getPlan endpoint.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvailableStyleDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvailableStyleDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvailableStyleDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/vertical-domains/{verticalDomainId}/rationale": {
      "get": {
        "tags": [
          "VerticalDomains"
        ],
        "summary": "Per-version \"why this asset\" rationale for a domain. Returns one row per\r\ngeneration (logo or hero), newest first. Each row includes the multi-step\r\nLLM concept-selection trail and the final image-model prompt.",
        "parameters": [
          {
            "name": "verticalDomainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-domains/{verticalDomainId}/logo-versions": {
      "get": {
        "tags": [
          "VerticalDomains"
        ],
        "summary": "Full chat history for any LLM operation tied to this VerticalDomain\r\n(logo or hero generation, multi-step or single-step). Newest first.\r\nOptional filters:\r\n  ?operation=LogoPreGeneration  — single operation\r\n  ?since=2026-01-01T00:00:00Z   — recent only",
        "parameters": [
          {
            "name": "verticalDomainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-domains/{verticalDomainId}/chat-history": {
      "get": {
        "tags": [
          "VerticalDomains"
        ],
        "parameters": [
          {
            "name": "verticalDomainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "operation",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "versionNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/all": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "List all vertical domains across all contexts.\r\nOptional query filters: ?search=keyword, ?ownedOnly=true",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ownedOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "List active pool domains for a context token.\r\nIncludes storefront fields + effectiveAskingPrice.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^(?!all$).+",
              "type": "string"
            }
          },
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/candidates": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Get candidate domains from a suite run for cherry-pick review.\r\nReturns ALL domains (deduped, excluding already in pool) with segmentation data.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "description": "Campaign context token",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "suiteRunId",
            "in": "query",
            "description": "Suite run ID",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "likedOnly",
            "in": "query",
            "description": "If true, only return domains that were liked during editorial review",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/approve": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Approve domains into the active pool (batch).\r\nEnriches un-enriched domains via the IsStableDefault workflow before copying.\r\nCopies all enrichment data (rationale, advantages, scores) to VerticalDomains.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveDomainsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveDomainsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveDomainsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}": {
      "delete": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Remove a domain from the active pool.\r\nAlso records an EditorialRejection for future discovery exclusion.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDomainRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDomainRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDomainRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      },
      "patch": {
        "tags": [
          "VerticalInventory"
        ],
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVerticalDomainRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVerticalDomainRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVerticalDomainRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/restore": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Restore a previously rejected domain. Flips IsActive=true, clears DeactivatedReason/On,\r\nand deletes matching EditorialRejection rows so future discovery won't re-reject.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/pricing": {
      "put": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Bulk-update pricing for domains in a vertical.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePricingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePricingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePricingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/rank": {
      "put": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Bulk-update editorial rankings for domains in a vertical.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRankingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRankingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRankingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/promote-to-storefront": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Promote domains to storefront-ready status.\r\nIf force=false, only domains meeting all criteria are promoted.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PromoteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/storefront-readiness": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Get storefront readiness summary for a vertical with auditable inventory math.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/enrich-backfill": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Trigger storefront enrichment (rationale, tagline, advantages) for unenriched domains.\r\nUses the existing LLMWorkflow pipeline with IsStableDefault workflow.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "batchSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/enrich-detail-content": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Enrich detail page content for domains in a vertical.\r\nWithout force: skips domains that already have content (DetailPageStatus >= Draft).\r\nWith force: regenerates all, overwrites CMS DB keys.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "force",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "batchSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/generate-heroes": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Generate hero images for storefront-ready domains with LogoPresetId set.\r\nRequires LogoPresetId for color cohesion between logo and hero scene.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateHeroesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateHeroesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateHeroesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/compose-mockups": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Compose mockup images for storefront-ready domains that have hero image + logo.\r\nDeterministic composition — no AI, uses ImageSharp.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateHeroesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateHeroesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateHeroesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/generate-logos": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Generate logos for approved storefront domains.\r\nUses the \"LogoGeneration\" workflow operation for prompt resolution.\r\nSupports per-domain or batch generation, with optional regeneration.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateLogosRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateLogosRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateLogosRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/generate-logo": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Generate or replace a logo for a single domain on demand.\r\nSupports 3 modes:\r\n  Mode 1 (Explicit): logoGuidance with all 5 fields → validate → generate with those codes.\r\n  Mode 2 (Autoselect): logoGuidance.autoselect=true → return engine-assigned codes without generating.\r\n  Mode 3 (No guidance): no logoGuidance → engine assigns automatically → generate.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateLogoSingleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateLogoSingleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateLogoSingleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/logo": {
      "delete": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Delete a domain's logo from R2 and clear the LogoUrl field.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/upload-logo": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Upload a custom/premium logo image for a domain.\r\nApplies TrimAndNormalize (whitespace trim + resize), uploads to R2 as a new version,\r\ndeactivates previous version, updates domain record.\r\nAccepts multipart/form-data with a single file field \"logo\".",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "presetId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "logo": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "logo": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/logo-versions": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "List all logo versions for a domain, newest first.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/logo-versions/{versionId}/activate": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Set a specific logo version as the active (displayed) logo.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/logo-versions/purge": {
      "delete": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Purge all inactive logo versions for a domain (keeps only the active version).\r\nDeletes R2 objects and database records for purged versions.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/upload-hero": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Upload a custom hero image for a domain.\r\nCreates a new HeroVersion, sets it as active, updates the domain record,\r\nand auto-regenerates mockups if a logo exists.\r\nAccepts multipart/form-data with a single file field \"hero\".",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "hero": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "hero": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/hero-versions": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "List all hero image versions for a domain, newest first.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/hero-versions/{versionId}/activate": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Set a specific hero version as the active (displayed) hero image.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/hero-versions/purge": {
      "delete": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Purge all inactive hero versions for a domain (keeps only the active version).\r\nDeletes R2 objects and database records for purged versions.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/logo-tasks/{taskId}": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Check the status of a queued logo generation task.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/candidate-pricing": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Look up factory candidate pricing for a vertical domain.\r\nResolves SourceDomainId internally — frontend only needs the VerticalDomain ID.\r\nReturns the most recent candidate pricing (from the latest factory run).",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/verify-availability": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Manually trigger availability re-verification for a vertical's domains.\r\nChecks domains where LastVerifiedAt is older than the vertical's configured frequency.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/rejections": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "List editorial rejections for a context (for audit/review).",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "pageOffset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/stats": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Get pool statistics for a context.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/recheck": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Trigger availability recheck for all active pool domains.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/inject-random": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Inject random pool domains into a parent search as best_matches.\r\nSends CtxTopDomains SignalR event so DecisionView refetches segments.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InjectRandomRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InjectRandomRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InjectRandomRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/enrich": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Queue enrichment for a single VerticalDomain (advantages + storefront rationale).\r\nReturns immediately with a task ID. Processing happens in background.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/toggle-ready": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Toggle IsStorefrontReady on a single domain.\r\nWhen enabling, validates the domain meets readiness criteria (enriched, active, available).\r\nPass force=true query param to bypass validation.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "force",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/check-acquisition": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Check if a vertical domain is available for acquisition via Cloudflare Registrar.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/acquire": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Acquire a vertical domain — register it under our Cloudflare account as an owned asset.\r\nPre-checks availability before registration.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/transfer": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Update properties on a VerticalDomain. Only provided (non-null) fields are updated.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferVerticalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferVerticalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TransferVerticalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/domain/{domainId}": {
      "patch": {
        "tags": [
          "VerticalInventory"
        ],
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVerticalDomainRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVerticalDomainRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVerticalDomainRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/acquire-via-browser": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Register a domain on Cloudflare via browser automation (Playwright).\r\nRuns the script, waits 30s, confirms registration via API, then marks the\r\nVerticalDomain as an owned asset with purchaseType=transfer.",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/{ctx}/{domainId}/auth-code": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Get auth/EPP code for an owned asset domain (for buyer transfer).",
        "parameters": [
          {
            "name": "ctx",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/asset-portfolio": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Get per-vertical summary of owned asset inventory.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/bulk-check-acquisition": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Bulk check acquisition availability for multiple domains via WHOIS lookup.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkDomainIdsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkDomainIdsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkDomainIdsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/bulk-acquire": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Bulk acquire domains via Cloudflare (sequential for rate-limit safety).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkDomainIdsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkDomainIdsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkDomainIdsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/transfers": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "List all domain transfers with optional status filter and pagination.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/transfers/{transferId}": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Get transfer detail by ID.",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/transfers/{transferId}/resend": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Admin: resend auth code email for a transfer.",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/transfers/{transferId}/regenerate": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Admin: regenerate auth code for a transfer.",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/transfers/{transferId}/complete": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Admin: manually mark a transfer as completed.",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/transfers/{transferId}/verify-ownership": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Verify if a transferred domain is still in our Cloudflare account.\r\nAuto-marks as Completed if domain has been transferred out.",
        "parameters": [
          {
            "name": "transferId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/verify-owned-assets": {
      "post": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Batch verify all owned assets against Cloudflare to detect domains\r\nthat have been transferred out without being tracked.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/admin/vertical-inventory/test-cloudflare/{domain}": {
      "get": {
        "tags": [
          "VerticalInventory"
        ],
        "summary": "Test endpoint: check Cloudflare registrar status for any domain by name.\r\nReturns raw registrar data — no DB dependency.",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/workflows": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowSearchResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowSearchResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowSearchResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workflow"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/workflows/all": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/workflows/{id}": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/workflows/{workflowId}/operations": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowOperation"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowOperation"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowOperation"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowOperationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowOperationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowOperationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/workflows/{workflowId}/operations/{operationId}": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperation"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperation"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperation"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowOperationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowOperationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowOperationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowOperationDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/operations": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "categoryId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Operation"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Operation"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Operation"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workflow"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOperationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOperationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOperationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/operations/{id}": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOperationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOperationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOperationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/prompts": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Prompt"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Prompt"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Prompt"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workflow"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Prompt"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Prompt"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Prompt"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Prompt"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prompt"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prompt"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/prompts/{id}": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Prompt"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prompt"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prompt"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Prompt"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Prompt"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Prompt"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Prompt"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prompt"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prompt"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/prompts/{promptId}/components": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "promptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptComponent"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptComponent"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PromptComponent"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "promptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptComponent"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptComponent"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PromptComponent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PromptComponent"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptComponent"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptComponent"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/prompts/{promptId}/components/{componentId}": {
      "put": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "promptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "componentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptComponent"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PromptComponent"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PromptComponent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PromptComponent"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptComponent"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptComponent"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "promptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "componentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/prompts/{promptId}/components/activate": {
      "post": {
        "tags": [
          "Workflow"
        ],
        "summary": "Bulk activate all components on a prompt.",
        "parameters": [
          {
            "name": "promptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/prompts/{promptId}/clone": {
      "post": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "promptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClonePromptRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ClonePromptRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ClonePromptRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PromptDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/llm/vendors": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMVendor"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMVendor"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMVendor"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workflow"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMVendor"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMVendor"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LLMVendor"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LLMVendor"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMVendor"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMVendor"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/llm/vendors/{id}": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LLMVendor"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMVendor"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMVendor"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMVendor"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMVendor"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LLMVendor"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LLMVendor"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMVendor"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMVendor"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/llm/models": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMModel"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workflow"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/llm/models/{id}": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModel"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModel"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/llm/models/{modelId}/settings": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "modelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMModelSetting"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMModelSetting"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LLMModelSetting"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "modelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModelSetting"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModelSetting"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModelSetting"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModelSetting"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModelSetting"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModelSetting"
                }
              }
            }
          }
        }
      }
    },
    "/api/Workflow/llm/settings/{id}": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModelSetting"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModelSetting"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModelSetting"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModelSetting"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModelSetting"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LLMModelSetting"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModelSetting"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModelSetting"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LLMModelSetting"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Workflow"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/users": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/cache/refresh": {
      "post": {
        "tags": [
          "Workflow"
        ],
        "summary": "Manually refresh the workflow cache. Use this after making changes\r\nthat don't automatically refresh the cache.",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Workflow/cache/status": {
      "get": {
        "tags": [
          "Workflow"
        ],
        "summary": "Get current cache status for diagnostics",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/WorkflowConfigurations": {
      "get": {
        "tags": [
          "WorkflowConfiguration"
        ],
        "summary": "Get all workflow configurations",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowConfigurationDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowConfigurationDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowConfigurationDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WorkflowConfiguration"
        ],
        "summary": "Create new workflow configuration",
        "requestBody": {
          "description": "Configuration creation request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowConfigurationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowConfigurationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkflowConfigurationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowConfigurations/{id}": {
      "get": {
        "tags": [
          "WorkflowConfiguration"
        ],
        "summary": "Get specific workflow configuration by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Configuration ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowConfigurations/default": {
      "get": {
        "tags": [
          "WorkflowConfiguration"
        ],
        "summary": "Get default production configuration",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowConfigurations/{id}/clone": {
      "post": {
        "tags": [
          "WorkflowConfiguration"
        ],
        "summary": "Clone existing configuration with a new name",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Source configuration ID",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Clone request with new name",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloneConfigurationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CloneConfigurationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CloneConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowConfigurations/{id}/set-default": {
      "put": {
        "tags": [
          "WorkflowConfiguration"
        ],
        "summary": "Set configuration as default production configuration",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Configuration ID to set as default",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/WorkflowConfigurations/for-search": {
      "get": {
        "tags": [
          "WorkflowConfiguration"
        ],
        "summary": "Get configuration for search based on search options",
        "parameters": [
          {
            "name": "forcedConfigId",
            "in": "query",
            "description": "Optional forced configuration ID",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowConfigurationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowConfigurations/champion": {
      "get": {
        "tags": [
          "WorkflowConfiguration"
        ],
        "summary": "Get the current champion workflow configuration for a specific operation and context",
        "parameters": [
          {
            "name": "operation",
            "in": "query",
            "description": "Operation name (e.g., DomainSuggestionsPremium)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "industry",
            "in": "query",
            "description": "Industry filter (use \"none\" for no industry filter)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tone",
            "in": "query",
            "description": "Tone filter (use \"none\" for no tone filter)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ChampionConfigurationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChampionConfigurationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChampionConfigurationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowEvaluation/create-run": {
      "post": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Create a new evaluation run with test cases",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEvaluationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEvaluationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEvaluationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationRun"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationRun"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationRun"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowEvaluation/{runId}": {
      "put": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Update an evaluation run's metadata and/or test cases (only when status is Created)",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEvaluationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEvaluationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEvaluationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationRun"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationRun"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationRun"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Get a single evaluation run with its test cases (for cloning)",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationRun"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationRun"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationRun"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Delete an evaluation run and all its related data",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/WorkflowEvaluation/{runId}/execute": {
      "post": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Execute an evaluation run against specified workflows and operations",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteEvaluationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteEvaluationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteEvaluationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/WorkflowEvaluation/{runId}/status": {
      "get": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Get the status of an evaluation run",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationStatusDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationStatusDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluationStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowEvaluation/{runId}/results": {
      "get": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Get results for an evaluation run with hierarchical grouping",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationReportDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationReportDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowEvaluationReportDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowEvaluation/results/{resultId}/rate": {
      "post": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Rate a specific evaluation result",
        "parameters": [
          {
            "name": "resultId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RateResultRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RateResultRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RateResultRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/WorkflowEvaluation/runs": {
      "get": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Get list of evaluation runs",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "pageOffset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowEvaluationRun"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowEvaluationRun"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowEvaluationRun"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowEvaluation/{runId}/chat-history": {
      "get": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Get chat history for an evaluation run (all test cases)",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatHistoryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatHistoryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatHistoryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowEvaluation/testcase/{testCaseId}/chat-history": {
      "get": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Get chat history for a specific test case, optionally filtered by style",
        "parameters": [
          {
            "name": "testCaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "style",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatHistoryDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatHistoryDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatHistoryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowEvaluation/{runId}/reset": {
      "post": {
        "tags": [
          "WorkflowEvaluation"
        ],
        "summary": "Reset an evaluation run to Created status so it can be re-executed.\r\nClears all results but keeps test cases.",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/workflows/operations/unique": {
      "get": {
        "tags": [
          "WorkflowOperations"
        ],
        "summary": "Get distinct operation names from all workflows",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/workflows/operations/categories": {
      "get": {
        "tags": [
          "WorkflowOperations"
        ],
        "summary": "Get operation categories for compatibility checking",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/WorkflowTemplate/{workflowId}/template/export": {
      "get": {
        "tags": [
          "WorkflowTemplate"
        ],
        "summary": "Export workflow template with smart exemplar selection based on filter overrides",
        "parameters": [
          {
            "name": "workflowId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "industry",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tone",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operation",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "exemplarMode",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "auto"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTemplateExportResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTemplateExportResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTemplateExportResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowTemplate/template/import": {
      "post": {
        "tags": [
          "WorkflowTemplate"
        ],
        "summary": "Import workflow template and create new workflow with selective exemplar import",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTemplateImportResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTemplateImportResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowTemplateImportResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowTemplate/prompt/{promptId}/template/export": {
      "get": {
        "tags": [
          "WorkflowTemplate"
        ],
        "summary": "Export prompt template with components and filter overrides",
        "parameters": [
          {
            "name": "promptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PromptTemplateExportResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptTemplateExportResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptTemplateExportResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/WorkflowTemplate/prompt/template/import": {
      "post": {
        "tags": [
          "WorkflowTemplate"
        ],
        "summary": "Import prompt template and create new prompt with filter overrides",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PromptTemplateImportResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptTemplateImportResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromptTemplateImportResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AIDomainScore": {
        "type": "object",
        "properties": {
          "relevance": {
            "type": "integer",
            "format": "int32"
          },
          "memorability": {
            "type": "integer",
            "format": "int32"
          },
          "soundClarity": {
            "type": "integer",
            "format": "int32"
          },
          "strengthIndicator": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AddDomainRequest": {
        "type": "object",
        "properties": {
          "domainId": {
            "type": "string",
            "format": "uuid"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AddKeywordDto": {
        "type": "object",
        "properties": {
          "keyword": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddKeywordRequest": {
        "type": "object",
        "properties": {
          "categoryCode": {
            "type": "string",
            "nullable": true
          },
          "keyword": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddModelPricingRequest": {
        "type": "object",
        "properties": {
          "modelName": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "inputPricePer1MTokens": {
            "type": "number",
            "format": "double"
          },
          "outputPricePer1MTokens": {
            "type": "number",
            "format": "double"
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddPhraseCommand": {
        "required": [
          "phrase"
        ],
        "type": "object",
        "properties": {
          "phrase": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "phraseFamily": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "rationale": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddPlanRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "durationInDays": {
            "type": "integer",
            "format": "int32"
          },
          "visitorId": {
            "type": "string",
            "nullable": true
          },
          "browserFingerprint": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "paymentProvider": {
            "type": "string",
            "nullable": true
          },
          "paymentReference": {
            "type": "string",
            "nullable": true
          },
          "paymentEmail": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddPlanWithDatesRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AddTermRequest": {
        "required": [
          "categoryName",
          "term"
        ],
        "type": "object",
        "properties": {
          "term": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "categoryName": {
            "minLength": 1,
            "type": "string"
          },
          "termType": {
            "$ref": "#/components/schemas/TermType"
          },
          "matchType": {
            "$ref": "#/components/schemas/MatchType"
          },
          "isCaseSensitive": {
            "type": "boolean"
          },
          "notes": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminSearchCriteria": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "description": "Start date for search range (inclusive)",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "description": "End date for search range (inclusive)",
            "format": "date-time",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Filter by email (optional)",
            "nullable": true
          },
          "visitorId": {
            "type": "string",
            "description": "Filter by VisitorId (optional)",
            "nullable": true
          },
          "keywordFilter": {
            "type": "string",
            "description": "Filter by keyword in KeywordRelevance field (optional)",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/SearchStatus"
          },
          "includeFailed": {
            "type": "boolean",
            "description": "Include failed searches for diagnosis"
          },
          "includeArchived": {
            "type": "boolean",
            "description": "Include archived searches"
          },
          "includePathways": {
            "type": "boolean",
            "description": "Include Synapse pathway searches (default: false, only show parent searches)"
          },
          "pageNumber": {
            "type": "integer",
            "description": "Page number (1-based)",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "description": "Page size",
            "format": "int32"
          },
          "excludeEmail": {
            "type": "string",
            "description": "Email to exclude from results (typically the admin's own email)",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Criteria for admin-only search queries across all users/visitors"
      },
      "AgentApprovalRequest": {
        "type": "object",
        "properties": {
          "comments": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Comments about the approval/rejection",
            "nullable": true
          },
          "rejectionReason": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Reason for rejection (required if rejecting)",
            "nullable": true
          },
          "createSnapshot": {
            "type": "boolean",
            "description": "Whether to create a snapshot before applying changes"
          }
        },
        "additionalProperties": false,
        "description": "Request to approve or reject agent modifications"
      },
      "AgentApprovalResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "processedAt": {
            "type": "string",
            "format": "date-time"
          },
          "processedBy": {
            "type": "string",
            "nullable": true
          },
          "newVersionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "newVersionNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "appliedChanges": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response from agent approval/rejection"
      },
      "AgentAuditEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "agentKey": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "performedBy": {
            "type": "string",
            "nullable": true
          },
          "relatedProposalId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Agent audit entry for tracking all changes"
      },
      "AgentCurrentConfiguration": {
        "type": "object",
        "properties": {
          "configurationJson": {
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "inputSchema": {
            "type": "string",
            "nullable": true
          },
          "outputSchema": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Current agent configuration for comparison"
      },
      "AgentModificationProposalRequest": {
        "required": [
          "agentId",
          "proposalType",
          "rationale",
          "title"
        ],
        "type": "object",
        "properties": {
          "agentId": {
            "type": "string",
            "description": "ID of the agent to modify",
            "format": "uuid"
          },
          "proposalType": {
            "$ref": "#/components/schemas/AgentModificationType"
          },
          "title": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Title for this modification proposal"
          },
          "rationale": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "description": "Rationale for this modification"
          },
          "expectedImprovements": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Expected improvements from this modification",
            "nullable": true
          },
          "riskAssessment": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Risk assessment for this modification",
            "nullable": true
          },
          "testingPlan": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Testing plan for validating changes",
            "nullable": true
          },
          "rollbackPlan": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Rollback plan if issues occur",
            "nullable": true
          },
          "proposedConfigurationJson": {
            "type": "string",
            "description": "[DEPRECATED] Proposed configuration JSON (if changing configuration)\r\nConfiguration is now managed through AgentOperationBindings",
            "nullable": true,
            "deprecated": true
          },
          "proposedInputSchema": {
            "type": "string",
            "description": "Proposed input schema (if changing schema)",
            "nullable": true
          },
          "proposedOutputSchema": {
            "type": "string",
            "description": "Proposed output schema (if changing schema)",
            "nullable": true
          },
          "proposedDisplayName": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Proposed display name",
            "nullable": true
          },
          "proposedDescription": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Proposed description",
            "nullable": true
          },
          "proposedPersonaPrompt": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Proposed persona prompt",
            "nullable": true
          },
          "isAgentSelfModification": {
            "type": "boolean",
            "description": "Whether this is an agent self-modification"
          },
          "sourceAgentKey": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Agent key that initiated the self-modification (if applicable)",
            "nullable": true
          },
          "requiresApproval": {
            "type": "boolean",
            "description": "Whether this modification requires approval workflow"
          }
        },
        "additionalProperties": false,
        "description": "Request to propose agent configuration changes"
      },
      "AgentModificationType": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "description": "Agent modification proposal types",
        "format": "int32"
      },
      "AgentProposalResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "agentId": {
            "type": "string",
            "format": "uuid"
          },
          "agentKey": {
            "type": "string",
            "nullable": true
          },
          "agentDisplayName": {
            "type": "string",
            "nullable": true
          },
          "proposalType": {
            "$ref": "#/components/schemas/AgentModificationType"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "rationale": {
            "type": "string",
            "nullable": true
          },
          "expectedImprovements": {
            "type": "string",
            "nullable": true
          },
          "riskAssessment": {
            "type": "string",
            "nullable": true
          },
          "riskLevel": {
            "$ref": "#/components/schemas/DeploymentRisk"
          },
          "testingPlan": {
            "type": "string",
            "nullable": true
          },
          "rollbackPlan": {
            "type": "string",
            "nullable": true
          },
          "isAgentSelfModification": {
            "type": "boolean"
          },
          "sourceAgentKey": {
            "type": "string",
            "nullable": true
          },
          "approvalStatus": {
            "$ref": "#/components/schemas/ApprovalStatus"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "approvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectedBy": {
            "type": "string",
            "nullable": true
          },
          "rejectedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "proposedChanges": {
            "$ref": "#/components/schemas/AgentProposedChanges"
          },
          "currentConfiguration": {
            "$ref": "#/components/schemas/AgentCurrentConfiguration"
          }
        },
        "additionalProperties": false,
        "description": "Response for agent modification proposal"
      },
      "AgentProposedChanges": {
        "type": "object",
        "properties": {
          "configurationJson": {
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "inputSchema": {
            "type": "string",
            "nullable": true
          },
          "outputSchema": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Proposed changes to an agent"
      },
      "AgentType": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "AlertType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "AnalyzeWorkflowRequest": {
        "type": "object",
        "properties": {
          "workflow": {
            "$ref": "#/components/schemas/UpdateWorkflowDto"
          },
          "expectedDomainCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "keywords": {
            "type": "string",
            "nullable": true
          },
          "parameters": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppliedConstraint": {
        "type": "object",
        "properties": {
          "constraintGroupId": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "constraintText": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "totalWeight": {
            "type": "number",
            "format": "double"
          },
          "triggeringKeywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isFallback": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ApplyRevisionsRequest": {
        "type": "object",
        "properties": {
          "configDraftJson": {
            "type": "string",
            "description": "Required — the draft logo config to save as a new (inactive) version.",
            "nullable": true
          },
          "presetEdits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PresetEditOperation"
            },
            "description": "Optional — in-place preset edits (Shape A).",
            "nullable": true
          },
          "newPresets": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/components/schemas/JsonNode"
              }
            },
            "description": "Optional — full preset rows to append (Shape B/C).",
            "nullable": true
          },
          "newRegisters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegisterEntry"
            },
            "description": "Optional — register codes to register in the global vocabulary.",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "description": "Optional — note to attach to the new logo-config version.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "POST /api/admin/campaign-contexts/{token}/logo-config/apply-revisions —\r\ntransactional bundle. Per §11.5 of the spec."
      },
      "ApplyStyleRequest": {
        "required": [
          "content",
          "styleName"
        ],
        "type": "object",
        "properties": {
          "content": {
            "minLength": 1,
            "type": "string"
          },
          "styleName": {
            "minLength": 1,
            "type": "string"
          },
          "context": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApprovalRequest": {
        "type": "object",
        "properties": {
          "comments": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Comments from the approver/rejector",
            "nullable": true
          },
          "rejectionReason": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "For rejections: reason for rejection",
            "nullable": true
          },
          "createSnapshot": {
            "type": "boolean",
            "description": "Whether to create a snapshot before deployment (for approvals)"
          },
          "resolveConflicts": {
            "type": "boolean",
            "description": "Whether to resolve conflicts automatically (for approvals)"
          }
        },
        "additionalProperties": false,
        "description": "Request to approve or reject a deployment proposal"
      },
      "ApprovalResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "snapshotId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "appliedChanges": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "processedAt": {
            "type": "string",
            "format": "date-time"
          },
          "processedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response from approval/rejection operation"
      },
      "ApprovalStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "description": "Status of a deployment proposal",
        "format": "int32"
      },
      "ApproveDomainsRequest": {
        "type": "object",
        "properties": {
          "domainIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "suiteRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ArmDesignation": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "description": "Arm designation for A/B testing",
        "format": "int32"
      },
      "ArmPerformanceDto": {
        "type": "object",
        "properties": {
          "arm": {
            "$ref": "#/components/schemas/ArmDesignation"
          },
          "workflowConfigurationId": {
            "type": "string",
            "description": "Workflow configuration ID",
            "format": "uuid"
          },
          "testCaseCount": {
            "type": "integer",
            "description": "Number of test cases",
            "format": "int32"
          },
          "averageCompositeScore": {
            "type": "number",
            "description": "Average composite score",
            "format": "double"
          },
          "standardDeviation": {
            "type": "number",
            "description": "Standard deviation",
            "format": "double"
          },
          "confidenceInterval": {
            "$ref": "#/components/schemas/DoubleDoubleValueTuple"
          },
          "averageAxisScores": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "description": "Average scores by evaluation axis",
            "nullable": true
          },
          "passRate": {
            "type": "number",
            "description": "Pass rate for pass/fail criteria",
            "format": "double"
          },
          "passedCount": {
            "type": "integer",
            "description": "Number of passed test cases",
            "format": "int32"
          },
          "insights": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Performance insights",
            "nullable": true
          },
          "relativePerformance": {
            "type": "number",
            "description": "Relative performance vs other arms (0.0-1.0)",
            "format": "double",
            "nullable": true
          },
          "goldenKeywordPerformance": {
            "$ref": "#/components/schemas/GoldenKeywordArmPerformance"
          }
        },
        "additionalProperties": false,
        "description": "Arm performance DTO"
      },
      "ArmSelectionDto": {
        "type": "object",
        "properties": {
          "armId": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "selectedAt": {
            "type": "string",
            "format": "date-time"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for arm selection results"
      },
      "ArmStatistics": {
        "type": "object",
        "properties": {
          "arm": {
            "$ref": "#/components/schemas/ArmDesignation"
          },
          "testCases": {
            "type": "integer",
            "format": "int32"
          },
          "successes": {
            "type": "integer",
            "format": "int32"
          },
          "failures": {
            "type": "integer",
            "format": "int32"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "averageLatencyMs": {
            "type": "number",
            "format": "double"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalCost": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "Statistics for a specific experimental arm"
      },
      "ArticleType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "Enum to distinguish between general help articles and landing page FAQs",
        "format": "int32"
      },
      "AssignPresetRequest": {
        "type": "object",
        "properties": {
          "presetId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AssignWorkflowToStyleRequest": {
        "required": [
          "operationName",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "operationName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "DTO for assigning a workflow to a style for a specific operation"
      },
      "AssignWorkflowToTierRequest": {
        "required": [
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false,
        "description": "DTO for assigning a workflow to a tier"
      },
      "AuditLogResponse": {
        "type": "object",
        "properties": {
          "logs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentFilterAuditLog"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AutoTuneRequest": {
        "type": "object",
        "properties": {
          "contextToken": {
            "type": "string",
            "nullable": true
          },
          "captureRate": {
            "type": "number",
            "description": "Fraction of approved candidates to capture (default 1.0 = 100%).",
            "format": "double"
          },
          "applyTo": {
            "type": "string",
            "description": "\"global\" updates GlobalSettings, \"vertical\" updates CampaignContext config.",
            "nullable": true
          },
          "dryRun": {
            "type": "boolean",
            "description": "If true, return recommendation only without applying (default true)."
          },
          "searchSetNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only include candidates from these search phrase set names.",
            "nullable": true
          },
          "fromDate": {
            "type": "string",
            "description": "Only include candidates created after this date.",
            "format": "date-time",
            "nullable": true
          },
          "toDate": {
            "type": "string",
            "description": "Only include candidates created before this date.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AvailableStyleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "DTO for available styles response"
      },
      "Benefit": {
        "type": "object",
        "properties": {
          "icon": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Individual benefit item"
      },
      "BenefitsSection": {
        "type": "object",
        "properties": {
          "sectionTitle": {
            "type": "string",
            "nullable": true
          },
          "sectionSubtitle": {
            "type": "string",
            "nullable": true
          },
          "benefits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Benefit"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Benefits section configuration"
      },
      "BindingOrderItem": {
        "required": [
          "bindingId",
          "executionOrder"
        ],
        "type": "object",
        "properties": {
          "bindingId": {
            "type": "string",
            "format": "uuid"
          },
          "executionOrder": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Individual binding order item"
      },
      "BooleanValue": {
        "type": "object",
        "properties": {
          "value": {
            "type": "boolean"
          },
          "rationale": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Boolean value with rationale."
      },
      "BulkAddKeywordsDto": {
        "type": "object",
        "properties": {
          "keywords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConstraintBulkKeywordItem"
            },
            "nullable": true
          },
          "defaultWeight": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "BulkAddResult": {
        "type": "object",
        "properties": {
          "added": {
            "type": "integer",
            "format": "int32"
          },
          "skipped": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BulkDomainIdsRequest": {
        "type": "object",
        "properties": {
          "domainIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BulkImportKeywordsRequest": {
        "type": "object",
        "properties": {
          "keywords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkKeywordItem"
            },
            "nullable": true
          },
          "defaultCategoryCode": {
            "type": "string",
            "nullable": true
          },
          "defaultWeight": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "BulkImportResult": {
        "type": "object",
        "properties": {
          "added": {
            "type": "integer",
            "format": "int32"
          },
          "skipped": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BulkKeywordItem": {
        "type": "object",
        "properties": {
          "keyword": {
            "type": "string",
            "nullable": true
          },
          "categoryCode": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BulkOptimizeRequest": {
        "type": "object",
        "properties": {
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "specificWorkflowIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "maxConcurrency": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "skipExistingChampions": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CancelExecutionRequest": {
        "required": [
          "cancelledBy"
        ],
        "type": "object",
        "properties": {
          "reason": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "description": "Reason for cancellation",
            "nullable": true
          },
          "cancelledBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "User who requested cancellation"
          }
        },
        "additionalProperties": false,
        "description": "Cancel execution request"
      },
      "CancelExecutionResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether cancellation was successful"
          },
          "message": {
            "type": "string",
            "description": "Response message",
            "nullable": true
          },
          "newStatus": {
            "$ref": "#/components/schemas/ExecutionStatus"
          }
        },
        "additionalProperties": false,
        "description": "Cancel execution response"
      },
      "CapturePlanOrderRequest": {
        "required": [
          "amount",
          "durationDays",
          "email",
          "orderId"
        ],
        "type": "object",
        "properties": {
          "orderId": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "durationDays": {
            "maximum": 365,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "maximum": 10000,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          },
          "visitorId": {
            "type": "string",
            "nullable": true
          },
          "browserFingerprint": {
            "type": "string",
            "nullable": true
          },
          "paymentEmail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CapturePlanOrderResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "planId": {
            "type": "string",
            "format": "uuid"
          },
          "captureId": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CaptureVisitorEmailRequest": {
        "type": "object",
        "properties": {
          "visitorId": {
            "type": "string",
            "description": "The visitor's anonymous ID from localStorage (optional for logged-in users)",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email provided by the visitor",
            "nullable": true
          },
          "purpose": {
            "type": "string",
            "description": "Purpose of the capture (e.g., \"search_report\", \"newsletter\")",
            "nullable": true
          },
          "searchId": {
            "type": "string",
            "description": "Associated search ID (optional, for search-specific reports)",
            "format": "uuid",
            "nullable": true
          },
          "browserFingerprint": {
            "type": "string",
            "description": "Browser fingerprint (optional)",
            "nullable": true
          },
          "pdfBase64": {
            "type": "string",
            "description": "Base64-encoded PDF for search report emails (required when purpose is \"search_report\")",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChampionConfigurationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "isChampion": {
            "type": "boolean"
          },
          "isDefault": {
            "type": "boolean"
          },
          "operation": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "patternId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "patternName": {
            "type": "string",
            "nullable": true
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "exemplarInfo": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChampionDecision": {
        "type": "object",
        "properties": {
          "championId": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChampionDecisionRequest": {
        "type": "object",
        "properties": {
          "assessmentId": {
            "type": "string",
            "format": "uuid"
          },
          "decisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChampionDecision"
            },
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChampionMappingDto": {
        "type": "object",
        "properties": {
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "championExemplarId": {
            "type": "string",
            "format": "uuid"
          },
          "championVariantType": {
            "type": "string",
            "nullable": true
          },
          "testingPhase": {
            "$ref": "#/components/schemas/TestingPhase"
          },
          "promotedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "performanceMetrics": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChampionPromotionResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "exemplarId": {
            "type": "string",
            "format": "uuid"
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "promotedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ChatHistoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowEvaluationRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowEvaluationTestCaseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "factoryRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "verticalDomainId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "role": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "length": {
            "type": "integer",
            "format": "int32"
          },
          "durationSeconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "operationName": {
            "type": "string",
            "nullable": true
          },
          "promptName": {
            "type": "string",
            "nullable": true
          },
          "modelName": {
            "type": "string",
            "nullable": true
          },
          "testCaseKeywords": {
            "type": "string",
            "nullable": true
          },
          "testCaseStyle": {
            "type": "string",
            "nullable": true
          },
          "workflowEvaluationStyle": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatLog": {
        "required": [
          "content"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowEvaluationRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowEvaluationTestCaseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "factoryRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "verticalDomainId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "currentAttempt": {
            "type": "integer",
            "format": "int32"
          },
          "role": {
            "$ref": "#/components/schemas/ChatRole"
          },
          "content": {
            "minLength": 1,
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "operationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "promptId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "modelId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "operationName": {
            "type": "string",
            "nullable": true
          },
          "promptName": {
            "type": "string",
            "nullable": true
          },
          "modelName": {
            "type": "string",
            "nullable": true
          },
          "durationSeconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "workflowEvaluationStyle": {
            "type": "string",
            "nullable": true
          },
          "configurationSnapshot": {
            "type": "string",
            "nullable": true
          },
          "search": {
            "$ref": "#/components/schemas/Search"
          },
          "workflowEvaluationRun": {
            "$ref": "#/components/schemas/WorkflowEvaluationRun"
          },
          "workflowEvaluationTestCase": {
            "$ref": "#/components/schemas/WorkflowEvaluationTestCase"
          }
        },
        "additionalProperties": false
      },
      "ChatRole": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "CleanupCandidatesRequest": {
        "type": "object",
        "properties": {
          "phraseFamily": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CloneConfigurationRequest": {
        "type": "object",
        "properties": {
          "newName": {
            "type": "string",
            "description": "New name for the cloned configuration",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request model for cloning configurations"
      },
      "CloneExperimentDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for cloning experiments"
      },
      "ClonePromptRequest": {
        "type": "object",
        "properties": {
          "newName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CloneSetCommand": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "includePhrases": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CloseOfferRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompareTestRunsRequest": {
        "required": [
          "testRunIds"
        ],
        "type": "object",
        "properties": {
          "testRunIds": {
            "maxItems": 10,
            "minItems": 2,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "ComparisonSummary": {
        "type": "object",
        "properties": {
          "bestPerformingRun": {
            "type": "string",
            "nullable": true
          },
          "mostCostEffectiveRun": {
            "type": "string",
            "nullable": true
          },
          "successRateRange": {
            "type": "string",
            "nullable": true
          },
          "costRange": {
            "type": "string",
            "nullable": true
          },
          "totalTestsCompared": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ComponentTemplateData": {
        "type": "object",
        "properties": {
          "componentId": {
            "type": "string",
            "nullable": true
          },
          "section": {
            "type": "string",
            "nullable": true
          },
          "orderIndex": {
            "type": "integer",
            "format": "int32"
          },
          "subOrder": {
            "type": "integer",
            "format": "int32"
          },
          "instructionText": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "filterOverrides": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterOverrideData"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ComposePlanRequest": {
        "required": [
          "agentType",
          "goal"
        ],
        "type": "object",
        "properties": {
          "goal": {
            "minLength": 1,
            "type": "string"
          },
          "agentType": {
            "minLength": 1,
            "type": "string"
          },
          "constraints": {
            "$ref": "#/components/schemas/PlannerConstraints"
          },
          "defaults": {
            "$ref": "#/components/schemas/PlannerDefaults"
          },
          "availableOperations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ComposePlanResponse": {
        "type": "object",
        "properties": {
          "workflow": {
            "$ref": "#/components/schemas/WorkflowDefinition"
          },
          "estimates": {
            "$ref": "#/components/schemas/PlannerEstimates"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConfigurationChange": {
        "type": "object",
        "properties": {
          "changeType": {
            "type": "string",
            "nullable": true
          },
          "configurationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "configurationName": {
            "type": "string",
            "nullable": true
          },
          "oldValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          },
          "fieldName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a change in workflow configurations between snapshots"
      },
      "ConfigurationStatus": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "Status of workflow configuration",
        "format": "int32"
      },
      "ConstraintBulkKeywordItem": {
        "type": "object",
        "properties": {
          "keyword": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConstraintEvaluationResult": {
        "type": "object",
        "properties": {
          "appliedConstraints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AppliedConstraint"
            },
            "description": "Constraints that should be applied (passed industry scope check)",
            "nullable": true
          },
          "skippedConstraints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SkippedConstraint"
            },
            "description": "Constraints that matched keywords but were blocked by industry scope",
            "nullable": true
          },
          "matchedKeywords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MatchedKeywordInfo"
            },
            "description": "Keywords that matched during evaluation",
            "nullable": true
          },
          "combinedConstraintText": {
            "type": "string",
            "description": "Combined constraint text for prompt injection.\r\nFallback/base constraints are always prepended, then industry-specific constraints follow.",
            "nullable": true,
            "readOnly": true
          },
          "hasConstraints": {
            "type": "boolean",
            "description": "Whether any constraints were applied",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ConstraintGroupDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "constraintText": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "isFallback": {
            "type": "boolean"
          },
          "industryScope": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "keywordCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConstraintKeywordDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "constraintGroupId": {
            "type": "string",
            "format": "uuid"
          },
          "keyword": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContactForm": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "fromEmail": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "language": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContentFilterAuditLog": {
        "required": [
          "inputSource",
          "inputText"
        ],
        "type": "object",
        "properties": {
          "logId": {
            "type": "string",
            "format": "uuid"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "inputText": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "inputSource": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "validationResult": {
            "$ref": "#/components/schemas/ValidationResult"
          },
          "blockedReason": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "matchedTermId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "matchedCategoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "userEmail": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "ipAddress": {
            "maxLength": 45,
            "type": "string",
            "nullable": true
          },
          "userAgent": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "sessionId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContentFilterTermDto": {
        "type": "object",
        "properties": {
          "termId": {
            "type": "string",
            "format": "uuid"
          },
          "term": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "type": "integer",
            "format": "int32"
          },
          "termType": {
            "type": "string",
            "nullable": true
          },
          "matchType": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContentValidationRequest": {
        "required": [
          "input",
          "source"
        ],
        "type": "object",
        "properties": {
          "input": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "source": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ContentValidationResponse": {
        "type": "object",
        "properties": {
          "valid": {
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "sanitized": {
            "type": "string",
            "nullable": true
          },
          "categoryBlocked": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContextCoverageDto": {
        "type": "object",
        "properties": {
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "hasChampion": {
            "type": "boolean"
          },
          "championExemplarId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "championVariantType": {
            "type": "string",
            "nullable": true
          },
          "testingPhase": {
            "$ref": "#/components/schemas/TestingPhase"
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContextSettings": {
        "type": "object",
        "properties": {
          "maxSignals": {
            "type": "integer",
            "description": "Maximum number of signals to display in this context.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Context-specific display settings."
      },
      "ConversionRequest": {
        "type": "object",
        "properties": {
          "conversionActionId": {
            "type": "string",
            "nullable": true
          },
          "gclid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CostProjection": {
        "type": "object",
        "properties": {
          "averageCostPerTest": {
            "type": "number",
            "format": "double"
          },
          "projectedCostFor100Tests": {
            "type": "number",
            "format": "double"
          },
          "projectedCostFor1000Tests": {
            "type": "number",
            "format": "double"
          },
          "projectedMonthlyCost": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CoverageAnalysisReport": {
        "type": "object",
        "properties": {
          "analysisPeriodDays": {
            "type": "integer",
            "format": "int32"
          },
          "underperformingPatternsCount": {
            "type": "integer",
            "format": "int32"
          },
          "unusedPatternsCount": {
            "type": "integer",
            "format": "int32"
          },
          "underperformingPatterns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatternSummary"
            },
            "nullable": true
          },
          "unusedPatterns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatternSummary"
            },
            "nullable": true
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Coverage analysis report DTO"
      },
      "CoverageGapAnalysis": {
        "type": "object",
        "properties": {
          "uncoveredPatterns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UncoveredPattern"
            },
            "nullable": true
          },
          "suggestedNewPatterns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "keywordFrequency": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "overallCoveragePercentage": {
            "type": "number",
            "format": "double"
          },
          "analysisDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Analysis of coverage gaps in routing patterns"
      },
      "CoverageMatrixDto": {
        "type": "object",
        "properties": {
          "workflowCoverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowCoverageDto"
            },
            "nullable": true
          },
          "summary": {
            "$ref": "#/components/schemas/CoverageSummaryDto"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CoverageSummaryDto": {
        "type": "object",
        "properties": {
          "totalWorkflows": {
            "type": "integer",
            "format": "int32"
          },
          "totalCombinations": {
            "type": "integer",
            "format": "int32"
          },
          "coveredCombinations": {
            "type": "integer",
            "format": "int32"
          },
          "overallCoveragePercentage": {
            "type": "number",
            "format": "double"
          },
          "availableIndustries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "availableTones": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "gaps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GapDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateAgentOperationBindingRequest": {
        "required": [
          "operationId"
        ],
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "role": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "bindingConfiguration": {
            "type": "string",
            "nullable": true
          },
          "executionCondition": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "isRequired": {
            "type": "boolean"
          },
          "skipCondition": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Request model for creating a new binding"
      },
      "CreateAgentRequest": {
        "required": [
          "agentKey",
          "agentType"
        ],
        "type": "object",
        "properties": {
          "agentKey": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "agentType": {
            "$ref": "#/components/schemas/AgentType"
          },
          "displayName": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "inputSchema": {
            "type": "string",
            "nullable": true
          },
          "outputSchema": {
            "type": "string",
            "nullable": true
          },
          "metadataJson": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean"
          },
          "isProd": {
            "type": "boolean"
          },
          "isCanary": {
            "type": "boolean"
          },
          "color": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "iconUrl": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateCampaignContextRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "maxPoolSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "placeholderSetId": {
            "type": "integer",
            "description": "FK to SearchPhraseSets for rotating placeholder text.",
            "format": "int32",
            "nullable": true
          },
          "industryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "storefrontCategory": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "navigationGroup": {
            "type": "string",
            "nullable": true
          },
          "storefrontSlug": {
            "type": "string",
            "nullable": true
          },
          "targetInventorySize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minInventoryThreshold": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "availabilityBufferPercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "availabilityCheckFrequencyHours": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "publicExposureCap": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "editorialGuidanceJson": {
            "type": "string",
            "description": "JSON blob of editorial guidance variables for StorefrontEditorialCuration prompt.",
            "nullable": true
          },
          "editorialFamilyPolicyJson": {
            "type": "string",
            "description": "JSON blob for per-family editorial ranking policy.",
            "nullable": true
          },
          "keywordsJson": {
            "type": "string",
            "description": "JSON array of search keywords for vertical matching.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateCategoryRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request model for creating a new category"
      },
      "CreateConstraintGroupDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "constraintText": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "isFallback": {
            "type": "boolean"
          },
          "industryScope": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateDeploymentProposalRequest": {
        "required": [
          "experimentId",
          "proposedPatterns",
          "rationale",
          "riskLevel",
          "title",
          "workflowConfigurationId"
        ],
        "type": "object",
        "properties": {
          "experimentId": {
            "type": "string",
            "description": "ID of the experiment that generated this proposal",
            "format": "uuid"
          },
          "workflowConfigurationId": {
            "type": "string",
            "description": "ID of the workflow configuration to deploy",
            "format": "uuid"
          },
          "title": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Title for this deployment proposal"
          },
          "rationale": {
            "maxLength": 4000,
            "minLength": 0,
            "type": "string",
            "description": "Detailed rationale for this deployment"
          },
          "improvementPercentage": {
            "maximum": 1000,
            "minimum": 0,
            "type": "number",
            "description": "Expected performance improvement percentage",
            "format": "double"
          },
          "affectedSearchPercentage": {
            "maximum": 100,
            "minimum": 0,
            "type": "number",
            "description": "Percentage of searches that would be affected",
            "format": "double"
          },
          "proposedPatterns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RouterPatternDto"
            },
            "description": "Proposed router patterns to add or update"
          },
          "targetDeploymentDate": {
            "type": "string",
            "description": "Target deployment date (optional)",
            "format": "date-time",
            "nullable": true
          },
          "riskLevel": {
            "$ref": "#/components/schemas/DeploymentRisk"
          },
          "expectedUXImpact": {
            "maximum": 10,
            "minimum": 1,
            "type": "integer",
            "description": "Expected user experience impact (1-10)",
            "format": "int32"
          },
          "rollbackPlan": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Rollback plan description",
            "nullable": true
          },
          "monitoringPlan": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Monitoring plan description",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request to create a new deployment proposal"
      },
      "CreateDnsRecordRequestDto": {
        "required": [
          "content",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "content": {
            "minLength": 1,
            "type": "string"
          },
          "ttl": {
            "maximum": 86400,
            "minimum": 60,
            "type": "integer",
            "format": "int32"
          },
          "priority": {
            "maximum": 65535,
            "minimum": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "proxied": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateEvaluationRequest": {
        "required": [
          "name",
          "testCases"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "campaignContextId": {
            "type": "string",
            "description": "Optional campaign context ID to associate with this evaluation run.\r\nLinks the test suite to a specific vertical for the domain inventory pipeline.",
            "format": "uuid",
            "nullable": true
          },
          "testCases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCaseInput"
            }
          }
        },
        "additionalProperties": false
      },
      "CreateExemplarRequest": {
        "required": [
          "examples"
        ],
        "type": "object",
        "properties": {
          "examples": {
            "minLength": 1,
            "type": "string"
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "variantType": {
            "$ref": "#/components/schemas/VariantType"
          },
          "status": {
            "$ref": "#/components/schemas/ExemplarStatus"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "keywordSignals": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateExperimentDto": {
        "required": [
          "arms",
          "name",
          "testSuiteId",
          "trafficAllocation"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "description": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "arms": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "uuid"
            }
          },
          "trafficAllocation": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "budgetLimitCents": {
            "minimum": 0,
            "type": "integer",
            "format": "int64"
          },
          "dailyBudgetCents": {
            "minimum": 0,
            "type": "integer",
            "format": "int64"
          },
          "testSuiteId": {
            "type": "string",
            "format": "uuid"
          },
          "targetOperations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for creating new experiments"
      },
      "CreateExperimentRequest": {
        "required": [
          "industry",
          "tone",
          "variantIds",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "industry": {
            "minLength": 1,
            "type": "string"
          },
          "tone": {
            "minLength": 1,
            "type": "string"
          },
          "variantIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "testCaseIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateFilterPresetRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateFilterRequest": {
        "type": "object",
        "properties": {
          "filterCode": {
            "type": "string",
            "nullable": true
          },
          "filterName": {
            "type": "string",
            "nullable": true
          },
          "filterOrder": {
            "type": "integer",
            "format": "int32"
          },
          "filterColSpan": {
            "type": "integer",
            "format": "int32"
          },
          "filterPlaceHolder": {
            "type": "string",
            "nullable": true
          },
          "filterHexCode": {
            "type": "string",
            "nullable": true
          },
          "filterImage": {
            "type": "string",
            "nullable": true
          },
          "isEditable": {
            "type": "boolean",
            "nullable": true
          },
          "filterType": {
            "$ref": "#/components/schemas/refFilterType"
          }
        },
        "additionalProperties": false
      },
      "CreateOperationDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateOrderRequest": {
        "required": [
          "amount",
          "cancelUrl",
          "domain",
          "returnUrl"
        ],
        "type": "object",
        "properties": {
          "domain": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "amount": {
            "maximum": 10000,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          },
          "currency": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "returnUrl": {
            "minLength": 1,
            "type": "string",
            "format": "uri"
          },
          "cancelUrl": {
            "minLength": 1,
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": false
      },
      "CreateOrderResponse": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string",
            "nullable": true
          },
          "approvalUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatePlanConfigurationRequest": {
        "type": "object",
        "properties": {
          "planCode": {
            "type": "string",
            "nullable": true
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "durationDays": {
            "type": "integer",
            "format": "int32"
          },
          "totalSearches": {
            "type": "integer",
            "format": "int32"
          },
          "maxRegenerations": {
            "type": "integer",
            "format": "int32"
          },
          "synapseTierId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "perSearchAvailableDomainsTarget": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "perSearchMaxAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreatePlanOrderRequest": {
        "required": [
          "amount",
          "cancelUrl",
          "durationDays",
          "email",
          "returnUrl"
        ],
        "type": "object",
        "properties": {
          "email": {
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "durationDays": {
            "maximum": 365,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "maximum": 10000,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          },
          "currency": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "returnUrl": {
            "minLength": 1,
            "type": "string",
            "format": "uri"
          },
          "cancelUrl": {
            "minLength": 1,
            "type": "string",
            "format": "uri"
          }
        },
        "additionalProperties": false
      },
      "CreateRuleRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "condition": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "styleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "operationName": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSharedOperationRequest": {
        "type": "object",
        "properties": {
          "operationKey": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/OperationType"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "configurationSchema": {
            "type": "string",
            "nullable": true
          },
          "outputSchema": {
            "type": "string",
            "nullable": true
          },
          "defaultConfiguration": {
            "type": "string",
            "nullable": true
          },
          "requiresInput": {
            "type": "boolean"
          },
          "producesOutput": {
            "type": "boolean"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateSignalRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "minWorkflowThreshold": {
            "type": "number",
            "format": "double"
          },
          "defaultWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSnapshotRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Name for this snapshot"
          },
          "description": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Description of this snapshot",
            "nullable": true
          },
          "setAsCurrent": {
            "type": "boolean",
            "description": "Whether this snapshot should be marked as current"
          }
        },
        "additionalProperties": false,
        "description": "Request to create a deployment snapshot"
      },
      "CreateStyleRequest": {
        "required": [
          "displayName",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "displayName": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "color": {
            "maxLength": 7,
            "type": "string",
            "nullable": true
          },
          "icon": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "promptTemplate": {
            "maxLength": 5000,
            "type": "string",
            "nullable": true
          },
          "parameters": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          },
          "defaultWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "defaultModelId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tone": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "length": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "weights": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          },
          "filterValueId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for creating a new style"
      },
      "CreateSynapseTierRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "maxPathways": {
            "maximum": 6,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "maxTokensPerPathway": {
            "maximum": 50000,
            "minimum": 1000,
            "type": "integer",
            "format": "int32"
          },
          "maxTotalTokens": {
            "maximum": 500000,
            "minimum": 1000,
            "type": "integer",
            "format": "int32"
          },
          "enableStyleOptimization": {
            "type": "boolean"
          },
          "enableParallelExecution": {
            "type": "boolean"
          },
          "maxConcurrentPathways": {
            "maximum": 6,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "isDefault": {
            "type": "boolean"
          },
          "defaultStyles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DefaultStyleInput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for creating a new tier"
      },
      "CreateTestSuiteRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "experimentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request model for creating a new test suite"
      },
      "CreateWorkflowConfigurationDto": {
        "required": [
          "modelSelection",
          "name",
          "promptTemplateId",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Name of the configuration"
          },
          "description": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Description of the configuration",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "description": "ID of the workflow to use",
            "format": "uuid"
          },
          "promptTemplateId": {
            "type": "string",
            "description": "ID of the prompt template to use",
            "format": "uuid"
          },
          "overrideRulesJson": {
            "type": "string",
            "description": "JSON array of filter override rule IDs",
            "nullable": true
          },
          "exemplarSetJson": {
            "type": "string",
            "description": "Optional two-shot examples in JSON format",
            "nullable": true
          },
          "modelSelection": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Model selection (e.g., \"gpt-4\", \"claude-3\")"
          },
          "createdBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "User or system creating this configuration",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for creating a new workflow configuration"
      },
      "CreateWorkflowDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "productionMode": {
            "type": "boolean"
          },
          "isStableDefault": {
            "type": "boolean"
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "workflowOperations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateWorkflowOperationDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DailyExecutionStats": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "totalExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "successfulExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "totalCost": {
            "type": "number",
            "format": "double"
          },
          "averageDuration": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "DefaultStyleInput": {
        "required": [
          "styleId"
        ],
        "type": "object",
        "properties": {
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "priority": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Input DTO for default style assignment"
      },
      "DeploymentAction": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "description": "Deployment action recommendations",
        "format": "int32"
      },
      "DeploymentProposalDto": {
        "type": "object",
        "properties": {
          "recommendedAction": {
            "$ref": "#/components/schemas/DeploymentAction"
          },
          "recommendedActionString": {
            "type": "string",
            "description": "Recommended action as string",
            "nullable": true
          },
          "recommendedArm": {
            "$ref": "#/components/schemas/ArmDesignation"
          },
          "recommendedArmString": {
            "type": "string",
            "description": "Recommended arm as string",
            "nullable": true
          },
          "recommendedWorkflowConfigurationId": {
            "type": "string",
            "description": "Recommended workflow configuration ID",
            "format": "uuid",
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "description": "Confidence level (0-1)",
            "format": "double"
          },
          "rationale": {
            "type": "string",
            "description": "Detailed rationale",
            "nullable": true
          },
          "riskLevel": {
            "$ref": "#/components/schemas/RiskLevel"
          },
          "riskFactors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Risk factors",
            "nullable": true
          },
          "expectedBenefits": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Expected benefits",
            "nullable": true
          },
          "monitoringRecommendations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Monitoring recommendations",
            "nullable": true
          },
          "rollbackCriteria": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Rollback criteria",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Deployment proposal DTO"
      },
      "DeploymentProposalResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowConfigurationId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "rationale": {
            "type": "string",
            "nullable": true
          },
          "improvementPercentage": {
            "type": "number",
            "format": "double"
          },
          "affectedSearchPercentage": {
            "type": "number",
            "format": "double"
          },
          "approvalStatus": {
            "$ref": "#/components/schemas/ApprovalStatus"
          },
          "riskLevel": {
            "$ref": "#/components/schemas/DeploymentRisk"
          },
          "approvedBy": {
            "type": "string",
            "nullable": true
          },
          "approvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectedBy": {
            "type": "string",
            "nullable": true
          },
          "rejectedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "targetDeploymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "actualDeploymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "statisticalConfidence": {
            "type": "number",
            "format": "double"
          },
          "experimentSampleSize": {
            "type": "integer",
            "format": "int32"
          },
          "experimentDurationHours": {
            "type": "number",
            "format": "double"
          },
          "estimatedCostImpact": {
            "type": "number",
            "format": "double"
          },
          "expectedUXImpact": {
            "type": "integer",
            "format": "int32"
          },
          "rollbackPlan": {
            "type": "string",
            "nullable": true
          },
          "monitoringPlan": {
            "type": "string",
            "nullable": true
          },
          "proposedPatterns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RouterPatternDto"
            },
            "nullable": true
          },
          "patternConflicts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatternConflict"
            },
            "nullable": true
          },
          "priorityScore": {
            "type": "number",
            "format": "double"
          },
          "experiment": {
            "$ref": "#/components/schemas/Experiment"
          },
          "workflowConfiguration": {
            "$ref": "#/components/schemas/WorkflowConfiguration"
          }
        },
        "additionalProperties": false,
        "description": "Response containing deployment proposal details"
      },
      "DeploymentRisk": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "Risk level associated with a deployment",
        "format": "int32"
      },
      "DetailedScoreDto": {
        "type": "object",
        "properties": {
          "scoreId": {
            "type": "string",
            "format": "uuid"
          },
          "overallScore": {
            "type": "number",
            "format": "double"
          },
          "metrics": {
            "$ref": "#/components/schemas/ScoreMetricsDto"
          },
          "analysisStatus": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DnsRecordDto": {
        "type": "object",
        "properties": {
          "recordId": {
            "type": "string",
            "format": "uuid"
          },
          "cloudflareRecordId": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "ttl": {
            "type": "integer",
            "format": "int32"
          },
          "priority": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "proxied": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DnsZoneSetupResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "zoneId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "cloudflareZoneId": {
            "type": "string",
            "nullable": true
          },
          "nameserver1": {
            "type": "string",
            "nullable": true
          },
          "nameserver2": {
            "type": "string",
            "nullable": true
          },
          "nameserversUpdatedAtRegistrar": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Domain": {
        "type": "object",
        "properties": {
          "domainId": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "rank": {
            "type": "integer",
            "format": "int32"
          },
          "rationale": {
            "type": "string",
            "nullable": true
          },
          "advantagesString": {
            "type": "string",
            "nullable": true
          },
          "disadvantagesString": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isResolvable": {
            "type": "boolean"
          },
          "isRegistered": {
            "type": "boolean"
          },
          "isLiked": {
            "type": "boolean",
            "nullable": true
          },
          "isEnriched": {
            "type": "boolean"
          },
          "isArchived": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/DomainStatus"
          },
          "pathwaySource": {
            "maxLength": 50,
            "type": "string",
            "description": "Identifies which pathway generated this domain (Technical, Creative, Premium, etc.)\r\nNull for domains from main search",
            "nullable": true
          },
          "synapseStyleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isRejected": {
            "type": "boolean",
            "description": "Whether this domain was rejected by quality ranking.\r\nRejected domains are saved but not streamed to UI or checked for availability."
          },
          "rejectionReason": {
            "type": "string",
            "description": "Reason for rejection: \"hard_rule_failed\", \"rank_below_threshold\", null if not rejected",
            "nullable": true
          },
          "rejectionPronunciationScore": {
            "type": "integer",
            "description": "Pronunciation score at time of rejection (for analysis)",
            "format": "int32",
            "nullable": true
          },
          "rejectionSemanticScore": {
            "type": "integer",
            "description": "Semantic score at time of rejection (for analysis)",
            "format": "int32",
            "nullable": true
          },
          "rejectionCombinedRank": {
            "type": "number",
            "description": "Combined rank (0.0-1.0 percentile) at time of rejection",
            "format": "double",
            "nullable": true
          },
          "rejectedAt": {
            "type": "string",
            "description": "When the domain was rejected",
            "format": "date-time",
            "nullable": true
          },
          "rejectionDetails": {
            "type": "string",
            "description": "Detailed rejection information with stage and context.\r\nFormat: \"Stage:Reason:Context\" e.g., \"Pruning:phonetic_sibling:similar_to_Nexalux\"",
            "nullable": true
          },
          "isRescued": {
            "type": "boolean",
            "description": "Whether this domain was rescued after being rejected.\r\nRescued domains were rejected for structural reasons (quota/sibling) but met quality floor."
          },
          "rescuedReason": {
            "type": "string",
            "description": "Original rejection reason before rescue: \"structure_quota\", \"family_sibling\", etc.\r\nPreserved for audit trail when domain is rescued.",
            "nullable": true
          },
          "isRepresentative": {
            "type": "boolean",
            "description": "Whether this domain is the representative of its similarity cluster.\r\nOnly one domain per cluster is the representative."
          },
          "similarityGroupId": {
            "type": "string",
            "description": "Cluster identifier for grouping similar domains.\r\nAll domains in the same cluster share this ID.",
            "format": "uuid",
            "nullable": true
          },
          "similarToDomainId": {
            "type": "string",
            "description": "Points to the representative domain this is similar to.\r\nNull for representatives and non-similar domains.",
            "format": "uuid",
            "nullable": true
          },
          "similarityEvaluatedAt": {
            "type": "string",
            "description": "When similarity was evaluated",
            "format": "date-time",
            "nullable": true
          },
          "isHiddenBySimilarity": {
            "type": "boolean",
            "description": "Whether to hide this domain due to similarity (for UI filtering).\r\nTrue for non-representative members of similarity clusters."
          },
          "similarityScore": {
            "type": "number",
            "description": "Similarity score (0.0-1.0) when marked as similar.",
            "format": "double",
            "nullable": true
          },
          "similarityReason": {
            "type": "string",
            "description": "Reason for similarity: \"token_jaccard\", \"hybrid_jaccard_cosine\", \"edit_similarity\", \"pure_cosine\"",
            "nullable": true
          },
          "similarToDomainName": {
            "type": "string",
            "description": "Denormalized name of the representative domain this is similar to.\r\nStored at marking time to avoid joins at query time.",
            "nullable": true
          },
          "quickScore": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "quickScoreReasoning": {
            "type": "string",
            "nullable": true
          },
          "detailedScore": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "detailedScoreJson": {
            "type": "string",
            "nullable": true
          },
          "lastScoredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "generationHistoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "generationHistory": {
            "$ref": "#/components/schemas/SearchGenerationHistory"
          },
          "assignedSegment": {
            "type": "string",
            "description": "The segment this domain was assigned to (e.g., \"best_matches\", \"professional_trustworthy\").\r\nPersisted so liked domains can return to their segment after regeneration.",
            "nullable": true
          },
          "advantages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "readOnly": true
          },
          "disadvantages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "readOnly": true
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomainCategory"
            },
            "nullable": true
          },
          "categoriesJson": {
            "type": "string",
            "nullable": true
          },
          "aiScore": {
            "$ref": "#/components/schemas/AIDomainScore"
          },
          "aiScoreJson": {
            "type": "string",
            "nullable": true
          },
          "strengthIndicator": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pronunciationScore": {
            "type": "integer",
            "description": "Pronunciation score (0-100) from pre-validation.\r\nStored for all domains to enable CompositeScore calculation for rescue.",
            "format": "int32",
            "nullable": true
          },
          "semanticScore": {
            "type": "integer",
            "description": "Semantic relevance score (0-100) from pre-validation.\r\nStored for all domains to enable CompositeScore calculation for rescue.",
            "format": "int32",
            "nullable": true
          },
          "tokenCount": {
            "type": "integer",
            "description": "Number of tokens/words in the domain name (computed via DomainTokenizer).\r\nUsed for segment eligibility criteria (e.g., single-token for brandable, multi-token for descriptive).",
            "format": "int32",
            "nullable": true
          },
          "editorialRank": {
            "type": "integer",
            "description": "Editorial curation rank (1-based). Null if not selected by editorial curation.\r\nLower rank = higher priority (1 = top pick).",
            "format": "int32",
            "nullable": true
          },
          "tldStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomainTldStatus"
            },
            "nullable": true
          },
          "length": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "tldStatusesJson": {
            "type": "string",
            "nullable": true
          },
          "generationSource": {
            "type": "string",
            "description": "How this domain was generated: \"llm\" (standard), \"morpheme\" (mutation engine), \"enrichment\" (post-availability rescue)",
            "nullable": true
          },
          "promptId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "prompt": {
            "$ref": "#/components/schemas/Prompt"
          },
          "llmModelId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "llmModelName": {
            "type": "string",
            "nullable": true
          },
          "checkStatus": {
            "$ref": "#/components/schemas/DomainCheckStatus"
          }
        },
        "additionalProperties": false
      },
      "DomainActionRequest": {
        "type": "object",
        "properties": {
          "domainName": {
            "type": "string",
            "nullable": true
          },
          "searchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "domainId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request for tracking domain shortlist/dislike events."
      },
      "DomainCategory": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DomainCheckStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "DomainDetailsDto": {
        "type": "object",
        "properties": {
          "domainId": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "rank": {
            "type": "integer",
            "format": "int32"
          },
          "rationale": {
            "type": "string",
            "nullable": true
          },
          "advantages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "disadvantages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "isRegistered": {
            "type": "boolean"
          },
          "isResolvable": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/DomainStatus"
          },
          "isLiked": {
            "type": "boolean",
            "nullable": true
          },
          "pathwaySource": {
            "type": "string",
            "nullable": true
          },
          "synapseStyleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "quickScore": {
            "$ref": "#/components/schemas/QuickScoreDto"
          },
          "detailedScore": {
            "$ref": "#/components/schemas/DetailedScoreDto"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomainCategory"
            },
            "nullable": true
          },
          "aiScore": {
            "$ref": "#/components/schemas/AIDomainScore"
          },
          "strengthIndicator": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "pronunciationScore": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "semanticScore": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tokenCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "editorialRank": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tldStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomainTldStatus"
            },
            "nullable": true
          },
          "length": {
            "type": "integer",
            "format": "int32"
          },
          "attempt": {
            "type": "integer",
            "format": "int32"
          },
          "segment": {
            "type": "string",
            "nullable": true
          },
          "segmentRank": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "signals": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isRejected": {
            "type": "boolean"
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "rejectionPronunciationScore": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rejectionSemanticScore": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rejectionCombinedRank": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "rejectedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectionDetails": {
            "type": "string",
            "nullable": true
          },
          "isRescued": {
            "type": "boolean"
          },
          "rescuedReason": {
            "type": "string",
            "nullable": true
          },
          "isHiddenBySimilarity": {
            "type": "boolean"
          },
          "similarityScore": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "similarityReason": {
            "type": "string",
            "nullable": true
          },
          "similarToDomainName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DomainPaymentResult": {
        "type": "object",
        "properties": {
          "paymentId": {
            "type": "string",
            "format": "uuid"
          },
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DomainRegisterRequest": {
        "type": "object",
        "properties": {
          "domainName": {
            "type": "string",
            "nullable": true
          },
          "searchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "domainId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "registrar": {
            "type": "string",
            "nullable": true
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request for tracking domain register click events."
      },
      "DomainRequestModel": {
        "type": "object",
        "properties": {
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "rank": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "rationale": {
            "type": "string",
            "nullable": true
          },
          "advantages": {
            "type": "string",
            "nullable": true
          },
          "disadvantages": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DomainSearchConfigDto": {
        "type": "object",
        "properties": {
          "availableDomainsThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "maxRetryAttempts": {
            "type": "integer",
            "format": "int32"
          },
          "topNSelection": {
            "type": "integer",
            "format": "int32"
          },
          "enableScoreFiltering": {
            "type": "boolean"
          },
          "scoreThresholds": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double",
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DomainStatus": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "DomainTldStatus": {
        "type": "object",
        "properties": {
          "tld": {
            "type": "string",
            "nullable": true
          },
          "isRegistered": {
            "type": "boolean"
          },
          "isResolvable": {
            "type": "boolean"
          },
          "lastChecked": {
            "type": "string",
            "format": "date-time"
          },
          "whoisResponseJson": {
            "type": "string",
            "nullable": true
          },
          "whoisRegistrar": {
            "type": "string",
            "nullable": true
          },
          "whoisExpirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "whoisErrorDetails": {
            "type": "string",
            "nullable": true
          },
          "checkStatus": {
            "$ref": "#/components/schemas/DomainCheckStatus"
          }
        },
        "additionalProperties": false
      },
      "DoubleDoubleValueTuple": {
        "type": "object",
        "additionalProperties": false
      },
      "EligibilityConfig": {
        "type": "object",
        "properties": {
          "maxLength": {
            "$ref": "#/components/schemas/ThresholdValue"
          },
          "minLength": {
            "$ref": "#/components/schemas/ThresholdValue"
          },
          "maxTokenCount": {
            "$ref": "#/components/schemas/ThresholdValue"
          },
          "minTokenCount": {
            "$ref": "#/components/schemas/ThresholdValue"
          },
          "containsKeyword": {
            "$ref": "#/components/schemas/BooleanValue"
          },
          "requiredStyleTraits": {
            "$ref": "#/components/schemas/StyleTraitsValue"
          },
          "excludeCreativeOnlyForKeywordSearch": {
            "$ref": "#/components/schemas/BooleanValue"
          }
        },
        "additionalProperties": false,
        "description": "Eligibility criteria for segment membership."
      },
      "EmailRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnhanceFiltersRequest": {
        "type": "object",
        "properties": {
          "keywords": {
            "type": "string",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          },
          "style": {
            "type": "string",
            "nullable": true
          },
          "searchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EstimateCostRequest": {
        "type": "object",
        "properties": {
          "workflow": {
            "$ref": "#/components/schemas/UpdateWorkflowDto"
          },
          "expectedDomainCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "keywords": {
            "type": "string",
            "nullable": true
          },
          "parameters": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EvaluateDomainRequest": {
        "type": "object",
        "properties": {
          "contextToken": {
            "type": "string",
            "nullable": true
          },
          "domainName": {
            "type": "string",
            "nullable": true
          },
          "evaluationRunId": {
            "type": "string",
            "description": "Optional evaluation run ID for ChatLog tracing and per-run log file.",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EvaluateExecutionRequest": {
        "required": [
          "requestedBy",
          "rubricTemplateId",
          "runId"
        ],
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "description": "ID of the execution run to evaluate",
            "format": "uuid"
          },
          "rubricTemplateId": {
            "type": "string",
            "description": "ID of the rubric template to use for evaluation",
            "format": "uuid"
          },
          "includeDetailedAnalysis": {
            "type": "boolean",
            "description": "Whether to include detailed analysis in the report"
          },
          "generateDeploymentProposal": {
            "type": "boolean",
            "description": "Whether to generate a deployment proposal"
          },
          "requestedBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "User who requested the evaluation"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": { },
            "description": "Custom evaluation parameters",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request to evaluate an execution run"
      },
      "EvaluateExecutionResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether the evaluation was successful"
          },
          "message": {
            "type": "string",
            "description": "Response message",
            "nullable": true
          },
          "report": {
            "$ref": "#/components/schemas/EvaluationReportDto"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Any errors encountered",
            "nullable": true
          },
          "costBreakdown": {
            "$ref": "#/components/schemas/EvaluationCostBreakdown"
          }
        },
        "additionalProperties": false,
        "description": "Response from starting an evaluation"
      },
      "EvaluationAxis": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the evaluation axis",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of what this axis measures",
            "nullable": true
          },
          "weight": {
            "maximum": 1,
            "minimum": 0,
            "type": "number",
            "description": "Weight of this axis in the overall score (0.0 to 1.0)",
            "format": "double"
          },
          "minScore": {
            "type": "number",
            "description": "Minimum score for this axis (typically 0)",
            "format": "double"
          },
          "maxScore": {
            "type": "number",
            "description": "Maximum score for this axis (typically 10)",
            "format": "double"
          },
          "isPassFail": {
            "type": "boolean",
            "description": "Whether this is a pass/fail criterion"
          },
          "passThreshold": {
            "type": "number",
            "description": "Minimum threshold for pass/fail axes",
            "format": "double",
            "nullable": true
          },
          "scoringGuidelines": {
            "type": "string",
            "description": "Specific scoring guidelines for this axis",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Evaluation axis definition for scoring criteria"
      },
      "EvaluationCostBreakdown": {
        "type": "object",
        "properties": {
          "totalCostUSD": {
            "type": "number",
            "description": "Total evaluation cost",
            "format": "double"
          },
          "llmCalls": {
            "type": "integer",
            "description": "Number of LLM calls made",
            "format": "int32"
          },
          "totalTokens": {
            "type": "integer",
            "description": "Total tokens used",
            "format": "int32"
          },
          "averageCostPerEvaluation": {
            "type": "number",
            "description": "Average cost per evaluation",
            "format": "double"
          },
          "evaluationTimeMs": {
            "type": "integer",
            "description": "Time taken for evaluation",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Evaluation cost breakdown"
      },
      "EvaluationReportDto": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "description": "ID of the execution run that was evaluated",
            "format": "uuid"
          },
          "rubricTemplateId": {
            "type": "string",
            "description": "ID of the rubric used",
            "format": "uuid"
          },
          "rubricName": {
            "type": "string",
            "description": "Name of the rubric used",
            "nullable": true
          },
          "evaluatedAt": {
            "type": "string",
            "description": "When the evaluation was performed",
            "format": "date-time"
          },
          "evaluatedBy": {
            "type": "string",
            "description": "Who performed the evaluation",
            "nullable": true
          },
          "testCaseEvaluations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCaseEvaluationDto"
            },
            "description": "Individual test case evaluations",
            "nullable": true
          },
          "armPerformances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArmPerformanceDto"
            },
            "description": "Performance statistics for each arm",
            "nullable": true
          },
          "comparison": {
            "$ref": "#/components/schemas/StatisticalComparisonDto"
          },
          "deploymentProposal": {
            "$ref": "#/components/schemas/DeploymentProposalDto"
          },
          "summary": {
            "type": "string",
            "description": "Overall evaluation summary",
            "nullable": true
          },
          "goldenKeywordAnalysis": {
            "$ref": "#/components/schemas/GoldenKeywordAnalysisDto"
          },
          "costBreakdown": {
            "$ref": "#/components/schemas/EvaluationCostBreakdown"
          }
        },
        "additionalProperties": false,
        "description": "Evaluation report DTO"
      },
      "EvaluationScoreDetailsDto": {
        "type": "object",
        "properties": {
          "axisScores": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "description": "Individual axis scores",
            "nullable": true
          },
          "compositeScore": {
            "type": "number",
            "description": "Composite score (0-10)",
            "format": "double"
          },
          "passedCriteria": {
            "type": "boolean",
            "description": "Whether pass/fail criteria were met"
          },
          "justification": {
            "type": "string",
            "description": "Evaluation justification",
            "nullable": true
          },
          "topDomains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Top domains identified",
            "nullable": true
          },
          "confidenceInterval": {
            "$ref": "#/components/schemas/DoubleDoubleValueTuple"
          }
        },
        "additionalProperties": false,
        "description": "Evaluation score details DTO"
      },
      "EvaluationStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "EvaluationStatusDto": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/EvaluationStatus"
          },
          "testCaseCount": {
            "type": "integer",
            "format": "int32"
          },
          "completedCount": {
            "type": "integer",
            "format": "int32"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "EvaluationSummary": {
        "type": "object",
        "properties": {
          "totalResults": {
            "type": "integer",
            "format": "int32"
          },
          "successfulResults": {
            "type": "integer",
            "format": "int32"
          },
          "failedResults": {
            "type": "integer",
            "format": "int32"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "averageResponseTime": {
            "type": "number",
            "format": "double"
          },
          "averageConfidence": {
            "type": "number",
            "format": "double"
          },
          "averageUserRating": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "ratedResultsCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ExamplesSectionDto": {
        "type": "object",
        "properties": {
          "sectionTitle": {
            "type": "string",
            "nullable": true
          },
          "sectionSubtitle": {
            "type": "string",
            "nullable": true
          },
          "showLiveBadge": {
            "type": "boolean"
          },
          "lastRefreshed": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomainDetailsDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Examples section with actual domain data"
      },
      "ExecuteAgentOptions": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "prodOnly": {
            "type": "boolean",
            "nullable": true
          },
          "validateInput": {
            "type": "boolean",
            "nullable": true
          },
          "validateOutput": {
            "type": "boolean",
            "nullable": true
          },
          "timeoutMs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExecuteAgentRequest": {
        "required": [
          "agentKey",
          "input"
        ],
        "type": "object",
        "properties": {
          "agentKey": {
            "minLength": 1,
            "type": "string"
          },
          "input": { },
          "options": {
            "$ref": "#/components/schemas/ExecuteAgentOptions"
          }
        },
        "additionalProperties": false
      },
      "ExecuteEvaluationRequest": {
        "required": [
          "operationNames",
          "workflowIds"
        ],
        "type": "object",
        "properties": {
          "workflowIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "operationNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "additionalStyles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Additional styles to test beyond the test case's default style.\r\nIf empty, only uses each test case's configured style.\r\nIf specified, tests each test case against ALL these styles.\r\nMapped from \"additionalStyles\" in the payload.",
            "nullable": true
          },
          "skipDnsWhoisChecks": {
            "type": "boolean",
            "description": "Whether to skip DNS and WHOIS checks during evaluation.\r\nWhen true, both DNS and WHOIS checks are skipped for faster testing.\r\nWhen false, both checks are performed.\r\nMapped from \"skipDnsWhoisChecks\" in the payload."
          },
          "getMoreDomainSuggestions": {
            "type": "boolean",
            "description": "Whether to run GetMoreDomainSuggestions operations.\r\nWhen true, will run GetMoreDomainSuggestions based on MoreDomainSuggestionsCount.\r\nMapped from \"getMoreDomainSuggestions\" in the payload."
          },
          "moreDomainSuggestionsCount": {
            "type": "integer",
            "description": "Number of times to run GetMoreDomainSuggestions when GetMoreDomainSuggestions is true.\r\nMapped from \"moreDomainSuggestionsCount\" in the payload.",
            "format": "int32"
          },
          "synapseTierId": {
            "type": "string",
            "description": "Optional Synapse tier ID to use instead of the default tier.\r\nWhen set, pathways resolve settings from this tier instead of the visitor/default tier.\r\nUseful for factory runs that need a dedicated tier with different generation parameters.",
            "format": "uuid",
            "nullable": true
          },
          "explicitN": {
            "type": "integer",
            "description": "Override Explicit {N} value for domain suggestion count (bypasses tier-style and calculated values).\r\nWhen set on the execution config, takes precedence over the tier-style ExplicitN.\r\nnull = use tier-style or calculated default.",
            "format": "int32",
            "nullable": true
          },
          "perSearchAvailableDomainsTarget": {
            "type": "integer",
            "description": "Override per-search available domains target.\r\nWhen set, takes precedence over the tier-style PerSearchAvailableDomainsTarget.\r\nnull = use tier-style or system default.",
            "format": "int32",
            "nullable": true
          },
          "perSearchMaxAttempts": {
            "type": "integer",
            "description": "Override per-search max attempts (1 initial + N-1 GetMore).\r\nWhen set, takes precedence over the tier-style PerSearchMaxAttempts.\r\nnull = use tier-style or system default.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExecutionConfigurationDto": {
        "type": "object",
        "properties": {
          "batchSize": {
            "type": "integer",
            "description": "Number of test cases to process in parallel",
            "format": "int32"
          },
          "maxConcurrency": {
            "type": "integer",
            "description": "Maximum number of concurrent operations",
            "format": "int32"
          },
          "maxParallelism": {
            "type": "integer",
            "description": "Maximum number of parallel operations (legacy property name)",
            "format": "int32"
          },
          "timeoutMinutes": {
            "type": "integer",
            "description": "Maximum execution time before timeout (in minutes)",
            "format": "int32"
          },
          "timeoutPerTestSeconds": {
            "type": "integer",
            "description": "Timeout per individual test case in seconds",
            "format": "int32"
          },
          "continueOnError": {
            "type": "boolean",
            "description": "Whether to continue execution if individual test cases fail"
          },
          "continueOnFailure": {
            "type": "boolean",
            "description": "Whether to continue execution on failure (legacy property name)"
          },
          "validateTestSuite": {
            "type": "boolean",
            "description": "Whether to validate test suite before execution"
          },
          "estimateCosts": {
            "type": "boolean",
            "description": "Whether to estimate costs before execution"
          },
          "enableRealtimeUpdates": {
            "type": "boolean",
            "description": "Whether to enable real-time progress updates"
          },
          "initiatedBy": {
            "type": "string",
            "description": "User who initiated the execution",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": { },
            "description": "Additional metadata for execution",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Configuration for test suite execution"
      },
      "ExecutionResultDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "testCaseId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowConfigurationId": {
            "type": "string",
            "format": "uuid"
          },
          "armDesignation": {
            "$ref": "#/components/schemas/ArmDesignation"
          },
          "status": {
            "$ref": "#/components/schemas/ResultStatus"
          },
          "latencyMs": {
            "type": "integer",
            "format": "int64"
          },
          "tokensIn": {
            "type": "integer",
            "format": "int32"
          },
          "tokensOut": {
            "type": "integer",
            "format": "int32"
          },
          "costUSD": {
            "type": "number",
            "format": "double"
          },
          "executedAt": {
            "type": "string",
            "format": "date-time"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "input": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "output": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for execution result details"
      },
      "ExecutionResultsResponse": {
        "type": "object",
        "properties": {
          "executionRun": {
            "$ref": "#/components/schemas/ExecutionRunDto"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExecutionResultDto"
            },
            "description": "Individual execution results",
            "nullable": true
          },
          "statistics": {
            "$ref": "#/components/schemas/ExecutionStatisticsDto"
          },
          "testCaseSummaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCaseExecutionSummary"
            },
            "description": "Results grouped by test case for easier analysis",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Execution results response"
      },
      "ExecutionRunDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "testSuiteId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "$ref": "#/components/schemas/ExecutionStatus"
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "totalTestCases": {
            "type": "integer",
            "format": "int32"
          },
          "completedTestCases": {
            "type": "integer",
            "format": "int32"
          },
          "failedTestCases": {
            "type": "integer",
            "format": "int32"
          },
          "skippedTestCases": {
            "type": "integer",
            "format": "int32"
          },
          "initiatedBy": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "progressPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "estimatedTimeRemaining": {
            "$ref": "#/components/schemas/TimeSpan"
          },
          "totalTokensConsumed": {
            "type": "integer",
            "format": "int32"
          },
          "totalCostUSD": {
            "type": "number",
            "format": "double"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for execution run details"
      },
      "ExecutionStatisticsDto": {
        "type": "object",
        "properties": {
          "totalTestCases": {
            "type": "integer",
            "format": "int32"
          },
          "completedTestCases": {
            "type": "integer",
            "format": "int32"
          },
          "failedTestCases": {
            "type": "integer",
            "format": "int32"
          },
          "skippedTestCases": {
            "type": "integer",
            "format": "int32"
          },
          "totalExecutionTimeMs": {
            "type": "integer",
            "format": "int64"
          },
          "averageExecutionTimeMs": {
            "type": "number",
            "format": "double"
          },
          "totalTokensConsumed": {
            "type": "integer",
            "format": "int32"
          },
          "totalCostUSD": {
            "type": "number",
            "format": "double"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "startTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "duration": {
            "$ref": "#/components/schemas/TimeSpan"
          },
          "armStatistics": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ArmStatistics"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for execution statistics"
      },
      "ExecutionStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "description": "Execution status for test runs",
        "format": "int32"
      },
      "ExecutionStatusResponse": {
        "type": "object",
        "properties": {
          "executionRun": {
            "$ref": "#/components/schemas/ExecutionRunDto"
          },
          "progressPercentage": {
            "type": "number",
            "description": "Current progress percentage (0-100)",
            "format": "double"
          },
          "statusMessage": {
            "type": "string",
            "description": "Current status message",
            "nullable": true
          },
          "estimatedTimeRemainingMinutes": {
            "type": "number",
            "description": "Estimated time remaining in minutes",
            "format": "double",
            "nullable": true
          },
          "statistics": {
            "$ref": "#/components/schemas/ExecutionStatisticsDto"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Any errors encountered",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Execution status response"
      },
      "ExecutionStyle": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "ExemplarConfigurationData": {
        "type": "object",
        "properties": {
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "examples": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExemplarDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "variantType": {
            "$ref": "#/components/schemas/VariantType"
          },
          "status": {
            "$ref": "#/components/schemas/ExemplarStatus"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "examples": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "performanceMetrics": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "keywordSignals": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExemplarPerformanceMetrics": {
        "type": "object",
        "properties": {
          "exemplarId": {
            "type": "string",
            "format": "uuid"
          },
          "variantType": {
            "$ref": "#/components/schemas/VariantType"
          },
          "testCasesExecuted": {
            "type": "integer",
            "format": "int32"
          },
          "successfulExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "averageScore": {
            "type": "number",
            "format": "double"
          },
          "averageExecutionTime": {
            "type": "number",
            "format": "double"
          },
          "detailedScores": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          },
          "qualityIssues": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExemplarStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "Experiment": {
        "required": [
          "name",
          "state",
          "testSuiteId"
        ],
        "type": "object",
        "properties": {
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "description": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/ExperimentState"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "description": "Optional expiration date for automatic experiment termination",
            "format": "date-time",
            "nullable": true
          },
          "trafficAllocationJson": {
            "type": "string",
            "description": "Traffic allocation percentages stored as JSON\r\nExample: {\"control\": 50, \"A\": 25, \"B\": 25}",
            "nullable": true
          },
          "trafficAllocation": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "budgetLimitCents": {
            "type": "integer",
            "description": "Budget limit in cents",
            "format": "int64"
          },
          "dailyBudgetCents": {
            "type": "integer",
            "description": "Daily budget limit in cents (0 = no daily limit)",
            "format": "int64"
          },
          "spentCents": {
            "type": "integer",
            "description": "Current spend in cents",
            "format": "int64"
          },
          "createdBy": {
            "type": "string",
            "description": "Created by user ID",
            "nullable": true
          },
          "promptReviewApprovedForTesting": {
            "type": "boolean",
            "description": "Whether prompt review has been approved for testing"
          },
          "plannerValidationOk": {
            "type": "boolean",
            "description": "Whether planner validation has passed"
          },
          "allocationStrategy": {
            "type": "integer",
            "description": "Allocation strategy for traffic distribution",
            "format": "int32"
          },
          "maxConcurrentExperiments": {
            "type": "integer",
            "description": "Maximum concurrent experiments allowed per tenant (0 = no limit)",
            "format": "int32"
          },
          "targetOperationsJson": {
            "type": "string",
            "description": "Target operations for champion extraction stored as JSON\r\nExample: [\"DomainSuggestions\", \"PremiumDomainSuggestions\"]",
            "nullable": true
          },
          "testSuiteId": {
            "type": "string",
            "description": "Required test suite that must be linked before experiment can be started",
            "format": "uuid"
          },
          "arms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExperimentArm"
            },
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExperimentEvent"
            },
            "nullable": true
          },
          "stats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExperimentStats"
            },
            "nullable": true
          },
          "testSuite": {
            "$ref": "#/components/schemas/TestSuite"
          }
        },
        "additionalProperties": false,
        "description": "Core experiment entity for A/B testing infrastructure"
      },
      "ExperimentAnalysisDto": {
        "type": "object",
        "properties": {
          "evaluationRunId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "winningExemplarId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "winningVariantType": {
            "type": "string",
            "nullable": true
          },
          "winnerScore": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "improvementPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "exemplarPerformance": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ExemplarPerformanceMetrics"
            },
            "nullable": true
          },
          "hasSignificantWinner": {
            "type": "boolean"
          },
          "recommendedAction": {
            "type": "string",
            "nullable": true
          },
          "analysisSummary": {
            "type": "string",
            "nullable": true
          },
          "analyzedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExperimentArm": {
        "required": [
          "experimentId",
          "name",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "armId": {
            "type": "string",
            "format": "uuid"
          },
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "trafficPercentage": {
            "type": "integer",
            "description": "Traffic percentage for this arm (0-100)",
            "format": "int32"
          },
          "bindingOverrides": {
            "type": "string",
            "description": "Recipe binding overrides for this arm stored as JSON\r\nEnables recipe self-modification experiments\r\nStructure: { \"bindingId\": { \"executionOrder\": 2, \"skipCondition\": \"...\", \"promptId\": \"...\" } }",
            "nullable": true
          },
          "bindingOverridesData": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": { }
            },
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "experiment": {
            "$ref": "#/components/schemas/Experiment"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExperimentEvent"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Experiment arm representing a workflow variant being tested"
      },
      "ExperimentArmDto": {
        "type": "object",
        "properties": {
          "armId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "trafficPercentage": {
            "type": "integer",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "stats": {
            "$ref": "#/components/schemas/ExperimentArmStatsDto"
          }
        },
        "additionalProperties": false,
        "description": "DTO for experiment arms"
      },
      "ExperimentArmStatsDto": {
        "type": "object",
        "properties": {
          "armId": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "trafficPercentage": {
            "type": "integer",
            "format": "int32"
          },
          "impressions": {
            "type": "integer",
            "format": "int64"
          },
          "domainClicks": {
            "type": "integer",
            "format": "int64"
          },
          "saves": {
            "type": "integer",
            "format": "int64"
          },
          "registers": {
            "type": "integer",
            "format": "int64"
          },
          "ctr": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "conversionRate": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "ctrConfidenceLow": {
            "type": "number",
            "format": "double"
          },
          "ctrConfidenceHigh": {
            "type": "number",
            "format": "double"
          },
          "conversionConfidenceLow": {
            "type": "number",
            "format": "double"
          },
          "conversionConfidenceHigh": {
            "type": "number",
            "format": "double"
          },
          "avgLatencyMs": {
            "type": "number",
            "format": "double"
          },
          "totalTokensIn": {
            "type": "integer",
            "format": "int64"
          },
          "totalTokensOut": {
            "type": "integer",
            "format": "int64"
          },
          "totalCostCents": {
            "type": "integer",
            "format": "int64"
          },
          "timeWindow": {
            "type": "string",
            "nullable": true
          },
          "windowStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "windowEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          },
          "hasSignificantSampleSize": {
            "type": "boolean",
            "readOnly": true
          },
          "standardError": {
            "type": "number",
            "format": "double",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for arm-specific statistics"
      },
      "ExperimentBudgetDto": {
        "type": "object",
        "properties": {
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "limitCents": {
            "type": "integer",
            "format": "int64"
          },
          "dailyLimitCents": {
            "type": "integer",
            "format": "int64"
          },
          "spentCents": {
            "type": "integer",
            "format": "int64"
          },
          "dailySpentCents": {
            "type": "integer",
            "format": "int64"
          },
          "remainingCents": {
            "type": "integer",
            "format": "int64"
          },
          "remainingDailyCents": {
            "type": "integer",
            "format": "int64"
          },
          "utilizationPercentage": {
            "type": "number",
            "format": "double"
          },
          "dailyUtilizationPercentage": {
            "type": "number",
            "format": "double"
          },
          "isExhausted": {
            "type": "boolean"
          },
          "lastDailyReset": {
            "type": "string",
            "format": "date-time"
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "DTO for experiment budget information"
      },
      "ExperimentCreationResult": {
        "type": "object",
        "properties": {
          "evaluationRunId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "variantCount": {
            "type": "integer",
            "format": "int32"
          },
          "testCaseCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ExperimentDto": {
        "type": "object",
        "properties": {
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/ExperimentState"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "trafficAllocation": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "budgetLimitCents": {
            "type": "integer",
            "format": "int64"
          },
          "dailyBudgetCents": {
            "type": "integer",
            "format": "int64"
          },
          "spentCents": {
            "type": "integer",
            "format": "int64"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "arms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExperimentArmDto"
            },
            "nullable": true
          },
          "stats": {
            "$ref": "#/components/schemas/ExperimentStatsDto"
          }
        },
        "additionalProperties": false,
        "description": "DTO for complete experiment information"
      },
      "ExperimentEvent": {
        "required": [
          "armId",
          "eventType",
          "experimentId",
          "searchId",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "armId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "$ref": "#/components/schemas/ExperimentEventType"
          },
          "value": {
            "type": "number",
            "description": "Event value (e.g., latency in ms, token count, cost in cents)",
            "format": "double"
          },
          "metadataJson": {
            "type": "string",
            "description": "Additional event metadata stored as JSON",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "nullable": true
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "experiment": {
            "$ref": "#/components/schemas/Experiment"
          }
        },
        "additionalProperties": false,
        "description": "Individual events tracked during experiment execution"
      },
      "ExperimentEventDto": {
        "required": [
          "armId",
          "eventId",
          "eventType",
          "experimentId",
          "searchId",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "armId": {
            "minLength": 1,
            "type": "string"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "eventType": {
            "$ref": "#/components/schemas/ExperimentEventType"
          },
          "value": {
            "type": "number",
            "format": "double"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for ingesting experiment events with idempotency"
      },
      "ExperimentEventType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "description": "Types of events that can be tracked in experiments",
        "format": "int32"
      },
      "ExperimentExportRequestDto": {
        "type": "object",
        "properties": {
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "format": {
            "type": "string",
            "nullable": true
          },
          "timeWindow": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "includeRawEvents": {
            "type": "boolean"
          },
          "includeAggregatedStats": {
            "type": "boolean"
          },
          "callbackUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for experiment export requests"
      },
      "ExperimentProposal": {
        "type": "object",
        "properties": {
          "patternId": {
            "type": "string",
            "format": "uuid"
          },
          "patternName": {
            "type": "string",
            "nullable": true
          },
          "currentIssues": {
            "type": "string",
            "nullable": true
          },
          "proposedChanges": {
            "type": "string",
            "nullable": true
          },
          "hypothesis": {
            "type": "string",
            "nullable": true
          },
          "testScenarios": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "expectedMetrics": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "estimatedDurationDays": {
            "type": "integer",
            "format": "int32"
          },
          "priority": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents an experiment proposal for pattern improvement"
      },
      "ExperimentState": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "description": "Core experiment states for A/B testing lifecycle",
        "format": "int32"
      },
      "ExperimentStats": {
        "required": [
          "experimentId",
          "timeWindow"
        ],
        "type": "object",
        "properties": {
          "statsId": {
            "type": "string",
            "format": "uuid"
          },
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "armId": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "description": "Arm ID for arm-specific stats, null for experiment-wide stats",
            "nullable": true
          },
          "timeWindow": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "Time window for these stats (e.g., \"1h\", \"1d\", \"lifetime\")"
          },
          "windowStart": {
            "type": "string",
            "description": "Start of the aggregation window",
            "format": "date-time"
          },
          "windowEnd": {
            "type": "string",
            "description": "End of the aggregation window",
            "format": "date-time"
          },
          "impressions": {
            "type": "integer",
            "format": "int64"
          },
          "domainClicks": {
            "type": "integer",
            "format": "int64"
          },
          "saves": {
            "type": "integer",
            "format": "int64"
          },
          "registers": {
            "type": "integer",
            "format": "int64"
          },
          "clickThroughRate": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "conversionRate": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "avgLatencyMs": {
            "type": "number",
            "format": "double"
          },
          "totalTokensIn": {
            "type": "integer",
            "format": "int64"
          },
          "totalTokensOut": {
            "type": "integer",
            "format": "int64"
          },
          "totalCostCents": {
            "type": "integer",
            "format": "int64"
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          },
          "experiment": {
            "$ref": "#/components/schemas/Experiment"
          }
        },
        "additionalProperties": false,
        "description": "Aggregated statistics for experiments and arms"
      },
      "ExperimentStatsDto": {
        "type": "object",
        "properties": {
          "impressions": {
            "type": "integer",
            "format": "int64"
          },
          "domainClicks": {
            "type": "integer",
            "format": "int64"
          },
          "saves": {
            "type": "integer",
            "format": "int64"
          },
          "registers": {
            "type": "integer",
            "format": "int64"
          },
          "ctr": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "conversionRate": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "ctrConfidenceLow": {
            "type": "number",
            "format": "double"
          },
          "ctrConfidenceHigh": {
            "type": "number",
            "format": "double"
          },
          "conversionConfidenceLow": {
            "type": "number",
            "format": "double"
          },
          "conversionConfidenceHigh": {
            "type": "number",
            "format": "double"
          },
          "avgLatencyMs": {
            "type": "number",
            "format": "double"
          },
          "totalTokensIn": {
            "type": "integer",
            "format": "int64"
          },
          "totalTokensOut": {
            "type": "integer",
            "format": "int64"
          },
          "totalCostCents": {
            "type": "integer",
            "format": "int64"
          },
          "timeWindow": {
            "type": "string",
            "nullable": true
          },
          "windowStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "windowEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          },
          "hasSignificantSampleSize": {
            "type": "boolean",
            "readOnly": true
          },
          "standardError": {
            "type": "number",
            "format": "double",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for experiment statistics with computed metrics"
      },
      "ExperimentStatsResponseDto": {
        "type": "object",
        "properties": {
          "experimentId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/ExperimentState"
          },
          "overallStats": {
            "$ref": "#/components/schemas/ExperimentStatsDto"
          },
          "armStats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExperimentArmStatsDto"
            },
            "nullable": true
          },
          "windowedStats": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ExperimentStatsDto"
            },
            "nullable": true
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "DTO for experiment statistics response with time windowing"
      },
      "ExplorationAttemptConfig": {
        "type": "object",
        "properties": {
          "attemptNumber": {
            "type": "integer",
            "description": "Attempt number (0 = initial search, 1 = first Explore New Angle, 2 = second, etc.)",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "description": "Human-readable description",
            "nullable": true
          },
          "styleIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Style IDs to pre-select for this attempt (always 2 styles)",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Configuration for a single exploration attempt"
      },
      "ExplorationGuardrails": {
        "type": "object",
        "properties": {
          "universalRequiredInInitial": {
            "type": "boolean",
            "description": "Universal must be present in Initial search"
          },
          "seoRequiredForSignals": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Signals that require SEO Optimized style",
            "nullable": true
          },
          "boldProhibitedForSignals": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Signals where Bold and Energetic is prohibited",
            "nullable": true
          },
          "boldAllowedOnlyForSignals": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Signals where Bold and Energetic is allowed (exclusive list)",
            "nullable": true
          },
          "technicalNeverPairedWith": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Styles that cannot be paired with Technical and Precise",
            "nullable": true
          },
          "contentZeroConfidenceFallback": {
            "type": "string",
            "description": "When Content signal has 0 confidence, fallback to this signal's ladder",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Guardrail rules for visitor exploration"
      },
      "ExportContext": {
        "type": "object",
        "properties": {
          "detectedOperation": {
            "type": "string",
            "nullable": true
          },
          "detectedIndustries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "detectedTones": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "exemplarsIncluded": {
            "type": "integer",
            "format": "int32"
          },
          "exemplarSelectionMode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExtendSetCommand": {
        "type": "object",
        "properties": {
          "additionalCount": {
            "maximum": 50,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "phraseFamily": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "guidance": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExtendSetResult": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "addedPhrases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GeneratedPhrase"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "FactoryRunCandidateStatus": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "FailRunRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Filter": {
        "type": "object",
        "properties": {
          "filterCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FilterChange": {
        "type": "object",
        "properties": {
          "filterCode": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "nullable": true
          },
          "values": {
            "type": "array",
            "items": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FilterInstruction": {
        "required": [
          "filterCode",
          "instructionTemplate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "filterCode": {
            "minLength": 1,
            "type": "string"
          },
          "instructionTemplate": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FilterInstructionTemplate": {
        "type": "object",
        "properties": {
          "prompts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptModification"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FilterOverrideData": {
        "type": "object",
        "properties": {
          "filterCode": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "newText": {
            "type": "string",
            "nullable": true
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FilterRecommendation": {
        "type": "object",
        "properties": {
          "filterCode": {
            "type": "string",
            "description": "Filter code/name being recommended",
            "nullable": true
          },
          "action": {
            "type": "string",
            "description": "Recommended action (add, remove, replace)",
            "nullable": true
          },
          "value": {
            "description": "Recommended value for the filter",
            "nullable": true
          },
          "values": {
            "type": "array",
            "items": { },
            "description": "Recommended values for multi-value filters",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "description": "Reason for this filter recommendation",
            "nullable": true
          },
          "expectedImpact": {
            "type": "string",
            "description": "Expected impact of applying this filter",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Filter recommendation with reasoning"
      },
      "Filters": {
        "type": "object",
        "properties": {
          "filterCollection": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Filter"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GapDto": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateExperimentRequest": {
        "required": [
          "patternId"
        ],
        "type": "object",
        "properties": {
          "patternId": {
            "type": "string",
            "format": "uuid"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Generate experiment request DTO"
      },
      "GenerateHeroesRequest": {
        "type": "object",
        "properties": {
          "domainIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateLogoSingleRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "\"basic\" or \"premium\"",
            "nullable": true
          },
          "factoryRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "logoGuidance": {
            "$ref": "#/components/schemas/LogoGuidanceRequest"
          },
          "splitName": {
            "type": "string",
            "description": "Optional split name override for the prompt. Useful for abstract domain names\r\nthat need context (e.g., pass \"Apex Financial\" for domain \"ApexFin\").\r\nUsed as domain.SplitName; words are concatenated for domain.Name.\r\nDoes not change the actual domain record — only affects what the LLM sees.",
            "nullable": true
          },
          "guidance": {
            "type": "string",
            "description": "Optional free-text guidance passed as {guidance} variable to the LogoPreGeneration prompt.\r\nUse to steer concept selection (e.g., \"emphasize speed and reliability\").",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateLogosRequest": {
        "type": "object",
        "properties": {
          "domainIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "regenerate": {
            "type": "boolean"
          },
          "factoryRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateProposalRequest": {
        "required": [
          "runId"
        ],
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "description": "ID of the execution run",
            "format": "uuid"
          },
          "riskTolerance": {
            "$ref": "#/components/schemas/RiskLevel"
          },
          "minConfidenceThreshold": {
            "maximum": 1,
            "minimum": 0,
            "type": "number",
            "description": "Minimum confidence threshold for deployment (0-1)",
            "format": "double"
          },
          "businessContext": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Custom business context",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Generate deployment proposal request"
      },
      "GenerateSetCommand": {
        "required": [
          "industry",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "industry": {
            "minLength": 1,
            "type": "string"
          },
          "count": {
            "maximum": 100,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "guidance": {
            "maxLength": 4000,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateTestCasesRequest": {
        "required": [
          "agentKey",
          "input"
        ],
        "type": "object",
        "properties": {
          "agentKey": {
            "minLength": 1,
            "type": "string"
          },
          "input": { },
          "addToSuiteId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "autoAddToSuite": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Request model for generic test case generation"
      },
      "GenerateTestSuiteRequest": {
        "type": "object",
        "properties": {
          "contextToken": {
            "type": "string",
            "nullable": true
          },
          "fromDate": {
            "type": "string",
            "description": "Only analyze domains approved after this date.",
            "format": "date-time",
            "nullable": true
          },
          "toDate": {
            "type": "string",
            "description": "Only analyze domains approved before this date.",
            "format": "date-time",
            "nullable": true
          },
          "phraseFamilies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Filter to specific phrase families (null = all families).",
            "nullable": true
          },
          "maxTestCases": {
            "type": "integer",
            "description": "Max test cases to generate (default 50).",
            "format": "int32"
          },
          "minApprovedDomains": {
            "type": "integer",
            "description": "Min approved domains a keyword+style combo must have produced (default 1).",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Override name for the generated evaluation run.",
            "nullable": true
          },
          "dryRun": {
            "type": "boolean",
            "description": "If true, return summary only without creating the run (default true)."
          }
        },
        "additionalProperties": false
      },
      "GenerateVariantsRequest": {
        "required": [
          "industry",
          "tone"
        ],
        "type": "object",
        "properties": {
          "industry": {
            "minLength": 1,
            "type": "string"
          },
          "tone": {
            "minLength": 1,
            "type": "string"
          },
          "parentExemplarId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GeneratedPhrase": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "phrase": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "rationale": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenericEventRequest": {
        "type": "object",
        "properties": {
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "eventCategory": {
            "type": "string",
            "nullable": true
          },
          "searchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "domainId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "eventParams": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Generic event tracking request."
      },
      "GenericSettingRequest": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetDomainsByUserIdRequest": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "GetRecommendationsRequest": {
        "required": [
          "content",
          "context"
        ],
        "type": "object",
        "properties": {
          "content": {
            "minLength": 1,
            "type": "string"
          },
          "context": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GoldenKeywordAnalysisDto": {
        "type": "object",
        "properties": {
          "totalGoldenKeywords": {
            "type": "integer",
            "description": "Total number of golden keyword tests",
            "format": "int32"
          },
          "aboveBaseline": {
            "type": "integer",
            "description": "Number that performed above baseline",
            "format": "int32"
          },
          "meetBaseline": {
            "type": "integer",
            "description": "Number that met baseline expectations",
            "format": "int32"
          },
          "belowBaseline": {
            "type": "integer",
            "description": "Number that performed below baseline",
            "format": "int32"
          },
          "averageBaselinePerformance": {
            "type": "number",
            "description": "Average performance vs baseline",
            "format": "double"
          },
          "armPerformances": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/GoldenKeywordArmPerformance"
            },
            "description": "Performance breakdown by arm",
            "nullable": true
          },
          "insights": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Key insights about golden keyword performance",
            "nullable": true
          },
          "individualResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GoldenKeywordResult"
            },
            "description": "Individual golden keyword results",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Golden keyword analysis DTO"
      },
      "GoldenKeywordArmPerformance": {
        "type": "object",
        "properties": {
          "arm": {
            "$ref": "#/components/schemas/ArmDesignation"
          },
          "goldenKeywordCount": {
            "type": "integer",
            "description": "Number of golden keyword tests",
            "format": "int32"
          },
          "averageVsBaseline": {
            "type": "number",
            "description": "Average score vs baseline",
            "format": "double"
          },
          "percentageAboveBaseline": {
            "type": "number",
            "description": "Percentage above baseline",
            "format": "double"
          },
          "bestPerformingKeyword": {
            "type": "string",
            "description": "Best performing golden keyword",
            "nullable": true
          },
          "worstPerformingKeyword": {
            "type": "string",
            "description": "Worst performing golden keyword",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Golden keyword performance for a specific arm"
      },
      "GoldenKeywordPerformance": {
        "type": "object",
        "properties": {
          "keywords": {
            "type": "string",
            "description": "Keywords tested",
            "nullable": true
          },
          "baselineScore": {
            "type": "number",
            "description": "Expected baseline score",
            "format": "double"
          },
          "actualScores": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "description": "Actual scores by arm",
            "nullable": true
          },
          "performanceVsBaseline": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "description": "Performance vs baseline by arm",
            "nullable": true
          },
          "baselineMet": {
            "type": "boolean",
            "description": "Whether baseline was met"
          }
        },
        "additionalProperties": false,
        "description": "Individual golden keyword performance"
      },
      "GoldenKeywordResult": {
        "type": "object",
        "properties": {
          "testCaseId": {
            "type": "string",
            "description": "Test case ID",
            "format": "uuid"
          },
          "keywords": {
            "type": "string",
            "description": "Keywords",
            "nullable": true
          },
          "baselineScore": {
            "type": "number",
            "description": "Baseline score",
            "format": "double"
          },
          "armScores": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "description": "Scores by arm",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/GoldenKeywordStatus"
          },
          "performanceVsBaseline": {
            "type": "number",
            "description": "Performance percentage vs baseline",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "Golden keyword result details"
      },
      "GoldenKeywordStatus": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "Golden keyword performance status",
        "format": "int32"
      },
      "GoogleSignInRequest": {
        "required": [
          "idToken"
        ],
        "type": "object",
        "properties": {
          "idToken": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "HelpArticle": {
        "required": [
          "categoryId",
          "content",
          "createdAt",
          "title"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "categoryId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "content": {
            "minLength": 1,
            "type": "string"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "articleType": {
            "$ref": "#/components/schemas/ArticleType"
          },
          "landingPageId": {
            "type": "string",
            "description": "Optional link to a landing page for FAQ articles (null for general articles)",
            "format": "uuid",
            "nullable": true
          },
          "displayOrder": {
            "type": "integer",
            "description": "Display order for landing page FAQs (default: 0)",
            "format": "int32"
          },
          "shortAnswer": {
            "maxLength": 500,
            "type": "string",
            "description": "Short answer for concise FAQ display (optional)",
            "nullable": true
          },
          "category": {
            "$ref": "#/components/schemas/HelpCategory"
          }
        },
        "additionalProperties": false
      },
      "HelpArticleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "categoryId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "articleType": {
            "$ref": "#/components/schemas/ArticleType"
          },
          "landingPageId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "shortAnswer": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "HelpCategory": {
        "required": [
          "createdAt",
          "title"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "articles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HelpArticle"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "HeroSection": {
        "type": "object",
        "properties": {
          "badge": {
            "type": "string",
            "nullable": true
          },
          "gradientStart": {
            "type": "string",
            "nullable": true
          },
          "gradientEnd": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Hero section configuration for landing pages"
      },
      "HistoryInheritance": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "How operation should inherit workflow history",
        "format": "int32"
      },
      "ImprovementCandidate": {
        "type": "object",
        "properties": {
          "patternId": {
            "type": "string",
            "format": "uuid"
          },
          "patternName": {
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "type": "string",
            "nullable": true
          },
          "currentPerformanceScore": {
            "type": "number",
            "format": "double"
          },
          "usageCount": {
            "type": "integer",
            "format": "int64"
          },
          "lastUsed": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "averageUserSatisfaction": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Improvement candidate DTO"
      },
      "ImprovementCandidatesResponse": {
        "type": "object",
        "properties": {
          "totalCandidates": {
            "type": "integer",
            "format": "int32"
          },
          "candidates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImprovementCandidate"
            },
            "nullable": true
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Improvement candidates response DTO"
      },
      "InjectRandomRequest": {
        "type": "object",
        "properties": {
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "IntentClassificationResult": {
        "type": "object",
        "properties": {
          "scores": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "description": "Signal scores keyed by signal name (e.g., \"institutional\" -> 0.72)",
            "nullable": true
          },
          "dominantSignal": {
            "type": "string",
            "description": "The dominant signal (highest scoring)",
            "nullable": true
          },
          "dominantScore": {
            "type": "number",
            "description": "Score of the dominant signal",
            "format": "double"
          },
          "reasoning": {
            "type": "string",
            "description": "Reasoning/explanation for the classification",
            "nullable": true
          },
          "matchedKeywords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MatchedKeyword"
            },
            "description": "Keywords that matched during classification",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Result of intent classification - a profile of signal scores"
      },
      "IntentFeatureStatus": {
        "type": "object",
        "properties": {
          "isEnabled": {
            "type": "boolean",
            "description": "Whether the feature is currently enabled"
          },
          "source": {
            "type": "string",
            "description": "Source of the current setting: \"Database\" or \"EnvironmentOverride\"",
            "nullable": true
          },
          "databaseValue": {
            "type": "boolean",
            "description": "Value from database"
          },
          "environmentOverride": {
            "type": "boolean",
            "description": "Value from environment override (null if not set)",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Detailed status of the intent feature flag"
      },
      "IntentWorkflowRuleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "condition": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "styleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "styleName": {
            "type": "string",
            "nullable": true
          },
          "operationName": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "JsonNode": {
        "type": "object",
        "properties": {
          "options": {
            "$ref": "#/components/schemas/JsonNodeOptions"
          },
          "parent": {
            "$ref": "#/components/schemas/JsonNode"
          },
          "root": {
            "$ref": "#/components/schemas/JsonNode"
          }
        },
        "additionalProperties": false
      },
      "JsonNodeOptions": {
        "type": "object",
        "properties": {
          "propertyNameCaseInsensitive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "LLMModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "vendorId": {
            "type": "string",
            "format": "uuid"
          },
          "settings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LLMModelSetting"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LLMModelSetting": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "llmModelId": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LLMTokenUsageLog": {
        "required": [
          "modelName",
          "operationName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "email": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowName": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "operationName": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string"
          },
          "modelName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "provider": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "inputTokens": {
            "type": "integer",
            "format": "int32"
          },
          "outputTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "inputPricePer1MTokens": {
            "type": "number",
            "format": "double"
          },
          "outputPricePer1MTokens": {
            "type": "number",
            "format": "double"
          },
          "calculatedCostUSD": {
            "type": "number",
            "description": "Pre-calculated cost in USD for this specific LLM call",
            "format": "double"
          },
          "category": {
            "$ref": "#/components/schemas/TokenUsageCategory"
          },
          "modelPricingId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "durationSeconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "notes": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "search": {
            "$ref": "#/components/schemas/Search"
          },
          "modelPricing": {
            "$ref": "#/components/schemas/ModelPricing"
          }
        },
        "additionalProperties": false,
        "description": "Detailed log of every LLM API call with token usage and cost tracking"
      },
      "LLMVendor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LLMModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LandingPage": {
        "required": [
          "createdBy",
          "h1Heading",
          "slug",
          "title"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Primary key",
            "format": "uuid"
          },
          "slug": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string",
            "description": "URL slug/path for the landing page (e.g., \"domain-names-for-tech-startups\")\r\nMust be unique and URL-friendly"
          },
          "title": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string",
            "description": "Page title for SEO meta tags and browser title"
          },
          "metaDescription": {
            "maxLength": 500,
            "type": "string",
            "description": "Meta description for SEO",
            "nullable": true
          },
          "h1Heading": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string",
            "description": "Main H1 heading displayed on the page"
          },
          "subHeading": {
            "maxLength": 300,
            "type": "string",
            "description": "Optional subheading",
            "nullable": true
          },
          "pageContent": {
            "type": "string",
            "description": "Marketing copy/description content for the landing page (intro paragraph)",
            "nullable": true
          },
          "ctaLabel": {
            "maxLength": 100,
            "type": "string",
            "description": "Call-to-action button label",
            "nullable": true
          },
          "bulletPoints": {
            "type": "string",
            "description": "Bullet points highlighting key benefits (stored as JSON array or delimited string)",
            "nullable": true
          },
          "exampleNames": {
            "maxLength": 1000,
            "type": "string",
            "description": "Example domain names to display (stored as JSON array or delimited string)",
            "nullable": true
          },
          "faqContent": {
            "type": "string",
            "description": "FAQ section content (stored as JSON with Q and A pairs)",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "description": "Workflow ID to use for searches initiated from this landing page",
            "format": "uuid",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "description": "Pre-configured filters as JSON string",
            "nullable": true
          },
          "jsonFilters": {
            "$ref": "#/components/schemas/Filters"
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the landing page is active and should be publicly accessible"
          },
          "sortOrder": {
            "type": "integer",
            "description": "Display order for admin listing (lower numbers appear first)",
            "format": "int32"
          },
          "category": {
            "maxLength": 100,
            "type": "string",
            "description": "Optional category/tag for organizing landing pages in admin",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "Date the landing page was created",
            "format": "date-time"
          },
          "createdBy": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string",
            "description": "Email of the user who created the landing page"
          },
          "updatedAt": {
            "type": "string",
            "description": "Date the landing page was last updated",
            "format": "date-time",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 255,
            "type": "string",
            "description": "Email of the user who last updated the landing page",
            "nullable": true
          },
          "heroSectionJson": {
            "type": "string",
            "description": "Hero section configuration stored as JSON\r\nContains: Badge, GradientStart, GradientEnd",
            "nullable": true
          },
          "benefitsSectionJson": {
            "type": "string",
            "description": "Benefits section configuration stored as JSON\r\nContains: SectionTitle, SectionSubtitle, List of Benefits (Icon, Title, Description, DisplayOrder)",
            "nullable": true
          },
          "examplesSectionJson": {
            "type": "string",
            "description": "Examples section metadata stored as JSON\r\nContains: SectionTitle, SectionSubtitle, ShowLiveBadge, LastRefreshed",
            "nullable": true
          },
          "searchPhraseSetId": {
            "type": "integer",
            "description": "Optional SearchPhraseSet ID for industry-specific placeholder suggestions\r\nWhen set, the landing page can use industry-specific phrase sets instead of universal placeholders",
            "format": "int32",
            "nullable": true
          },
          "workflow": {
            "$ref": "#/components/schemas/Workflow"
          },
          "searchPhraseSet": {
            "$ref": "#/components/schemas/SearchPhraseSet"
          }
        },
        "additionalProperties": false,
        "description": "Represents a static landing page configuration for SEO-friendly URLs\r\nEach landing page has pre-configured search settings and custom content"
      },
      "LandingPageDomain": {
        "required": [
          "domainId",
          "landingPageId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "landingPageId": {
            "type": "string",
            "description": "Foreign key to LandingPage",
            "format": "uuid"
          },
          "domainId": {
            "type": "string",
            "description": "Foreign key to Domain",
            "format": "uuid"
          },
          "displayOrder": {
            "type": "integer",
            "description": "Order in which domains should be displayed on the landing page",
            "format": "int32"
          },
          "addedAt": {
            "type": "string",
            "description": "Timestamp when the domain was added to this landing page",
            "format": "date-time"
          },
          "landingPage": {
            "$ref": "#/components/schemas/LandingPage"
          },
          "domain": {
            "$ref": "#/components/schemas/Domain"
          }
        },
        "additionalProperties": false,
        "description": "Association table linking landing pages to specific domain examples"
      },
      "LandingPageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "metaDescription": {
            "type": "string",
            "nullable": true
          },
          "h1Heading": {
            "type": "string",
            "nullable": true
          },
          "subHeading": {
            "type": "string",
            "nullable": true
          },
          "pageContent": {
            "type": "string",
            "nullable": true
          },
          "ctaLabel": {
            "type": "string",
            "nullable": true
          },
          "bulletPoints": {
            "type": "string",
            "nullable": true
          },
          "exampleNames": {
            "type": "string",
            "nullable": true
          },
          "faqContent": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          },
          "searchPhraseSetId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hero": {
            "$ref": "#/components/schemas/HeroSection"
          },
          "benefits": {
            "$ref": "#/components/schemas/BenefitsSection"
          },
          "examples": {
            "$ref": "#/components/schemas/ExamplesSectionDto"
          },
          "faQs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HelpArticleDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Enhanced landing page DTO with all sections populated"
      },
      "LearningInsightsResponse": {
        "type": "object",
        "properties": {
          "summary": {
            "$ref": "#/components/schemas/LearningInsightsSummary"
          },
          "topRecommendations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PerformanceRecommendation"
            },
            "nullable": true
          },
          "keyInsights": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Learning insights response DTO"
      },
      "LearningInsightsSummary": {
        "type": "object",
        "properties": {
          "totalPatternsAnalyzed": {
            "type": "integer",
            "format": "int32"
          },
          "improvementCandidatesCount": {
            "type": "integer",
            "format": "int32"
          },
          "successfulPatternsCount": {
            "type": "integer",
            "format": "int32"
          },
          "performanceRecommendationsCount": {
            "type": "integer",
            "format": "int32"
          },
          "coveragePercentage": {
            "type": "number",
            "format": "double"
          },
          "uncoveredPatternsCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Learning insights summary DTO"
      },
      "LogPaymentRequestDto": {
        "required": [
          "amount",
          "paypalTransactionId"
        ],
        "type": "object",
        "properties": {
          "paypalTransactionId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "amount": {
            "maximum": 10000,
            "minimum": 0.01,
            "type": "number",
            "format": "double"
          },
          "currency": {
            "maxLength": 3,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LogoGuidanceRequest": {
        "type": "object",
        "properties": {
          "autoselect": {
            "type": "boolean",
            "description": "When true, engine assigns codes and returns them without generating an image."
          },
          "wordTreatment": {
            "type": "string",
            "nullable": true
          },
          "colorScheme": {
            "type": "string",
            "nullable": true
          },
          "iconShape": {
            "type": "string",
            "nullable": true
          },
          "typography": {
            "type": "string",
            "nullable": true
          },
          "layout": {
            "type": "string",
            "nullable": true
          },
          "hasAllFields": {
            "type": "boolean",
            "description": "True if all 5 explicit fields are provided.",
            "readOnly": true
          },
          "isPartial": {
            "type": "boolean",
            "description": "True if at least one explicit field is provided but not all.",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "Ad-hoc logo generation request payload for explicit guidance or autoselect."
      },
      "MagicLinkRequestDto": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "returnUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MatchType": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "MatchedKeyword": {
        "type": "object",
        "properties": {
          "signal": {
            "type": "string",
            "nullable": true
          },
          "keyword": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double"
          },
          "category": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A keyword that matched during classification"
      },
      "MatchedKeywordInfo": {
        "type": "object",
        "properties": {
          "keyword": {
            "type": "string",
            "nullable": true
          },
          "constraintCode": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "MergeSetsCommand": {
        "required": [
          "name",
          "setIds"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "setIds": {
            "minItems": 2,
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "industry": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "guidance": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MetricDetailsDto": {
        "type": "object",
        "properties": {
          "score": {
            "type": "number",
            "format": "double"
          },
          "subscores": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          },
          "reasoning": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MigrateVisitorRequest": {
        "type": "object",
        "properties": {
          "visitorId": {
            "type": "string",
            "nullable": true
          },
          "newEmail": {
            "type": "string",
            "nullable": true
          },
          "sessionId": {
            "type": "string",
            "nullable": true
          },
          "browserFingerprint": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ModelCostBreakdown": {
        "type": "object",
        "properties": {
          "modelName": {
            "type": "string",
            "nullable": true
          },
          "executionCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalCost": {
            "type": "number",
            "format": "double"
          },
          "averageCost": {
            "type": "number",
            "format": "double"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int64"
          },
          "costPerToken": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ModelPricing": {
        "required": [
          "modelName",
          "provider"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "modelName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "provider": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "inputPricePer1MTokens": {
            "type": "number",
            "description": "Price per 1 million input tokens in USD",
            "format": "double"
          },
          "outputPricePer1MTokens": {
            "type": "number",
            "description": "Price per 1 million output tokens in USD",
            "format": "double"
          },
          "effectiveFrom": {
            "type": "string",
            "description": "When this pricing becomes effective",
            "format": "date-time"
          },
          "effectiveTo": {
            "type": "string",
            "description": "When this pricing expires (NULL = current pricing)",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "notes": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "tokenUsageLogs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LLMTokenUsageLog"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Tracks pricing for LLM models with versioning support for price changes over time"
      },
      "ModelTemplateData": {
        "type": "object",
        "properties": {
          "modelName": {
            "type": "string",
            "nullable": true
          },
          "settings": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ModificationRule": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "nullable": true
          },
          "section": {
            "type": "string",
            "nullable": true
          },
          "orderIndex": {
            "type": "integer",
            "format": "int32"
          },
          "subOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "instructionText": {
            "type": "string",
            "nullable": true
          },
          "componentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "filterValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OTPRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "keywordRelevance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OTPValidateRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "pin": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OfferStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "Operation": {
        "required": [
          "category",
          "description"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "minLength": 1,
            "type": "string"
          },
          "category": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "description": "Category of operation for workflow routing and agent system unification\r\nValid values: \"DomainDiscovery\", \"SearchSuggestions\", \"Agents\", \"LLM\", \"Transform\", \"Filter\", \"Aggregate\""
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowCategory": {
            "$ref": "#/components/schemas/WorkflowCategory"
          }
        },
        "additionalProperties": false
      },
      "OperationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "category": {
            "$ref": "#/components/schemas/WorkflowCategoryDto"
          }
        },
        "additionalProperties": false
      },
      "OperationImplementation": {
        "type": "object",
        "properties": {
          "strategy": {
            "$ref": "#/components/schemas/OperationStrategy"
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationStep"
            },
            "description": "Steps to execute for conversational or iterative strategies",
            "nullable": true
          },
          "maxIterations": {
            "type": "integer",
            "description": "Maximum iterations for iterative strategies",
            "format": "int32"
          },
          "contextPreservation": {
            "type": "boolean",
            "description": "Whether to preserve context across steps"
          },
          "historyInheritance": {
            "$ref": "#/components/schemas/HistoryInheritance"
          }
        },
        "additionalProperties": false,
        "description": "Defines how a workflow operation should be implemented/executed"
      },
      "OperationResultGroup": {
        "type": "object",
        "properties": {
          "operationName": {
            "type": "string",
            "nullable": true
          },
          "styleGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StyleResultGroup"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OperationStep": {
        "type": "object",
        "properties": {
          "stepNumber": {
            "type": "integer",
            "description": "Step number for explicit ordering (1, 2, 3, etc.)",
            "format": "int32"
          },
          "promptName": {
            "type": "string",
            "description": "Prompt name that references an existing prompt in the workflow\r\nThis ensures filter override rules are applied",
            "nullable": true
          },
          "promptTemplate": {
            "type": "string",
            "description": "Optional inline prompt template (use only if prompt doesn't exist in cache)\r\nNote: Filter override rules won't apply to inline templates",
            "nullable": true
          },
          "requiresContext": {
            "type": "boolean",
            "description": "Whether this step requires context from previous steps"
          },
          "systemPrompt": {
            "type": "string",
            "description": "Optional system prompt override for this step",
            "nullable": true
          },
          "parameters": {
            "type": "object",
            "additionalProperties": { },
            "description": "Optional parameters for this step",
            "nullable": true
          },
          "promptData": {
            "description": "Optional prompt data (template details)",
            "nullable": true
          },
          "promptId": {
            "type": "string",
            "description": "Optional prompt ID reference",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A single step in a multi-step operation"
      },
      "OperationStrategy": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "Execution strategy types",
        "format": "int32"
      },
      "OperationTemplateData": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "executionOrder": {
            "type": "integer",
            "format": "int32"
          },
          "executionStyle": {
            "type": "string",
            "nullable": true
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          },
          "prompt": {
            "$ref": "#/components/schemas/PromptTemplateData"
          },
          "prompts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptTemplateData"
            },
            "nullable": true
          },
          "model": {
            "$ref": "#/components/schemas/ModelTemplateData"
          },
          "requiresHistory": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "OperationType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31,
          32,
          33,
          34,
          63,
          64,
          65
        ],
        "type": "integer",
        "format": "int32"
      },
      "OptimizationJobProgress": {
        "type": "object",
        "properties": {
          "currentPhase": {
            "$ref": "#/components/schemas/OptimizationPhase"
          },
          "phaseDescription": {
            "type": "string",
            "nullable": true
          },
          "completedSteps": {
            "type": "integer",
            "format": "int32"
          },
          "totalSteps": {
            "type": "integer",
            "format": "int32"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "recentActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "phaseMetadata": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "OptimizationJobResponseDto": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "OptimizationJobResult": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "success": {
            "type": "boolean"
          },
          "winningExemplarId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "winningVariantType": {
            "type": "string",
            "nullable": true
          },
          "improvementPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "variantsGenerated": {
            "type": "integer",
            "format": "int32"
          },
          "variantsTested": {
            "type": "integer",
            "format": "int32"
          },
          "totalDuration": {
            "$ref": "#/components/schemas/TimeSpan"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "detailedMetrics": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "OptimizationJobStatusDto": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "currentPhase": {
            "type": "string",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "totalSteps": {
            "type": "integer",
            "format": "int32"
          },
          "completedSteps": {
            "type": "integer",
            "format": "int32"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "progressDetails": {
            "$ref": "#/components/schemas/OptimizationJobProgress"
          },
          "results": {
            "$ref": "#/components/schemas/OptimizationJobResult"
          }
        },
        "additionalProperties": false
      },
      "OptimizationJobSummaryDto": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "currentPhase": {
            "type": "string",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OptimizationPhase": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "OptimizeRequest": {
        "type": "object",
        "properties": {
          "draftConfig": {
            "$ref": "#/components/schemas/VerticalLogoConfigDraft"
          }
        },
        "additionalProperties": false,
        "description": "Request shape for POST /api/admin/campaign-contexts/{token}/logo-config/optimize.\r\nPer §10.1 of the storefront-logos spec (v1 — deterministic)."
      },
      "OptimizeSingleRequest": {
        "required": [
          "industry",
          "tone",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "industry": {
            "minLength": 1,
            "type": "string"
          },
          "tone": {
            "minLength": 1,
            "type": "string"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "forceReoptimization": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "OptimizeWorkflowRequest": {
        "type": "object",
        "properties": {
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "specificIndustries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "specificTones": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "skipExistingChampions": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PatternChange": {
        "type": "object",
        "properties": {
          "changeType": {
            "type": "string",
            "nullable": true
          },
          "patternId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "patternName": {
            "type": "string",
            "nullable": true
          },
          "oldValue": {
            "type": "string",
            "nullable": true
          },
          "newValue": {
            "type": "string",
            "nullable": true
          },
          "fieldName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a change in router patterns between snapshots"
      },
      "PatternConflict": {
        "type": "object",
        "properties": {
          "existingPatternId": {
            "type": "string",
            "format": "uuid"
          },
          "existingPatternName": {
            "type": "string",
            "nullable": true
          },
          "conflictType": {
            "type": "string",
            "nullable": true
          },
          "conflictDescription": {
            "type": "string",
            "nullable": true
          },
          "conflictingKeywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "canAutoResolve": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Represents a conflict between proposed and existing patterns"
      },
      "PatternPerformanceSummary": {
        "type": "object",
        "properties": {
          "patternId": {
            "type": "string",
            "format": "uuid"
          },
          "patternName": {
            "type": "string",
            "nullable": true
          },
          "timeRange": {
            "type": "string",
            "nullable": true
          },
          "totalSearches": {
            "type": "integer",
            "format": "int32"
          },
          "averageErrorRate": {
            "type": "number",
            "format": "double"
          },
          "averageLatencyMs": {
            "type": "number",
            "format": "double"
          },
          "averageUserSatisfaction": {
            "type": "number",
            "format": "double"
          },
          "averageCostUSD": {
            "type": "number",
            "format": "double"
          },
          "trendAnalysis": {
            "type": "string",
            "nullable": true
          },
          "lastUpdated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Pattern performance summary DTO"
      },
      "PatternSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "type": "string",
            "nullable": true
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "lastUsed": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Pattern summary DTO"
      },
      "PendingTestCasesResponse": {
        "type": "object",
        "properties": {
          "testCases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCase"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "agentGeneratedCount": {
            "type": "integer",
            "format": "int32"
          },
          "manualCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Response model for pending test cases"
      },
      "PercentileCutoffConfig": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "description": "Percentile value (0.0-1.0). E.g., 0.30 = top 30% of candidates.",
            "format": "double"
          },
          "scoreSource": {
            "type": "string",
            "description": "Score source for ranking: semantic_score or domain_strength.",
            "nullable": true
          },
          "rationale": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Percentile cutoff configuration for segment candidate filtering."
      },
      "PerformanceAlert": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "alertType": {
            "$ref": "#/components/schemas/AlertType"
          },
          "routerPatternId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "routerPattern": {
            "$ref": "#/components/schemas/RouterPattern"
          },
          "workflowConfigurationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowConfiguration": {
            "$ref": "#/components/schemas/WorkflowConfiguration"
          },
          "currentValue": {
            "type": "number",
            "format": "double"
          },
          "thresholdValue": {
            "type": "number",
            "format": "double"
          },
          "alertMessage": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "$ref": "#/components/schemas/Severity"
          },
          "isResolved": {
            "type": "boolean"
          },
          "resolvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resolvedBy": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PerformanceAnalyticsDto": {
        "type": "object",
        "properties": {
          "setId": {
            "type": "integer",
            "format": "int32"
          },
          "overallPerformance": {
            "type": "number",
            "format": "double"
          },
          "totalUsageCount": {
            "type": "integer",
            "format": "int32"
          },
          "topPerformers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TopPerformerDto"
            },
            "nullable": true
          },
          "poorPerformers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PoorPerformerDto"
            },
            "nullable": true
          },
          "performanceTrend": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PerformanceTrendDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PerformanceMetricsDto": {
        "type": "object",
        "properties": {
          "averageScore": {
            "type": "number",
            "format": "double"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "domainQuality": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PerformanceRecommendation": {
        "type": "object",
        "properties": {
          "patternId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "patternName": {
            "type": "string",
            "nullable": true
          },
          "recommendationType": {
            "type": "string",
            "nullable": true
          },
          "issue": {
            "type": "string",
            "nullable": true
          },
          "recommendation": {
            "type": "string",
            "nullable": true
          },
          "expectedImpact": {
            "type": "string",
            "nullable": true
          },
          "priorityScore": {
            "type": "integer",
            "format": "int32"
          },
          "currentMetrics": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          },
          "targetMetrics": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Performance improvement recommendation"
      },
      "PerformanceRecommendationsResponse": {
        "type": "object",
        "properties": {
          "totalRecommendations": {
            "type": "integer",
            "format": "int32"
          },
          "recommendations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PerformanceRecommendation"
            },
            "nullable": true
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Performance recommendations response DTO"
      },
      "PerformanceTrendDto": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "score": {
            "type": "number",
            "format": "double"
          },
          "usageCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PlanCheckoutStartedRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "visitorId": {
            "type": "string",
            "nullable": true
          },
          "planDurationDays": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "paymentProvider": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request for tracking plan checkout started events."
      },
      "PlannerConstraints": {
        "type": "object",
        "properties": {
          "budgetCents": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mustIncludeSteps": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlannerDefaults": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "nullable": true
          },
          "params": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlannerEstimates": {
        "type": "object",
        "properties": {
          "tokensIn": {
            "type": "integer",
            "format": "int32"
          },
          "tokensOut": {
            "type": "integer",
            "format": "int32"
          },
          "costCents": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PoorPerformerDto": {
        "type": "object",
        "properties": {
          "phrase": {
            "type": "string",
            "nullable": true
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "usageCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PresetEditOperation": {
        "type": "object",
        "properties": {
          "presetId": {
            "type": "string",
            "nullable": true
          },
          "fieldUpdates": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "Field-level updates. Keys are preset field names; values overwrite.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PrevalidateRequestDto": {
        "required": [
          "domain",
          "sessionId"
        ],
        "type": "object",
        "properties": {
          "sessionId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "searchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "candidateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "domain": {
            "maxLength": 255,
            "minLength": 0,
            "pattern": "^[a-zA-Z0-9]([a-zA-Z0-9\\-]*[a-zA-Z0-9])?(\\.[a-zA-Z]{2,})+$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PrevalidationResult": {
        "type": "object",
        "properties": {
          "prevalidationId": {
            "type": "string",
            "format": "uuid"
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "fromCache": {
            "type": "boolean"
          },
          "evidence": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PricingItem": {
        "type": "object",
        "properties": {
          "domainId": {
            "type": "string",
            "format": "uuid"
          },
          "askingPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "floorPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PricingOverrideRequest": {
        "type": "object",
        "properties": {
          "tierOverride": {
            "type": "string",
            "nullable": true
          },
          "priceOverride": {
            "type": "integer",
            "format": "int32"
          },
          "overrideReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "ProductionMetrics": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "routerPatternId": {
            "type": "string",
            "format": "uuid"
          },
          "routerPattern": {
            "$ref": "#/components/schemas/RouterPattern"
          },
          "workflowConfigurationId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowConfiguration": {
            "$ref": "#/components/schemas/WorkflowConfiguration"
          },
          "timeWindowStart": {
            "type": "string",
            "format": "date-time"
          },
          "timeWindowEnd": {
            "type": "string",
            "format": "date-time"
          },
          "searchCount": {
            "type": "integer",
            "format": "int32"
          },
          "averageLatencyMs": {
            "type": "number",
            "format": "double"
          },
          "averageTokenCount": {
            "type": "number",
            "format": "double"
          },
          "averageCostUSD": {
            "type": "number",
            "format": "double"
          },
          "errorRate": {
            "type": "number",
            "format": "double"
          },
          "userSatisfactionScore": {
            "type": "number",
            "format": "double"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PromoteChampionRequest": {
        "required": [
          "exemplarId",
          "industry",
          "tone",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "exemplarId": {
            "type": "string",
            "format": "uuid"
          },
          "industry": {
            "minLength": 1,
            "type": "string"
          },
          "tone": {
            "minLength": 1,
            "type": "string"
          },
          "experimentRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "promotedBy": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PromoteRequest": {
        "type": "object",
        "properties": {
          "domainIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "force": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PromoteRequestDto": {
        "required": [
          "winningArmId"
        ],
        "type": "object",
        "properties": {
          "winningArmId": {
            "minLength": 1,
            "type": "string"
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "requireApproval": {
            "type": "boolean",
            "description": "Whether to require approval for promotion"
          }
        },
        "additionalProperties": false,
        "description": "DTO for experiment promotion requests"
      },
      "Prompt": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "systemPrompt": {
            "type": "string",
            "description": "Optional system prompt for agent operations. When null, services use hard-coded system messages.\r\nThis enables agent-specific system prompts while maintaining backward compatibility with domain search workflows.",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowCategory": {
            "$ref": "#/components/schemas/WorkflowCategory"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptComponent"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PromptCategoryData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PromptComponent": {
        "required": [
          "instructionText"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "promptId": {
            "type": "string",
            "format": "uuid"
          },
          "orderIndex": {
            "type": "integer",
            "format": "int32"
          },
          "section": {
            "type": "string",
            "nullable": true
          },
          "subOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "instructionText": {
            "minLength": 1,
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "prompt": {
            "$ref": "#/components/schemas/Prompt"
          }
        },
        "additionalProperties": false
      },
      "PromptDefinition": {
        "type": "object",
        "properties": {
          "components": {
            "type": "array",
            "items": { },
            "nullable": true
          },
          "variables": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PromptDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PromptExportContext": {
        "type": "object",
        "properties": {
          "componentsIncluded": {
            "type": "integer",
            "format": "int32"
          },
          "filterOverridesIncluded": {
            "type": "integer",
            "format": "int32"
          },
          "detectedFilterCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PromptModification": {
        "type": "object",
        "properties": {
          "promptId": {
            "type": "string",
            "format": "uuid"
          },
          "promptName": {
            "type": "string",
            "nullable": true
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModificationRule"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PromptTemplateData": {
        "type": "object",
        "properties": {
          "promptId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "systemPrompt": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "categoryData": {
            "$ref": "#/components/schemas/PromptCategoryData"
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComponentTemplateData"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PromptTemplateExportData": {
        "type": "object",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/PromptTemplateMetadata"
          },
          "prompt": {
            "$ref": "#/components/schemas/PromptTemplateData"
          }
        },
        "additionalProperties": false
      },
      "PromptTemplateExportResponse": {
        "type": "object",
        "properties": {
          "template": {
            "$ref": "#/components/schemas/PromptTemplateExportData"
          }
        },
        "additionalProperties": false
      },
      "PromptTemplateImportResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "createdPromptId": {
            "type": "string",
            "format": "uuid"
          },
          "componentCount": {
            "type": "integer",
            "format": "int32"
          },
          "filterOverrideCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PromptTemplateMetadata": {
        "type": "object",
        "properties": {
          "templateType": {
            "type": "string",
            "nullable": true
          },
          "sourcePromptId": {
            "type": "string",
            "format": "uuid"
          },
          "sourcePromptName": {
            "type": "string",
            "nullable": true
          },
          "exportedAt": {
            "type": "string",
            "format": "date-time"
          },
          "exportContext": {
            "$ref": "#/components/schemas/PromptExportContext"
          }
        },
        "additionalProperties": false
      },
      "PublicOfferRequest": {
        "required": [
          "buyerEmail",
          "domainSlug",
          "offerAmount"
        ],
        "type": "object",
        "properties": {
          "domainSlug": {
            "maxLength": 300,
            "minLength": 0,
            "type": "string"
          },
          "offerAmount": {
            "maximum": 1000000,
            "minimum": 1,
            "type": "number",
            "format": "double"
          },
          "buyerEmail": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "format": "email"
          },
          "buyerName": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "intendedUse": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "sourceStorefrontSlug": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "referralSource": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityFloorConfig": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "description": "Mode: \"any\" (pass if ANY criterion met) or \"all\" (pass if ALL criteria met).\r\nDefault is \"any\" for lenient noise removal.",
            "nullable": true
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityFloorCriterion"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Quality floor configuration - pre-segmentation gate."
      },
      "QualityFloorCriterion": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "description": "Field to evaluate: semantic_score, domain_strength, pronunciation_score, contains_keyword.",
            "nullable": true
          },
          "operator": {
            "type": "string",
            "description": "Comparison operator: greater than or equal, less than or equal, equals, greater than, less than.",
            "nullable": true
          },
          "value": {
            "description": "Threshold value (number or boolean).",
            "nullable": true
          },
          "rationale": {
            "type": "string",
            "description": "Required rationale explaining why this threshold exists.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Single quality floor criterion."
      },
      "QuickScoreDto": {
        "type": "object",
        "properties": {
          "overallScore": {
            "type": "number",
            "format": "double"
          },
          "memorabilityScore": {
            "type": "number",
            "format": "double"
          },
          "pronunciationScore": {
            "type": "number",
            "format": "double"
          },
          "analysisStatus": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RankingItem": {
        "type": "object",
        "properties": {
          "domainId": {
            "type": "string",
            "format": "uuid"
          },
          "editorialRank": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "RateResultRequest": {
        "type": "object",
        "properties": {
          "rating": {
            "maximum": 5,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordPerformanceRequest": {
        "required": [
          "domainCount",
          "qualityScore",
          "userSatisfaction"
        ],
        "type": "object",
        "properties": {
          "qualityScore": {
            "maximum": 1,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "userSatisfaction": {
            "maximum": 1,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "domainCount": {
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordUsageCommand": {
        "required": [
          "experimentId",
          "performanceMetrics",
          "phrasesUsed"
        ],
        "type": "object",
        "properties": {
          "experimentId": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "workflowId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "phrasesUsed": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "performanceMetrics": {
            "$ref": "#/components/schemas/PerformanceMetricsDto"
          }
        },
        "additionalProperties": false
      },
      "RecordUsageRequest": {
        "required": [
          "context",
          "userEmail"
        ],
        "type": "object",
        "properties": {
          "context": {
            "minLength": 1,
            "type": "string"
          },
          "userEmail": {
            "minLength": 1,
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordUsageResult": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "usageId": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RefinedFiltersResponse": {
        "type": "object",
        "properties": {
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterChange"
            },
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "format": "double"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedFiltersJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RefinedSearchPhraseResponse": {
        "type": "object",
        "properties": {
          "suggestionText": {
            "type": "string",
            "nullable": true
          },
          "relatedKeywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "format": "double"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "RefreshTokenRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "refreshToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegenerateDomainRequest": {
        "type": "object",
        "properties": {
          "keywordRelevance": {
            "type": "string",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          },
          "deactivateSynapse": {
            "type": "boolean"
          },
          "enableSynapse": {
            "type": "boolean"
          },
          "synapseTierId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "synapseOptions": {
            "$ref": "#/components/schemas/SynapseActivationOptions"
          }
        },
        "additionalProperties": false
      },
      "RegenerateHeroRequest": {
        "type": "object",
        "properties": {
          "guidance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegenerateRequest": {
        "type": "object",
        "properties": {
          "targets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegisterDomainRequestDto": {
        "required": [
          "prevalidationId",
          "registrant",
          "sessionId"
        ],
        "type": "object",
        "properties": {
          "prevalidationId": {
            "type": "string",
            "format": "uuid"
          },
          "sessionId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "termYears": {
            "maximum": 10,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "registrant": {
            "$ref": "#/components/schemas/RegistrantInfoDto"
          },
          "paypalAuthorizationId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "PayPal authorization ID (desktop popup flow - frontend already authorized)",
            "nullable": true
          },
          "paypalOrderId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "PayPal order ID (mobile redirect flow - backend handles authorize + capture)",
            "nullable": true
          },
          "visitorId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Visitor tracking ID for linking searches to new user account",
            "nullable": true
          },
          "browserFingerprint": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Browser fingerprint for visitor tracking",
            "nullable": true
          },
          "storefrontDomainSlug": {
            "maxLength": 300,
            "minLength": 0,
            "type": "string",
            "description": "PublicSlug of the storefront VerticalDomain being purchased.\r\nWhen set, the VerticalDomain is deactivated and conversion is tracked.\r\nNull for standard discovery-flow registrations.",
            "nullable": true
          },
          "offerId": {
            "type": "string",
            "description": "DomainOffer ID if purchase follows an accepted offer.\r\nWhen set, the offer status is updated to Purchased.\r\nNull for direct purchases or discovery-flow registrations.",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegisterEntry": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegisteredDomainDto": {
        "type": "object",
        "properties": {
          "registeredDomainId": {
            "type": "string",
            "format": "uuid"
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "registrar": {
            "type": "string",
            "nullable": true
          },
          "registeredAt": {
            "type": "string",
            "format": "date-time"
          },
          "renewalAt": {
            "type": "string",
            "format": "date-time"
          },
          "nameserver1": {
            "type": "string",
            "nullable": true
          },
          "nameserver2": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "RegistrantInfoDto": {
        "required": [
          "country",
          "email",
          "firstName",
          "lastName"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "lastName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "email": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "format": "email"
          },
          "country": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "company": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "address": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "state": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "phone": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegistrationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "registeredDomainId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "orderId": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "registeredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "renewalAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "alreadyRegistered": {
            "type": "boolean"
          },
          "paypalTransactionId": {
            "type": "string",
            "description": "PayPal transaction/capture ID (for mobile redirect flow)",
            "nullable": true
          },
          "paymentCaptureWarning": {
            "type": "string",
            "description": "Warning if payment capture failed after successful registration",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "description": "User ID for the registered domain owner (for frontend to establish session)",
            "format": "uuid",
            "nullable": true
          },
          "userEmail": {
            "type": "string",
            "description": "User email for the registered domain owner (for frontend login/session)",
            "nullable": true
          },
          "authToken": {
            "type": "string",
            "description": "JWT auth token for the user (for frontend to establish authenticated session)",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RemoveDomainRequest": {
        "type": "object",
        "properties": {
          "rejectionReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReorderBindingsRequest": {
        "required": [
          "bindingOrders"
        ],
        "type": "object",
        "properties": {
          "bindingOrders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BindingOrderItem"
            }
          }
        },
        "additionalProperties": false,
        "description": "Request model for bulk reordering bindings"
      },
      "ResolveAlertRequest": {
        "required": [
          "resolvedBy"
        ],
        "type": "object",
        "properties": {
          "resolvedBy": {
            "minLength": 1,
            "type": "string"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Resolve alert request DTO"
      },
      "RestoreSnapshotRequest": {
        "type": "object",
        "properties": {
          "comments": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Comments about why this restore is being performed",
            "nullable": true
          },
          "createBackupSnapshot": {
            "type": "boolean",
            "description": "Whether to create a snapshot of current state before restoring"
          }
        },
        "additionalProperties": false,
        "description": "Request to restore a snapshot"
      },
      "RestoreSnapshotResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "backupSnapshotId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "restoredChanges": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "restoredAt": {
            "type": "string",
            "format": "date-time"
          },
          "restoredBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response from snapshot restore operation"
      },
      "ResultStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "description": "Execution result status",
        "format": "int32"
      },
      "ReviewOfferRequest": {
        "type": "object",
        "properties": {
          "decision": {
            "type": "string",
            "nullable": true
          },
          "adminNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RevokeTokenRequest": {
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RiskLevel": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "Risk levels for deployment",
        "format": "int32"
      },
      "RouterPattern": {
        "required": [
          "createdAt",
          "createdBy",
          "description",
          "isActive",
          "patternKeywords",
          "patternName",
          "updatedAt",
          "workflowConfigurationId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for this router pattern",
            "format": "uuid"
          },
          "patternName": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Human-readable name for this pattern"
          },
          "description": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Description of what this pattern does and when it applies"
          },
          "patternKeywords": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "description": "Keywords to match in search queries (space-separated)\r\nExamples: \"AI restaurant\", \"tech startup\", \"healthcare medical\""
          },
          "filterCombinationJson": {
            "type": "string",
            "description": "JSON string containing specific filter combinations that trigger this pattern\r\nContains filter criteria like extensions, length, categories, etc.",
            "nullable": true
          },
          "workflowConfigurationId": {
            "type": "string",
            "description": "ID of the workflow configuration to use when this pattern matches",
            "format": "uuid"
          },
          "specificityScore": {
            "maximum": 100,
            "minimum": 0,
            "type": "integer",
            "description": "Score based on how many keywords matched in the search\r\nHigher scores indicate more specific matches",
            "format": "int32"
          },
          "performanceScore": {
            "maximum": 1,
            "minimum": 0,
            "type": "number",
            "description": "Historical success rate for this pattern (0.0 to 1.0)\r\nBased on past execution results and user feedback",
            "format": "double"
          },
          "priority": {
            "maximum": 100,
            "minimum": 1,
            "type": "integer",
            "description": "Manual priority for tie-breaking (higher = more priority)\r\nUsed when multiple patterns have similar specificity/performance",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether this pattern is currently active and should be used for routing"
          },
          "experimentEvidence": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "description": "Reference to the experiment that provided evidence for this pattern's effectiveness\r\nContains experiment ID and summary of results that justified this pattern",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "When this pattern was created",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "description": "When this pattern was last updated",
            "format": "date-time"
          },
          "createdBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Who created this pattern"
          },
          "updatedBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Who last updated this pattern",
            "nullable": true
          },
          "usageCount": {
            "type": "integer",
            "description": "Total number of times this pattern has been matched and used",
            "format": "int64"
          },
          "lastUsedAt": {
            "type": "string",
            "description": "When this pattern was last used for routing",
            "format": "date-time",
            "nullable": true
          },
          "averageUserSatisfaction": {
            "maximum": 5,
            "minimum": 1,
            "type": "number",
            "description": "Average user satisfaction score for searches routed through this pattern\r\nRange: 1.0 (poor) to 5.0 (excellent)",
            "format": "double",
            "nullable": true
          },
          "metadataJson": {
            "type": "string",
            "description": "Additional metadata for this pattern in JSON format\r\nCan contain custom routing logic, A/B test parameters, etc.",
            "nullable": true
          },
          "workflowConfiguration": {
            "$ref": "#/components/schemas/WorkflowConfiguration"
          }
        },
        "additionalProperties": false,
        "description": "Represents a pattern-based routing rule for workflow selection\r\nMaps search patterns to specific workflow configurations based on\r\nkeyword matching, filter combinations, and performance data"
      },
      "RouterPatternDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "patternName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "patternKeywords": {
            "type": "string",
            "nullable": true
          },
          "filterCombinationJson": {
            "type": "string",
            "nullable": true
          },
          "workflowConfigurationId": {
            "type": "string",
            "format": "uuid"
          },
          "specificityScore": {
            "type": "integer",
            "format": "int32"
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "experimentEvidence": {
            "type": "string",
            "nullable": true
          },
          "usageCount": {
            "type": "integer",
            "format": "int64"
          },
          "lastUsedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "averageUserSatisfaction": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "metadataJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Router pattern DTO for API operations"
      },
      "RubricTemplateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "axes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EvaluationAxis"
            },
            "nullable": true
          },
          "scoringPrompt": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "llmModel": {
            "type": "string",
            "nullable": true
          },
          "temperature": {
            "type": "number",
            "format": "double"
          },
          "maxTokens": {
            "type": "integer",
            "format": "int32"
          },
          "metadataJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for rubric template creation and updates"
      },
      "RuleModificationRequest": {
        "type": "object",
        "properties": {
          "filterCode": {
            "type": "string",
            "nullable": true
          },
          "promptName": {
            "type": "string",
            "nullable": true
          },
          "promptId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "section": {
            "type": "string",
            "nullable": true
          },
          "orderIndex": {
            "type": "integer",
            "format": "int32"
          },
          "subOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "instructionText": {
            "type": "string",
            "nullable": true
          },
          "oldOrderIndex": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "oldSubOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "filterValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RuleStyleConfigInput": {
        "type": "object",
        "properties": {
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "isDefaultForRule": {
            "type": "boolean"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "keywordTransformationWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "domainGenerationWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RuleStyleWorkflowDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "ruleId": {
            "type": "string",
            "format": "uuid"
          },
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "styleName": {
            "type": "string",
            "nullable": true
          },
          "styleDisplayName": {
            "type": "string",
            "nullable": true
          },
          "styleIcon": {
            "type": "string",
            "nullable": true
          },
          "styleColor": {
            "type": "string",
            "nullable": true
          },
          "isDefaultForRule": {
            "type": "boolean"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "keywordTransformationWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "keywordTransformationWorkflowName": {
            "type": "string",
            "nullable": true
          },
          "domainGenerationWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "domainGenerationWorkflowName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveVersionRequest": {
        "type": "object",
        "properties": {
          "configJson": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ScoreMetricsDto": {
        "type": "object",
        "properties": {
          "memorability": {
            "$ref": "#/components/schemas/MetricDetailsDto"
          },
          "brandPotential": {
            "$ref": "#/components/schemas/MetricDetailsDto"
          },
          "extensionAvailability": {
            "$ref": "#/components/schemas/MetricDetailsDto"
          },
          "pronunciation": {
            "$ref": "#/components/schemas/MetricDetailsDto"
          },
          "marketReadiness": {
            "$ref": "#/components/schemas/MetricDetailsDto"
          }
        },
        "additionalProperties": false
      },
      "Search": {
        "type": "object",
        "properties": {
          "searchId": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "requestDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "keywordRelevance": {
            "type": "string",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          },
          "isVisitorSearch": {
            "type": "boolean"
          },
          "visitorId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "isTestSearch": {
            "type": "boolean",
            "description": "Marks searches created by workflow evaluation test suites.\r\nAllows dashboard filtering to show/hide test searches."
          },
          "evaluationRunId": {
            "type": "string",
            "description": "Links test searches back to their evaluation suite run.\r\nEnables dashboard grouping by suite and cherry-pick workflow.",
            "format": "uuid",
            "nullable": true
          },
          "campaignContextToken": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Campaign context token (e.g., \"local_services_plumbing\") from X-Campaign-Context header.\r\nTags the search with its vertical context for analytics and vertical inventory injection.",
            "nullable": true
          },
          "jsonFilters": {
            "$ref": "#/components/schemas/Filters"
          },
          "status": {
            "$ref": "#/components/schemas/SearchStatus"
          },
          "regenerationCount": {
            "type": "integer",
            "format": "int32"
          },
          "promptType": {
            "$ref": "#/components/schemas/SearchPrompt"
          },
          "promptName": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "parentSearchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isInternal": {
            "type": "boolean"
          },
          "searchType": {
            "$ref": "#/components/schemas/SearchType"
          },
          "pathwayName": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "synapseStyleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "generationMode": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "description": "Generation mode used for this search: \"standard\", \"morpheme\", or \"morpheme_enriched\"",
            "nullable": true
          },
          "morphemesJson": {
            "type": "string",
            "description": "JSON snapshot of morphemes used for this search (null for standard mode).\r\nContains morpheme list, source (generated/cache), and cache key.",
            "nullable": true
          },
          "inferredIndustry": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "inferredIndustryKeywords": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "appliedConstraintsJson": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "skippedConstraintsJson": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "constraintMatchedKeywordsJson": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "intentSearchTerm": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "description": "Enhanced search term from DomainIntentDiscovery.\r\nStored to ensure consistency across regenerations (LLM outputs can drift).\r\nUsed for domain generation while preserving user's original KeywordRelevance.",
            "nullable": true
          },
          "exactDomainCandidate": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "The exact domain candidate from the user's search (e.g., \"brightloop.com\").\r\nThis domain is ALWAYS included in results and protected from quality filtering.\r\nBuilt from: root + (user-specified TLD or \".com\" default)",
            "nullable": true
          },
          "parentSearch": {
            "$ref": "#/components/schemas/Search"
          },
          "pathwaySearches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Search"
            },
            "nullable": true
          },
          "synapseRuns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SynapseRun"
            },
            "nullable": true
          },
          "generationHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchGenerationHistory"
            },
            "nullable": true
          },
          "chatMessages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChatLog"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchCriteria": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "keywordFilter": {
            "type": "string",
            "nullable": true
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "includeArchived": {
            "type": "boolean"
          },
          "includeAll": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SearchGenerationHistory": {
        "required": [
          "createdAt",
          "keywordRelevance",
          "searchId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "keywordRelevance": {
            "minLength": 1,
            "type": "string"
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "regenerationAttempt": {
            "type": "integer",
            "format": "int32"
          },
          "search": {
            "$ref": "#/components/schemas/Search"
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Domain"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchInstruction": {
        "required": [
          "instructionText",
          "userId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "userId": {
            "minLength": 1,
            "type": "string"
          },
          "instructionText": {
            "minLength": 1,
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchInstructionApplication": {
        "required": [
          "instructionId",
          "searchId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "instructionId": {
            "type": "string",
            "format": "uuid"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "appliedAt": {
            "type": "string",
            "format": "date-time"
          },
          "search": {
            "$ref": "#/components/schemas/Search"
          },
          "instruction": {
            "$ref": "#/components/schemas/SearchInstruction"
          }
        },
        "additionalProperties": false
      },
      "SearchPhrase": {
        "required": [
          "createdBy",
          "phrase",
          "phraseFamily",
          "source"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "setId": {
            "type": "integer",
            "format": "int32"
          },
          "phrase": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "category": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "phraseFamily": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "rationale": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "source": {
            "maxLength": 20,
            "minLength": 1,
            "type": "string"
          },
          "usageCount": {
            "type": "integer",
            "format": "int32"
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "set": {
            "$ref": "#/components/schemas/SearchPhraseSet"
          }
        },
        "additionalProperties": false
      },
      "SearchPhraseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "phrase": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "phraseFamily": {
            "type": "string",
            "nullable": true
          },
          "rationale": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "usageCount": {
            "type": "integer",
            "format": "int32"
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "SearchPhraseSet": {
        "required": [
          "createdBy",
          "industry",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "industry": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "guidance": {
            "maxLength": 4000,
            "type": "string",
            "nullable": true
          },
          "targetCount": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "usageCount": {
            "type": "integer",
            "format": "int32"
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "lastUsedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "searchPhrases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchPhrase"
            },
            "nullable": true
          },
          "usages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchPhraseSetUsage"
            },
            "nullable": true
          },
          "extensions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchPhraseSetExtension"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchPhraseSetDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "guidance": {
            "type": "string",
            "nullable": true
          },
          "targetCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentCount": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "searchPhrases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchPhraseDto"
            },
            "nullable": true
          },
          "recentUsage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchPhraseSetUsageDto"
            },
            "nullable": true
          },
          "extensions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchPhraseSetExtensionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchPhraseSetDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "guidance": {
            "type": "string",
            "nullable": true
          },
          "phraseCount": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "usageCount": {
            "type": "integer",
            "format": "int32"
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "lastUsedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "SearchPhraseSetDtoPagedResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchPhraseSetDto"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SearchPhraseSetExtension": {
        "required": [
          "extendedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "setId": {
            "type": "integer",
            "format": "int32"
          },
          "addedCount": {
            "type": "integer",
            "format": "int32"
          },
          "guidance": {
            "maxLength": 4000,
            "type": "string",
            "nullable": true
          },
          "addedPhrasesJson": {
            "type": "string",
            "nullable": true
          },
          "extendedAt": {
            "type": "string",
            "format": "date-time"
          },
          "extendedBy": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "set": {
            "$ref": "#/components/schemas/SearchPhraseSet"
          }
        },
        "additionalProperties": false
      },
      "SearchPhraseSetExtensionDto": {
        "type": "object",
        "properties": {
          "extendedAt": {
            "type": "string",
            "format": "date-time"
          },
          "addedCount": {
            "type": "integer",
            "format": "int32"
          },
          "guidance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchPhraseSetUsage": {
        "required": [
          "experimentId",
          "usedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "setId": {
            "type": "integer",
            "format": "int32"
          },
          "experimentId": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "workflowId": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "phrasesUsed": {
            "type": "integer",
            "format": "int32"
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "usedAt": {
            "type": "string",
            "format": "date-time"
          },
          "usedBy": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "metricsJson": {
            "type": "string",
            "nullable": true
          },
          "set": {
            "$ref": "#/components/schemas/SearchPhraseSet"
          }
        },
        "additionalProperties": false
      },
      "SearchPhraseSetUsageDto": {
        "type": "object",
        "properties": {
          "experimentId": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "nullable": true
          },
          "usedAt": {
            "type": "string",
            "format": "date-time"
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "phrasesUsed": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SearchPrompt": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "SearchRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "keywordRelevance": {
            "type": "string",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          },
          "searchPrompt": {
            "$ref": "#/components/schemas/SearchPrompt"
          },
          "promptName": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "enableStreaming": {
            "type": "boolean"
          },
          "experimentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "overrideWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchRequestModel": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Email of the user (optional for visitor searches)",
            "nullable": true
          },
          "keywordRelevance": {
            "type": "string",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/SearchStatus"
          },
          "promptType": {
            "$ref": "#/components/schemas/SearchPrompt"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "enableStreaming": {
            "type": "boolean"
          },
          "testMode": {
            "type": "boolean",
            "description": "Enable test mode: skips WHOIS/DNS checks and limits GetMoreDomainSuggestions runs to 0"
          },
          "enableSynapse": {
            "type": "boolean",
            "description": "Enable Synapse: activates Synapse pathways for this search before returning searchId"
          },
          "isVisitorSearch": {
            "type": "boolean",
            "description": "Marks this search as being created by a visitor (unauthenticated user)"
          },
          "visitorId": {
            "type": "string",
            "description": "Unique identifier for the visitor (from localStorage or generated ID)",
            "nullable": true
          },
          "browserFingerprint": {
            "type": "string",
            "description": "Browser fingerprint for fingerprint-first lookup (handles localStorage clearing)",
            "nullable": true
          },
          "synapseTierId": {
            "type": "string",
            "description": "Optional Synapse Tier ID: allows visitors to specify which tier's pathways to use\r\nIf not provided, the default tier will be used",
            "format": "uuid",
            "nullable": true
          },
          "generationMode": {
            "type": "string",
            "description": "Optional generation mode override: \"standard\", \"morpheme\", or \"morpheme_enriched\".\r\nIf null, resolved from vertical config or global defaults.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchResultInfo": {
        "type": "object",
        "properties": {
          "freeSearchesLeft": {
            "type": "integer",
            "format": "int32"
          },
          "totalSearchesExecuted": {
            "type": "integer",
            "format": "int32"
          },
          "totalSearchesAllocated": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SearchStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ],
        "type": "integer",
        "format": "int32"
      },
      "SearchSuggestion": {
        "required": [
          "originalDescription",
          "originalFiltersJson",
          "payloadJson",
          "style"
        ],
        "type": "object",
        "properties": {
          "suggestionId": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "search": {
            "$ref": "#/components/schemas/Search"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "visitorId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "style": {
            "$ref": "#/components/schemas/SuggestionStyle"
          },
          "originalDescription": {
            "minLength": 1,
            "type": "string"
          },
          "originalFiltersJson": {
            "minLength": 1,
            "type": "string"
          },
          "regenerationAttempt": {
            "type": "integer",
            "format": "int32"
          },
          "payloadJson": {
            "minLength": 1,
            "type": "string"
          },
          "isAccepted": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "acceptedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchSuggestionDto": {
        "type": "object",
        "properties": {
          "originalDescription": {
            "type": "string",
            "nullable": true
          },
          "originalFiltersJson": {
            "type": "string",
            "nullable": true
          },
          "payloadJson": {
            "type": "string",
            "nullable": true
          },
          "style": {
            "$ref": "#/components/schemas/SuggestionStyle"
          }
        },
        "additionalProperties": false
      },
      "SearchSuggestionRequest": {
        "required": [
          "email",
          "keywords"
        ],
        "type": "object",
        "properties": {
          "email": {
            "minLength": 1,
            "type": "string",
            "description": "User email for personalized suggestions",
            "format": "email"
          },
          "keywords": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string",
            "description": "Original search keywords to be refined"
          },
          "filtersJson": {
            "type": "string",
            "description": "JSON string of current search filters",
            "nullable": true
          },
          "style": {
            "maxLength": 20,
            "minLength": 0,
            "type": "string",
            "description": "Suggestion style preference (default, professional, creative, technical, brandable)",
            "nullable": true
          },
          "searchId": {
            "type": "string",
            "description": "Optional search ID for context-aware suggestions",
            "format": "uuid",
            "nullable": true
          },
          "useSuggestionAgents": {
            "type": "boolean",
            "description": "Flag to enable agent-based suggestions instead of legacy LLM workflow\r\nWhen true, routes to specialized suggestion agents for enhanced recommendations"
          },
          "workflowId": {
            "type": "string",
            "description": "Optional workflow ID to target specific suggestion workflows",
            "format": "uuid",
            "nullable": true
          },
          "includeFilterSuggestions": {
            "type": "boolean",
            "description": "Request both keyword and filter suggestions"
          },
          "maxKeywordSuggestions": {
            "maximum": 20,
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of keyword suggestions to return",
            "format": "int32"
          },
          "maxFilterSuggestions": {
            "maximum": 10,
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of filter recommendations to return",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request model for search suggestions with agent-based enhancement options"
      },
      "SearchSuggestionResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Success status of the suggestion request"
          },
          "errorMessage": {
            "type": "string",
            "description": "Error message if suggestion failed",
            "nullable": true
          },
          "refinedKeywords": {
            "type": "string",
            "description": "Primary refined keywords suggestion",
            "nullable": true
          },
          "alternativeKeywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Alternative keyword suggestions",
            "nullable": true
          },
          "filterRecommendations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FilterRecommendation"
            },
            "description": "Enhanced filter recommendations with reasons",
            "nullable": true
          },
          "updatedFiltersJson": {
            "type": "string",
            "description": "Updated filters JSON incorporating recommendations",
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "description": "Confidence score for the suggestions (0.0-1.0)",
            "format": "double"
          },
          "source": {
            "type": "string",
            "description": "Source of suggestions (agent-based or legacy)",
            "nullable": true
          },
          "agentKey": {
            "type": "string",
            "description": "Agent key used for suggestion generation (if agent-based)",
            "nullable": true
          },
          "metadata": {
            "$ref": "#/components/schemas/SuggestionMetadata"
          },
          "generatedAt": {
            "type": "string",
            "description": "Timestamp when suggestions were generated",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Enhanced response model for search suggestions with agent-based recommendations"
      },
      "SearchTokenUsageSummary": {
        "required": [
          "email",
          "searchId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "totalInputTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalOutputTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "totalEstimatedCostUSD": {
            "type": "number",
            "description": "Total estimated cost for all LLM calls in this search",
            "format": "double"
          },
          "domainGenerationTokens": {
            "type": "integer",
            "format": "int32"
          },
          "synapseTokens": {
            "type": "integer",
            "format": "int32"
          },
          "suggestionTokens": {
            "type": "integer",
            "format": "int32"
          },
          "industryInferenceTokens": {
            "type": "integer",
            "format": "int32"
          },
          "otherTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalLLMCalls": {
            "type": "integer",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastUpdatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "search": {
            "$ref": "#/components/schemas/Search"
          }
        },
        "additionalProperties": false,
        "description": "Aggregated token usage summary per search (for quick lookups and dashboards)"
      },
      "SearchType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "SearchVariantsRequest": {
        "type": "object",
        "properties": {
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchWithDomainCountDto": {
        "type": "object",
        "properties": {
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "requestDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "keywordRelevance": {
            "type": "string",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/SearchStatus"
          },
          "promptType": {
            "$ref": "#/components/schemas/SearchPrompt"
          },
          "domainCount": {
            "type": "integer",
            "format": "int32"
          },
          "regenerationCount": {
            "type": "integer",
            "format": "int32"
          },
          "searchPrompt": {
            "$ref": "#/components/schemas/SearchPrompt"
          },
          "availableDomains": {
            "type": "integer",
            "format": "int32"
          },
          "likedDomainsCount": {
            "type": "integer",
            "format": "int32"
          },
          "likedDomains": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "searchDurationSec": {
            "type": "number",
            "format": "double"
          },
          "topDomains": {
            "type": "array",
            "items": { },
            "nullable": true
          },
          "hasPremium": {
            "type": "boolean"
          },
          "averageStrength": {
            "type": "number",
            "format": "double"
          },
          "averageRelevance": {
            "type": "number",
            "format": "double"
          },
          "averageSoundQuality": {
            "type": "number",
            "format": "double"
          },
          "averageMemory": {
            "type": "number",
            "format": "double"
          },
          "averageQuickScore": {
            "type": "number",
            "format": "double"
          },
          "premiumDomainsCount": {
            "type": "integer",
            "format": "int32"
          },
          "topCategories": {
            "type": "string",
            "nullable": true
          },
          "summaryLastUpdated": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "visitorId": {
            "type": "string",
            "nullable": true
          },
          "isVisitorSearch": {
            "type": "boolean"
          },
          "parentSearchId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "pathwayName": {
            "type": "string",
            "nullable": true
          },
          "synapseStyleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "searchType": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "activeSynapseRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "latestSynapseStatus": {
            "$ref": "#/components/schemas/SynapseRunStatus"
          },
          "hasActiveSynapse": {
            "type": "boolean",
            "readOnly": true
          },
          "evaluationRunId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchWithDomainCountDtoPagedResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchWithDomainCountDto"
            },
            "nullable": true
          },
          "totalRecords": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "currentPage": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalNewRecords": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SegmentConfig": {
        "type": "object",
        "properties": {
          "segmentKey": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "description": "Priority order (lower = higher priority, processed first).",
            "format": "int32"
          },
          "enabled": {
            "type": "boolean"
          },
          "maxResults": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string",
            "description": "User-facing label (null for Universal fallback).",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "User-facing micro-copy description.",
            "nullable": true
          },
          "percentileCutoff": {
            "$ref": "#/components/schemas/PercentileCutoffConfig"
          },
          "sortBy": {
            "$ref": "#/components/schemas/SortByConfig"
          },
          "eligibility": {
            "$ref": "#/components/schemas/EligibilityConfig"
          }
        },
        "additionalProperties": false,
        "description": "Configuration for a single segment."
      },
      "SegmentationPolicyDto": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "defaultStyleKey": {
            "type": "string",
            "nullable": true
          },
          "fallbackSegment": {
            "type": "string",
            "nullable": true
          },
          "preservePathwaySegments": {
            "type": "boolean",
            "description": "When true, pathways precompute segment assignments on completion and\r\nparent search respects those pre-assigned segments.\r\nWhen false, segmentation is computed on-demand for all domains.\r\nDefault: true (ON)"
          },
          "qualityFloor": {
            "$ref": "#/components/schemas/QualityFloorConfig"
          },
          "segments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SegmentConfig"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Deserialized policy structure from SegmentationPolicy.PolicyJson."
      },
      "SetFeatureFlagRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Severity": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "SharedOperationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "operationKey": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/OperationType"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "configurationSchema": {
            "type": "string",
            "nullable": true
          },
          "outputSchema": {
            "type": "string",
            "nullable": true
          },
          "defaultConfiguration": {
            "type": "string",
            "nullable": true
          },
          "requiresInput": {
            "type": "boolean"
          },
          "producesOutput": {
            "type": "boolean"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SignalDefinition": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "description": "Domain field to evaluate.\r\nSupports: length, tokenCount, pronunciationScore, semanticScore,\r\naiScore.relevance, aiScore.memorability, aiScore.soundClarity,\r\nstrengthIndicator, isRegistered, categories",
            "nullable": true
          },
          "operator": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "description": "Threshold value for comparison.\r\nCan be number, boolean, or string (for contains checks).",
            "nullable": true
          },
          "label": {
            "type": "string",
            "description": "User-facing label displayed as the signal chip.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Optional description for admin UI.",
            "nullable": true
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether this signal is enabled."
          }
        },
        "additionalProperties": false,
        "description": "Definition of a single signal."
      },
      "SignalDisplayConfigDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "contexts": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ContextSettings"
            },
            "description": "Context-specific settings (desktop, mobile, etc.).",
            "nullable": true
          },
          "signals": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/SignalDefinition"
            },
            "description": "Signal definitions keyed by signal ID.",
            "nullable": true
          },
          "segmentPriority": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Priority ordering of signals per segment.\r\nKey: segment key, Value: ordered list of signal IDs.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Deserialized signal display configuration.\r\nControls presentation of domain \"signal chips\" for conversion optimization."
      },
      "SignalDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "minWorkflowThreshold": {
            "type": "number",
            "format": "double"
          },
          "defaultWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "keywordCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SignalKeywordDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "signalId": {
            "type": "string",
            "format": "uuid"
          },
          "categoryCode": {
            "type": "string",
            "nullable": true
          },
          "keyword": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SignalPreviewRequest": {
        "type": "object",
        "properties": {
          "domain": {
            "$ref": "#/components/schemas/DomainDetailsDto"
          },
          "segmentKey": {
            "type": "string",
            "nullable": true
          },
          "context": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SkippedConstraint": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "inferredIndustry": {
            "type": "string",
            "nullable": true
          },
          "allowedIndustries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SnapshotComparisonResponse": {
        "type": "object",
        "properties": {
          "fromSnapshot": {
            "$ref": "#/components/schemas/SnapshotResponse"
          },
          "toSnapshot": {
            "$ref": "#/components/schemas/SnapshotResponse"
          },
          "patternChanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatternChange"
            },
            "nullable": true
          },
          "configurationChanges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConfigurationChange"
            },
            "nullable": true
          },
          "comparedAt": {
            "type": "string",
            "format": "date-time"
          },
          "summary": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response for snapshot comparison"
      },
      "SnapshotResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "isCurrent": {
            "type": "boolean"
          },
          "isAutomatic": {
            "type": "boolean"
          },
          "deploymentProposalId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "restoredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "restoredBy": {
            "type": "string",
            "nullable": true
          },
          "dataSizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "dataChecksum": {
            "type": "string",
            "nullable": true
          },
          "routerPatternsCount": {
            "type": "integer",
            "format": "int32"
          },
          "workflowConfigurationsCount": {
            "type": "integer",
            "format": "int32"
          },
          "canBeRestored": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Response containing snapshot details"
      },
      "SortByConfig": {
        "type": "object",
        "properties": {
          "primary": {
            "type": "string",
            "description": "Primary sort field: semantic_score or domain_strength.",
            "nullable": true
          },
          "direction": {
            "type": "string",
            "description": "Sort direction: asc or desc.",
            "nullable": true
          },
          "rationale": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Sort configuration for segment results."
      },
      "StandaloneSuggestionRequest": {
        "required": [
          "originalDescription"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "visitorId": {
            "type": "string",
            "nullable": true
          },
          "originalDescription": {
            "minLength": 1,
            "type": "string"
          },
          "originalFiltersJson": {
            "type": "string",
            "nullable": true
          },
          "style": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StandaloneSuggestionResponse": {
        "type": "object",
        "properties": {
          "suggestionId": {
            "type": "string",
            "format": "uuid"
          },
          "refinedPhrase": {
            "$ref": "#/components/schemas/RefinedSearchPhraseResponse"
          },
          "refinedFilters": {
            "$ref": "#/components/schemas/RefinedFiltersResponse"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "StartExecutionRequest": {
        "required": [
          "experimentId",
          "initiatedBy",
          "testSuiteId"
        ],
        "type": "object",
        "properties": {
          "experimentId": {
            "type": "string",
            "description": "ID of the experiment to run",
            "format": "uuid"
          },
          "testSuiteId": {
            "type": "string",
            "description": "ID of the test suite to execute",
            "format": "uuid"
          },
          "executionConfig": {
            "$ref": "#/components/schemas/ExecutionConfigurationDto"
          },
          "confirmHighCost": {
            "type": "boolean",
            "description": "Whether to automatically confirm execution even if cost is high"
          },
          "initiatedBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "User who initiated the execution"
          },
          "description": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "description": "Optional description for this execution run",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request to start a test suite execution"
      },
      "StartExecutionResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether the start was successful"
          },
          "runId": {
            "type": "string",
            "description": "The execution run ID for tracking",
            "format": "uuid",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Response message",
            "nullable": true
          },
          "estimatedCostUSD": {
            "type": "number",
            "description": "Estimated cost in USD",
            "format": "double"
          },
          "requiresCostConfirmation": {
            "type": "boolean",
            "description": "Whether cost confirmation is required"
          },
          "executionConfig": {
            "$ref": "#/components/schemas/ExecutionConfigurationDto"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Any warnings or additional information",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response from starting an execution"
      },
      "StatisticalComparisonDto": {
        "type": "object",
        "properties": {
          "pValue": {
            "type": "number",
            "description": "T-test p-value",
            "format": "double"
          },
          "effectSize": {
            "type": "number",
            "description": "Effect size (Cohen's d)",
            "format": "double"
          },
          "differenceConfidenceInterval": {
            "$ref": "#/components/schemas/DoubleDoubleValueTuple"
          },
          "isStatisticallySignificant": {
            "type": "boolean",
            "description": "Whether statistically significant"
          },
          "isPracticallySignificant": {
            "type": "boolean",
            "description": "Whether practically significant"
          },
          "practicalSignificanceThreshold": {
            "type": "number",
            "description": "Practical significance threshold",
            "format": "double"
          },
          "winner": {
            "$ref": "#/components/schemas/ArmDesignation"
          },
          "winnerConfidence": {
            "type": "number",
            "description": "Confidence in winner",
            "format": "double"
          },
          "testDetails": {
            "type": "string",
            "description": "Statistical test details",
            "nullable": true
          },
          "winnerArm": {
            "type": "string",
            "description": "Winner arm name",
            "nullable": true
          },
          "confidenceLevel": {
            "type": "number",
            "description": "Confidence level used",
            "format": "double"
          },
          "confidence": {
            "type": "number",
            "description": "Confidence value",
            "format": "double"
          },
          "summary": {
            "type": "string",
            "description": "Summary description",
            "nullable": true
          },
          "axisComparison": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "description": "Axis comparison scores",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Statistical comparison DTO"
      },
      "Style": {
        "required": [
          "displayName",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "displayName": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "color": {
            "maxLength": 7,
            "type": "string",
            "nullable": true
          },
          "icon": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "promptTemplate": {
            "maxLength": 5000,
            "type": "string",
            "nullable": true
          },
          "parameters": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          },
          "defaultWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "defaultModelId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tone": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "length": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "weights": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          },
          "filterValueId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "filterValue": {
            "$ref": "#/components/schemas/refFilterValue"
          }
        },
        "additionalProperties": false,
        "description": "First-class Style entity for managing domain generation styles"
      },
      "StyleAnalysis": {
        "type": "object",
        "properties": {
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "styleName": {
            "type": "string",
            "nullable": true
          },
          "usageCount": {
            "type": "integer",
            "format": "int32"
          },
          "averageQualityScore": {
            "type": "number",
            "format": "double"
          },
          "averageUserSatisfaction": {
            "type": "number",
            "format": "double"
          },
          "totalDomainsGenerated": {
            "type": "integer",
            "format": "int32"
          },
          "lastUsed": {
            "type": "string",
            "format": "date-time"
          },
          "topContexts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "performanceMetrics": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for style analysis"
      },
      "StyleConfigurationDto": {
        "type": "object",
        "properties": {
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "styleName": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "keywordTransformationWorkflow": {
            "$ref": "#/components/schemas/WorkflowAssignmentDto"
          },
          "domainGenerationWorkflow": {
            "$ref": "#/components/schemas/WorkflowAssignmentDto"
          }
        },
        "additionalProperties": false,
        "description": "DTO for style configuration including workflow assignments"
      },
      "StyleRecommendation": {
        "type": "object",
        "properties": {
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "styleName": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "format": "double"
          },
          "reasoning": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "parameters": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "expectedBenefits": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for style recommendations"
      },
      "StyleResultGroup": {
        "type": "object",
        "properties": {
          "style": {
            "type": "string",
            "nullable": true
          },
          "workflowResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowEvaluationResult"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StyleTestRequest": {
        "required": [
          "content"
        ],
        "type": "object",
        "properties": {
          "content": {
            "minLength": 1,
            "type": "string"
          },
          "context": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "parameters": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for style test requests"
      },
      "StyleTestResult": {
        "type": "object",
        "properties": {
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "styleName": {
            "type": "string",
            "nullable": true
          },
          "originalContent": {
            "type": "string",
            "nullable": true
          },
          "processedContent": {
            "type": "string",
            "nullable": true
          },
          "qualityScore": {
            "type": "number",
            "format": "double"
          },
          "processingTime": {
            "$ref": "#/components/schemas/TimeSpan"
          },
          "notes": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "metrics": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for style test results"
      },
      "StyleTraitsValue": {
        "type": "object",
        "properties": {
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "rationale": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Style traits list with rationale."
      },
      "SuccessfulPattern": {
        "type": "object",
        "properties": {
          "patternId": {
            "type": "string",
            "format": "uuid"
          },
          "patternName": {
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "type": "string",
            "nullable": true
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "usageCount": {
            "type": "integer",
            "format": "int64"
          },
          "averageUserSatisfaction": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lastUsed": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "expansionOpportunities": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Successful pattern DTO"
      },
      "SuccessfulPatternsResponse": {
        "type": "object",
        "properties": {
          "totalPatterns": {
            "type": "integer",
            "format": "int32"
          },
          "patterns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SuccessfulPattern"
            },
            "nullable": true
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Successful patterns response DTO"
      },
      "SuggestionMetadata": {
        "type": "object",
        "properties": {
          "executionTimeMs": {
            "type": "integer",
            "description": "Agent execution time in milliseconds",
            "format": "int64"
          },
          "tokensUsed": {
            "type": "integer",
            "description": "Number of tokens used for suggestion generation",
            "format": "int32"
          },
          "costUsd": {
            "type": "number",
            "description": "Cost in USD for suggestion generation",
            "format": "double"
          },
          "reasoning": {
            "type": "string",
            "description": "Detailed reasoning from the agent",
            "nullable": true
          },
          "alternativesConsidered": {
            "type": "integer",
            "description": "Number of alternative suggestions considered",
            "format": "int32"
          },
          "usedFallback": {
            "type": "boolean",
            "description": "Whether suggestions required fallback to legacy system"
          }
        },
        "additionalProperties": false,
        "description": "Additional metadata for suggestion context"
      },
      "SuggestionStyle": {
        "enum": [
          0
        ],
        "type": "integer",
        "format": "int32"
      },
      "SynapseActivationOptions": {
        "type": "object",
        "properties": {
          "styleIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Ad-hoc style selection for this search only.\r\nIf provided, overrides guided journey for visitors.\r\nAllows users to experiment without changing their saved settings.",
            "nullable": true
          },
          "userChangedDefaults": {
            "type": "boolean",
            "description": "Visitor-only: True if visitor interacted with style selector.\r\nUsed to determine whether to apply guided journey.\r\nIf true but no StyleIds provided, falls back to tier defaults."
          },
          "explorationAttemptNumber": {
            "type": "integer",
            "description": "Visitor-only: Exploration attempt number for guided journey.\r\n0 = initial search, 1+ = explore new angle attempts.\r\nUsed to look up the correct step in the signal-based ladder.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Options for Synapse activation, primarily used for visitor guided journey.\r\nPassed from frontend with regenerate/synapse activation requests."
      },
      "SynapseRun": {
        "required": [
          "parentSearchId"
        ],
        "type": "object",
        "properties": {
          "synapseRunId": {
            "type": "string",
            "format": "uuid"
          },
          "parentSearchId": {
            "type": "string",
            "format": "uuid"
          },
          "parentSearch": {
            "$ref": "#/components/schemas/Search"
          },
          "status": {
            "$ref": "#/components/schemas/SynapseRunStatus"
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "startedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "durationSeconds": {
            "type": "number",
            "description": "Total duration in seconds from start to completion",
            "format": "double",
            "nullable": true
          },
          "pathwayCount": {
            "type": "integer",
            "description": "Number of pathways in this run",
            "format": "int32"
          },
          "completedPathways": {
            "type": "integer",
            "description": "Number of pathways that have completed",
            "format": "int32",
            "nullable": true
          },
          "failedPathways": {
            "type": "integer",
            "description": "Number of pathways that failed",
            "format": "int32",
            "nullable": true
          },
          "totalDomainsAdded": {
            "type": "integer",
            "description": "Total number of domains added directly to parent from all pathways",
            "format": "int32",
            "nullable": true
          },
          "domainsAdded": {
            "type": "integer",
            "description": "Number of domains merged from pathways to parent (DEPRECATED - use TotalDomainsAdded)",
            "format": "int32"
          },
          "tierId": {
            "type": "string",
            "description": "Which tier was used for this Synapse run (nullable for backward compatibility)",
            "format": "uuid",
            "nullable": true
          },
          "tokensUsed": {
            "type": "integer",
            "description": "Total tokens consumed across all pathways in this run",
            "format": "int32",
            "nullable": true
          },
          "tokensPerPathway": {
            "maxLength": 2000,
            "type": "string",
            "description": "Track tokens per pathway as JSON: {\"pathway1\": 1500, \"pathway2\": 1200}",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Tracks individual Synapse execution runs for history and status monitoring"
      },
      "SynapseRunStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "SynapseStyleWorkflowDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "styleName": {
            "type": "string",
            "nullable": true
          },
          "operationName": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for style-workflow mapping"
      },
      "SynapseTierDto": {
        "type": "object",
        "properties": {
          "tierId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "maxPathways": {
            "type": "integer",
            "format": "int32"
          },
          "maxTokensPerPathway": {
            "type": "integer",
            "format": "int32"
          },
          "maxTotalTokens": {
            "type": "integer",
            "format": "int32"
          },
          "enableStyleOptimization": {
            "type": "boolean"
          },
          "enableParallelExecution": {
            "type": "boolean"
          },
          "maxConcurrentPathways": {
            "type": "integer",
            "format": "int32"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "isDefault": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          },
          "assignedWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "assignedWorkflowName": {
            "type": "string",
            "nullable": true
          },
          "defaultStyles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TierDefaultStyleDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for returning tier data to frontend"
      },
      "SynapseTierStyleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tierId": {
            "type": "string",
            "format": "uuid"
          },
          "tierName": {
            "type": "string",
            "nullable": true
          },
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "styleName": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "signalGuardrailsJson": {
            "type": "string",
            "description": "JSON dictionary of signal names to minimum confidence thresholds.\r\nExample: {\"Content\": 0.01, \"Institutional\": 0.05}",
            "nullable": true
          },
          "explicitN": {
            "type": "integer",
            "description": "Explicit {N} value for suggestion count (bypasses calculation).\r\nIf null, uses calculated N = PerSearchAvailableDomainsTarget * 6.",
            "format": "int32",
            "nullable": true
          },
          "perSearchAvailableDomainsTarget": {
            "type": "integer",
            "description": "Override for PerSearchAvailableDomainsTarget.\r\nIf null, uses visitor/plan tier default.",
            "format": "int32",
            "nullable": true
          },
          "perSearchMaxAttempts": {
            "type": "integer",
            "description": "Override for PerSearchMaxAttempts.\r\nIf null, uses visitor/plan tier default.",
            "format": "int32",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for returning tier-style configuration with guardrails and search overrides"
      },
      "SynapseTierWorkflowDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tierId": {
            "type": "string",
            "format": "uuid"
          },
          "tierName": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "assignedAt": {
            "type": "string",
            "format": "date-time"
          },
          "assignedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for tier-workflow mapping"
      },
      "SyncBindingItem": {
        "required": [
          "executionOrder"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Existing binding ID (null for new bindings)",
            "format": "uuid",
            "nullable": true
          },
          "operationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sharedOperationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "executionOrder": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "role": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "bindingConfiguration": {
            "type": "string",
            "nullable": true
          },
          "executionCondition": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "isRequired": {
            "type": "boolean"
          },
          "skipCondition": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Individual binding item for sync operation"
      },
      "SyncBindingsRequest": {
        "required": [
          "bindings"
        ],
        "type": "object",
        "properties": {
          "bindings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SyncBindingItem"
            }
          }
        },
        "additionalProperties": false,
        "description": "Request model for syncing all bindings (complete replacement)"
      },
      "TemplateMetadata": {
        "type": "object",
        "properties": {
          "templateType": {
            "type": "string",
            "nullable": true
          },
          "sourceWorkflowId": {
            "type": "string",
            "format": "uuid"
          },
          "sourceWorkflowName": {
            "type": "string",
            "nullable": true
          },
          "sourceCategoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sourceCategoryName": {
            "type": "string",
            "nullable": true
          },
          "exportedAt": {
            "type": "string",
            "format": "date-time"
          },
          "exportContext": {
            "$ref": "#/components/schemas/ExportContext"
          }
        },
        "additionalProperties": false
      },
      "TermType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "TerminatePlanRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestAgentRequest": {
        "required": [
          "input"
        ],
        "type": "object",
        "properties": {
          "input": { },
          "version": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "prodOnly": {
            "type": "boolean",
            "nullable": true
          },
          "validateInput": {
            "type": "boolean",
            "nullable": true
          },
          "validateOutput": {
            "type": "boolean",
            "nullable": true
          },
          "timeoutMs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestCase": {
        "required": [
          "approvalStatus",
          "createdAt",
          "createdBy",
          "keywords",
          "sourceType",
          "testSuiteId",
          "testType"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the test case",
            "format": "uuid"
          },
          "testSuiteId": {
            "type": "string",
            "description": "ID of the test suite this case belongs to",
            "format": "uuid"
          },
          "keywords": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Keywords to be tested"
          },
          "filtersJson": {
            "type": "string",
            "description": "JSON representation of filters to apply during testing",
            "nullable": true
          },
          "workflowConfigurationId": {
            "type": "string",
            "description": "ID of the workflow configuration to use for this test",
            "format": "uuid",
            "nullable": true
          },
          "isGoldenKeyword": {
            "type": "boolean",
            "description": "Whether this is a golden keyword test case"
          },
          "baselineScore": {
            "type": "number",
            "description": "Baseline score for golden keyword tests (expected performance benchmark)",
            "format": "double",
            "nullable": true
          },
          "goldenSource": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Source of the golden keyword (e.g., \"manual_review\", \"customer_feedback\", \"expert_analysis\")",
            "nullable": true
          },
          "minAcceptableScore": {
            "type": "number",
            "description": "Minimum acceptable score for this test case to pass",
            "format": "double",
            "nullable": true
          },
          "optimalFiltersJson": {
            "type": "string",
            "description": "JSON representation of optimal filters for this golden keyword",
            "nullable": true
          },
          "testType": {
            "$ref": "#/components/schemas/TestType"
          },
          "priority": {
            "maximum": 10,
            "minimum": 1,
            "type": "integer",
            "description": "Priority level for test execution (1 = highest, 10 = lowest)",
            "format": "int32"
          },
          "orderIndex": {
            "type": "integer",
            "description": "Order index for test execution within the suite",
            "format": "int32"
          },
          "expectedBehaviorJson": {
            "type": "string",
            "description": "JSON representation of expected behavior for this test case",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "When this test case was created",
            "format": "date-time"
          },
          "createdBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Who created this test case"
          },
          "approvalStatus": {
            "$ref": "#/components/schemas/TestCaseApprovalStatus"
          },
          "approvedBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Who approved or rejected this test case",
            "nullable": true
          },
          "approvedAt": {
            "type": "string",
            "description": "When this test case was approved or rejected",
            "format": "date-time",
            "nullable": true
          },
          "sourceType": {
            "$ref": "#/components/schemas/TestCaseSourceType"
          },
          "generatedByAgentKey": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Agent key that generated this test case (if SourceType is AgentGenerated)",
            "nullable": true
          },
          "testSuite": {
            "$ref": "#/components/schemas/TestSuite"
          },
          "workflowConfiguration": {
            "$ref": "#/components/schemas/WorkflowConfiguration"
          }
        },
        "additionalProperties": false,
        "description": "Test case entity supporting both regular and golden keyword test cases"
      },
      "TestCaseApprovalRequest": {
        "required": [
          "approvalStatus"
        ],
        "type": "object",
        "properties": {
          "approvalStatus": {
            "$ref": "#/components/schemas/TestCaseApprovalStatus"
          },
          "comments": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request model for test case approval"
      },
      "TestCaseApprovalResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "testCase": {
            "$ref": "#/components/schemas/TestCase"
          }
        },
        "additionalProperties": false,
        "description": "Response model for test case approval operations"
      },
      "TestCaseApprovalStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "Enum for test case approval status",
        "format": "int32"
      },
      "TestCaseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "testSuiteId": {
            "type": "string",
            "format": "uuid"
          },
          "keywords": {
            "type": "string",
            "nullable": true
          },
          "filtersJson": {
            "type": "string",
            "nullable": true
          },
          "workflowConfigurationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "testType": {
            "$ref": "#/components/schemas/TestType"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "orderIndex": {
            "type": "integer",
            "format": "int32"
          },
          "expectedBehaviorJson": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "isGoldenKeyword": {
            "type": "boolean"
          },
          "baselineScore": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "goldenSource": {
            "type": "string",
            "nullable": true
          },
          "minAcceptableScore": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "optimalFiltersJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for test case data transfer"
      },
      "TestCaseEvaluationDto": {
        "type": "object",
        "properties": {
          "testCaseId": {
            "type": "string",
            "description": "ID of the test case",
            "format": "uuid"
          },
          "keywords": {
            "type": "string",
            "description": "Keywords used in the test case",
            "nullable": true
          },
          "testType": {
            "$ref": "#/components/schemas/TestType"
          },
          "isGoldenKeyword": {
            "type": "boolean",
            "description": "Whether this is a golden keyword test"
          },
          "baselineScore": {
            "type": "number",
            "description": "Baseline score for golden keywords",
            "format": "double",
            "nullable": true
          },
          "armScores": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/EvaluationScoreDetailsDto"
            },
            "description": "Evaluation scores for each arm",
            "nullable": true
          },
          "winner": {
            "$ref": "#/components/schemas/ArmDesignation"
          },
          "confidence": {
            "type": "number",
            "description": "Confidence level in the winner determination",
            "format": "double",
            "nullable": true
          },
          "insights": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Key insights from this test case comparison",
            "nullable": true
          },
          "goldenKeywordPerformance": {
            "$ref": "#/components/schemas/GoldenKeywordPerformance"
          }
        },
        "additionalProperties": false,
        "description": "Test case evaluation DTO"
      },
      "TestCaseExecutionSummary": {
        "type": "object",
        "properties": {
          "testCaseId": {
            "type": "string",
            "description": "Test case ID",
            "format": "uuid"
          },
          "keywords": {
            "type": "string",
            "description": "Test case keywords",
            "nullable": true
          },
          "testType": {
            "$ref": "#/components/schemas/TestType"
          },
          "isGoldenKeyword": {
            "type": "boolean",
            "description": "Whether this is a golden keyword test"
          },
          "baselineScore": {
            "type": "number",
            "description": "Baseline score for golden keywords",
            "format": "double",
            "nullable": true
          },
          "armResults": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ExecutionResultDto"
            },
            "description": "Results for each arm (A, B, etc.)",
            "nullable": true
          },
          "allArmsSucceeded": {
            "type": "boolean",
            "description": "Whether execution was successful for all arms"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Any issues encountered during execution",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Summary of execution results for a single test case"
      },
      "TestCaseInput": {
        "required": [
          "filtersJson",
          "keywords"
        ],
        "type": "object",
        "properties": {
          "keywords": {
            "minLength": 1,
            "type": "string"
          },
          "filtersJson": {
            "minLength": 1,
            "type": "string"
          },
          "filtersDisplayName": {
            "type": "string",
            "nullable": true
          },
          "style": {
            "type": "string",
            "nullable": true
          },
          "phraseFamily": {
            "type": "string",
            "description": "Optional phrase family grouping label (e.g. \"Accounting\", \"Bookkeeping\").",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestCaseResultGroup": {
        "type": "object",
        "properties": {
          "testCase": {
            "$ref": "#/components/schemas/WorkflowEvaluationTestCase"
          },
          "operationGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationResultGroup"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestCaseSourceType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "Enum for test case source types",
        "format": "int32"
      },
      "TestClassifyRequest": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestConstraintsDto": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestCostAnalysisResponse": {
        "type": "object",
        "properties": {
          "testRunId": {
            "type": "string",
            "nullable": true
          },
          "totalCostUSD": {
            "type": "number",
            "format": "double"
          },
          "totalTokensUsed": {
            "type": "integer",
            "format": "int64"
          },
          "averageCostPerTest": {
            "type": "number",
            "format": "double"
          },
          "averageCostPerToken": {
            "type": "number",
            "format": "double"
          },
          "testCount": {
            "type": "integer",
            "format": "int32"
          },
          "modelCostBreakdown": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelCostBreakdown"
            },
            "nullable": true
          },
          "workflowCostBreakdown": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowCostBreakdown"
            },
            "nullable": true
          },
          "costProjection": {
            "$ref": "#/components/schemas/CostProjection"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TestExecutionHistoryResponse": {
        "type": "object",
        "properties": {
          "periodDays": {
            "type": "integer",
            "format": "int32"
          },
          "totalTestRuns": {
            "type": "integer",
            "format": "int32"
          },
          "totalExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "totalCostUSD": {
            "type": "number",
            "format": "double"
          },
          "averageSuccessRate": {
            "type": "number",
            "format": "double"
          },
          "dailyStats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DailyExecutionStats"
            },
            "nullable": true
          },
          "trendAnalysis": {
            "type": "string",
            "nullable": true
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TestExecutionSummaryResponse": {
        "type": "object",
        "properties": {
          "testRunId": {
            "type": "string",
            "nullable": true
          },
          "totalTests": {
            "type": "integer",
            "format": "int32"
          },
          "successfulTests": {
            "type": "integer",
            "format": "int32"
          },
          "failedTests": {
            "type": "integer",
            "format": "int32"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "averageDurationMs": {
            "type": "number",
            "format": "double"
          },
          "totalCostUSD": {
            "type": "number",
            "format": "double"
          },
          "averageTokensUsed": {
            "type": "number",
            "format": "double"
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          },
          "workflowPerformance": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowPerformance"
            },
            "nullable": true
          },
          "testResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestResult"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestResult": {
        "type": "object",
        "properties": {
          "testId": {
            "type": "string",
            "format": "uuid"
          },
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "isSuccessful": {
            "type": "boolean"
          },
          "modelUsed": {
            "type": "string",
            "nullable": true
          },
          "durationMs": {
            "type": "number",
            "format": "double"
          },
          "tokensUsed": {
            "type": "integer",
            "format": "int64"
          },
          "costUSD": {
            "type": "number",
            "format": "double"
          },
          "keywords": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestRunComparison": {
        "type": "object",
        "properties": {
          "testRunId": {
            "type": "string",
            "nullable": true
          },
          "executionCount": {
            "type": "integer",
            "format": "int32"
          },
          "successRate": {
            "type": "number",
            "format": "double"
          },
          "averageDurationMs": {
            "type": "number",
            "format": "double"
          },
          "totalCostUSD": {
            "type": "number",
            "format": "double"
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TestRunComparisonResponse": {
        "type": "object",
        "properties": {
          "testRuns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestRunComparison"
            },
            "nullable": true
          },
          "comparisonSummary": {
            "$ref": "#/components/schemas/ComparisonSummary"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TestSuite": {
        "required": [
          "createdAt",
          "createdBy",
          "name",
          "status",
          "testType",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the test suite",
            "format": "uuid"
          },
          "name": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Name of the test suite"
          },
          "description": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "description": "Description of the test suite purpose and scope",
            "nullable": true
          },
          "experimentId": {
            "type": "string",
            "description": "Optional ID of the experiment this test suite is associated with",
            "format": "uuid",
            "nullable": true
          },
          "testType": {
            "$ref": "#/components/schemas/TestType"
          },
          "configurationJson": {
            "type": "string",
            "description": "JSON configuration for test suite parameters and settings",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/TestSuiteStatus"
          },
          "createdAt": {
            "type": "string",
            "description": "When this test suite was created",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "description": "When this test suite was last updated",
            "format": "date-time"
          },
          "createdBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Who created this test suite"
          },
          "updatedBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "Who last updated this test suite",
            "nullable": true
          },
          "testCases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCase"
            },
            "description": "Collection of test cases in this suite",
            "nullable": true
          },
          "experiment": {
            "$ref": "#/components/schemas/Experiment"
          }
        },
        "additionalProperties": false,
        "description": "Test suite entity that groups test cases for organized testing"
      },
      "TestSuiteDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/TestSuiteStatus"
          },
          "experimentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "totalTestCases": {
            "type": "integer",
            "format": "int32"
          },
          "goldenKeywordCount": {
            "type": "integer",
            "format": "int32"
          },
          "generatedTestCount": {
            "type": "integer",
            "format": "int32"
          },
          "edgeCaseCount": {
            "type": "integer",
            "format": "int32"
          },
          "goldenKeywordPercentage": {
            "type": "number",
            "format": "double"
          },
          "testCases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCaseDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for test suite data transfer"
      },
      "TestSuiteOperationResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "validationErrors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "testSuite": {
            "$ref": "#/components/schemas/TestSuiteDto"
          },
          "testCases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCaseDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Result model for test suite operations"
      },
      "TestSuiteStatus": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "Enum for test suite status",
        "format": "int32"
      },
      "TestType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "Enum for test case types",
        "format": "int32"
      },
      "TestingPhase": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "ThresholdRuleSummary": {
        "type": "object",
        "properties": {
          "min": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "max": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ThresholdValue": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "format": "int32"
          },
          "rationale": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Integer threshold value with rationale."
      },
      "TierDefaultStyleDto": {
        "type": "object",
        "properties": {
          "styleId": {
            "type": "string",
            "format": "uuid"
          },
          "styleName": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "DTO for default style in tier response"
      },
      "TimeSpan": {
        "type": "object",
        "properties": {
          "ticks": {
            "type": "integer",
            "format": "int64"
          },
          "days": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "hours": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "milliseconds": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "microseconds": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "nanoseconds": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "minutes": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "seconds": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "totalDays": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalHours": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalMilliseconds": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalMicroseconds": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalNanoseconds": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalMinutes": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "totalSeconds": {
            "type": "number",
            "format": "double",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ToggleTrackingRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TokenUsageCategory": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ],
        "type": "integer",
        "description": "Category for grouping token usage by high-level operation type",
        "format": "int32"
      },
      "TopPerformerDto": {
        "type": "object",
        "properties": {
          "phrase": {
            "type": "string",
            "nullable": true
          },
          "performanceScore": {
            "type": "number",
            "format": "double"
          },
          "usageCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "TrafficConfigDto": {
        "required": [
          "arms"
        ],
        "type": "object",
        "properties": {
          "arms": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          },
          "freezeUntil": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isValid": {
            "type": "boolean",
            "description": "Validate that percentages sum to 100",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for traffic allocation configuration"
      },
      "TransferAvailabilityResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "transferableNow": {
            "type": "boolean",
            "description": "True when the domain can be transferred out today (no 60-day lock in effect)."
          },
          "withinSixtyDayWindow": {
            "type": "boolean",
            "description": "True when the domain is inside ICANN's 60-day post-registration window."
          },
          "registeredAt": {
            "type": "string",
            "description": "Registration date as recorded by the registrar (UTC). Null if unknown.",
            "format": "date-time",
            "nullable": true
          },
          "earliestTransferDate": {
            "type": "string",
            "description": "Earliest date a standard outbound transfer is possible (RegisteredAt + 60d). Null if unknown.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TransferDomainRequestDto": {
        "required": [
          "registrant",
          "storefrontDomainSlug"
        ],
        "type": "object",
        "properties": {
          "storefrontDomainSlug": {
            "maxLength": 300,
            "minLength": 0,
            "type": "string"
          },
          "registrant": {
            "$ref": "#/components/schemas/RegistrantInfoDto"
          },
          "paypalAuthorizationId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "paypalOrderId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "sessionId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "visitorId": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "offerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TransferResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "purchaseType": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "authCode": {
            "type": "string",
            "nullable": true
          },
          "transferId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "registeredDomainId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "userEmail": {
            "type": "string",
            "nullable": true
          },
          "authToken": {
            "type": "string",
            "nullable": true
          },
          "paymentCaptureWarning": {
            "type": "string",
            "nullable": true
          },
          "paypalTransactionId": {
            "type": "string",
            "nullable": true
          },
          "isConflict": {
            "type": "boolean"
          },
          "pendingTransferWindow": {
            "type": "boolean",
            "description": "True when the sale succeeded but the domain is inside ICANN's 60-day transfer lock,\r\n            so delivery is deferred. The buyer is emailed their options; the frontend shows a\r\n            \"delivery options emailed\" success state rather than an auth code."
          },
          "earliestTransferDate": {
            "type": "string",
            "description": "For FDBAccessAPI.Services.Registration.TransferResult.PendingTransferWindow: earliest date an outbound transfer is possible.",
            "format": "date-time",
            "nullable": true
          },
          "errorCode": {
            "type": "string",
            "description": "Machine-recognizable code for the deferred case, e.g. \"DOMAIN_TRANSFER_LOCK_60DAY\".",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TransferVerticalRequest": {
        "type": "object",
        "properties": {
          "targetContextToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TransitionRequest": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrimOverride": {
        "type": "object",
        "properties": {
          "whiteThreshold": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "paddingPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "maxDimension": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TwoShotExamplesData": {
        "type": "object",
        "properties": {
          "configurations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExemplarConfigurationData"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UncoveredPattern": {
        "type": "object",
        "properties": {
          "searchQuery": {
            "type": "string",
            "nullable": true
          },
          "filtersUsed": {
            "type": "string",
            "nullable": true
          },
          "frequency": {
            "type": "integer",
            "format": "int32"
          },
          "lastSeen": {
            "type": "string",
            "format": "date-time"
          },
          "suggestedRouting": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents an uncovered search pattern"
      },
      "UpdateAgentOperationBindingRequest": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sharedOperationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "executionOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "name": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "role": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "bindingConfiguration": {
            "type": "string",
            "nullable": true
          },
          "executionCondition": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "isRequired": {
            "type": "boolean",
            "nullable": true
          },
          "skipCondition": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request model for updating an existing binding"
      },
      "UpdateAgentRequest": {
        "type": "object",
        "properties": {
          "agentType": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "iconUrl": {
            "type": "string",
            "nullable": true
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "string",
            "nullable": true
          },
          "metadataJson": {
            "type": "string",
            "nullable": true
          },
          "inputSchema": {
            "type": "string",
            "nullable": true
          },
          "outputSchema": {
            "type": "string",
            "nullable": true
          },
          "isEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "isProd": {
            "type": "boolean",
            "nullable": true
          },
          "isCanary": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCampaignContextRequest": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "maxPoolSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "placeholderSetId": {
            "type": "integer",
            "description": "FK to SearchPhraseSets for rotating placeholder text.\r\nSet to 0 to clear.",
            "format": "int32",
            "nullable": true
          },
          "industryId": {
            "type": "string",
            "description": "FK to RefIndustries. Set to empty guid to clear.",
            "format": "uuid",
            "nullable": true
          },
          "storefrontCategory": {
            "type": "string",
            "nullable": true
          },
          "storefrontCategoryId": {
            "type": "string",
            "description": "FK to StorefrontCategories. Set to empty guid to clear.",
            "format": "uuid",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "navigationGroup": {
            "type": "string",
            "nullable": true
          },
          "storefrontSlug": {
            "type": "string",
            "nullable": true
          },
          "targetInventorySize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minInventoryThreshold": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "availabilityBufferPercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "availabilityCheckFrequencyHours": {
            "type": "integer",
            "description": "Set to 0 to clear (use global default).",
            "format": "int32",
            "nullable": true
          },
          "publicExposureCap": {
            "type": "integer",
            "description": "Set to 0 to clear (use global default).",
            "format": "int32",
            "nullable": true
          },
          "factoryEvaluationRunId": {
            "type": "string",
            "description": "FK to WorkflowEvaluationRun for factory runs. Set to empty guid to clear.",
            "format": "uuid",
            "nullable": true
          },
          "factoryExecutionConfigJson": {
            "type": "string",
            "description": "JSON config for factory execution. Set to empty string to clear.",
            "nullable": true
          },
          "editorialGuidanceJson": {
            "type": "string",
            "description": "JSON blob of editorial guidance variables. Set to empty string to clear.",
            "nullable": true
          },
          "editorialFamilyPolicyJson": {
            "type": "string",
            "description": "JSON blob for per-family editorial ranking policy. Set to empty string to clear.",
            "nullable": true
          },
          "keywordsJson": {
            "type": "string",
            "description": "JSON array of search keywords. Set to empty string to clear.",
            "nullable": true
          },
          "activatedAt": {
            "type": "string",
            "description": "Admin override for ActivatedAt. Set to DateTime.MinValue to clear.",
            "format": "date-time",
            "nullable": true
          },
          "homepageDisplayOrder": {
            "type": "integer",
            "description": "Display position on the public homepage's \"Browse by Industry\" surface.\r\nLower values render first. Set to 0 to clear (hide from homepage).",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCandidateRequest": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/FactoryRunCandidateStatus"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCategoryRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Request model for updating a category"
      },
      "UpdateConstraintGroupDto": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "constraintText": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "isFallback": {
            "type": "boolean",
            "nullable": true
          },
          "industryScope": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateContentRequest": {
        "type": "object",
        "properties": {
          "pageName": {
            "type": "string",
            "nullable": true
          },
          "keyName": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "contextToken": {
            "type": "string",
            "description": "Optional campaign context token for ctx-specific overrides.\r\nNULL = default/generic override.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request model for updating content strings"
      },
      "UpdateDashboardSettingsRequest": {
        "type": "object",
        "properties": {
          "displaySearchStyle": {
            "type": "boolean"
          },
          "displayDomainStyle": {
            "type": "boolean"
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateDisplayOrderRequest": {
        "type": "object",
        "properties": {
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UpdateDnsRecordRequestDto": {
        "required": [
          "content",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "maxLength": 10,
            "minLength": 0,
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "content": {
            "minLength": 1,
            "type": "string"
          },
          "ttl": {
            "maximum": 86400,
            "minimum": 60,
            "type": "integer",
            "format": "int32"
          },
          "priority": {
            "maximum": 65535,
            "minimum": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "proxied": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateDomainRegistrationCostRequest": {
        "type": "object",
        "properties": {
          "price": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateDomainRescueSettingsRequest": {
        "type": "object",
        "properties": {
          "isEnabled": {
            "type": "boolean"
          },
          "allowStructureQuota": {
            "type": "boolean"
          },
          "allowFamilySibling": {
            "type": "boolean"
          },
          "allowRankBelowThreshold": {
            "type": "boolean"
          },
          "rankBelowThresholdMinPronunciationScore": {
            "type": "integer",
            "format": "int32"
          },
          "rankBelowThresholdMinSemanticScore": {
            "type": "integer",
            "format": "int32"
          },
          "rankBelowThresholdMinStrengthScore": {
            "type": "integer",
            "format": "int32"
          },
          "rankBelowThresholdMaxRescuesPerSearch": {
            "type": "integer",
            "format": "int32"
          },
          "allowEditorialPick": {
            "type": "boolean"
          },
          "maxDomainLength": {
            "type": "integer",
            "format": "int32"
          },
          "rescueMinimumComposite": {
            "type": "integer",
            "format": "int32"
          },
          "descriptivenessThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request DTO for updating rescue settings"
      },
      "UpdateEvaluationRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "campaignContextId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "testCases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCaseInput"
            },
            "description": "Full replacement of test cases. If provided, existing test cases are deleted and replaced.\r\nIf null, test cases are left unchanged.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateExemplarRequest": {
        "required": [
          "examples"
        ],
        "type": "object",
        "properties": {
          "examples": {
            "minLength": 1,
            "type": "string"
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ExemplarStatus"
          },
          "performanceMetrics": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          },
          "keywordSignals": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateFreeSearchLimitRequest": {
        "type": "object",
        "properties": {
          "freeSearchLimit": {
            "type": "integer",
            "format": "int32"
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateKeywordDto": {
        "type": "object",
        "properties": {
          "weight": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateKeywordRequest": {
        "type": "object",
        "properties": {
          "categoryCode": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateLikeRequest": {
        "type": "object",
        "properties": {
          "isLiked": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateModelPricingRequest": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "inputPricePer1MTokens": {
            "type": "number",
            "format": "double"
          },
          "outputPricePer1MTokens": {
            "type": "number",
            "format": "double"
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateOperationDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePhraseCommand": {
        "required": [
          "phrase"
        ],
        "type": "object",
        "properties": {
          "phrase": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "phraseFamily": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "rationale": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePlanConfigurationRequest": {
        "type": "object",
        "properties": {
          "planCode": {
            "type": "string",
            "nullable": true
          },
          "planName": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "durationDays": {
            "type": "integer",
            "format": "int32"
          },
          "totalSearches": {
            "type": "integer",
            "format": "int32"
          },
          "maxRegenerations": {
            "type": "integer",
            "format": "int32"
          },
          "synapseTierId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "perSearchAvailableDomainsTarget": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "perSearchMaxAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdatePostValidationSettingsRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "jaccardDuplicateThreshold": {
            "type": "number",
            "format": "double"
          },
          "hybridJaccardMinimum": {
            "type": "number",
            "format": "double"
          },
          "cosineDuplicateThreshold": {
            "type": "number",
            "format": "double"
          },
          "editSimilarityThreshold": {
            "type": "number",
            "format": "double"
          },
          "pureCosineThreshold": {
            "type": "number",
            "format": "double"
          },
          "pureCosineMaxTokens": {
            "type": "integer",
            "format": "int32"
          },
          "repScoreAvailabilityWeight": {
            "type": "number",
            "format": "double"
          },
          "repScorePronunciationWeight": {
            "type": "number",
            "format": "double"
          },
          "repScoreSemanticWeight": {
            "type": "number",
            "format": "double"
          },
          "repScoreLengthPenaltyThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "repScoreLengthPenaltyPerChar": {
            "type": "number",
            "format": "double"
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePreValidationOptionsRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "minPronunciationScore": {
            "type": "integer",
            "format": "int32"
          },
          "minSemanticScore": {
            "type": "integer",
            "format": "int32"
          },
          "minCombinedScore": {
            "type": "integer",
            "format": "int32"
          },
          "enabledOperations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "maxQueueSize": {
            "type": "integer",
            "format": "int32"
          },
          "workerCount": {
            "type": "integer",
            "format": "int32"
          },
          "scoringTimeoutMs": {
            "type": "integer",
            "format": "int32"
          },
          "fallbackOnFailure": {
            "type": "boolean"
          },
          "useRelativeRanking": {
            "type": "boolean"
          },
          "rankingBufferSize": {
            "type": "integer",
            "format": "int32"
          },
          "releaseRatio": {
            "type": "number",
            "format": "double"
          },
          "minBufferForRanking": {
            "type": "integer",
            "format": "int32"
          },
          "pronunciationWeight": {
            "type": "number",
            "format": "double"
          },
          "strengthRelevanceWeight": {
            "type": "number",
            "format": "double"
          },
          "strengthMemorabilityWeight": {
            "type": "number",
            "format": "double"
          },
          "strengthSoundClarityWeight": {
            "type": "number",
            "format": "double"
          },
          "bufferStrengthWeight": {
            "type": "number",
            "format": "double"
          },
          "bufferPronunciationWeight": {
            "type": "number",
            "format": "double"
          },
          "bufferSemanticWeight": {
            "type": "number",
            "format": "double"
          },
          "editorialCurationEnabled": {
            "type": "boolean"
          },
          "scoringEngine": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request DTO for updating pre-validation settings"
      },
      "UpdatePricingRequest": {
        "type": "object",
        "properties": {
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PricingItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePruningSettingsRequest": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "phoneticCollapseEnabled": {
            "type": "boolean"
          },
          "prefixCollapseEnabled": {
            "type": "boolean"
          },
          "usePhoneticOverPrefix": {
            "type": "boolean"
          },
          "prefixLength": {
            "type": "integer",
            "format": "int32"
          },
          "scoreThresholdForPromotion": {
            "type": "integer",
            "format": "int32"
          },
          "structureDiversityEnabled": {
            "type": "boolean"
          },
          "maxPercentPerStructureType": {
            "type": "integer",
            "format": "int32"
          },
          "minimumOutputFloor": {
            "type": "integer",
            "format": "int32"
          },
          "targetOutputCount": {
            "type": "integer",
            "format": "int32"
          },
          "llmCurationEnabled": {
            "type": "boolean"
          },
          "llmCurationTargetCount": {
            "type": "integer",
            "format": "int32"
          },
          "llmCurationMinAvailableThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request DTO for updating pruning settings"
      },
      "UpdateRankingsRequest": {
        "type": "object",
        "properties": {
          "rankings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RankingItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateRuleRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "condition": {
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "styleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "operationName": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateRuleStylesRequest": {
        "type": "object",
        "properties": {
          "styles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RuleStyleConfigInput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSetCommand": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateSharedOperationRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "configurationSchema": {
            "type": "string",
            "nullable": true
          },
          "outputSchema": {
            "type": "string",
            "nullable": true
          },
          "defaultConfiguration": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSignalRequest": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "minWorkflowThreshold": {
            "type": "number",
            "format": "double"
          },
          "defaultWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateStatusRequest": {
        "type": "object",
        "properties": {
          "searchId": {
            "type": "string",
            "format": "uuid"
          },
          "newStatus": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UpdateStorefrontSettingsRequest": {
        "type": "object",
        "properties": {
          "defaultAskingPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "defaultFloorPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "autoAcceptPercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "autoRejectPercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "offerExpirationDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "defaultAvailabilityCheckHours": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "availabilityCheckBatchSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "availabilityCheckEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "logoGenerationEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "logoGenerationBatchSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "enrichmentEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "enrichmentBatchSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "candidateRankingEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "candidateRankingTopN": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "candidateRankingMinTopN": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "candidateRankingMaxTopN": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "candidateRankingAdmitPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "candidateRankingBatchSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "factoryAutoTriggerEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "factoryIntervalMinutes": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rateLimitRequestsPerMinute": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "paginationDepthMax": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minPageIntervalMs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "defaultPublicExposureCap": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sitemapBuildToken": {
            "type": "string",
            "nullable": true
          },
          "sitemapPublicRatePerMinute": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "crawlerDetectionVerticalCountPerMinute": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tier2BlockMinutes": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tier3BlockMinutes": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rotationEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "rotationAnchorPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rotationFeaturedCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "rotationRetentionDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateStyleRequest": {
        "type": "object",
        "properties": {
          "displayName": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "color": {
            "maxLength": 7,
            "type": "string",
            "nullable": true
          },
          "icon": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "promptTemplate": {
            "maxLength": 5000,
            "type": "string",
            "nullable": true
          },
          "parameters": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          },
          "defaultWorkflowId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "defaultModelId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tone": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "length": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "weights": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          },
          "filterValueId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for updating an existing style"
      },
      "UpdateStyleTraitsRequest": {
        "type": "object",
        "properties": {
          "qualifiesForBrandable": {
            "type": "boolean"
          },
          "qualifiesForDescriptive": {
            "type": "boolean"
          },
          "qualifiesForProfessional": {
            "type": "boolean"
          },
          "qualifiesForCreative": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateSynapseTierRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "maxPathways": {
            "maximum": 6,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "maxTokensPerPathway": {
            "maximum": 50000,
            "minimum": 1000,
            "type": "integer",
            "format": "int32"
          },
          "maxTotalTokens": {
            "maximum": 500000,
            "minimum": 1000,
            "type": "integer",
            "format": "int32"
          },
          "enableStyleOptimization": {
            "type": "boolean"
          },
          "enableParallelExecution": {
            "type": "boolean"
          },
          "maxConcurrentPathways": {
            "maximum": 6,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "isDefault": {
            "type": "boolean"
          },
          "defaultStyles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DefaultStyleInput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for updating an existing tier"
      },
      "UpdateSynapseTierStyleRequest": {
        "type": "object",
        "properties": {
          "signalGuardrailsJson": {
            "maxLength": 500,
            "type": "string",
            "description": "JSON dictionary of signal names to minimum confidence thresholds.\r\nSet to null to clear, set to empty \"{}\" to explicitly have no guardrails.\r\nExample: {\"Content\": 0.01, \"Institutional\": 0.05}",
            "nullable": true
          },
          "explicitN": {
            "maximum": 200,
            "minimum": 1,
            "type": "integer",
            "description": "Explicit {N} value for suggestion count (bypasses calculation).\r\nSet to null to use calculated value.",
            "format": "int32",
            "nullable": true
          },
          "perSearchAvailableDomainsTarget": {
            "maximum": 50,
            "minimum": 1,
            "type": "integer",
            "description": "Override for PerSearchAvailableDomainsTarget.\r\nSet to null to use tier/visitor default.",
            "format": "int32",
            "nullable": true
          },
          "perSearchMaxAttempts": {
            "maximum": 10,
            "minimum": 1,
            "type": "integer",
            "description": "Override for PerSearchMaxAttempts.\r\nSet to null to use tier/visitor default.",
            "format": "int32",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "description": "Execution priority (lower = executes first)",
            "format": "int32",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether this style is active for the tier",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for updating tier-style configuration (guardrails and search overrides)"
      },
      "UpdateTestSuiteStatusRequest": {
        "required": [
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/TestSuiteStatus"
          }
        },
        "additionalProperties": false,
        "description": "Request model for updating test suite status"
      },
      "UpdateUserRolesRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateUserSynapsePreferenceRequest": {
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "email": {
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "useSynapse": {
            "type": "boolean"
          },
          "selectedStyleIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "preferredTierId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for updating user preferences"
      },
      "UpdateVerticalDisplaySettingsRequest": {
        "type": "object",
        "properties": {
          "ctaMode": {
            "type": "string",
            "nullable": true
          },
          "featuredCount": {
            "type": "integer",
            "format": "int32"
          },
          "priceDisplayThreshold": {
            "type": "number",
            "format": "double"
          },
          "showWhyLink": {
            "type": "boolean"
          },
          "heroTitleOverride": {
            "type": "string",
            "nullable": true
          },
          "heroSubtitleOverride": {
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateVerticalDomainRequest": {
        "type": "object",
        "properties": {
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "isAvailable": {
            "type": "boolean",
            "nullable": true
          },
          "isOwnedAsset": {
            "type": "boolean",
            "nullable": true
          },
          "acquiredOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cloudflareRegistrarId": {
            "type": "string",
            "nullable": true
          },
          "askingPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "floorPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "editorialRank": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isStorefrontReady": {
            "type": "boolean",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "deactivatedReason": {
            "type": "string",
            "nullable": true
          },
          "detailPageStatus": {
            "type": "string",
            "nullable": true
          },
          "domainName": {
            "type": "string",
            "nullable": true
          },
          "sourcePhraseFamily": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateVisitorLimitsRequest": {
        "type": "object",
        "properties": {
          "searches": {
            "type": "integer",
            "format": "int32"
          },
          "regenerations": {
            "type": "integer",
            "format": "int32"
          },
          "enrichments": {
            "type": "integer",
            "format": "int32"
          },
          "synapseTierId": {
            "type": "string",
            "nullable": true
          },
          "durationDays": {
            "type": "integer",
            "format": "int32"
          },
          "perSearchAvailableDomainsTarget": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "perSearchMaxAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "enableMenuItemMyDashboard": {
            "type": "boolean"
          },
          "enableMenuItemNewSearch": {
            "type": "boolean"
          },
          "enableMenuItemSearchHistory": {
            "type": "boolean"
          },
          "myDashboardEnableNavigation": {
            "type": "boolean"
          },
          "myDashboardDisplayTopDomains": {
            "type": "boolean"
          },
          "enableSearchFilters": {
            "type": "boolean"
          },
          "enableSearchExport": {
            "type": "boolean"
          },
          "enableSearchDomainEnrichment": {
            "type": "boolean"
          },
          "enableSearchSuggestions": {
            "type": "boolean"
          },
          "updatedBy": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateWorkflowDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "productionMode": {
            "type": "boolean"
          },
          "isStableDefault": {
            "type": "boolean"
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          },
          "workflowOperations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateWorkflowOperationDto"
            },
            "nullable": true
          },
          "operationImplementations": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/OperationImplementation"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateWorkflowOperationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "operationId": {
            "type": "string",
            "format": "uuid"
          },
          "executionStyle": {
            "type": "integer",
            "format": "int32"
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          },
          "requiresHistory": {
            "type": "boolean"
          },
          "promptIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "llmModelId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "llmSettings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateWorkflowOperationLLMSettingDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateWorkflowOperationLLMSettingDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpsertStorefrontCategoryRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tier": {
            "type": "string",
            "description": "Tier: \"homepage\", \"secondary\", \"lower\", \"hidden\"",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserSynapsePreferenceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "userEmail": {
            "type": "string",
            "nullable": true
          },
          "useSynapse": {
            "type": "boolean"
          },
          "selectedStyleIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "preferredTierId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "preferredTierName": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "DTO for user Synapse preferences"
      },
      "UserTokenUsageSummary": {
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "totalInputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "totalOutputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int64",
            "readOnly": true
          },
          "totalEstimatedCostUSD": {
            "type": "number",
            "description": "Lifetime total estimated cost in USD",
            "format": "double"
          },
          "currentMonthInputTokens": {
            "type": "integer",
            "format": "int32"
          },
          "currentMonthOutputTokens": {
            "type": "integer",
            "format": "int32"
          },
          "currentMonthCostUSD": {
            "type": "number",
            "format": "double"
          },
          "monthStartDate": {
            "type": "string",
            "format": "date-time"
          },
          "totalSearches": {
            "type": "integer",
            "format": "int32"
          },
          "totalLLMCalls": {
            "type": "integer",
            "format": "int32"
          },
          "firstUsageAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastUsageAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastUpdatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Aggregated token usage per user (lifetime and monthly rollup)"
      },
      "ValidateWorkflowRequest": {
        "type": "object",
        "properties": {
          "workflow": {
            "$ref": "#/components/schemas/WorkflowDefinition"
          }
        },
        "additionalProperties": false
      },
      "ValidateWorkflowResponse": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "estimates": {
            "$ref": "#/components/schemas/PlannerEstimates"
          }
        },
        "additionalProperties": false
      },
      "ValidationResult": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "VariantDetailsDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "industry": {
            "type": "string",
            "nullable": true
          },
          "tone": {
            "type": "string",
            "nullable": true
          },
          "variantType": {
            "$ref": "#/components/schemas/VariantType"
          },
          "status": {
            "$ref": "#/components/schemas/ExemplarStatus"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "examples": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "performanceMetrics": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "keywordSignals": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VariantGenerationResult": {
        "type": "object",
        "properties": {
          "generatedVariantIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "variantCount": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VariantType": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "VerticalLogoConfigDraft": {
        "type": "object",
        "properties": {
          "registerTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "tones": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "iconShapeWeights": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            },
            "nullable": true
          },
          "stanceWeights": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            },
            "nullable": true
          },
          "genGuidance": {
            "type": "string",
            "nullable": true
          },
          "imageSize": {
            "type": "string",
            "nullable": true
          },
          "trim": {
            "$ref": "#/components/schemas/TrimOverride"
          }
        },
        "additionalProperties": false,
        "description": "Loose draft shape — mirrors VerticalLogoConfig but accepts\r\npartially-populated payloads from the editor."
      },
      "VisitorExplorationConfig": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Feature flag to enable/disable guided exploration"
          },
          "defaultExplorations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExplorationAttemptConfig"
            },
            "description": "Default explorations (used for Initial search, all signals)",
            "nullable": true
          },
          "signalExplorations": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExplorationAttemptConfig"
              }
            },
            "description": "Signal-specific exploration ladders.\r\nKey: Signal name (Institutional, Transactional, Brandable, Community, Content)\r\nValue: List of exploration configs for that signal",
            "nullable": true
          },
          "guardrails": {
            "$ref": "#/components/schemas/ExplorationGuardrails"
          },
          "fallbackToTierDefaults": {
            "type": "boolean",
            "description": "If true, falls back to tier defaults when attempt exceeds configured explorations"
          }
        },
        "additionalProperties": false,
        "description": "Configuration for guided visitor exploration experience with signal awareness.\r\nLoaded from GlobalSettings.VisitorExplorationGuidance JSON."
      },
      "VisitorIdRequest": {
        "type": "object",
        "properties": {
          "visitorId": {
            "type": "string",
            "nullable": true
          },
          "browserFingerprint": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VisitorSearchCriteria": {
        "type": "object",
        "properties": {
          "visitorId": {
            "type": "string",
            "nullable": true
          },
          "browserFingerprint": {
            "type": "string",
            "nullable": true
          },
          "keywordFilter": {
            "type": "string",
            "nullable": true
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "includeArchived": {
            "type": "boolean"
          },
          "includeAll": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WhatIfRequest": {
        "type": "object",
        "properties": {
          "contextToken": {
            "type": "string",
            "nullable": true
          },
          "thresholds": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ThresholdRuleSummary"
            },
            "description": "Custom thresholds to simulate.",
            "nullable": true
          },
          "searchSetNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only include candidates from these search phrase set names.",
            "nullable": true
          },
          "fromDate": {
            "type": "string",
            "description": "Only include candidates created after this date.",
            "format": "date-time",
            "nullable": true
          },
          "toDate": {
            "type": "string",
            "description": "Only include candidates created before this date.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Workflow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "productionMode": {
            "type": "boolean"
          },
          "isStableDefault": {
            "type": "boolean",
            "description": "Marks this workflow as the stable default for fallback scenarios.\r\nOnly one workflow per tenant/environment should have this flag set to true.\r\nThis workflow is used when pattern router is off/shadow or finds no matches."
          },
          "personaPrompt": {
            "maxLength": 2000,
            "type": "string",
            "description": "Custom persona prompt for this workflow. When specified, this overrides default system prompts.\r\nEnables agents to set custom AI behavior when creating workflows for experiments.",
            "nullable": true
          },
          "parentWorkflowId": {
            "type": "string",
            "description": "Reference to parent workflow for tracking workflow lineage (A/B testing, clones, variants)",
            "format": "uuid",
            "nullable": true
          },
          "sourceTemplateMetadata": {
            "type": "string",
            "description": "JSON metadata about the template source when workflow was imported from template",
            "nullable": true
          },
          "workflowLineageType": {
            "maxLength": 50,
            "type": "string",
            "description": "Type of workflow in the lineage hierarchy: 'Original', 'ABVariant', 'Clone'",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workflowCategory": {
            "$ref": "#/components/schemas/WorkflowCategory"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "lastModifiedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastModifiedBy": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isArchived": {
            "type": "boolean"
          },
          "archivedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "archiveReason": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "workflowOperations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowOperation"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowAnalysisResponse": {
        "type": "object",
        "properties": {
          "validation": {
            "$ref": "#/components/schemas/WorkflowValidationResult"
          },
          "costEstimate": {
            "$ref": "#/components/schemas/WorkflowCostEstimate"
          }
        },
        "additionalProperties": false
      },
      "WorkflowAssignmentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "DTO for workflow assignment within style configuration"
      },
      "WorkflowCategory": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Primary key",
            "format": "uuid"
          },
          "name": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string",
            "description": "Category name (required, max 50 characters, unique)"
          },
          "color": {
            "maxLength": 7,
            "type": "string",
            "description": "Color for UI display (hex color code)",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "description": "Sort order for display",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether the category is active/visible"
          },
          "workflows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Workflow"
            },
            "description": "Navigation property: Workflows using this category",
            "nullable": true
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Operation"
            },
            "description": "Navigation property: Operations using this category",
            "nullable": true
          },
          "prompts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Prompt"
            },
            "description": "Navigation property: Prompts using this category",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a category for organizing workflows, operations, and prompts"
      },
      "WorkflowCategoryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "WorkflowConfiguration": {
        "required": [
          "createdBy",
          "modelSelection",
          "name",
          "promptTemplateId",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string"
          },
          "description": {
            "maxLength": 1000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "promptTemplateId": {
            "type": "string",
            "format": "uuid"
          },
          "overrideRulesJson": {
            "type": "string",
            "description": "JSON array of filter override rule IDs",
            "nullable": true
          },
          "exemplarSetJson": {
            "type": "string",
            "description": "Optional two-shot examples in JSON format",
            "nullable": true
          },
          "operationImplementationsJson": {
            "type": "string",
            "description": "JSON mapping of operation names to their implementation strategies",
            "nullable": true
          },
          "modelSelection": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Model selection: \"gpt-4\", \"claude-3\", etc."
          },
          "version": {
            "type": "integer",
            "description": "Configuration version number",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/ConfigurationStatus"
          },
          "isDefault": {
            "type": "boolean",
            "description": "Whether this is the current production configuration"
          },
          "createdAt": {
            "type": "string",
            "description": "When this configuration was created",
            "format": "date-time"
          },
          "createdBy": {
            "maxLength": 200,
            "minLength": 0,
            "type": "string",
            "description": "User or system that created this configuration"
          },
          "parentConfigurationId": {
            "type": "string",
            "description": "Parent configuration ID for version tracking",
            "format": "uuid",
            "nullable": true
          },
          "operationImplementations": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/OperationImplementation"
            },
            "description": "Gets the operation implementations dictionary from JSON",
            "nullable": true
          },
          "workflow": {
            "$ref": "#/components/schemas/Workflow"
          },
          "promptTemplate": {
            "$ref": "#/components/schemas/Prompt"
          },
          "parentConfiguration": {
            "$ref": "#/components/schemas/WorkflowConfiguration"
          }
        },
        "additionalProperties": false,
        "description": "Versioned workflow configuration for experiments and production use"
      },
      "WorkflowConfigurationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Configuration ID",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "Configuration name",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Configuration description",
            "nullable": true
          },
          "workflowName": {
            "type": "string",
            "description": "Name of the associated workflow",
            "nullable": true
          },
          "promptTemplateName": {
            "type": "string",
            "description": "Name of the associated prompt template",
            "nullable": true
          },
          "modelSelection": {
            "type": "string",
            "description": "Model selection",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "description": "Configuration version",
            "format": "int32"
          },
          "status": {
            "type": "string",
            "description": "Status of the configuration",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean",
            "description": "Whether this is the default configuration"
          },
          "createdAt": {
            "type": "string",
            "description": "When this configuration was created",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "description": "Who created this configuration",
            "nullable": true
          },
          "parentConfigurationId": {
            "type": "string",
            "description": "Parent configuration ID (for cloned configurations)",
            "format": "uuid",
            "nullable": true
          },
          "overrideRulesJson": {
            "type": "string",
            "description": "Override rules in JSON format",
            "nullable": true
          },
          "exemplarSetJson": {
            "type": "string",
            "description": "Exemplar set in JSON format",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for returning workflow configuration information"
      },
      "WorkflowCostBreakdown": {
        "type": "object",
        "properties": {
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "executionCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalCost": {
            "type": "number",
            "format": "double"
          },
          "averageCost": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "WorkflowCostEstimate": {
        "type": "object",
        "properties": {
          "estimatedCostUsd": {
            "type": "number",
            "format": "double"
          },
          "estimatedDuration": {
            "$ref": "#/components/schemas/TimeSpan"
          },
          "estimatedTokens": {
            "type": "integer",
            "format": "int32"
          },
          "estimatedApiCalls": {
            "type": "integer",
            "format": "int32"
          },
          "costBreakdown": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Cost estimation for workflow execution"
      },
      "WorkflowCoverageDto": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "contextCoverage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContextCoverageDto"
            },
            "nullable": true
          },
          "totalCombinations": {
            "type": "integer",
            "format": "int32"
          },
          "coveredCombinations": {
            "type": "integer",
            "format": "int32"
          },
          "coveragePercentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "WorkflowDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "defaults": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowStepDefinition"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "productionMode": {
            "type": "boolean"
          },
          "isStableDefault": {
            "type": "boolean"
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "category": {
            "$ref": "#/components/schemas/WorkflowCategoryDto"
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "workflowOperations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowOperationDto"
            },
            "nullable": true
          },
          "operationImplementations": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/OperationImplementation"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowEvaluationReportDto": {
        "type": "object",
        "properties": {
          "run": {
            "$ref": "#/components/schemas/WorkflowEvaluationRun"
          },
          "testCaseGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestCaseResultGroup"
            },
            "nullable": true
          },
          "summary": {
            "$ref": "#/components/schemas/EvaluationSummary"
          }
        },
        "additionalProperties": false
      },
      "WorkflowEvaluationResult": {
        "required": [
          "operationName",
          "style",
          "workflowName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "evaluationRunId": {
            "type": "string",
            "format": "uuid"
          },
          "testCaseId": {
            "type": "string",
            "format": "uuid"
          },
          "operationName": {
            "minLength": 1,
            "type": "string"
          },
          "style": {
            "minLength": 1,
            "type": "string"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "workflowName": {
            "minLength": 1,
            "type": "string"
          },
          "searchId": {
            "type": "string",
            "description": "Optional reference to Search created during DomainGeneration operations.\r\nAllows direct navigation to search details and generated domains.",
            "format": "uuid",
            "nullable": true
          },
          "personaPromptUsed": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          },
          "personaPromptSource": {
            "type": "string",
            "nullable": true
          },
          "suggestionText": {
            "type": "string",
            "nullable": true
          },
          "relatedKeywordsJson": {
            "type": "string",
            "nullable": true
          },
          "filterChangesJson": {
            "type": "string",
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "format": "double"
          },
          "responseTime": {
            "$ref": "#/components/schemas/TimeSpan"
          },
          "isSuccess": {
            "type": "boolean"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "userRating": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "ratedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomainDetailsDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowEvaluationRun": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "campaignContextId": {
            "type": "string",
            "description": "Optional link to a campaign context / vertical.\r\nWhen set, this suite's golden keywords target a specific vertical.\r\nUsed for vertical domain inventory supply pipeline.",
            "format": "uuid",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/EvaluationStatus"
          },
          "testCaseCount": {
            "type": "integer",
            "format": "int32"
          },
          "completedCount": {
            "type": "integer",
            "format": "int32"
          },
          "operations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "testCases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowEvaluationTestCase"
            },
            "nullable": true
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowEvaluationResult"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowEvaluationTestCase": {
        "required": [
          "filtersDisplayName",
          "filtersJson",
          "keywords",
          "style"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "evaluationRunId": {
            "type": "string",
            "format": "uuid"
          },
          "keywords": {
            "minLength": 1,
            "type": "string"
          },
          "filtersJson": {
            "minLength": 1,
            "type": "string"
          },
          "filtersDisplayName": {
            "minLength": 1,
            "type": "string"
          },
          "style": {
            "minLength": 1,
            "type": "string"
          },
          "phraseFamily": {
            "maxLength": 200,
            "type": "string",
            "description": "Grouping label for editorial review (e.g. \"Accounting\", \"Bookkeeping\").\r\nCopied from SearchPhrase.PhraseFamily when test cases are created from a phrase set.",
            "nullable": true
          },
          "orderIndex": {
            "type": "integer",
            "format": "int32"
          },
          "exploitOrExplore": {
            "maxLength": 10,
            "type": "string",
            "description": "\"exploit\" or \"explore\" — from strategy agent output. Null for static test cases.",
            "nullable": true
          },
          "generatedBy": {
            "maxLength": 50,
            "type": "string",
            "description": "\"strategy-agent\" when generated by the Search Strategy Agent. Null for static test cases.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowDto"
            },
            "nullable": true
          },
          "availableCategories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowOperation": {
        "required": [
          "operationId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "workflowId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "operationId": {
            "type": "string",
            "format": "uuid"
          },
          "operation": {
            "$ref": "#/components/schemas/Operation"
          },
          "executionStyle": {
            "$ref": "#/components/schemas/ExecutionStyle"
          },
          "personaPrompt": {
            "maxLength": 2000,
            "type": "string",
            "description": "Optional persona prompt override for this specific workflow operation.\r\nWhen specified, this takes precedence over the workflow's PersonaPrompt.\r\nEnables fine-grained control of AI behavior at the operation level.",
            "nullable": true
          },
          "requiresHistory": {
            "type": "boolean"
          },
          "llmModelId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowOperationDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "operation": {
            "$ref": "#/components/schemas/Operation"
          },
          "executionStyle": {
            "$ref": "#/components/schemas/ExecutionStyle"
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          },
          "prompts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PromptDto"
            },
            "nullable": true
          },
          "requiresHistory": {
            "type": "boolean"
          },
          "llmModelId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "llmModelName": {
            "type": "string",
            "nullable": true
          },
          "llmSettings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowOperationLLMSettingDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowOperationLLMSettingDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowPerformance": {
        "type": "object",
        "properties": {
          "workflowName": {
            "type": "string",
            "nullable": true
          },
          "totalExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "successfulExecutions": {
            "type": "integer",
            "format": "int32"
          },
          "averageDurationMs": {
            "type": "number",
            "format": "double"
          },
          "totalCost": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "WorkflowSearchDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "mode": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "WorkflowSearchResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowSearchDto"
            },
            "nullable": true
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "availableCategories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowStepDefinition": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "templateKey": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "prompt": {
            "$ref": "#/components/schemas/PromptDefinition"
          },
          "model": {
            "type": "string",
            "nullable": true
          },
          "params": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "inputMap": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowTemplateData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "categoryName": {
            "type": "string",
            "nullable": true
          },
          "personaPrompt": {
            "type": "string",
            "nullable": true
          },
          "isStableDefault": {
            "type": "boolean"
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationTemplateData"
            },
            "nullable": true
          },
          "operationImplementations": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/OperationImplementation"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowTemplateExportData": {
        "type": "object",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/TemplateMetadata"
          },
          "workflow": {
            "$ref": "#/components/schemas/WorkflowTemplateData"
          },
          "twoShotExamples": {
            "$ref": "#/components/schemas/TwoShotExamplesData"
          }
        },
        "additionalProperties": false
      },
      "WorkflowTemplateExportResponse": {
        "type": "object",
        "properties": {
          "template": {
            "$ref": "#/components/schemas/WorkflowTemplateExportData"
          }
        },
        "additionalProperties": false
      },
      "WorkflowTemplateImportResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "createdWorkflowId": {
            "type": "string",
            "format": "uuid"
          },
          "importedExemplarCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdTestSuiteId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkflowValidationResult": {
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Result of workflow validation"
      },
      "refFilterType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ],
        "type": "integer",
        "format": "int32"
      },
      "refFilterValue": {
        "required": [
          "order",
          "value"
        ],
        "type": "object",
        "properties": {
          "valueId": {
            "type": "string",
            "format": "uuid"
          },
          "filterId": {
            "type": "string",
            "format": "uuid"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "valuePlaceHolder": {
            "type": "string",
            "nullable": true
          },
          "valueHexCode": {
            "type": "string",
            "nullable": true
          },
          "valueImage": {
            "type": "string",
            "nullable": true
          },
          "refPremiumFilter": {
            "$ref": "#/components/schemas/refPremiumFilter"
          }
        },
        "additionalProperties": false
      },
      "refFilterValueDto": {
        "type": "object",
        "properties": {
          "valueId": {
            "type": "string",
            "format": "uuid"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "valuePlaceHolder": {
            "type": "string",
            "nullable": true
          },
          "valueHexCode": {
            "type": "string",
            "nullable": true
          },
          "valueImage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "refPremiumFilter": {
        "required": [
          "filterCode",
          "filterColSpan",
          "filterName",
          "filterOrder",
          "filterType"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "filterCode": {
            "minLength": 1,
            "type": "string"
          },
          "filterName": {
            "minLength": 1,
            "type": "string"
          },
          "filterType": {
            "$ref": "#/components/schemas/refFilterType"
          },
          "filterOrder": {
            "type": "integer",
            "format": "int32"
          },
          "filterColSpan": {
            "type": "integer",
            "format": "int32"
          },
          "filterPlaceHolder": {
            "type": "string",
            "nullable": true
          },
          "filterHexCode": {
            "type": "string",
            "nullable": true
          },
          "filterImage": {
            "type": "string",
            "nullable": true
          },
          "isEditable": {
            "type": "boolean",
            "nullable": true
          },
          "refFilterValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/refFilterValue"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "refPremiumFilterDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "filterCode": {
            "type": "string",
            "nullable": true
          },
          "filterName": {
            "type": "string",
            "nullable": true
          },
          "filterType": {
            "$ref": "#/components/schemas/refFilterType"
          },
          "filterTypeText": {
            "type": "string",
            "nullable": true
          },
          "filterOrder": {
            "type": "integer",
            "format": "int32"
          },
          "filterColSpan": {
            "type": "integer",
            "format": "int32"
          },
          "filterPlaceHolder": {
            "type": "string",
            "nullable": true
          },
          "filterHexCode": {
            "type": "string",
            "nullable": true
          },
          "filterImage": {
            "type": "string",
            "nullable": true
          },
          "isEditable": {
            "type": "boolean",
            "nullable": true
          },
          "refFilterValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/refFilterValueDto"
            },
            "nullable": true
          },
          "filterInstructionTemplate": {
            "$ref": "#/components/schemas/FilterInstructionTemplate"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "description": "Basic Authentication header using the Client ID and Secret in 'clientId:clientSecret' format",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basic": [ ]
    }
  ]
}