{
  "x-generator": "NSwag v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0))",
  "openapi": "3.0.0",
  "info": {
    "title": "Text Agent API (Production)",
    "description": "REST API for Text Agent by Baytech: AI writing and publishing. Most endpoints require authentication — use the **Authorize** button to sign in via the OAuth2 authorization-code flow, then call protected endpoints with the issued bearer token.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.textagent.dev"
    }
  ],
  "paths": {
    "/api/AccountSecurity/overview": {
      "get": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_GetOverview",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountSecurityOverview"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/password-policy": {
      "get": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_GetPasswordPolicy",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasswordPolicyDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/password": {
      "post": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_ChangePassword",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeMyPasswordRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangePasswordResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/password/set": {
      "post": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_SetPassword",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetMyPasswordRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangePasswordResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/email": {
      "post": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_RequestEmailChange",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestEmailChangeRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailChangeRequested"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/email/confirm": {
      "post": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_ConfirmEmailChange",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmEmailChangeRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailChangeConfirmed"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/email/cancel": {
      "post": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_CancelEmailChange",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unit"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/email/resend-confirmation": {
      "post": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_ResendEmailConfirmation",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unit"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/email/confirm-current": {
      "post": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_ConfirmCurrentEmail",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmMyEmailRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailChangeConfirmed"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/sign-in-history/list": {
      "post": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_GetSignInHistory",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMySignInHistoryRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfMySignInHistoryItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccountSecurity/sessions/revoke-all": {
      "post": {
        "tags": [
          "AccountSecurity"
        ],
        "operationId": "AccountSecurity_SignOutEverywhere",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignOutEverywhereResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/providers": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetProviders",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiProviderListItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "put": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_UpdateProvider",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAiProviderRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiProviderListItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/providers/{providerId}/test": {
      "post": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_TestProvider",
        "parameters": [
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestAiProviderRequest"
              }
            }
          },
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestAiProviderResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/models": {
      "post": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_CreateModel",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAiModelRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiModelListItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/models/{aiModelId}": {
      "delete": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_DeleteModel",
        "parameters": [
          {
            "name": "aiModelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetModelDetail",
        "parameters": [
          {
            "name": "aiModelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelDetailResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/providers/{providerId}/available-models": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetAvailableModels",
        "parameters": [
          {
            "name": "providerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "ProviderId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          },
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 3
          },
          {
            "name": "Mode",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 4
          },
          {
            "name": "SupportsVision",
            "in": "query",
            "schema": {
              "type": "boolean",
              "nullable": true
            },
            "x-position": 5
          },
          {
            "name": "SupportsFunctionCalling",
            "in": "query",
            "schema": {
              "type": "boolean",
              "nullable": true
            },
            "x-position": 6
          },
          {
            "name": "EnabledOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "nullable": true
            },
            "x-position": 7
          },
          {
            "name": "SortBy",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 8
          },
          {
            "name": "SortDescending",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-position": 9
          },
          {
            "name": "Operation",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 10
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvailableModelItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/assignments": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetAssignments",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AiModelAssignmentItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "put": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_UpdateAssignment",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAiModelAssignmentRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiModelAssignmentItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/assignments/{operation}/apply-recommended": {
      "post": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_ApplyRecommended",
        "parameters": [
          {
            "name": "operation",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiModelAssignmentItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/assignments/apply-all-recommended": {
      "post": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_ApplyAllRecommended",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplyAllRecommendedResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/assignments/{operation}/select-model": {
      "post": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_SelectModel",
        "parameters": [
          {
            "name": "operation",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectModelForOperationRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiModelAssignmentItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/models/favorite": {
      "post": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_ToggleModelFavorite",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToggleModelFavoriteRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToggleModelFavoriteResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/models-overview": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetModelsOverview",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModelOverviewItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/models/{aiModelId}/reassign-operations": {
      "post": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_ReassignModelOperations",
        "parameters": [
          {
            "name": "aiModelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReassignModelOperationsRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReassignModelOperationsResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/operations/{operation}/prompt": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetOperationPrompt",
        "parameters": [
          {
            "name": "operation",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationPromptResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/dashboard": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetDashboard",
        "parameters": [
          {
            "name": "Range",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/AiDashboardRange"
            },
            "x-position": 1
          },
          {
            "name": "FromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "ToDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 3
          },
          {
            "name": "Providers",
            "in": "query",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "nullable": true,
              "items": {
                "type": "string"
              }
            },
            "x-position": 4
          },
          {
            "name": "Models",
            "in": "query",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "nullable": true,
              "items": {
                "type": "string"
              }
            },
            "x-position": 5
          },
          {
            "name": "Operations",
            "in": "query",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "nullable": true,
              "items": {
                "type": "string"
              }
            },
            "x-position": 6
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiDashboardData"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/usage-filter-options": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetUsageFilterOptions",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiDashboardFilterOptions"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/operations/{operation}/cost": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetOperationCost",
        "parameters": [
          {
            "name": "operation",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          },
          {
            "name": "range",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/AiDashboardRange"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationCostData"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/usage-logs": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetUsageLogs",
        "parameters": [
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "Operation",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "Provider",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 3
          },
          {
            "name": "ModelSlug",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 4
          },
          {
            "name": "FromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 5
          },
          {
            "name": "ToDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 6
          },
          {
            "name": "SortBy",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 7
          },
          {
            "name": "SortDescending",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-position": 8
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 9
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 10
          },
          {
            "name": "SkipCount",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 11
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageLogsResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/health": {
      "get": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_GetAiHealth",
        "parameters": [
          {
            "name": "operation",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiHealthData"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AiAdmin/refresh-pricing": {
      "post": {
        "tags": [
          "AiAdmin"
        ],
        "operationId": "AiAdmin_RefreshPricing",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefreshPricingResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/list": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetList",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetArticlesListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfArticleListItemDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/stats": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetStats",
        "parameters": [
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleStatsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/month": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetMonth",
        "parameters": [
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleMonthDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_Get",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_Delete",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/content": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetContent",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleContentDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/original-content": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetOriginalContent",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleOriginalContentDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/slug-check": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_CheckSlug",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "slug",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleSlugCheckDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/create": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_Create",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateArticleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles": {
      "put": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_Update",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateArticleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/preview": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_CreatePreview",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateArticlePreviewRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticlePreviewDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/research": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_StartResearch",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartArticleResearchRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleResearchDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetResearches",
        "parameters": [
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleResearchListDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/research/mine": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetMyResearches",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ArticleResearchListItemDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/research/{researchId}": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetResearch",
        "parameters": [
          {
            "name": "researchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleResearchDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/research/{researchId}/cancel": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_CancelResearch",
        "parameters": [
          {
            "name": "researchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleResearchDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/research/{researchId}/write": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_RetryResearchWrite",
        "parameters": [
          {
            "name": "researchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleResearchDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/publish": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_Publish",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishArticleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/sync": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_Sync",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncArticleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/sync-site": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_SyncSite",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncSiteArticlesRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteSyncStatusDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/sync-site/status": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetSiteSyncStatus",
        "parameters": [
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteSyncStatusDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/sync-site/cancel": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_CancelSiteSync",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelSiteSyncRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteSyncStatusDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/process": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_Process",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessArticleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/titles/regenerate": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_RegenerateTitles",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegeneratedTitlesDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/seo-rewrite": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_SuggestSeoRewrite",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestArticleSeoRewriteRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeoRewriteDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/links/check": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_CheckLinks",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckArticleLinksResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/broken-links": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetBrokenLinks",
        "parameters": [
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SiteBrokenLinkDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/broken-links/lookup": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_LookUpBrokenLinkFixes",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LookUpBrokenLinkFixesRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BrokenLinkLookupDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/broken-links/confirm-works": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_ConfirmLinkWorks",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmLinkWorksRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/links/fix": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_FixLinks",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FixArticleLinksRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FixArticleLinksResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/fix-site-seo": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_FixSiteSeo",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FixSiteSeoRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FixSiteSeoResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/images": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetImages",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ArticleImageDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/images/upload": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_UploadImage",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "format": "binary"
                  },
                  "Placement": {
                    "$ref": "#/components/schemas/ImagePlacement"
                  },
                  "Title": {
                    "type": "string",
                    "nullable": true
                  },
                  "Caption": {
                    "type": "string",
                    "nullable": true
                  },
                  "AltText": {
                    "type": "string",
                    "nullable": true
                  },
                  "FileName": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleImageDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/images/describe": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_DescribeImage",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "nullable": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageDescriptionDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/images": {
      "put": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_UpdateImage",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateArticleImageRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/images/{imageId}/regenerate": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_RegenerateImage",
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/images/insert": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_InsertImage",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InsertArticleImageRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/images/{imageId}/approve-words": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_ApproveImageWords",
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/images/{imageId}": {
      "delete": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_DeleteImage",
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/charts": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetCharts",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ArticleChartDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/charts/{chartId}": {
      "delete": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_DeleteChart",
        "parameters": [
          {
            "name": "chartId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/images/{imageId}/download": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_DownloadImage",
        "parameters": [
          {
            "name": "imageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/images/download": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_DownloadImages",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/videos": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetVideos",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ArticleVideoDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/videos/upload": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_UploadVideo",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "format": "binary"
                  },
                  "Title": {
                    "type": "string",
                    "nullable": true
                  },
                  "Slug": {
                    "type": "string",
                    "nullable": true
                  },
                  "Caption": {
                    "type": "string",
                    "nullable": true
                  },
                  "Description": {
                    "type": "string",
                    "nullable": true
                  },
                  "Category": {
                    "type": "string",
                    "nullable": true
                  },
                  "Tags": {
                    "type": "array",
                    "nullable": true,
                    "items": {
                      "type": "string"
                    }
                  },
                  "FileName": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/videos/generate-info": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GenerateVideoInfo",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoInfoDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/videos": {
      "put": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_UpdateVideo",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateArticleVideoRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/videos/insert": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_InsertVideo",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InsertArticleVideoRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/videos/{videoId}": {
      "delete": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_DeleteVideo",
        "parameters": [
          {
            "name": "videoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/videos/{videoId}/download": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_DownloadVideo",
        "parameters": [
          {
            "name": "videoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/videos/publish-youtube": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_PublishVideoToYouTube",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishVideoToYouTubeRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/video-tags": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_SearchVideoTags",
        "parameters": [
          {
            "name": "Query",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/explainer": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetExplainer",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleExplainerDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/research-report": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetResearchReport",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleResearchReportDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/explainer/script": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GenerateExplainerScript",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateArticleExplainerScriptRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleExplainerDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/explainer/make": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_MakeExplainer",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MakeArticleExplainerRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleExplainerDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/explainer/render": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_RenderExplainer",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenderArticleExplainerRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleExplainerDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/social-posts": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetSocialPosts",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleSocialPostsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/social-posts/suggest": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_SuggestSocialPost",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SuggestArticleSocialPostRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SocialPostSuggestionDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/social-posts": {
      "put": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_SaveSocialPost",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveArticleSocialPostRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/social-posts/share": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_ShareSocialPost",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareArticleSocialPostRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SocialShareOutcomeDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/social-posts/auto-post": {
      "put": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_SetSocialPostAutoPost",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetArticleSocialPostAutoPostRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/checks": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetChecks",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ArticleCheckDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/checks/{checkId}/checked": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_MarkCheck",
        "parameters": [
          {
            "name": "checkId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/checks/suggest-fixes": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_SuggestCheckFixes",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckFixesDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/checks/apply-fixes": {
      "post": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_ApplyCheckFixes",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyArticleCheckFixesRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppliedCheckFixesDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/logs": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_GetLogs",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ArticleLogDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_ClearLogs",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Articles/{articleId}/logs/export": {
      "get": {
        "tags": [
          "Articles"
        ],
        "operationId": "Articles_ExportLogs",
        "parameters": [
          {
            "name": "articleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AuthAudit": {
      "get": {
        "tags": [
          "AuthAudit"
        ],
        "operationId": "AuthAudit_GetLogs",
        "parameters": [
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "EventType",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "AuthMethod",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 3
          },
          {
            "name": "Source",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 4
          },
          {
            "name": "FailedOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "nullable": true
            },
            "x-position": 5
          },
          {
            "name": "TrustedOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "nullable": true
            },
            "x-position": 6
          },
          {
            "name": "From",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 7
          },
          {
            "name": "To",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 8
          },
          {
            "name": "UserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid",
              "nullable": true
            },
            "x-position": 9
          },
          {
            "name": "CorrelationId",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 10
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 11
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 12
          },
          {
            "name": "SkipCount",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 13
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfAuthAuditListItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AuthAudit/summary": {
      "get": {
        "tags": [
          "AuthAudit"
        ],
        "operationId": "AuthAudit_GetSummary",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthAuditSummary"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AuthAudit/client-events": {
      "post": {
        "tags": [
          "AuthAudit"
        ],
        "operationId": "AuthAudit_ReportClientEvent",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClientAuthEventRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/api/AuthSettings": {
      "get": {
        "tags": [
          "AuthSettings"
        ],
        "operationId": "AuthSettings_Get",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSettingsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "put": {
        "tags": [
          "AuthSettings"
        ],
        "operationId": "AuthSettings_Update",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAuthSettingsRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSettingsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/background-jobs/heartbeats": {
      "get": {
        "tags": [
          "BackgroundJobs"
        ],
        "operationId": "BackgroundJobs_GetHeartbeats",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BackgroundJobHeartbeatItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/background-jobs/{jobName}": {
      "get": {
        "tags": [
          "BackgroundJobs"
        ],
        "operationId": "BackgroundJobs_GetDetail",
        "parameters": [
          {
            "name": "jobName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackgroundJobDetailDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/background-jobs/runs/list": {
      "post": {
        "tags": [
          "BackgroundJobs"
        ],
        "operationId": "BackgroundJobs_ListRuns",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetBackgroundJobRunsListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfBackgroundJobRunItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Chatbot/{botType}/chat": {
      "post": {
        "tags": [
          "Chatbot"
        ],
        "operationId": "Chatbot_Chat",
        "parameters": [
          {
            "name": "botType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatbotChatRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Chatbot/{botType}/conversations": {
      "get": {
        "tags": [
          "Chatbot"
        ],
        "operationId": "Chatbot_GetConversations",
        "parameters": [
          {
            "name": "botType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatbotConversationListItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Chatbot/{botType}/conversations/{conversationId}": {
      "get": {
        "tags": [
          "Chatbot"
        ],
        "operationId": "Chatbot_GetConversation",
        "parameters": [
          {
            "name": "botType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          },
          {
            "name": "conversationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatbotConversationDetail"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Chatbot"
        ],
        "operationId": "Chatbot_DeleteConversation",
        "parameters": [
          {
            "name": "botType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          },
          {
            "name": "conversationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/content/v1/site": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "Content_GetSite",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentSiteDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/content/v1/posts": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "Content_GetPosts",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "exclude",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            },
            "x-position": 3
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            },
            "x-position": 4
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPageDtoOfContentPostSummaryDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/content/v1/posts/slugs": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "Content_GetPostSlugs",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentPostSlugDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/content/v1/posts/{slug}": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "Content_GetPost",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPostDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/content/v1/categories": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "Content_GetCategories",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentCategoryDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/content/v1/videos": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "Content_GetVideos",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            },
            "x-position": 1
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPageDtoOfContentVideoDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/content/v1/videos/{slug}": {
      "get": {
        "tags": [
          "Content"
        ],
        "operationId": "Content_GetVideo",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentVideoDetailDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/{siteId}": {
      "get": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_Get",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPlanDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/{siteId}/attention": {
      "get": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_GetAttention",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPlanAttentionDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/find": {
      "post": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_Find",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FindContentPlanTopicsRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPlanBatchDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/ideas/{ideaId}/replace": {
      "post": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_Replace",
        "parameters": [
          {
            "name": "ideaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPlanBatchDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/ideas": {
      "put": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_Edit",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditContentPlanIdeaRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPlanIdeaDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/ideas/change": {
      "post": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_Change",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeContentPlanIdeaRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPlanIdeaDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/ideas/long-post": {
      "post": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_SetLongPost",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetContentPlanIdeaLongPostRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPlanIdeaDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/ideas/date": {
      "post": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_SetDate",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetContentPlanIdeaDateRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPlanIdeaDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/research": {
      "post": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_QueueResearch",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueueResearchBlogRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPlanIdeaDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ContentPlans/queue": {
      "post": {
        "tags": [
          "ContentPlans"
        ],
        "operationId": "ContentPlans_Queue",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueueContentPlanIdeasRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/content/v1/preview": {
      "get": {
        "tags": [
          "ContentPreview"
        ],
        "operationId": "ContentPreview_GetPreview",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPostDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents": {
      "get": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_GetList",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailAgentListItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "post": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_Create",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEmailAgentRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAgentResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/{id}": {
      "get": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAgentDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "put": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_Update",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEmailAgentRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAgentResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "delete": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/{id}/toggle-active": {
      "put": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_ToggleActive",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToggleEmailAgentResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/stats": {
      "get": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_GetStats",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAgentDashboardStats"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/conversations/list": {
      "post": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_GetConversations",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailAgentConversationListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfEmailAgentConversationListItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/conversations/{id}": {
      "get": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_GetConversationDetail",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailAgentConversationDetail"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "delete": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_DeleteConversation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/conversations/{id}/status": {
      "put": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_UpdateConversationStatus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConversationStatusRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/messages/{messageId}/approve": {
      "post": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_ApproveQueuedReply",
        "parameters": [
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveQueuedReplyRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/messages/{messageId}/reject": {
      "post": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_RejectQueuedReply",
        "parameters": [
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/test-connection": {
      "post": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_TestConnection",
        "parameters": [
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEmailAgentRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestConnectionResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/smart-paste": {
      "post": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_SmartPaste",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmartPasteRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartPasteResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/conversations/{conversationId}/escalation/chat": {
      "post": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_EscalationChat",
        "parameters": [
          {
            "name": "conversationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EscalationChatRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailAgents/{agentId}/ingest": {
      "post": {
        "tags": [
          "EmailAgents"
        ],
        "operationId": "EmailAgents_Ingest",
        "parameters": [
          {
            "name": "agentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IngestEmailRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "202": {
            "description": ""
          },
          "401": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailSuppressions": {
      "get": {
        "tags": [
          "EmailSuppressions"
        ],
        "operationId": "EmailSuppressions_List",
        "parameters": [
          {
            "name": "FilterText",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "LastUpdatedAtMin",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "LastUpdatedAtMax",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 3
          },
          {
            "name": "SortField",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 4
          },
          {
            "name": "SortDescending",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-position": 5
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 6
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 7
          },
          {
            "name": "SkipCount",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 8
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfEmailSuppressionDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailSuppressions/by-email": {
      "get": {
        "tags": [
          "EmailSuppressions"
        ],
        "operationId": "EmailSuppressions_GetByEmail",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSuppressionDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailSuppressions/report-csv": {
      "get": {
        "tags": [
          "EmailSuppressions"
        ],
        "operationId": "EmailSuppressions_GetReportCsv",
        "parameters": [
          {
            "name": "FilterText",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "LastUpdatedAtMin",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "LastUpdatedAtMax",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 3
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailSuppressions/{id}": {
      "delete": {
        "tags": [
          "EmailSuppressions"
        ],
        "operationId": "EmailSuppressions_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/EmailTemplates/list": {
      "post": {
        "tags": [
          "EmailTemplates"
        ],
        "operationId": "EmailTemplates_GetList",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetEmailTemplatesListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfGetEmailTemplatesListTemplateDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/EmailTemplates/{id}": {
      "get": {
        "tags": [
          "EmailTemplates"
        ],
        "operationId": "EmailTemplates_GetEmailTemplateById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEmailTemplateResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/EmailTemplates/{name}": {
      "get": {
        "tags": [
          "EmailTemplates"
        ],
        "operationId": "EmailTemplates_GetEmailTemplate",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEmailTemplateResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/EmailTemplates": {
      "put": {
        "tags": [
          "EmailTemplates"
        ],
        "operationId": "EmailTemplates_UpdateEmailTemplate",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEmailTemplateRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateEmailTemplateResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/EmailTemplates/send-test": {
      "post": {
        "tags": [
          "EmailTemplates"
        ],
        "operationId": "EmailTemplates_SendTestEmail",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendTestEmailRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/EmailTemplates/revert": {
      "post": {
        "tags": [
          "EmailTemplates"
        ],
        "operationId": "EmailTemplates_RevertToDefault",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevertEmailTemplateRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateEmailTemplateResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/EmailTemplates/assistant/chat": {
      "post": {
        "tags": [
          "EmailTemplates"
        ],
        "operationId": "EmailTemplates_AssistantChat",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateAssistantStreamRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/IdentityUsers/list": {
      "post": {
        "tags": [
          "IdentityUsers"
        ],
        "operationId": "IdentityUsers_GetList",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetIdentityUsersListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfGetIdentityUsersListUserDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/IdentityUsers/create": {
      "post": {
        "tags": [
          "IdentityUsers"
        ],
        "operationId": "IdentityUsers_CreateUser",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIdentityUserRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/IdentityUsers": {
      "put": {
        "tags": [
          "IdentityUsers"
        ],
        "operationId": "IdentityUsers_UpdateUser",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIdentityUserRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/IdentityUsers/{id}": {
      "delete": {
        "tags": [
          "IdentityUsers"
        ],
        "operationId": "IdentityUsers_DeleteUser",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteIdentityUserResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      },
      "get": {
        "tags": [
          "IdentityUsers"
        ],
        "operationId": "IdentityUsers_GetUser",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityUserEditDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/IdentityUsers/users-csv": {
      "post": {
        "tags": [
          "IdentityUsers"
        ],
        "operationId": "IdentityUsers_GetCsv",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetIdentityUsersCsvRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/IdentityUsers/update-password": {
      "put": {
        "tags": [
          "IdentityUsers"
        ],
        "operationId": "IdentityUsers_UpdatePassword",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIdentityUserPasswordRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/IdentityUsers/toggle-active-status": {
      "put": {
        "tags": [
          "IdentityUsers"
        ],
        "operationId": "IdentityUsers_ToggleIdentityUserActiveStatus",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/Media/file-entity-types": {
      "get": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_GetFileEntityTypes",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaEntityTypeDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Media/video-entity-types": {
      "get": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_GetVideoEntityTypes",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaEntityTypeDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Media/files": {
      "get": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_GetFiles",
        "parameters": [
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "EntityType",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "ContentTypeFilter",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 3
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 4
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 5
          },
          {
            "name": "SkipCount",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 6
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfMediaFileListItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Media/files/{id}": {
      "get": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_GetFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMediaFileResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_DeleteFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Media/files/upload": {
      "post": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_UploadFile",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaFileResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Media/videos": {
      "get": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_GetVideos",
        "parameters": [
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "EntityType",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 3
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 4
          },
          {
            "name": "SkipCount",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 5
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfVideoListItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Media/videos/{id}": {
      "get": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_GetVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_DeleteVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Media/videos/upload": {
      "post": {
        "tags": [
          "Media"
        ],
        "operationId": "Media_UploadVideo",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Permissions/list": {
      "post": {
        "tags": [
          "Permissions"
        ],
        "operationId": "Permissions_GetList",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPermissionsListResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ProductLogos/list": {
      "post": {
        "tags": [
          "ProductLogos"
        ],
        "operationId": "ProductLogos_GetList",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetProductLogoListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfProductLogoDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ProductLogos/{id}": {
      "get": {
        "tags": [
          "ProductLogos"
        ],
        "operationId": "ProductLogos_Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductLogoDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "delete": {
        "tags": [
          "ProductLogos"
        ],
        "operationId": "ProductLogos_Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ProductLogos/create": {
      "post": {
        "tags": [
          "ProductLogos"
        ],
        "operationId": "ProductLogos_Create",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProductLogoRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/ProductLogos": {
      "put": {
        "tags": [
          "ProductLogos"
        ],
        "operationId": "ProductLogos_Update",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProductLogoRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Roles/list": {
      "post": {
        "tags": [
          "Roles"
        ],
        "operationId": "Roles_GetList",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRolesListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfGetRolesListRoleDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/Roles/{id}": {
      "get": {
        "tags": [
          "Roles"
        ],
        "operationId": "Roles_GetRole",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleEditDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Roles"
        ],
        "operationId": "Roles_DeleteRole",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/Roles/create": {
      "post": {
        "tags": [
          "Roles"
        ],
        "operationId": "Roles_CreateRole",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRoleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/Roles/duplicate": {
      "post": {
        "tags": [
          "Roles"
        ],
        "operationId": "Roles_DuplicateRole",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DuplicateRoleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/Roles": {
      "put": {
        "tags": [
          "Roles"
        ],
        "operationId": "Roles_UpdateRole",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRoleRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": [
              "Admin"
            ]
          }
        ]
      }
    },
    "/api/ses/notifications": {
      "post": {
        "tags": [
          "SesNotifications"
        ],
        "operationId": "SesNotifications_Notifications",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/api/Sites/list": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetList",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetSitesListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfSiteListItemDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_Get",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_Delete",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/posting-history": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetPostingHistory",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SitePostingHistoryDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/create": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_Create",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSiteRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites": {
      "put": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_Update",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSiteRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/social-accounts": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetSocialAccounts",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteSocialAccountsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/preview-check": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_CheckPreviewPage",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckSitePreviewPageRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SitePreviewCheckDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/youtube/connect-url": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetYouTubeConnectUrl",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/YouTubeConnectUrlDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/youtube/connect": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_CompleteYouTubeConnection",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteYouTubeConnectionRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteSocialAccountDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/youtube/take-down": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_TakeDownYouTubeVideo",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TakeDownYouTubeVideoRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TakeDownYouTubeVideoResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/social-accounts/{id}": {
      "delete": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_DeleteSocialAccount",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "put": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_UpdateSocialAccount",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSiteSocialAccountRequest"
              }
            }
          },
          "required": true,
          "x-position": 3
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/social/{platform}/connect-url": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetSocialConnectUrl",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "platform",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/SocialAccountPlatform"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SocialConnectUrlDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/social/connect": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_CompleteSocialConnection",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteSocialConnectionRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SocialConnectResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/social/choose": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_ChooseSocialAccount",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChooseSocialAccountRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteSocialAccountDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/social/post-time": {
      "put": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_SaveSocialPostTime",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveSiteSocialPostTimeRequest"
              }
            }
          },
          "required": true,
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/connection": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetConnection",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteConnectionDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/connection": {
      "put": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_SaveConnection",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveSiteConnectionRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/connection/test": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_TestConnection",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionTestResultDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/content-keys": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetContentKeys",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SiteContentKeyDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/content-keys": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_CreateContentKey",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSiteContentKeyRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedSiteContentKeyDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/content-keys/{keyId}/revoke": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_RevokeContentKey",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "keyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/categories": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetCategories",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SiteCategoryDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/categories": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_SaveCategory",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveSiteCategoryRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/categories/{categoryId}": {
      "delete": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_DeleteCategory",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/prompts": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetPrompts",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SitePromptDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/prompts": {
      "put": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_UpdatePrompts",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSitePromptsRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/page-types": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetPageTypes",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SitePageTypeDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/page-types": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_SavePageType",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveSitePageTypeRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/page-types/{pageTypeId}": {
      "delete": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_DeletePageType",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "pageTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/members": {
      "get": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_GetMembers",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SiteMemberDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/members": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_AddMember",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSiteMemberRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "guid"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      },
      "put": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_UpdateMember",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSiteMemberRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/members/{memberId}/resend-invitation": {
      "post": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_ResendMemberInvitation",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "memberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/Sites/{siteId}/members/{memberId}": {
      "delete": {
        "tags": [
          "Sites"
        ],
        "operationId": "Sites_RemoveMember",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          },
          {
            "name": "memberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/social/{platform}/callback": {
      "get": {
        "tags": [
          "SocialCallback"
        ],
        "operationId": "SocialCallback_Callback",
        "parameters": [
          {
            "name": "platform",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 3
          },
          {
            "name": "error",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 4
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserActivities/session": {
      "post": {
        "tags": [
          "UserActivities"
        ],
        "operationId": "UserActivities_RecordSession",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserActivities/dashboard": {
      "get": {
        "tags": [
          "UserActivities"
        ],
        "operationId": "UserActivities_GetDashboard",
        "parameters": [
          {
            "name": "From",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "To",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageDashboardResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserActivities": {
      "get": {
        "tags": [
          "UserActivities"
        ],
        "operationId": "UserActivities_GetActivityList",
        "parameters": [
          {
            "name": "UserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "guid",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "Category",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "ActivityType",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 3
          },
          {
            "name": "From",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 4
          },
          {
            "name": "To",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 5
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 6
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 7
          },
          {
            "name": "SkipCount",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 8
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfUserActivityListItem"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserActivities/user-engagement": {
      "get": {
        "tags": [
          "UserActivities"
        ],
        "operationId": "UserActivities_GetUserEngagement",
        "parameters": [
          {
            "name": "From",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "To",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time",
              "nullable": true
            },
            "x-position": 2
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserEngagementItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserInvitations/list": {
      "post": {
        "tags": [
          "UserInvitations"
        ],
        "operationId": "UserInvitations_List",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserInvitationsListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfUserInvitationDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserInvitations": {
      "post": {
        "tags": [
          "UserInvitations"
        ],
        "operationId": "UserInvitations_Create",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserInvitationRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserInvitationDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserInvitations/{id}/resend": {
      "post": {
        "tags": [
          "UserInvitations"
        ],
        "operationId": "UserInvitations_Resend",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserInvitationDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserInvitations/{id}/revoke": {
      "post": {
        "tags": [
          "UserInvitations"
        ],
        "operationId": "UserInvitations_Revoke",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserInvitationDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccessRequests/list": {
      "post": {
        "tags": [
          "AccessRequests"
        ],
        "operationId": "AccessRequests_List",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAccessRequestsListRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResultOfAccessRequestDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccessRequests/{id}/approve": {
      "post": {
        "tags": [
          "AccessRequests"
        ],
        "operationId": "AccessRequests_Approve",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "body",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveAccessRequestBody"
              }
            }
          },
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessRequestDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/AccessRequests/{id}/reject": {
      "post": {
        "tags": [
          "AccessRequests"
        ],
        "operationId": "AccessRequests_Reject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "guid"
            },
            "x-position": 1
          }
        ],
        "requestBody": {
          "x-name": "body",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectAccessRequestBody"
              }
            }
          },
          "x-position": 2
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessRequestDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserNotifications/me": {
      "get": {
        "tags": [
          "UserNotifications"
        ],
        "operationId": "UserNotifications_GetMine",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserNotificationResult"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserNotifications/me/by-type": {
      "get": {
        "tags": [
          "UserNotifications"
        ],
        "operationId": "UserNotifications_GetMineByType",
        "parameters": [
          {
            "name": "notificationType",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/UserNotificationTypes"
            },
            "x-position": 1
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserNotificationResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserNotifications/defaults": {
      "get": {
        "tags": [
          "UserNotifications"
        ],
        "operationId": "UserNotifications_GetDefaults",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserNotificationResult"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserNotifications/upsert": {
      "post": {
        "tags": [
          "UserNotifications"
        ],
        "operationId": "UserNotifications_Upsert",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertUserNotificationRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserNotificationResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserNotifications/upsert-many": {
      "post": {
        "tags": [
          "UserNotifications"
        ],
        "operationId": "UserNotifications_UpsertMany",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertUserNotificationsRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserNotificationResult"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserProfiles/me": {
      "get": {
        "tags": [
          "UserProfiles"
        ],
        "operationId": "UserProfiles_GetMe",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserProfileResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserProfiles/update-info": {
      "put": {
        "tags": [
          "UserProfiles"
        ],
        "operationId": "UserProfiles_UpdateUserInfo",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserInfoRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateUserInfoResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserProfiles/timezone": {
      "put": {
        "tags": [
          "UserProfiles"
        ],
        "operationId": "UserProfiles_UpdateTimezone",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserTimezoneRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserProfiles/upload-image": {
      "post": {
        "tags": [
          "UserProfiles"
        ],
        "operationId": "UserProfiles_UploadProfileImage",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "nullable": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadProfileImageResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/UserProfiles/update-image": {
      "put": {
        "tags": [
          "UserProfiles"
        ],
        "operationId": "UserProfiles_UpdateProfileImage",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileImageRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateProfileImageResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Code Flow": []
          }
        ]
      }
    },
    "/api/youtube/callback": {
      "get": {
        "tags": [
          "YouTubeCallback"
        ],
        "operationId": "YouTubeCallback_Callback",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 1
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 2
          },
          {
            "name": "error",
            "in": "query",
            "schema": {
              "type": "string",
              "nullable": true
            },
            "x-position": 3
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountSecurityOverview": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "email",
          "emailConfirmed",
          "hasPassword",
          "passwordLastChangedAt",
          "pendingEmail",
          "pendingEmailRequestedAt",
          "connectedLogins",
          "canUnlinkLogins"
        ],
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "hasPassword": {
            "type": "boolean"
          },
          "passwordLastChangedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "pendingEmail": {
            "type": "string",
            "nullable": true
          },
          "pendingEmailRequestedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "connectedLogins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConnectedLogin"
            }
          },
          "canUnlinkLogins": {
            "type": "boolean"
          }
        }
      },
      "ConnectedLogin": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "provider",
          "displayName"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          }
        }
      },
      "PasswordPolicyDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "minimumLength",
          "requireUppercase",
          "requireLowercase",
          "requireDigit",
          "requireNonAlphanumeric",
          "requiredUniqueChars"
        ],
        "properties": {
          "minimumLength": {
            "type": "integer",
            "format": "int32"
          },
          "requireUppercase": {
            "type": "boolean"
          },
          "requireLowercase": {
            "type": "boolean"
          },
          "requireDigit": {
            "type": "boolean"
          },
          "requireNonAlphanumeric": {
            "type": "boolean"
          },
          "requiredUniqueChars": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ChangePasswordResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "otherSessionsEnded",
          "thisSessionWillNeedToSignInAgain"
        ],
        "properties": {
          "otherSessionsEnded": {
            "type": "boolean"
          },
          "thisSessionWillNeedToSignInAgain": {
            "type": "boolean"
          }
        }
      },
      "ChangeMyPasswordRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "currentPassword",
          "newPassword"
        ],
        "properties": {
          "currentPassword": {
            "type": "string"
          },
          "newPassword": {
            "type": "string"
          }
        }
      },
      "SetMyPasswordRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "newPassword"
        ],
        "properties": {
          "newPassword": {
            "type": "string"
          }
        }
      },
      "EmailChangeRequested": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "pendingEmail"
        ],
        "properties": {
          "pendingEmail": {
            "type": "string"
          }
        }
      },
      "RequestEmailChangeRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "newEmail"
        ],
        "properties": {
          "newEmail": {
            "type": "string"
          }
        }
      },
      "EmailChangeConfirmed": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "email",
          "emailConfirmed"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "emailConfirmed": {
            "type": "boolean"
          }
        }
      },
      "ConfirmEmailChangeRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "newEmail",
          "code"
        ],
        "properties": {
          "newEmail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        }
      },
      "Unit": {
        "type": "object",
        "additionalProperties": false
      },
      "ConfirmMyEmailRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          }
        }
      },
      "PagedResultOfMySignInHistoryItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MySignInHistoryItem"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "MySignInHistoryItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "occurredAt",
          "eventType",
          "authMethod",
          "isTrusted"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "eventType": {
            "type": "string"
          },
          "authMethod": {
            "type": "string"
          },
          "failureReason": {
            "type": "string",
            "nullable": true
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "userAgent": {
            "type": "string",
            "nullable": true
          },
          "isTrusted": {
            "type": "boolean"
          }
        }
      },
      "GetMySignInHistoryRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SortedPagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false
          }
        ]
      },
      "SortedPagedRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PagedRequest"
          },
          {
            "type": "object",
            "x-abstract": true,
            "additionalProperties": false,
            "properties": {
              "sorting": {
                "type": "string",
                "nullable": true
              }
            }
          }
        ]
      },
      "PagedRequest": {
        "type": "object",
        "x-abstract": true,
        "additionalProperties": false,
        "properties": {
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "skipCount": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "SignOutEverywhereResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "tokensRevoked"
        ],
        "properties": {
          "tokensRevoked": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "AiProviderListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "slug",
          "hasApiKey",
          "isActive",
          "modelCount",
          "models"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "hasApiKey": {
            "type": "boolean"
          },
          "endpoint": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "modelCount": {
            "type": "integer",
            "format": "int32"
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiModelListItem"
            }
          },
          "lastTestedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastTestSucceeded": {
            "type": "boolean",
            "nullable": true
          },
          "lastTestLatencyMs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "lastTestModel": {
            "type": "string",
            "nullable": true
          },
          "lastTestMessage": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AiModelListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "modelSlug",
          "displayName",
          "isFavorite",
          "isActive",
          "supportsVision",
          "supportsFunctionCalling",
          "kind"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "modelSlug": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "inputCostPer1M": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "outputCostPer1M": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "maxInputTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maxOutputTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "supportsVision": {
            "type": "boolean"
          },
          "supportsFunctionCalling": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "$ref": "#/components/schemas/ModelKind"
          },
          "unitPrice": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "unitKind": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/BillableUnitKind"
              }
            ]
          },
          "unitTier": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ModelKind": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Chat",
          "Image",
          "Speech",
          "Video",
          "Research",
          "Other"
        ],
        "enum": [
          "Chat",
          "Image",
          "Speech",
          "Video",
          "Research",
          "Other"
        ]
      },
      "BillableUnitKind": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Image",
          "Second",
          "Character",
          "SearchQuery"
        ],
        "enum": [
          "Image",
          "Second",
          "Character",
          "SearchQuery"
        ]
      },
      "UpdateAiProviderRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "endpoint": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TestAiProviderResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "outcome",
          "success",
          "keyValid",
          "providerSlug",
          "modelTested",
          "latencyMs"
        ],
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/TestAiProviderOutcome"
          },
          "success": {
            "type": "boolean"
          },
          "keyValid": {
            "type": "boolean"
          },
          "providerSlug": {
            "type": "string"
          },
          "modelTested": {
            "type": "string"
          },
          "latencyMs": {
            "type": "integer",
            "format": "int64"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "errorDetail": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TestAiProviderOutcome": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Passed",
          "Failed",
          "NotTested"
        ],
        "enum": [
          "Passed",
          "Failed",
          "NotTested"
        ]
      },
      "TestAiProviderRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "providerId": {
            "type": "string",
            "format": "guid"
          },
          "modelSlug": {
            "type": "string",
            "nullable": true
          },
          "apiKey": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "CreateAiModelRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "providerId": {
            "type": "string",
            "format": "guid"
          },
          "modelSlug": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AvailableModelItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "modelSlug",
          "provider",
          "supportsVision",
          "supportsFunctionCalling",
          "isEnabled",
          "isFavorite",
          "kind"
        ],
        "properties": {
          "modelSlug": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "inputCostPer1M": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "outputCostPer1M": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "maxInputTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maxOutputTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mode": {
            "type": "string",
            "nullable": true
          },
          "supportsVision": {
            "type": "boolean"
          },
          "supportsFunctionCalling": {
            "type": "boolean"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "enabledAiModelId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "$ref": "#/components/schemas/ModelKind"
          },
          "unitPrice": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "unitKind": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/BillableUnitKind"
              }
            ]
          },
          "unitTier": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AiModelAssignmentItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "operation",
          "recommendations",
          "matchesRecommendation",
          "kind",
          "requiresImageInput"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "operation": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "aiModelId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "modelDisplayName": {
            "type": "string",
            "nullable": true
          },
          "modelSlug": {
            "type": "string",
            "nullable": true
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "providerSlug": {
            "type": "string",
            "nullable": true
          },
          "recommendations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecommendationItem"
            }
          },
          "matchesRecommendation": {
            "type": "boolean"
          },
          "kind": {
            "$ref": "#/components/schemas/AiOperationKind"
          },
          "requiresImageInput": {
            "type": "boolean"
          }
        }
      },
      "RecommendationItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "rank",
          "providerSlug",
          "modelSlug",
          "modelDisplayName",
          "reason",
          "isResolvable"
        ],
        "properties": {
          "rank": {
            "type": "integer",
            "format": "int32"
          },
          "providerSlug": {
            "type": "string"
          },
          "modelSlug": {
            "type": "string"
          },
          "modelDisplayName": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "isResolvable": {
            "type": "boolean"
          },
          "resolvedAiModelId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          }
        }
      },
      "AiOperationKind": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Chat",
          "ImageGeneration",
          "Speech",
          "VideoGeneration",
          "Research"
        ],
        "enum": [
          "Chat",
          "ImageGeneration",
          "Speech",
          "VideoGeneration",
          "Research"
        ]
      },
      "UpdateAiModelAssignmentRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "operation": {
            "type": "string"
          },
          "aiModelId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          }
        }
      },
      "ApplyAllRecommendedResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "updated",
          "skippedOperations"
        ],
        "properties": {
          "updated": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiModelAssignmentItem"
            }
          },
          "skippedOperations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SelectModelForOperationRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "operation": {
            "type": "string"
          },
          "providerId": {
            "type": "string",
            "format": "guid"
          },
          "modelSlug": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ToggleModelFavoriteResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "modelSlug",
          "isFavorite",
          "removed"
        ],
        "properties": {
          "aiModelId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "modelSlug": {
            "type": "string"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "removed": {
            "type": "boolean"
          }
        }
      },
      "ToggleModelFavoriteRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "providerId": {
            "type": "string",
            "format": "guid"
          },
          "modelSlug": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "isFavorite": {
            "type": "boolean"
          }
        }
      },
      "ModelOverviewItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "modelSlug",
          "displayName",
          "providerId",
          "providerSlug",
          "providerName",
          "isFavorite",
          "isActive",
          "assignedOperationCount",
          "assignedOperations",
          "usageCalls",
          "usageCost"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "modelSlug": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "providerId": {
            "type": "string",
            "format": "guid"
          },
          "providerSlug": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "assignedOperationCount": {
            "type": "integer",
            "format": "int32"
          },
          "assignedOperations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssignedOperationRef"
            }
          },
          "usageCalls": {
            "type": "integer",
            "format": "int32"
          },
          "usageCost": {
            "type": "number",
            "format": "decimal"
          },
          "inputCostPer1M": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "outputCostPer1M": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          }
        }
      },
      "AssignedOperationRef": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ModelDetailResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "modelSlug",
          "displayName",
          "providerId",
          "providerSlug",
          "providerName",
          "isFavorite",
          "isActive",
          "supportsVision",
          "supportsFunctionCalling",
          "usageCalls",
          "usageCost",
          "assignedOperations",
          "kind",
          "unitPrices"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "modelSlug": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "providerId": {
            "type": "string",
            "format": "guid"
          },
          "providerSlug": {
            "type": "string"
          },
          "providerName": {
            "type": "string"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "inputCostPer1M": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "outputCostPer1M": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "maxInputTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maxOutputTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "supportsVision": {
            "type": "boolean"
          },
          "supportsFunctionCalling": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "nullable": true
          },
          "usageCalls": {
            "type": "integer",
            "format": "int32"
          },
          "usageCost": {
            "type": "number",
            "format": "decimal"
          },
          "assignedOperations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssignedOperationRef"
            }
          },
          "kind": {
            "$ref": "#/components/schemas/ModelKind"
          },
          "unitPrices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelUnitPriceItem"
            }
          }
        }
      },
      "ModelUnitPriceItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "unit",
          "pricePerUnit",
          "source",
          "asOf"
        ],
        "properties": {
          "unit": {
            "$ref": "#/components/schemas/BillableUnitKind"
          },
          "tier": {
            "type": "string",
            "nullable": true
          },
          "pricePerUnit": {
            "type": "number",
            "format": "decimal"
          },
          "source": {
            "type": "string"
          },
          "asOf": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "ReassignModelOperationsResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "reassignedCount",
          "targetAiModelId",
          "sourceNowUnused"
        ],
        "properties": {
          "reassignedCount": {
            "type": "integer",
            "format": "int32"
          },
          "targetAiModelId": {
            "type": "string",
            "format": "guid"
          },
          "sourceNowUnused": {
            "type": "boolean"
          }
        }
      },
      "ReassignModelOperationsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sourceAiModelId": {
            "type": "string",
            "format": "guid"
          },
          "targetProviderId": {
            "type": "string",
            "format": "guid"
          },
          "targetModelId": {
            "type": "string"
          },
          "targetDisplayName": {
            "type": "string",
            "nullable": true
          },
          "operations": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "OperationPromptResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "operation",
          "agentFolder",
          "files"
        ],
        "properties": {
          "operation": {
            "type": "string"
          },
          "agentFolder": {
            "type": "string"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationPromptFile"
            }
          }
        }
      },
      "OperationPromptFile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "content"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "AiDashboardData": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "summary",
          "buckets",
          "bucketGranularity",
          "rangeStartUtc",
          "rangeEndUtc",
          "costByModel",
          "costByOperation",
          "modelPricing",
          "filterOptions"
        ],
        "properties": {
          "summary": {
            "$ref": "#/components/schemas/AiCostSummary"
          },
          "buckets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageBucketItem"
            }
          },
          "bucketGranularity": {
            "$ref": "#/components/schemas/AiBucketGranularity"
          },
          "rangeStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "rangeEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "costByModel": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CostByModelItem"
            }
          },
          "costByOperation": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CostByOperationItem"
            }
          },
          "modelPricing": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelPricingItem"
            }
          },
          "filterOptions": {
            "$ref": "#/components/schemas/AiDashboardFilterOptions"
          }
        }
      },
      "AiCostSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "last24Hours",
          "last3Days",
          "last7Days",
          "last30Days",
          "allTimeCost",
          "allTimeCalls"
        ],
        "properties": {
          "last24Hours": {
            "$ref": "#/components/schemas/AiCostWindow"
          },
          "last3Days": {
            "$ref": "#/components/schemas/AiCostWindow"
          },
          "last7Days": {
            "$ref": "#/components/schemas/AiCostWindow"
          },
          "last30Days": {
            "$ref": "#/components/schemas/AiCostWindow"
          },
          "allTimeCost": {
            "type": "number",
            "format": "decimal"
          },
          "allTimeCalls": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "AiCostWindow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "cost",
          "calls",
          "previousCost"
        ],
        "properties": {
          "cost": {
            "type": "number",
            "format": "decimal"
          },
          "calls": {
            "type": "integer",
            "format": "int32"
          },
          "previousCost": {
            "type": "number",
            "format": "decimal"
          }
        }
      },
      "UsageBucketItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "bucketStartUtc",
          "cost",
          "calls"
        ],
        "properties": {
          "bucketStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "cost": {
            "type": "number",
            "format": "decimal"
          },
          "calls": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "AiBucketGranularity": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Hour",
          "Day"
        ],
        "enum": [
          "Hour",
          "Day"
        ]
      },
      "CostByModelItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "modelSlug",
          "provider",
          "cost",
          "calls"
        ],
        "properties": {
          "modelSlug": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "cost": {
            "type": "number",
            "format": "decimal"
          },
          "calls": {
            "type": "integer",
            "format": "int32"
          },
          "billableUnits": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "unitKind": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/BillableUnitKind"
              }
            ]
          },
          "costPerUnit": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          }
        }
      },
      "CostByOperationItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "operation",
          "displayName",
          "isRegistered",
          "cost",
          "calls"
        ],
        "properties": {
          "operation": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "isRegistered": {
            "type": "boolean"
          },
          "cost": {
            "type": "number",
            "format": "decimal"
          },
          "calls": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ModelPricingItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "modelSlug",
          "provider",
          "inputPricePer1K",
          "outputPricePer1K",
          "apiCalls",
          "totalCost"
        ],
        "properties": {
          "modelSlug": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "inputPricePer1K": {
            "type": "number",
            "format": "decimal"
          },
          "outputPricePer1K": {
            "type": "number",
            "format": "decimal"
          },
          "apiCalls": {
            "type": "integer",
            "format": "int32"
          },
          "totalCost": {
            "type": "number",
            "format": "decimal"
          },
          "lastUsed": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "unitPrice": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "unitKind": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/BillableUnitKind"
              }
            ]
          },
          "unitTier": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AiDashboardFilterOptions": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "providers",
          "models",
          "operations"
        ],
        "properties": {
          "providers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiOperationOption"
            }
          }
        }
      },
      "AiOperationOption": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "value",
          "label"
        ],
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "AiDashboardRange": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Last24Hours",
          "Last3Days",
          "Last7Days",
          "Last30Days",
          "AllTime",
          "Custom"
        ],
        "enum": [
          "Last24Hours",
          "Last3Days",
          "Last7Days",
          "Last30Days",
          "AllTime",
          "Custom"
        ]
      },
      "OperationCostData": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "operation",
          "kind",
          "rangeStartUtc",
          "rangeEndUtc",
          "actual",
          "profile",
          "byModel",
          "bucketGranularity",
          "history",
          "projections"
        ],
        "properties": {
          "operation": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/AiOperationKind"
          },
          "rangeStartUtc": {
            "type": "string",
            "format": "date-time"
          },
          "rangeEndUtc": {
            "type": "string",
            "format": "date-time"
          },
          "actual": {
            "$ref": "#/components/schemas/OperationCostActual"
          },
          "profile": {
            "$ref": "#/components/schemas/OperationTokenProfile"
          },
          "byModel": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationModelUsage"
            }
          },
          "bucketGranularity": {
            "$ref": "#/components/schemas/AiBucketGranularity"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationHistorySeries"
            }
          },
          "projections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationCostProjection"
            }
          }
        }
      },
      "OperationCostActual": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "cost",
          "calls",
          "previousCost",
          "costPerCall"
        ],
        "properties": {
          "cost": {
            "type": "number",
            "format": "decimal"
          },
          "calls": {
            "type": "integer",
            "format": "int32"
          },
          "previousCost": {
            "type": "number",
            "format": "decimal"
          },
          "costPerCall": {
            "type": "number",
            "format": "decimal"
          },
          "billableUnits": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "unitKind": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/BillableUnitKind"
              }
            ]
          },
          "costPerUnit": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          }
        }
      },
      "OperationTokenProfile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "neutralInputTokens",
          "outputTokens",
          "cacheReadTokens",
          "cacheCreationTokens",
          "inputTokensPerCall",
          "outputTokensPerCall",
          "cacheHitRatio"
        ],
        "properties": {
          "neutralInputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "outputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "cacheReadTokens": {
            "type": "integer",
            "format": "int64"
          },
          "cacheCreationTokens": {
            "type": "integer",
            "format": "int64"
          },
          "inputTokensPerCall": {
            "type": "integer",
            "format": "int64"
          },
          "outputTokensPerCall": {
            "type": "integer",
            "format": "int64"
          },
          "cacheHitRatio": {
            "type": "number",
            "format": "decimal"
          }
        }
      },
      "OperationModelUsage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "modelSlug",
          "provider",
          "displayName",
          "calls",
          "cost",
          "isCurrent",
          "firstUsedUtc",
          "lastUsedUtc"
        ],
        "properties": {
          "modelSlug": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "calls": {
            "type": "integer",
            "format": "int32"
          },
          "cost": {
            "type": "number",
            "format": "decimal"
          },
          "isCurrent": {
            "type": "boolean"
          },
          "firstUsedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastUsedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "billableUnits": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          }
        }
      },
      "OperationHistorySeries": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "modelSlug",
          "displayName",
          "buckets"
        ],
        "properties": {
          "modelSlug": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "buckets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageBucketItem"
            }
          }
        }
      },
      "OperationCostProjection": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "provider",
          "modelSlug",
          "hasPricing"
        ],
        "properties": {
          "provider": {
            "type": "string"
          },
          "modelSlug": {
            "type": "string"
          },
          "projectedCost": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "hasPricing": {
            "type": "boolean"
          },
          "projectedCostPerUnit": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "unitKind": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/BillableUnitKind"
              }
            ]
          }
        }
      },
      "UsageLogsResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "logs",
          "totalCost",
          "totalTokens"
        ],
        "properties": {
          "logs": {
            "$ref": "#/components/schemas/PagedResultOfAiUsageLogItem"
          },
          "totalCost": {
            "type": "number",
            "format": "decimal"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PagedResultOfAiUsageLogItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiUsageLogItem"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "AiUsageLogItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "modelSlug",
          "provider",
          "promptTokens",
          "cachedPromptTokens",
          "cacheCreationTokens",
          "completionTokens",
          "totalTokens",
          "cost",
          "operation",
          "agentName",
          "occurredAt",
          "isPriced"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "modelSlug": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "promptTokens": {
            "type": "integer",
            "format": "int32"
          },
          "cachedPromptTokens": {
            "type": "integer",
            "format": "int32"
          },
          "cacheCreationTokens": {
            "type": "integer",
            "format": "int32"
          },
          "completionTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int32"
          },
          "cost": {
            "type": "number",
            "format": "decimal"
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "operation": {
            "type": "string"
          },
          "agentName": {
            "type": "string"
          },
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "isPriced": {
            "type": "boolean"
          },
          "billableUnits": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "billableUnitKind": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/BillableUnitKind"
              }
            ]
          },
          "servedByRank": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        }
      },
      "AiHealthData": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "pricingCatalogLoaded",
          "pricingLastRefreshed",
          "pricedModelCount",
          "modelDrift",
          "providerListings",
          "unpricedUsage",
          "budgetEnabled",
          "budgetWindowHours"
        ],
        "properties": {
          "pricingCatalogLoaded": {
            "type": "boolean"
          },
          "pricingLastRefreshed": {
            "type": "string",
            "format": "date-time"
          },
          "pricedModelCount": {
            "type": "integer",
            "format": "int32"
          },
          "modelDrift": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiModelDriftItem"
            }
          },
          "providerListings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiProviderListingDto"
            }
          },
          "unpricedUsage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnpricedModelUsage"
            }
          },
          "budgetEnabled": {
            "type": "boolean"
          },
          "budgetWindowHours": {
            "type": "integer",
            "format": "int32"
          },
          "operationBudget": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/AiBudgetLineDto"
              }
            ]
          },
          "globalBudget": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/AiBudgetLineDto"
              }
            ]
          },
          "isHealthy": {
            "type": "boolean"
          }
        }
      },
      "AiModelDriftItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "operation",
          "providerSlug",
          "modelSlug",
          "detail"
        ],
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/ModelAssignmentIssueKind"
          },
          "operation": {
            "type": "string"
          },
          "rank": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "providerSlug": {
            "type": "string"
          },
          "modelSlug": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "fellForwardTo": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ModelAssignmentIssueKind": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "NotInPricingCatalog",
          "NotServedByProvider"
        ],
        "enum": [
          "NotInPricingCatalog",
          "NotServedByProvider"
        ]
      },
      "AiProviderListingDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "providerSlug",
          "outcome",
          "modelCount",
          "uncheckedDeclarations"
        ],
        "properties": {
          "providerSlug": {
            "type": "string"
          },
          "outcome": {
            "$ref": "#/components/schemas/ProviderListingOutcome"
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "modelCount": {
            "type": "integer",
            "format": "int32"
          },
          "uncheckedDeclarations": {
            "type": "integer",
            "format": "int32"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ProviderListingOutcome": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Checked",
          "NotConfigured",
          "Unreadable"
        ],
        "enum": [
          "Checked",
          "NotConfigured",
          "Unreadable"
        ]
      },
      "UnpricedModelUsage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "modelSlug",
          "provider",
          "calls",
          "totalTokens"
        ],
        "properties": {
          "modelSlug": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "calls": {
            "type": "integer",
            "format": "int32"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "AiBudgetLineDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "scope",
          "spentUsd",
          "limitUsd",
          "isLimited",
          "isExceeded"
        ],
        "properties": {
          "scope": {
            "type": "string"
          },
          "spentUsd": {
            "type": "number",
            "format": "decimal"
          },
          "limitUsd": {
            "type": "number",
            "format": "decimal"
          },
          "isLimited": {
            "type": "boolean"
          },
          "isExceeded": {
            "type": "boolean"
          }
        }
      },
      "RefreshPricingResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "modelsLoaded",
          "lastRefreshed"
        ],
        "properties": {
          "modelsLoaded": {
            "type": "integer",
            "format": "int32"
          },
          "lastRefreshed": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PagedResultOfArticleListItemDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleListItemDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ArticleListItemDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "status",
          "requiresPublish",
          "updatedAt",
          "createdAt",
          "hasHeroImage",
          "imageCount",
          "imagesPending",
          "videoCount",
          "isVideoInContent",
          "isVideoPublished",
          "socialPostCount",
          "socialPlatforms"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ArticleStatus"
          },
          "requiresPublish": {
            "type": "boolean"
          },
          "postAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "publishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "publicUrl": {
            "type": "string",
            "nullable": true
          },
          "processingStep": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleProcessingStep"
              }
            ]
          },
          "processingStartedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "hasHeroImage": {
            "type": "boolean"
          },
          "imageCount": {
            "type": "integer",
            "format": "int32"
          },
          "imagesPending": {
            "type": "integer",
            "format": "int32"
          },
          "videoCount": {
            "type": "integer",
            "format": "int32"
          },
          "isVideoInContent": {
            "type": "boolean"
          },
          "isVideoPublished": {
            "type": "boolean"
          },
          "socialPostCount": {
            "type": "integer",
            "format": "int32"
          },
          "socialPlatforms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialPlatform"
            }
          }
        }
      },
      "ArticleStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Draft",
          "Processing",
          "Syncing",
          "Published",
          "Posted",
          "Failed"
        ],
        "enum": [
          "Draft",
          "Processing",
          "Syncing",
          "Published",
          "Posted",
          "Failed"
        ]
      },
      "ArticleProcessingStep": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Cleaning",
          "MetadataGeneration",
          "ImageGeneration",
          "CrossLinkingHumanization",
          "SocialGeneration",
          "Publish",
          "Syncing",
          "ImageUpload",
          "VideoUpload",
          "VideoPublish",
          "SeoFix",
          "Explainer",
          "ExplainerRender",
          "Update",
          "SocialPostPublish",
          "Import"
        ],
        "enum": [
          "Cleaning",
          "MetadataGeneration",
          "ImageGeneration",
          "CrossLinkingHumanization",
          "SocialGeneration",
          "Publish",
          "Syncing",
          "ImageUpload",
          "VideoUpload",
          "VideoPublish",
          "SeoFix",
          "Explainer",
          "ExplainerRender",
          "Update",
          "SocialPostPublish",
          "Import"
        ]
      },
      "SocialPlatform": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "LinkedIn",
          "Facebook",
          "Twitter",
          "GoogleBusiness"
        ],
        "enum": [
          "LinkedIn",
          "Facebook",
          "Twitter",
          "GoogleBusiness"
        ]
      },
      "GetArticlesListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SortedPagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "siteId": {
                "type": "string",
                "format": "guid"
              },
              "filter": {
                "type": "string",
                "nullable": true
              },
              "status": {
                "nullable": true,
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ArticleStatus"
                  }
                ]
              },
              "statuses": {
                "type": "array",
                "nullable": true,
                "items": {
                  "$ref": "#/components/schemas/ArticleStatus"
                }
              },
              "requiresPublish": {
                "type": "boolean",
                "nullable": true
              },
              "hasImage": {
                "type": "boolean",
                "nullable": true
              },
              "hasVideo": {
                "type": "boolean",
                "nullable": true
              },
              "hasSocial": {
                "type": "boolean",
                "nullable": true
              },
              "issue": {
                "nullable": true,
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ArticleIssue"
                  }
                ]
              }
            }
          }
        ]
      },
      "ArticleIssue": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Title",
          "MetaDescription",
          "BrokenLinks",
          "NeedsPublish"
        ],
        "enum": [
          "Title",
          "MetaDescription",
          "BrokenLinks",
          "NeedsPublish"
        ]
      },
      "ArticleStatsDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "total",
          "draft",
          "processing",
          "published",
          "posted",
          "failed",
          "requiresPublish",
          "titlesToFix",
          "descriptionsToFix",
          "withBrokenLinks"
        ],
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "draft": {
            "type": "integer",
            "format": "int32"
          },
          "processing": {
            "type": "integer",
            "format": "int32"
          },
          "published": {
            "type": "integer",
            "format": "int32"
          },
          "posted": {
            "type": "integer",
            "format": "int32"
          },
          "failed": {
            "type": "integer",
            "format": "int32"
          },
          "requiresPublish": {
            "type": "integer",
            "format": "int32"
          },
          "titlesToFix": {
            "type": "integer",
            "format": "int32"
          },
          "descriptionsToFix": {
            "type": "integer",
            "format": "int32"
          },
          "withBrokenLinks": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ArticleMonthDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "postsSoFar",
          "postingDaysSoFar",
          "postingDaysFilled",
          "postsPerWeek"
        ],
        "properties": {
          "postsSoFar": {
            "type": "integer",
            "format": "int32"
          },
          "postingDaysSoFar": {
            "type": "integer",
            "format": "int32"
          },
          "postingDaysFilled": {
            "type": "integer",
            "format": "int32"
          },
          "postsPerWeek": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "aiCostPerPost": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          }
        }
      },
      "ArticleDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "siteId",
          "siteName",
          "status",
          "keywords",
          "readingTimeMinutes",
          "categoryIds",
          "requiresPublish",
          "isOnExternalSite",
          "createdAt",
          "updatedAt",
          "version",
          "titleOptions",
          "seo",
          "brokenLinks",
          "logCount",
          "imageCount",
          "videoCount",
          "socialPostCount",
          "hasYouTube",
          "hasResearchReport",
          "chartCount",
          "currentUserRole"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "siteName": {
            "type": "string"
          },
          "sitePreviewUrl": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ArticleStatus"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "focusKeyword": {
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "readingTimeMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "categoryIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          },
          "requiresPublish": {
            "type": "boolean"
          },
          "postAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "publishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "syncedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isOnExternalSite": {
            "type": "boolean"
          },
          "publicUrl": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdByName": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "version": {
            "type": "integer"
          },
          "titleOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleTitleOptionDto"
            }
          },
          "seo": {
            "$ref": "#/components/schemas/ArticleSeoDto"
          },
          "brokenLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrokenLinkDto"
            }
          },
          "logCount": {
            "type": "integer",
            "format": "int32"
          },
          "imageCount": {
            "type": "integer",
            "format": "int32"
          },
          "videoCount": {
            "type": "integer",
            "format": "int32"
          },
          "socialPostCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasYouTube": {
            "type": "boolean"
          },
          "hasResearchReport": {
            "type": "boolean"
          },
          "chartCount": {
            "type": "integer",
            "format": "int32"
          },
          "heroImageUrl": {
            "type": "string",
            "nullable": true
          },
          "currentUserRole": {
            "$ref": "#/components/schemas/SiteUserRole"
          }
        }
      },
      "ArticleTitleOptionDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "title",
          "slug"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "reasoning": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ArticleSeoDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "hasBodyH1Tags",
          "hasShortTitle",
          "hasLongTitle",
          "hasShortMetaDescription",
          "hasLongMetaDescription",
          "isMetaDescriptionMissing"
        ],
        "properties": {
          "hasBodyH1Tags": {
            "type": "boolean"
          },
          "hasShortTitle": {
            "type": "boolean"
          },
          "hasLongTitle": {
            "type": "boolean"
          },
          "hasShortMetaDescription": {
            "type": "boolean"
          },
          "hasLongMetaDescription": {
            "type": "boolean"
          },
          "isMetaDescriptionMissing": {
            "type": "boolean"
          }
        }
      },
      "BrokenLinkDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "SiteUserRole": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Owner",
          "Admin",
          "Editor",
          "Viewer"
        ],
        "enum": [
          "Owner",
          "Admin",
          "Editor",
          "Viewer"
        ]
      },
      "ArticleContentDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "content",
          "version"
        ],
        "properties": {
          "content": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        }
      },
      "ArticleOriginalContentDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "content"
        ],
        "properties": {
          "content": {
            "type": "string"
          }
        }
      },
      "ArticleSlugCheckDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slug",
          "isAvailable"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "isAvailable": {
            "type": "boolean"
          }
        }
      },
      "CreateArticleRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "originalContent"
        ],
        "properties": {
          "researchId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "originalContent": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "categoryIds": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "format": "guid"
            }
          },
          "process": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleProcessingOptions"
              }
            ]
          },
          "postDay": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ArticleProcessingOptions": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "clean": {
            "type": "boolean"
          },
          "generateMetadata": {
            "type": "boolean"
          },
          "generateImages": {
            "type": "boolean"
          },
          "crossLink": {
            "type": "boolean"
          },
          "generateSocialPosts": {
            "type": "boolean"
          },
          "generateExplainer": {
            "type": "boolean"
          },
          "publishWhenDone": {
            "type": "boolean"
          },
          "imageCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "regenerateAssetId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          }
        }
      },
      "UpdateArticleRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "version": {
            "type": "integer"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "focusKeyword": {
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "readingTimeMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "categoryIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          },
          "finalContent": {
            "type": "string",
            "nullable": true
          },
          "postAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ArticlePreviewDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "token",
          "expiresAt"
        ],
        "properties": {
          "token": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "CreateArticlePreviewRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "focusKeyword": {
            "type": "string",
            "nullable": true
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "readingTimeMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "categoryIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          },
          "finalContent": {
            "type": "string",
            "nullable": true
          },
          "postAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ArticleResearchDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "siteId",
          "topic",
          "status",
          "createdAt",
          "isReportTruncated",
          "sources",
          "canCancel",
          "canWriteAgain"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "topic": {
            "type": "string"
          },
          "guidance": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ArticleResearchStatus"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "failureMessage": {
            "type": "string",
            "nullable": true
          },
          "cost": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "searchCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "wordCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sourceCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isReportTruncated": {
            "type": "boolean"
          },
          "suggestedTitle": {
            "type": "string",
            "nullable": true
          },
          "draftHtml": {
            "type": "string",
            "nullable": true
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleResearchSourceDto"
            }
          },
          "articleId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "canCancel": {
            "type": "boolean"
          },
          "canWriteAgain": {
            "type": "boolean"
          }
        }
      },
      "ArticleResearchStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Starting",
          "Running",
          "Cancelling",
          "Writing",
          "Ready",
          "WriteFailed",
          "Used",
          "Failed",
          "Cancelled",
          "NotConfirmed"
        ],
        "enum": [
          "Starting",
          "Running",
          "Cancelling",
          "Writing",
          "Ready",
          "WriteFailed",
          "Used",
          "Failed",
          "Cancelled",
          "NotConfirmed"
        ]
      },
      "ArticleResearchSourceDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "number",
          "title",
          "publisher",
          "url"
        ],
        "properties": {
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "StartArticleResearchRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "topic": {
            "type": "string"
          },
          "guidance": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ArticleResearchListDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "enabled",
          "available",
          "runs"
        ],
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "available": {
            "type": "boolean"
          },
          "unavailableReason": {
            "type": "string",
            "nullable": true
          },
          "runs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleResearchListItemDto"
            }
          }
        }
      },
      "ArticleResearchListItemDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "siteId",
          "siteName",
          "topic",
          "status",
          "createdAt",
          "isInFlight"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "siteName": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ArticleResearchStatus"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "failureMessage": {
            "type": "string",
            "nullable": true
          },
          "cost": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "wordCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sourceCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isInFlight": {
            "type": "boolean"
          },
          "contentPlanTitle": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "PublishResultDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "status",
          "postAt",
          "publicUrl",
          "message"
        ],
        "properties": {
          "status": {
            "$ref": "#/components/schemas/ArticleStatus"
          },
          "postAt": {
            "type": "string",
            "format": "date-time"
          },
          "publicUrl": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "PublishArticleRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          }
        }
      },
      "SyncResultDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "updated",
          "imported",
          "skipped",
          "message"
        ],
        "properties": {
          "updated": {
            "type": "integer",
            "format": "int32"
          },
          "imported": {
            "type": "integer",
            "format": "int32"
          },
          "skipped": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "SyncArticleRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          }
        }
      },
      "SiteSyncStatusDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "siteId",
          "state",
          "isRunning",
          "trigger",
          "fullResync",
          "cancelRequested",
          "total",
          "processed",
          "imported",
          "updated",
          "skipped",
          "failed",
          "message",
          "queuedAt",
          "startedAt",
          "finishedAt",
          "lastSyncedAt"
        ],
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "state": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/SiteSyncState"
              }
            ]
          },
          "isRunning": {
            "type": "boolean"
          },
          "trigger": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/SiteSyncTrigger"
              }
            ]
          },
          "fullResync": {
            "type": "boolean"
          },
          "cancelRequested": {
            "type": "boolean"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "processed": {
            "type": "integer",
            "format": "int32"
          },
          "imported": {
            "type": "integer",
            "format": "int32"
          },
          "updated": {
            "type": "integer",
            "format": "int32"
          },
          "skipped": {
            "type": "integer",
            "format": "int32"
          },
          "failed": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "queuedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "finishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastSyncedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "SiteSyncState": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Queued",
          "Running",
          "Completed",
          "Cancelled",
          "Failed",
          "Interrupted"
        ],
        "enum": [
          "Queued",
          "Running",
          "Completed",
          "Cancelled",
          "Failed",
          "Interrupted"
        ]
      },
      "SiteSyncTrigger": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Manual",
          "Scheduled"
        ],
        "enum": [
          "Manual",
          "Scheduled"
        ]
      },
      "SyncSiteArticlesRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "fullResync": {
            "type": "boolean"
          }
        }
      },
      "CancelSiteSyncRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          }
        }
      },
      "ProcessArticleRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "options": {
            "$ref": "#/components/schemas/ArticleProcessingOptions"
          }
        }
      },
      "RegeneratedTitlesDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "options",
          "version"
        ],
        "properties": {
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleTitleOptionDto"
            }
          },
          "version": {
            "type": "integer"
          }
        }
      },
      "SeoRewriteDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "value",
          "length"
        ],
        "properties": {
          "value": {
            "type": "string"
          },
          "length": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "SuggestArticleSeoRewriteRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "target": {
            "$ref": "#/components/schemas/SeoRewriteTarget"
          },
          "currentValue": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SeoRewriteTarget": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Title",
          "Description"
        ],
        "enum": [
          "Title",
          "Description"
        ]
      },
      "CheckArticleLinksResultDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "checked",
          "brokenLinks"
        ],
        "properties": {
          "checked": {
            "type": "integer",
            "format": "int32"
          },
          "brokenLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrokenLinkDto"
            }
          }
        }
      },
      "SiteBrokenLinkDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "articleId",
          "articleTitle",
          "isLive",
          "url",
          "domain",
          "isInternal",
          "canConfirmWorks",
          "occurrences",
          "fixes",
          "needsLookup"
        ],
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "articleTitle": {
            "type": "string"
          },
          "isLive": {
            "type": "boolean"
          },
          "url": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "isInternal": {
            "type": "boolean"
          },
          "linkText": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "canConfirmWorks": {
            "type": "boolean"
          },
          "occurrences": {
            "type": "integer",
            "format": "int32"
          },
          "fixes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinkFixDto"
            }
          },
          "needsLookup": {
            "type": "boolean"
          }
        }
      },
      "LinkFixDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "label"
        ],
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/LinkFixKind"
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string"
          }
        }
      },
      "LinkFixKind": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Post",
          "Address",
          "Archive",
          "Unlink"
        ],
        "enum": [
          "Post",
          "Address",
          "Archive",
          "Unlink"
        ]
      },
      "BrokenLinkLookupDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "url",
          "fixes",
          "archiveAnswered"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "fixes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinkFixDto"
            }
          },
          "archiveAnswered": {
            "type": "boolean"
          }
        }
      },
      "LookUpBrokenLinkFixesRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "urls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ConfirmLinkWorksRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "FixArticleLinksResultDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "applied",
          "notFound",
          "needsResend"
        ],
        "properties": {
          "applied": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notFound": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "needsResend": {
            "type": "boolean"
          }
        }
      },
      "FixArticleLinksRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "fixes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleLinkFixInput"
            }
          }
        }
      },
      "ArticleLinkFixInput": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "replaceWith": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "FixSiteSeoResultDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "queued",
          "total"
        ],
        "properties": {
          "queued": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "FixSiteSeoRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "target": {
            "$ref": "#/components/schemas/SeoRewriteTarget"
          }
        }
      },
      "ArticleImageDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "placement",
          "status",
          "title",
          "isStalled",
          "isUsedInContent",
          "isOnSite",
          "needsReview",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "placement": {
            "$ref": "#/components/schemas/ImagePlacement"
          },
          "status": {
            "$ref": "#/components/schemas/ImageGenerationStatus"
          },
          "title": {
            "type": "string"
          },
          "caption": {
            "type": "string",
            "nullable": true
          },
          "altText": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "size": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "fileSizeBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "generationStartedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "generationCompletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "failureMessage": {
            "type": "string",
            "nullable": true
          },
          "isStalled": {
            "type": "boolean"
          },
          "isUsedInContent": {
            "type": "boolean"
          },
          "isOnSite": {
            "type": "boolean"
          },
          "needsReview": {
            "type": "boolean"
          },
          "infographic": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleInfographicDto"
              }
            ]
          },
          "regenerateRefusal": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ImagePlacement": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Hero",
          "Body"
        ],
        "enum": [
          "Hero",
          "Body"
        ]
      },
      "ImageGenerationStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Queued",
          "Generating",
          "Completed",
          "Failed"
        ],
        "enum": [
          "Queued",
          "Generating",
          "Completed",
          "Failed"
        ]
      },
      "ArticleInfographicDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "layout",
          "words",
          "findings",
          "notes",
          "wordWarnings"
        ],
        "properties": {
          "kind": {
            "type": "string"
          },
          "section": {
            "type": "string",
            "nullable": true
          },
          "layout": {
            "type": "string"
          },
          "words": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleInfographicWordDto"
            }
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "wordWarnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ArticleInfographicWordDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slot",
          "text",
          "maxLength"
        ],
        "properties": {
          "slot": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "maxLength": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ImageDescriptionDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "isSuggested",
          "title",
          "altText",
          "caption",
          "fileName"
        ],
        "properties": {
          "isSuggested": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "altText": {
            "type": "string"
          },
          "caption": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          }
        }
      },
      "UpdateArticleImageRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "title"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "title": {
            "type": "string"
          },
          "caption": {
            "type": "string",
            "nullable": true
          },
          "altText": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "words": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/InfographicWordInput"
            }
          }
        }
      },
      "InfographicWordInput": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slot",
          "text"
        ],
        "properties": {
          "slot": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "InsertArticleImageRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "imageId": {
            "type": "string",
            "format": "guid"
          },
          "position": {
            "$ref": "#/components/schemas/InsertPosition"
          }
        }
      },
      "InsertPosition": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Top",
          "Bottom",
          "UnderSection"
        ],
        "enum": [
          "Top",
          "Bottom",
          "UnderSection"
        ]
      },
      "ArticleChartDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "title",
          "layout",
          "rows",
          "heightPixels",
          "inBody",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "title": {
            "type": "string"
          },
          "section": {
            "type": "string",
            "nullable": true
          },
          "layout": {
            "type": "string"
          },
          "rows": {
            "type": "integer",
            "format": "int32"
          },
          "caption": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "heightPixels": {
            "type": "integer",
            "format": "int32"
          },
          "inBody": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ArticleVideoDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "title",
          "slug",
          "tags",
          "isStreamed",
          "encodeStatus",
          "encodeProgress",
          "durationSeconds",
          "canDownload",
          "isUsedInContent",
          "youTubeStatus",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "caption": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "embedUrl": {
            "type": "string",
            "nullable": true
          },
          "fileUrl": {
            "type": "string",
            "nullable": true
          },
          "isStreamed": {
            "type": "boolean"
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "encodeStatus": {
            "$ref": "#/components/schemas/VideoEncodeStatus"
          },
          "encodeProgress": {
            "type": "integer",
            "format": "int32"
          },
          "durationSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "canDownload": {
            "type": "boolean"
          },
          "isUsedInContent": {
            "type": "boolean"
          },
          "youTubeUrl": {
            "type": "string",
            "nullable": true
          },
          "youTubeStatus": {
            "$ref": "#/components/schemas/YouTubeStatus"
          },
          "youTubeError": {
            "type": "string",
            "nullable": true
          },
          "youTubeVisibility": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/YouTubeVisibility"
              }
            ]
          },
          "youTubePublishAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "publishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "VideoEncodeStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Queued",
          "Processing",
          "Encoding",
          "Finished",
          "Error",
          "UploadFailed",
          "Cancelled"
        ],
        "enum": [
          "Queued",
          "Processing",
          "Encoding",
          "Finished",
          "Error",
          "UploadFailed",
          "Cancelled"
        ]
      },
      "YouTubeStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "NotPublished",
          "Uploading",
          "Published",
          "Failed"
        ],
        "enum": [
          "NotPublished",
          "Uploading",
          "Published",
          "Failed"
        ]
      },
      "YouTubeVisibility": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Public",
          "Unlisted",
          "Scheduled"
        ],
        "enum": [
          "Public",
          "Unlisted",
          "Scheduled"
        ]
      },
      "VideoInfoDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "isSuggested",
          "title",
          "description",
          "slug",
          "tags"
        ],
        "properties": {
          "isSuggested": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpdateArticleVideoRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "caption": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "InsertArticleVideoRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "videoId": {
            "type": "string",
            "format": "guid"
          },
          "position": {
            "$ref": "#/components/schemas/InsertPosition"
          }
        }
      },
      "PublishVideoToYouTubeRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "videoId": {
            "type": "string",
            "format": "guid"
          }
        }
      },
      "ArticleExplainerDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "articleId",
          "makesVideos"
        ],
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "makesVideos": {
            "type": "boolean"
          },
          "status": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleExplainerStatus"
              }
            ]
          },
          "scriptJson": {
            "type": "string",
            "nullable": true
          },
          "templateLibraryVersion": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "targetSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sceneCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "wordCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "estimatedSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "repairRounds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "failureMessage": {
            "type": "string",
            "nullable": true
          },
          "checksJson": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "progressPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "scriptVersion": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "renderedScriptVersion": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "queuedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "claimedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "renderStartedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "durationSeconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "articleVideoId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "captionsUrl": {
            "type": "string",
            "nullable": true
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "narrationUrl": {
            "type": "string",
            "nullable": true
          },
          "narrationCost": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "narrationCharacterCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        }
      },
      "ArticleExplainerStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Draft",
          "Writing",
          "Queued",
          "Narrating",
          "Rendering",
          "Completed",
          "Failed",
          "RenderFailed"
        ],
        "enum": [
          "Draft",
          "Writing",
          "Queued",
          "Narrating",
          "Rendering",
          "Completed",
          "Failed",
          "RenderFailed"
        ]
      },
      "ArticleResearchReportDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "topic",
          "report",
          "sources",
          "isTruncated"
        ],
        "properties": {
          "topic": {
            "type": "string"
          },
          "guidance": {
            "type": "string",
            "nullable": true
          },
          "report": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleResearchReportSourceDto"
            }
          },
          "isTruncated": {
            "type": "boolean"
          },
          "modelSlug": {
            "type": "string",
            "nullable": true
          },
          "researchedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ArticleResearchReportSourceDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "number",
          "publisher"
        ],
        "properties": {
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "publisher": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "GenerateArticleExplainerScriptRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "targetSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "instruction": {
            "type": "string",
            "nullable": true
          },
          "render": {
            "type": "boolean"
          }
        }
      },
      "MakeArticleExplainerRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "targetSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "instruction": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "RenderArticleExplainerRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          }
        }
      },
      "ArticleSocialPostsDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "isLive",
          "isScheduled",
          "posts",
          "linkCard"
        ],
        "properties": {
          "isLive": {
            "type": "boolean"
          },
          "isScheduled": {
            "type": "boolean"
          },
          "posts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleSocialPostDto"
            }
          },
          "linkCard": {
            "$ref": "#/components/schemas/SocialLinkCardDto"
          }
        }
      },
      "ArticleSocialPostDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "platform",
          "content",
          "maxLength",
          "autoPost",
          "shareStatus",
          "plan",
          "canPostNow"
        ],
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/SocialPlatform"
          },
          "content": {
            "type": "string"
          },
          "maxLength": {
            "type": "integer",
            "format": "int32"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "imageAssetId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "imageUrl": {
            "type": "string",
            "nullable": true
          },
          "autoPost": {
            "type": "boolean"
          },
          "shareStatus": {
            "$ref": "#/components/schemas/SocialShareStatus"
          },
          "plan": {
            "$ref": "#/components/schemas/SocialPostPlan"
          },
          "dueAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sharedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "externalUrl": {
            "type": "string",
            "nullable": true
          },
          "shareError": {
            "type": "string",
            "nullable": true
          },
          "accountName": {
            "type": "string",
            "nullable": true
          },
          "canPostNow": {
            "type": "boolean"
          }
        }
      },
      "SocialShareStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "None",
          "Posting",
          "Posted",
          "Failed"
        ],
        "enum": [
          "None",
          "Posting",
          "Posted",
          "Failed"
        ]
      },
      "SocialPostPlan": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "NotConnected",
          "Reconnect",
          "Posted",
          "Posting",
          "Failed",
          "NoText",
          "Off",
          "AccountOff",
          "NotScheduled",
          "BeforeConnected",
          "TooLate",
          "Waiting"
        ],
        "enum": [
          "NotConnected",
          "Reconnect",
          "Posted",
          "Posting",
          "Failed",
          "NoText",
          "Off",
          "AccountOff",
          "NotScheduled",
          "BeforeConnected",
          "TooLate",
          "Waiting"
        ]
      },
      "SocialLinkCardDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "title",
          "siteName"
        ],
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "imageUrl": {
            "type": "string",
            "nullable": true
          },
          "siteName": {
            "type": "string"
          }
        }
      },
      "SocialPostSuggestionDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "content"
        ],
        "properties": {
          "content": {
            "type": "string"
          }
        }
      },
      "SuggestArticleSocialPostRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "platform": {
            "$ref": "#/components/schemas/SocialPlatform"
          },
          "instructions": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SaveArticleSocialPostRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "platform": {
            "$ref": "#/components/schemas/SocialPlatform"
          },
          "content": {
            "type": "string"
          },
          "imageAssetId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          }
        }
      },
      "SocialShareOutcomeDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "$ref": "#/components/schemas/SocialShareStatus"
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ShareArticleSocialPostRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "platform": {
            "$ref": "#/components/schemas/SocialPlatform"
          }
        }
      },
      "SetArticleSocialPostAutoPostRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "platform": {
            "$ref": "#/components/schemas/SocialPlatform"
          },
          "autoPost": {
            "type": "boolean"
          }
        }
      },
      "ArticleCheckDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "origin",
          "severity",
          "message",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "origin": {
            "$ref": "#/components/schemas/ArticleCheckOrigin"
          },
          "severity": {
            "$ref": "#/components/schemas/ArticleCheckSeverity"
          },
          "message": {
            "type": "string"
          },
          "quote": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ArticleCheckOrigin": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Report",
          "Rule",
          "Source",
          "Title",
          "Description",
          "Social"
        ],
        "enum": [
          "Report",
          "Rule",
          "Source",
          "Title",
          "Description",
          "Social"
        ]
      },
      "ArticleCheckSeverity": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Hold",
          "Warn",
          "Info"
        ],
        "enum": [
          "Hold",
          "Warn",
          "Info"
        ]
      },
      "CheckFixesDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "version",
          "fixes",
          "left",
          "gone"
        ],
        "properties": {
          "version": {
            "type": "integer"
          },
          "fixes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CheckFixDto"
            }
          },
          "left": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CheckLeftDto"
            }
          },
          "gone": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          }
        }
      },
      "CheckFixDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "block",
          "html",
          "checkIds",
          "before",
          "after"
        ],
        "properties": {
          "block": {
            "type": "integer",
            "format": "int32"
          },
          "html": {
            "type": "string"
          },
          "checkIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          },
          "before": {
            "type": "string"
          },
          "after": {
            "type": "string"
          },
          "note": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "CheckLeftDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "checkId",
          "reason"
        ],
        "properties": {
          "checkId": {
            "type": "string",
            "format": "guid"
          },
          "reason": {
            "type": "string"
          }
        }
      },
      "AppliedCheckFixesDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "version",
          "applied",
          "skipped"
        ],
        "properties": {
          "version": {
            "type": "integer"
          },
          "applied": {
            "type": "integer",
            "format": "int32"
          },
          "skipped": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ApplyArticleCheckFixesRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "version": {
            "type": "integer"
          },
          "fixes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CheckFixEdit"
            }
          }
        }
      },
      "CheckFixEdit": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "block": {
            "type": "integer",
            "format": "int32"
          },
          "html": {
            "type": "string"
          },
          "checkIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          }
        }
      },
      "ArticleLogDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "step",
          "status",
          "startedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "step": {
            "$ref": "#/components/schemas/ArticleProcessingStep"
          },
          "status": {
            "$ref": "#/components/schemas/ArticleProcessingStatus"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ArticleProcessingStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "InProgress",
          "Succeeded",
          "Failed",
          "Skipped"
        ],
        "enum": [
          "InProgress",
          "Succeeded",
          "Failed",
          "Skipped"
        ]
      },
      "PagedResultOfAuthAuditListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuthAuditListItem"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "AuthAuditListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "occurredAt",
          "eventType",
          "authMethod",
          "source",
          "isTrusted"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "userId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "eventType": {
            "type": "string"
          },
          "authMethod": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "failureReason": {
            "type": "string",
            "nullable": true
          },
          "endpoint": {
            "type": "string",
            "nullable": true
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "userAgent": {
            "type": "string",
            "nullable": true
          },
          "correlationId": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "isTrusted": {
            "type": "boolean"
          }
        }
      },
      "AuthAuditSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "loginsToday",
          "failedToday",
          "uniqueUsersToday"
        ],
        "properties": {
          "loginsToday": {
            "type": "integer",
            "format": "int32"
          },
          "failedToday": {
            "type": "integer",
            "format": "int32"
          },
          "uniqueUsersToday": {
            "type": "integer",
            "format": "int32"
          },
          "topFailureReason": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ClientAuthEventRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "eventType": {
            "type": "string"
          },
          "authMethod": {
            "type": "string",
            "nullable": true
          },
          "endpoint": {
            "type": "string",
            "nullable": true
          },
          "failureReason": {
            "type": "string",
            "nullable": true
          },
          "correlationId": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AuthSettingsDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "registrationMode",
          "allowedEmailDomains",
          "selfRegistrationRoleName",
          "accessRequestsEnabled",
          "requireConfirmedEmail",
          "autoConfirmExternalLogins",
          "passwordMinimumLength",
          "passwordRequireUppercase",
          "passwordRequireLowercase",
          "passwordRequireDigit",
          "passwordRequireNonAlphanumeric",
          "passwordRequiredUniqueChars",
          "lockoutMaxFailedAttempts",
          "lockoutDurationMinutes",
          "lockoutEnabledForNewUsers",
          "invitationExpiryDays",
          "updatedAt"
        ],
        "properties": {
          "registrationMode": {
            "$ref": "#/components/schemas/RegistrationMode"
          },
          "allowedEmailDomains": {
            "type": "string",
            "nullable": true
          },
          "selfRegistrationRoleName": {
            "type": "string"
          },
          "accessRequestsEnabled": {
            "type": "boolean"
          },
          "requireConfirmedEmail": {
            "type": "boolean"
          },
          "autoConfirmExternalLogins": {
            "type": "boolean"
          },
          "passwordMinimumLength": {
            "type": "integer",
            "format": "int32"
          },
          "passwordRequireUppercase": {
            "type": "boolean"
          },
          "passwordRequireLowercase": {
            "type": "boolean"
          },
          "passwordRequireDigit": {
            "type": "boolean"
          },
          "passwordRequireNonAlphanumeric": {
            "type": "boolean"
          },
          "passwordRequiredUniqueChars": {
            "type": "integer",
            "format": "int32"
          },
          "lockoutMaxFailedAttempts": {
            "type": "integer",
            "format": "int32"
          },
          "lockoutDurationMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "lockoutEnabledForNewUsers": {
            "type": "boolean"
          },
          "invitationExpiryDays": {
            "type": "integer",
            "format": "int32"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "RegistrationMode": {
        "type": "integer",
        "description": "",
        "x-enumNames": [
          "InviteOnly",
          "DomainAllowlist",
          "Open"
        ],
        "enum": [
          0,
          1,
          2
        ]
      },
      "UpdateAuthSettingsRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "registrationMode",
          "selfRegistrationRoleName",
          "accessRequestsEnabled",
          "requireConfirmedEmail",
          "autoConfirmExternalLogins",
          "passwordMinimumLength",
          "passwordRequireUppercase",
          "passwordRequireLowercase",
          "passwordRequireDigit",
          "passwordRequireNonAlphanumeric",
          "passwordRequiredUniqueChars",
          "lockoutMaxFailedAttempts",
          "lockoutDurationMinutes",
          "lockoutEnabledForNewUsers",
          "invitationExpiryDays"
        ],
        "properties": {
          "registrationMode": {
            "$ref": "#/components/schemas/RegistrationMode"
          },
          "allowedEmailDomains": {
            "type": "string",
            "nullable": true
          },
          "selfRegistrationRoleName": {
            "type": "string"
          },
          "accessRequestsEnabled": {
            "type": "boolean"
          },
          "requireConfirmedEmail": {
            "type": "boolean"
          },
          "autoConfirmExternalLogins": {
            "type": "boolean"
          },
          "passwordMinimumLength": {
            "type": "integer",
            "format": "int32"
          },
          "passwordRequireUppercase": {
            "type": "boolean"
          },
          "passwordRequireLowercase": {
            "type": "boolean"
          },
          "passwordRequireDigit": {
            "type": "boolean"
          },
          "passwordRequireNonAlphanumeric": {
            "type": "boolean"
          },
          "passwordRequiredUniqueChars": {
            "type": "integer",
            "format": "int32"
          },
          "lockoutMaxFailedAttempts": {
            "type": "integer",
            "format": "int32"
          },
          "lockoutDurationMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "lockoutEnabledForNewUsers": {
            "type": "boolean"
          },
          "invitationExpiryDays": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "BackgroundJobHeartbeatItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "jobName",
          "lastRunStartedAt",
          "lastRunDurationMs",
          "consecutiveFailures",
          "isEnabled",
          "hasRun",
          "runCount",
          "intervalSeconds",
          "isStale"
        ],
        "properties": {
          "jobName": {
            "type": "string"
          },
          "lastRunStartedAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastRunCompletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastRunDurationMs": {
            "type": "integer",
            "format": "int32"
          },
          "lastError": {
            "type": "string",
            "nullable": true
          },
          "lastErrorType": {
            "type": "string",
            "nullable": true
          },
          "lastSuccessAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "consecutiveFailures": {
            "type": "integer",
            "format": "int32"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "registeredAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasRun": {
            "type": "boolean"
          },
          "runCount": {
            "type": "integer",
            "format": "int64"
          },
          "intervalSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "isStale": {
            "type": "boolean"
          },
          "stateJson": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "BackgroundJobDetailDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "job",
          "windowHours",
          "recordedRuns",
          "failures"
        ],
        "properties": {
          "job": {
            "$ref": "#/components/schemas/BackgroundJobHeartbeatItem"
          },
          "windowHours": {
            "type": "integer",
            "format": "int32"
          },
          "recordedRuns": {
            "type": "integer",
            "format": "int32"
          },
          "failures": {
            "type": "integer",
            "format": "int32"
          },
          "slowestDurationMs": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        }
      },
      "PagedResultOfBackgroundJobRunItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackgroundJobRunItem"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "BackgroundJobRunItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "startedAt",
          "completedAt",
          "durationMs",
          "outcome"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "durationMs": {
            "type": "integer",
            "format": "int32"
          },
          "outcome": {
            "$ref": "#/components/schemas/BackgroundJobRunOutcome"
          },
          "errorType": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "stateJson": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "BackgroundJobRunOutcome": {
        "type": "integer",
        "description": "",
        "x-enumNames": [
          "Success",
          "Failed",
          "LeaseLost"
        ],
        "enum": [
          0,
          1,
          2
        ]
      },
      "GetBackgroundJobRunsListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "jobName"
            ],
            "properties": {
              "jobName": {
                "type": "string"
              },
              "failuresOnly": {
                "type": "boolean",
                "nullable": true
              }
            }
          }
        ]
      },
      "ChatbotChatRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "message": {
            "type": "string"
          },
          "conversationId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          }
        }
      },
      "ChatbotConversationListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "updatedAt",
          "messageCount"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "messageCount": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ChatbotConversationDetail": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "chatbotType",
          "updatedAt",
          "messages"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "chatbotType": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChatbotMessageItem"
            }
          }
        }
      },
      "ChatbotMessageItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "role",
          "content",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "role": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ContentSiteDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "domain",
          "useInlineStyles"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "useInlineStyles": {
            "type": "boolean"
          }
        }
      },
      "ContentPageDtoOfContentPostSummaryDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentPostSummaryDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ContentPostSummaryDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "slug",
          "title",
          "readingTimeMinutes",
          "postAt",
          "categories"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "readingTimeMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "author": {
            "type": "string",
            "nullable": true
          },
          "postAt": {
            "type": "string",
            "format": "date-time"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentCategoryRefDto"
            }
          },
          "image": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ContentImageDto"
              }
            ]
          }
        }
      },
      "ContentCategoryRefDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "slug",
          "title"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "ContentImageDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "alt": {
            "type": "string",
            "nullable": true
          },
          "caption": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ContentPostSlugDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slug",
          "postAt",
          "updatedAt"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "postAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ContentPostDto": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ContentPostSummaryDto"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "keywords",
              "updatedAt"
            ],
            "properties": {
              "description": {
                "type": "string",
                "nullable": true
              },
              "keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "focusKeyword": {
                "type": "string",
                "nullable": true
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "bodyHtml": {
                "type": "string",
                "nullable": true
              },
              "video": {
                "nullable": true,
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ContentPostVideoDto"
                  }
                ]
              }
            }
          }
        ]
      },
      "ContentPostVideoDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slug",
          "title"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "embedUrl": {
            "type": "string",
            "nullable": true
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "publishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "ContentCategoryDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "slug",
          "title",
          "postCount"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "postCount": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ContentPageDtoOfContentVideoDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentVideoDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ContentVideoDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "slug",
          "title",
          "uploadedAt",
          "post"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "embedUrl": {
            "type": "string",
            "nullable": true
          },
          "fileUrl": {
            "type": "string",
            "nullable": true
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "externalUrl": {
            "type": "string",
            "nullable": true
          },
          "publishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "uploadedAt": {
            "type": "string",
            "format": "date-time"
          },
          "post": {
            "$ref": "#/components/schemas/ContentVideoPostRefDto"
          }
        }
      },
      "ContentVideoPostRefDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "slug",
          "title"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "ContentVideoDetailDto": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ContentVideoDto"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "category": {
                "type": "string",
                "nullable": true
              },
              "postDescription": {
                "type": "string",
                "nullable": true
              },
              "postImage": {
                "nullable": true,
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ContentImageDto"
                  }
                ]
              }
            }
          }
        ]
      },
      "ContentPlanDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "enabled",
          "canEdit",
          "canPublish",
          "autoSchedule",
          "hasTopicBrief",
          "hasIdeas",
          "postingDays",
          "earliest",
          "days",
          "batches",
          "ideas",
          "queue",
          "ready",
          "scheduled"
        ],
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "canEdit": {
            "type": "boolean"
          },
          "canPublish": {
            "type": "boolean"
          },
          "autoSchedule": {
            "type": "boolean"
          },
          "hasTopicBrief": {
            "type": "boolean"
          },
          "hasIdeas": {
            "type": "boolean"
          },
          "postingDays": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "earliest": {
            "type": "string"
          },
          "days": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentPlanDayDto"
            }
          },
          "batches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentPlanBatchDto"
            }
          },
          "ideas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentPlanIdeaDto"
            }
          },
          "queue": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentPlanIdeaDto"
            }
          },
          "ready": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentPlanPostDto"
            }
          },
          "scheduled": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentPlanPostDto"
            }
          }
        }
      },
      "ContentPlanDayDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "date",
          "state"
        ],
        "properties": {
          "date": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/ContentPlanDayState"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "articleId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "ideaId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "heroUrl": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ContentPlanDayState": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Open",
          "Planned",
          "Queued",
          "InProgress",
          "Failed",
          "Ready",
          "Scheduled",
          "Posted"
        ],
        "enum": [
          "Open",
          "Planned",
          "Queued",
          "InProgress",
          "Failed",
          "Ready",
          "Scheduled",
          "Posted"
        ]
      },
      "ContentPlanBatchDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "status",
          "count",
          "refusedCount",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "status": {
            "$ref": "#/components/schemas/ContentPlanBatchStatus"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "focus": {
            "type": "string",
            "nullable": true
          },
          "replacesIdeaId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "suggestionsHtml": {
            "type": "string",
            "nullable": true
          },
          "refusedCount": {
            "type": "integer",
            "format": "int32"
          },
          "failureMessage": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ContentPlanBatchStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Generating",
          "Ready",
          "Failed"
        ],
        "enum": [
          "Generating",
          "Ready",
          "Failed"
        ]
      },
      "ContentPlanIdeaDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "batchId",
          "status",
          "lane",
          "longPost",
          "title",
          "angle",
          "focusKeyword",
          "keywords",
          "newsHeadline",
          "researchTopic",
          "position",
          "ratingNotes",
          "ratingMarks"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "batchId": {
            "type": "string",
            "format": "guid"
          },
          "status": {
            "$ref": "#/components/schemas/ContentPlanIdeaStatus"
          },
          "lane": {
            "$ref": "#/components/schemas/ContentPlanLane"
          },
          "longPost": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "angle": {
            "type": "string"
          },
          "focusKeyword": {
            "type": "string"
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "newsHeadline": {
            "type": "string"
          },
          "newsPublisher": {
            "type": "string",
            "nullable": true
          },
          "newsUrl": {
            "type": "string",
            "nullable": true
          },
          "newsPublishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "closestTitle": {
            "type": "string",
            "nullable": true
          },
          "closestPostedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "closestDifference": {
            "type": "string",
            "nullable": true
          },
          "researchTopic": {
            "type": "string"
          },
          "researchGuidance": {
            "type": "string",
            "nullable": true
          },
          "plannedPostAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "position": {
            "type": "integer",
            "format": "int32"
          },
          "pausedReason": {
            "type": "string",
            "nullable": true
          },
          "failureMessage": {
            "type": "string",
            "nullable": true
          },
          "researchId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "reviewNote": {
            "type": "string",
            "nullable": true
          },
          "rating": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ContentPlanIdeaRating"
              }
            ]
          },
          "ratingNotes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ratingMarks": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "queuedById": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "queuedByName": {
            "type": "string",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "articleId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "articleStatus": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleStatus"
              }
            ]
          },
          "researchStatus": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleResearchStatus"
              }
            ]
          },
          "explainerStatus": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleExplainerStatus"
              }
            ]
          },
          "stoppedAt": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleProcessingStep"
              }
            ]
          }
        }
      },
      "ContentPlanIdeaStatus": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Proposed",
          "Discarded",
          "Approved",
          "Queued",
          "Researching",
          "Writing",
          "HandedOver",
          "Failed"
        ],
        "enum": [
          "Proposed",
          "Discarded",
          "Approved",
          "Queued",
          "Researching",
          "Writing",
          "HandedOver",
          "Failed"
        ]
      },
      "ContentPlanLane": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "News",
          "Industry",
          "Guide",
          "Own"
        ],
        "enum": [
          "News",
          "Industry",
          "Guide",
          "Own"
        ]
      },
      "ContentPlanIdeaRating": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Strong",
          "Good",
          "Weak"
        ],
        "enum": [
          "Strong",
          "Good",
          "Weak"
        ]
      },
      "ContentPlanPostDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "articleId",
          "title",
          "status",
          "readingTimeMinutes",
          "imageCount",
          "socialPostCount",
          "heldImageCount",
          "categoryCount",
          "hasSummary",
          "checks"
        ],
        "properties": {
          "articleId": {
            "type": "string",
            "format": "guid"
          },
          "ideaId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ArticleStatus"
          },
          "postAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "readingTimeMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "heroUrl": {
            "type": "string",
            "nullable": true
          },
          "imageCount": {
            "type": "integer",
            "format": "int32"
          },
          "socialPostCount": {
            "type": "integer",
            "format": "int32"
          },
          "explainerStatus": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleExplainerStatus"
              }
            ]
          },
          "heldImageCount": {
            "type": "integer",
            "format": "int32"
          },
          "categoryCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasSummary": {
            "type": "boolean"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleCheckDto"
            }
          },
          "reviewNote": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ContentPlanAttentionDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "failed",
          "waiting"
        ],
        "properties": {
          "failed": {
            "type": "integer",
            "format": "int32"
          },
          "waiting": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "FindContentPlanTopicsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "focus": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "EditContentPlanIdeaRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ideaId": {
            "type": "string",
            "format": "guid"
          },
          "title": {
            "type": "string"
          },
          "angle": {
            "type": "string"
          },
          "focusKeyword": {
            "type": "string"
          },
          "researchTopic": {
            "type": "string"
          },
          "researchGuidance": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ChangeContentPlanIdeaRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ideaId": {
            "type": "string",
            "format": "guid"
          },
          "change": {
            "$ref": "#/components/schemas/ContentPlanIdeaChange"
          }
        }
      },
      "ContentPlanIdeaChange": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Approve",
          "Unapprove",
          "Discard",
          "Restore",
          "Unqueue",
          "Retry",
          "Continue",
          "Remove"
        ],
        "enum": [
          "Approve",
          "Unapprove",
          "Discard",
          "Restore",
          "Unqueue",
          "Retry",
          "Continue",
          "Remove"
        ]
      },
      "SetContentPlanIdeaLongPostRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ideaId": {
            "type": "string",
            "format": "guid"
          },
          "longPost": {
            "type": "boolean"
          }
        }
      },
      "SetContentPlanIdeaDateRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ideaId": {
            "type": "string",
            "format": "guid"
          },
          "date": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "QueueResearchBlogRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "topic": {
            "type": "string"
          },
          "guidance": {
            "type": "string",
            "nullable": true
          },
          "options": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleProcessingOptions"
              }
            ]
          },
          "postDay": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "QueueContentPlanIdeasRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "ideaIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          },
          "options": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/ArticleProcessingOptions"
              }
            ]
          }
        }
      },
      "EmailAgentListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "emailAddress",
          "isActive",
          "autoReplyEnabled",
          "minAutoReplyConfidence",
          "escalationEnabled",
          "emailsReceivedCount",
          "repliesSentCount",
          "escalationsCount"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "autoReplyEnabled": {
            "type": "boolean"
          },
          "minAutoReplyConfidence": {
            "type": "number",
            "format": "decimal"
          },
          "escalationEnabled": {
            "type": "boolean"
          },
          "emailsReceivedCount": {
            "type": "integer",
            "format": "int32"
          },
          "repliesSentCount": {
            "type": "integer",
            "format": "int32"
          },
          "escalationsCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastEmailDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "EmailAgentDetails": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "emailAddress",
          "isActive",
          "imapHost",
          "imapPort",
          "imapUsername",
          "imapUseSsl",
          "useDefaultSmtp",
          "knowledgeContent",
          "replyInstructions",
          "escalationRules",
          "autoReplyEnabled",
          "minAutoReplyConfidence",
          "escalationEnabled",
          "pollIntervalMinutes",
          "maxEmailsPerPoll",
          "ingestEnabled",
          "hasIngestSecret",
          "escalationReminderIntervalHours",
          "escalationTimeoutHours",
          "autoResolveAfterDays",
          "emailsReceivedCount",
          "repliesSentCount",
          "escalationsCount",
          "escalationUsers"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "imapHost": {
            "type": "string"
          },
          "imapPort": {
            "type": "integer",
            "format": "int32"
          },
          "imapUsername": {
            "type": "string"
          },
          "imapUseSsl": {
            "type": "boolean"
          },
          "smtpHost": {
            "type": "string",
            "nullable": true
          },
          "smtpPort": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "smtpUsername": {
            "type": "string",
            "nullable": true
          },
          "smtpUseSsl": {
            "type": "boolean",
            "nullable": true
          },
          "useDefaultSmtp": {
            "type": "boolean"
          },
          "fromDisplayName": {
            "type": "string",
            "nullable": true
          },
          "knowledgeContent": {
            "type": "string"
          },
          "replyInstructions": {
            "type": "string"
          },
          "escalationRules": {
            "type": "string"
          },
          "triageModelAssignmentId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "replyModelAssignmentId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "temperature": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "maxResponseTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "autoReplyEnabled": {
            "type": "boolean"
          },
          "minAutoReplyConfidence": {
            "type": "number",
            "format": "decimal"
          },
          "escalationEnabled": {
            "type": "boolean"
          },
          "pollIntervalMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "maxEmailsPerPoll": {
            "type": "integer",
            "format": "int32"
          },
          "ingestEnabled": {
            "type": "boolean"
          },
          "hasIngestSecret": {
            "type": "boolean"
          },
          "signatureHtml": {
            "type": "string",
            "nullable": true
          },
          "acknowledgementTemplate": {
            "type": "string",
            "nullable": true
          },
          "escalationFallbackTemplate": {
            "type": "string",
            "nullable": true
          },
          "escalationReminderIntervalHours": {
            "type": "integer",
            "format": "int32"
          },
          "escalationTimeoutHours": {
            "type": "integer",
            "format": "int32"
          },
          "autoResolveAfterDays": {
            "type": "integer",
            "format": "int32"
          },
          "emailsReceivedCount": {
            "type": "integer",
            "format": "int32"
          },
          "repliesSentCount": {
            "type": "integer",
            "format": "int32"
          },
          "escalationsCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastPolledAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastEmailReceivedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastConnectionError": {
            "type": "string",
            "nullable": true
          },
          "escalationUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EscalationUserItem"
            }
          }
        }
      },
      "EscalationUserItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "userId",
          "name",
          "email",
          "isActive",
          "notifyByEmail"
        ],
        "properties": {
          "userId": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "notifyByEmail": {
            "type": "boolean"
          }
        }
      },
      "EmailAgentResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "CreateEmailAgentRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "imapHost": {
            "type": "string"
          },
          "imapPort": {
            "type": "integer",
            "format": "int32"
          },
          "imapUsername": {
            "type": "string"
          },
          "imapPassword": {
            "type": "string"
          },
          "imapUseSsl": {
            "type": "boolean"
          },
          "smtpHost": {
            "type": "string",
            "nullable": true
          },
          "smtpPort": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "smtpUsername": {
            "type": "string",
            "nullable": true
          },
          "smtpPassword": {
            "type": "string",
            "nullable": true
          },
          "smtpUseSsl": {
            "type": "boolean",
            "nullable": true
          },
          "useDefaultSmtp": {
            "type": "boolean"
          },
          "fromDisplayName": {
            "type": "string",
            "nullable": true
          },
          "knowledgeContent": {
            "type": "string"
          },
          "replyInstructions": {
            "type": "string"
          },
          "escalationRules": {
            "type": "string"
          },
          "triageModelAssignmentId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "replyModelAssignmentId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "temperature": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "maxResponseTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "autoReplyEnabled": {
            "type": "boolean"
          },
          "minAutoReplyConfidence": {
            "type": "number",
            "format": "decimal"
          },
          "escalationEnabled": {
            "type": "boolean"
          },
          "pollIntervalMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "maxEmailsPerPoll": {
            "type": "integer",
            "format": "int32"
          },
          "ingestEnabled": {
            "type": "boolean"
          },
          "ingestSecret": {
            "type": "string",
            "nullable": true
          },
          "signatureHtml": {
            "type": "string",
            "nullable": true
          },
          "acknowledgementTemplate": {
            "type": "string",
            "nullable": true
          },
          "escalationFallbackTemplate": {
            "type": "string",
            "nullable": true
          },
          "escalationReminderIntervalHours": {
            "type": "integer",
            "format": "int32"
          },
          "escalationTimeoutHours": {
            "type": "integer",
            "format": "int32"
          },
          "autoResolveAfterDays": {
            "type": "integer",
            "format": "int32"
          },
          "escalationUserIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          }
        }
      },
      "ToggleEmailAgentResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "isActive"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "EmailAgentDashboardStats": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "totalAgents",
          "activeAgents",
          "totalConversations",
          "pendingReview",
          "escalationsAwaitingHuman",
          "totalEmailsProcessedToday"
        ],
        "properties": {
          "totalAgents": {
            "type": "integer",
            "format": "int32"
          },
          "activeAgents": {
            "type": "integer",
            "format": "int32"
          },
          "totalConversations": {
            "type": "integer",
            "format": "int32"
          },
          "pendingReview": {
            "type": "integer",
            "format": "int32"
          },
          "escalationsAwaitingHuman": {
            "type": "integer",
            "format": "int32"
          },
          "totalEmailsProcessedToday": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PagedResultOfEmailAgentConversationListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailAgentConversationListItem"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "EmailAgentConversationListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "emailAgentId",
          "emailAgentName",
          "subject",
          "senderEmail",
          "status",
          "messageCount",
          "lastOccurredAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "emailAgentId": {
            "type": "string",
            "format": "guid"
          },
          "emailAgentName": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "senderEmail": {
            "type": "string"
          },
          "senderName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ConversationStatus"
          },
          "messageCount": {
            "type": "integer",
            "format": "int32"
          },
          "latestTriageDecision": {
            "type": "string",
            "nullable": true
          },
          "latestTriageConfidence": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "lastOccurredAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ConversationStatus": {
        "type": "integer",
        "description": "",
        "x-enumNames": [
          "New",
          "Triaging",
          "AutoReplied",
          "EscalatedAwaitingHuman",
          "EscalationReminded",
          "EscalationExpired",
          "HumanReplied",
          "QueuedForReview",
          "AdminApproved",
          "Resolved",
          "AutoResolved",
          "Failed",
          "Ignored",
          "Archived"
        ],
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13
        ]
      },
      "EmailAgentConversationListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "emailAgentId": {
                "type": "string",
                "format": "guid",
                "nullable": true
              },
              "status": {
                "nullable": true,
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ConversationStatus"
                  }
                ]
              },
              "searchText": {
                "type": "string",
                "nullable": true
              }
            }
          }
        ]
      },
      "EmailAgentConversationDetail": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "agentName",
          "subject",
          "senderEmail",
          "status",
          "lastOccurredAt",
          "escalationUsers",
          "messages"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "agentName": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "senderEmail": {
            "type": "string"
          },
          "senderName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ConversationStatus"
          },
          "escalationReason": {
            "type": "string",
            "nullable": true
          },
          "escalatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resolvedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastOccurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "escalationNotifiedUserIds": {
            "type": "string",
            "nullable": true
          },
          "escalationUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EscalationUserItem"
            }
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailAgentMessageItem"
            }
          }
        }
      },
      "EmailAgentMessageItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "direction",
          "fromEmail",
          "toEmail",
          "subject",
          "receivedAt",
          "processingStatus",
          "isContentPurged"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "direction": {
            "$ref": "#/components/schemas/MessageDirection"
          },
          "fromEmail": {
            "type": "string"
          },
          "fromName": {
            "type": "string",
            "nullable": true
          },
          "toEmail": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "bodyText": {
            "type": "string",
            "nullable": true
          },
          "bodyHtml": {
            "type": "string",
            "nullable": true
          },
          "receivedAt": {
            "type": "string",
            "format": "date-time"
          },
          "processingStatus": {
            "$ref": "#/components/schemas/ProcessingStatus"
          },
          "processingStartedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "processingCompletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "processingError": {
            "type": "string",
            "nullable": true
          },
          "triageDecision": {
            "type": "string",
            "nullable": true
          },
          "triageConfidence": {
            "type": "number",
            "format": "decimal",
            "nullable": true
          },
          "triageReasoning": {
            "type": "string",
            "nullable": true
          },
          "triageMatchedRules": {
            "type": "string",
            "nullable": true
          },
          "isContentPurged": {
            "type": "boolean"
          },
          "escalationUserId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "escalationUserName": {
            "type": "string",
            "nullable": true
          },
          "escalationToolCalls": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "MessageDirection": {
        "type": "integer",
        "description": "",
        "x-enumNames": [
          "Inbound",
          "Outbound",
          "EscalationForward",
          "EscalationReply",
          "EscalationResponse"
        ],
        "enum": [
          0,
          1,
          2,
          3,
          4
        ]
      },
      "ProcessingStatus": {
        "type": "integer",
        "description": "",
        "x-enumNames": [
          "Pending",
          "Triaging",
          "Generating",
          "Sending",
          "Sent",
          "Escalating",
          "EscalationSent",
          "QueuedForReview",
          "Skipped",
          "Failed",
          "InterpretingEscalation"
        ],
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10
        ]
      },
      "UpdateConversationStatusRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "conversationId": {
            "type": "string",
            "format": "guid"
          },
          "status": {
            "$ref": "#/components/schemas/ConversationStatus"
          }
        }
      },
      "ApproveQueuedReplyRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "messageId": {
            "type": "string",
            "format": "guid"
          },
          "editedReplyText": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TestConnectionResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "imapSuccess",
          "smtpSuccess"
        ],
        "properties": {
          "imapSuccess": {
            "type": "boolean"
          },
          "imapError": {
            "type": "string",
            "nullable": true
          },
          "smtpSuccess": {
            "type": "boolean"
          },
          "smtpError": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SmartPasteResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "host": {
            "type": "string"
          },
          "port": {
            "type": "integer",
            "format": "int32"
          },
          "username": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "useSsl": {
            "type": "boolean"
          },
          "fromEmail": {
            "type": "string",
            "nullable": true
          },
          "fromDisplayName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SmartPasteRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "rawText": {
            "type": "string"
          }
        }
      },
      "EscalationChatRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChatMessageDto"
            }
          }
        }
      },
      "ChatMessageDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "role",
          "content"
        ],
        "properties": {
          "role": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "additionalProperties": {
          "nullable": true
        },
        "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
          }
        }
      },
      "IngestEmailRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "senderEmail": {
            "type": "string"
          },
          "senderName": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string"
          },
          "bodyText": {
            "type": "string"
          },
          "bodyHtml": {
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "PagedResultOfEmailSuppressionDetails": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailSuppressionDetails"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "EmailSuppressionDetails": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "email",
          "suppressedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "email": {
            "type": "string"
          },
          "suppressedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PagedResultOfGetEmailTemplatesListTemplateDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetEmailTemplatesListTemplateDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "GetEmailTemplatesListTemplateDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "GetEmailTemplatesListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SortedPagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "filter": {
                "type": "string",
                "nullable": true
              }
            }
          }
        ]
      },
      "GetEmailTemplateResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "subject",
          "body",
          "name",
          "modelFields"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "modelFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelFieldResponse"
            }
          },
          "fakeSubject": {
            "type": "string",
            "nullable": true
          },
          "fakeBody": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ModelFieldResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "modelFieldInfo"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "modelFieldInfo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelFieldInfo"
            }
          }
        }
      },
      "ModelFieldInfo": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "description",
          "type"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      },
      "UpdateEmailTemplateResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "fakeSubject": {
            "type": "string",
            "nullable": true
          },
          "fakeBody": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpdateEmailTemplateRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "subject",
          "body"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string"
          }
        }
      },
      "SendTestEmailRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "templateName"
        ],
        "properties": {
          "templateName": {
            "type": "string"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "RevertEmailTemplateRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          }
        }
      },
      "EmailTemplateAssistantStreamRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "templateId",
          "message"
        ],
        "properties": {
          "templateId": {
            "type": "string",
            "format": "guid"
          },
          "message": {
            "type": "string"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChatMessageDto"
            }
          }
        }
      },
      "PagedResultOfGetIdentityUsersListUserDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetIdentityUsersListUserDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "GetIdentityUsersListUserDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "fullName",
          "emailConfirmed",
          "firstName",
          "lastName",
          "createdDate",
          "isActive"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "profileImageUrl": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "GetIdentityUsersListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SortedPagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "filter": {
                "type": "string",
                "nullable": true
              },
              "roleId": {
                "type": "string",
                "format": "guid",
                "nullable": true
              },
              "isActive": {
                "type": "boolean",
                "nullable": true
              }
            }
          }
        ]
      },
      "CreateIdentityUserRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "firstName",
          "lastName",
          "userName",
          "email",
          "password"
        ],
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "userName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "format": "guid"
            }
          },
          "phoneNumberConfirmed": {
            "type": "boolean"
          }
        }
      },
      "UpdateIdentityUserRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "firstName",
          "lastName",
          "email",
          "userName"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "userName": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "phoneNumberConfirmed": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "format": "guid"
            }
          }
        }
      },
      "DeleteIdentityUserResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success"
        ],
        "properties": {
          "success": {
            "type": "boolean"
          }
        }
      },
      "IdentityUserEditDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "emailConfirmed",
          "firstName",
          "lastName",
          "createdDate",
          "roles",
          "phoneNumberConfirmed",
          "fullName",
          "isActive"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "guid"
            }
          },
          "phoneNumberConfirmed": {
            "type": "boolean"
          },
          "fullName": {
            "type": "string"
          },
          "profileImageUrl": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "GetIdentityUsersCsvRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "filterText": {
            "type": "string",
            "nullable": true
          },
          "roleId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "sorting": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpdateIdentityUserPasswordRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "newPassword"
        ],
        "properties": {
          "userId": {
            "type": "string",
            "format": "guid"
          },
          "newPassword": {
            "type": "string"
          }
        }
      },
      "MediaEntityTypeDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "value",
          "label"
        ],
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "PagedResultOfMediaFileListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaFileListItem"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "MediaFileListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "fileName",
          "cdnUrl",
          "storagePath",
          "contentType",
          "fileSizeBytes",
          "isPublic",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "fileName": {
            "type": "string"
          },
          "cdnUrl": {
            "type": "string"
          },
          "storagePath": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "fileSizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "entityLabel": {
            "type": "string",
            "nullable": true
          },
          "isPublic": {
            "type": "boolean"
          },
          "uploadedByName": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "GetMediaFileResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "fileName",
          "cdnUrl",
          "storagePath",
          "contentType",
          "fileSizeBytes",
          "isPublic",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "fileName": {
            "type": "string"
          },
          "cdnUrl": {
            "type": "string"
          },
          "storagePath": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "fileSizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "entityLabel": {
            "type": "string",
            "nullable": true
          },
          "isPublic": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "uploadedByName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "MediaFileResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "fileName",
          "cdnUrl",
          "contentType",
          "fileSizeBytes",
          "isPublic",
          "isDeleted",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "fileName": {
            "type": "string"
          },
          "cdnUrl": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "fileSizeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "entityLabel": {
            "type": "string",
            "nullable": true
          },
          "isPublic": {
            "type": "boolean"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PagedResultOfVideoListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VideoListItem"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "VideoListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "fileName",
          "bunnyVideoId",
          "playbackUrl",
          "embedUrl",
          "encodeStatus",
          "encodeProgress",
          "durationSeconds",
          "width",
          "height",
          "hasMp4Fallback",
          "storageSize",
          "isPublic",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "fileName": {
            "type": "string"
          },
          "bunnyVideoId": {
            "type": "string",
            "format": "guid"
          },
          "playbackUrl": {
            "type": "string"
          },
          "embedUrl": {
            "type": "string"
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "thumbnailBlurhash": {
            "type": "string",
            "nullable": true
          },
          "encodeStatus": {
            "$ref": "#/components/schemas/VideoEncodeStatus"
          },
          "encodeProgress": {
            "type": "integer",
            "format": "int32"
          },
          "durationSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "width": {
            "type": "integer",
            "format": "int32"
          },
          "height": {
            "type": "integer",
            "format": "int32"
          },
          "availableResolutions": {
            "type": "string",
            "nullable": true
          },
          "hasMp4Fallback": {
            "type": "boolean"
          },
          "storageSize": {
            "type": "integer",
            "format": "int64"
          },
          "isPublic": {
            "type": "boolean"
          },
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "entityLabel": {
            "type": "string",
            "nullable": true
          },
          "collectionId": {
            "type": "string",
            "nullable": true
          },
          "uploadedByName": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "VideoResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "fileName",
          "bunnyVideoId",
          "playbackUrl",
          "embedUrl",
          "encodeStatus",
          "encodeProgress",
          "durationSeconds",
          "width",
          "height",
          "hasMp4Fallback",
          "storageSize",
          "isPublic",
          "isDeleted",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "fileName": {
            "type": "string"
          },
          "bunnyVideoId": {
            "type": "string",
            "format": "guid"
          },
          "playbackUrl": {
            "type": "string"
          },
          "embedUrl": {
            "type": "string"
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "thumbnailBlurhash": {
            "type": "string",
            "nullable": true
          },
          "encodeStatus": {
            "$ref": "#/components/schemas/VideoEncodeStatus"
          },
          "encodeProgress": {
            "type": "integer",
            "format": "int32"
          },
          "durationSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "width": {
            "type": "integer",
            "format": "int32"
          },
          "height": {
            "type": "integer",
            "format": "int32"
          },
          "availableResolutions": {
            "type": "string",
            "nullable": true
          },
          "hasMp4Fallback": {
            "type": "boolean"
          },
          "storageSize": {
            "type": "integer",
            "format": "int64"
          },
          "isPublic": {
            "type": "boolean"
          },
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "entityLabel": {
            "type": "string",
            "nullable": true
          },
          "collectionId": {
            "type": "string",
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "GetPermissionsListResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "permissions"
        ],
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetPermissionsListPermissionDto"
            }
          }
        }
      },
      "GetPermissionsListPermissionDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "PagedResultOfProductLogoDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductLogoDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ProductLogoDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "aliases",
          "contentType",
          "dataUrl",
          "nameInLogo",
          "updatedAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contentType": {
            "type": "string"
          },
          "dataUrl": {
            "type": "string"
          },
          "tileColor": {
            "type": "string",
            "nullable": true
          },
          "nameInLogo": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "GetProductLogoListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SortedPagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "filter": {
                "type": "string",
                "nullable": true
              }
            }
          }
        ]
      },
      "CreateProductLogoRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "fileBase64",
          "contentType"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "aliases": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "fileBase64": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "tileColor": {
            "type": "string",
            "nullable": true
          },
          "nameInLogo": {
            "type": "boolean"
          }
        }
      },
      "UpdateProductLogoRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "aliases": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "fileBase64": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "tileColor": {
            "type": "string",
            "nullable": true
          },
          "nameInLogo": {
            "type": "boolean"
          }
        }
      },
      "PagedResultOfGetRolesListRoleDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetRolesListRoleDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "GetRolesListRoleDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "userCount",
          "permissionCount"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "userCount": {
            "type": "integer",
            "format": "int32"
          },
          "permissionCount": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "GetRolesListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SortedPagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "filter": {
                "type": "string",
                "nullable": true
              }
            }
          }
        ]
      },
      "RoleEditDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "rolePermissions"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "rolePermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionsEditDto"
            }
          }
        }
      },
      "PermissionsEditDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "CreateRoleRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "permissionIds": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "format": "guid"
            }
          }
        }
      },
      "DuplicateRoleRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "roleToDuplicateId"
        ],
        "properties": {
          "roleToDuplicateId": {
            "type": "string",
            "format": "guid"
          },
          "newRoleName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpdateRoleRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "permissionIds": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "format": "guid"
            }
          }
        }
      },
      "PagedResultOfSiteListItemDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteListItemDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "SiteListItemDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "domain",
          "memberCount",
          "currentUserRole",
          "connectionKind"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "memberCount": {
            "type": "integer",
            "format": "int32"
          },
          "currentUserRole": {
            "$ref": "#/components/schemas/SiteUserRole"
          },
          "connectionKind": {
            "$ref": "#/components/schemas/SiteConnectionKind"
          }
        }
      },
      "SiteConnectionKind": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "BuiltIn",
          "Craft",
          "WordPress"
        ],
        "enum": [
          "BuiltIn",
          "Craft",
          "WordPress"
        ]
      },
      "GetSitesListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SortedPagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "filter": {
                "type": "string",
                "nullable": true
              }
            }
          }
        ]
      },
      "SiteDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "domain",
          "postingDays",
          "autoScheduleContentPlanPosts",
          "useInlineStyles",
          "enableVideoStreaming",
          "connectionKind",
          "currentUserRole"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "signature": {
            "type": "string",
            "nullable": true
          },
          "postingDays": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "autoScheduleContentPlanPosts": {
            "type": "boolean"
          },
          "useInlineStyles": {
            "type": "boolean"
          },
          "enableVideoStreaming": {
            "type": "boolean"
          },
          "previewUrl": {
            "type": "string",
            "nullable": true
          },
          "connectionKind": {
            "$ref": "#/components/schemas/SiteConnectionKind"
          },
          "currentUserRole": {
            "$ref": "#/components/schemas/SiteUserRole"
          }
        }
      },
      "SitePostingHistoryDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "days",
          "total",
          "weekdays",
          "suggested"
        ],
        "properties": {
          "days": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "weekdays": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SitePostingDayCount"
            }
          },
          "suggested": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SitePostingDayCount": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "day",
          "count"
        ],
        "properties": {
          "day": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "CreateSiteRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "domain"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          }
        }
      },
      "UpdateSiteRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "domain"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "signature": {
            "type": "string",
            "nullable": true
          },
          "postingDays": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "autoScheduleContentPlanPosts": {
            "type": "boolean"
          },
          "useInlineStyles": {
            "type": "boolean"
          },
          "enableVideoStreaming": {
            "type": "boolean"
          },
          "previewUrl": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SiteSocialAccountsDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "isYouTubeAvailable",
          "availablePlatforms",
          "socialPostTime",
          "timeZone",
          "accounts"
        ],
        "properties": {
          "isYouTubeAvailable": {
            "type": "boolean"
          },
          "availablePlatforms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialAccountPlatform"
            }
          },
          "socialPostTime": {
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteSocialAccountDto"
            }
          }
        }
      },
      "SocialAccountPlatform": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "YouTube",
          "Facebook",
          "LinkedIn",
          "Twitter",
          "GoogleBusiness"
        ],
        "enum": [
          "YouTube",
          "Facebook",
          "LinkedIn",
          "Twitter",
          "GoogleBusiness"
        ]
      },
      "SiteSocialAccountDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "platform",
          "displayName",
          "connectedAt",
          "needsReconnect",
          "autoPost"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "platform": {
            "$ref": "#/components/schemas/SocialAccountPlatform"
          },
          "displayName": {
            "type": "string"
          },
          "channelUrl": {
            "type": "string",
            "nullable": true
          },
          "connectedAt": {
            "type": "string",
            "format": "date-time"
          },
          "needsReconnect": {
            "type": "boolean"
          },
          "reconnectReason": {
            "type": "string",
            "nullable": true
          },
          "autoPost": {
            "type": "boolean"
          },
          "handle": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SitePreviewCheckDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "works",
          "checks"
        ],
        "properties": {
          "works": {
            "type": "boolean"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SitePreviewCheckItemDto"
            }
          }
        }
      },
      "SitePreviewCheckItemDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "outcome",
          "message"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "outcome": {
            "$ref": "#/components/schemas/SitePreviewCheckOutcome"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "SitePreviewCheckOutcome": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "Pass",
          "Warn",
          "Fail"
        ],
        "enum": [
          "Pass",
          "Warn",
          "Fail"
        ]
      },
      "CheckSitePreviewPageRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "previewUrl": {
            "type": "string"
          }
        }
      },
      "YouTubeConnectUrlDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string"
          }
        }
      },
      "CompleteYouTubeConnectionRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "code": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        }
      },
      "TakeDownYouTubeVideoResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "outcome",
          "message"
        ],
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/YouTubeTakeDownOutcome"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "YouTubeTakeDownOutcome": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "MadePrivate",
          "AlreadyPrivate",
          "LeftLive",
          "NotFound"
        ],
        "enum": [
          "MadePrivate",
          "AlreadyPrivate",
          "LeftLive",
          "NotFound"
        ]
      },
      "TakeDownYouTubeVideoRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "videoId"
        ],
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "videoId": {
            "type": "string"
          }
        }
      },
      "SocialConnectUrlDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string"
          }
        }
      },
      "SocialConnectResultDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "choices"
        ],
        "properties": {
          "account": {
            "nullable": true,
            "oneOf": [
              {
                "$ref": "#/components/schemas/SiteSocialAccountDto"
              }
            ]
          },
          "choices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialAccountChoiceDto"
            }
          },
          "choiceToken": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SocialAccountChoiceDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "CompleteSocialConnectionRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "platform": {
            "$ref": "#/components/schemas/SocialAccountPlatform"
          },
          "code": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        }
      },
      "ChooseSocialAccountRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "choiceToken": {
            "type": "string"
          },
          "choiceId": {
            "type": "string"
          }
        }
      },
      "UpdateSiteSocialAccountRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "id": {
            "type": "string",
            "format": "guid"
          },
          "autoPost": {
            "type": "boolean"
          }
        }
      },
      "SaveSiteSocialPostTimeRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "socialPostTime": {
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          }
        }
      },
      "SiteConnectionDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "hasApiKey"
        ],
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/SiteConnectionKind"
          },
          "apiUrl": {
            "type": "string",
            "nullable": true
          },
          "hasApiKey": {
            "type": "boolean"
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "authorRef": {
            "type": "string",
            "nullable": true
          },
          "lastTestedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastTestError": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "SaveSiteConnectionRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "kind": {
            "$ref": "#/components/schemas/SiteConnectionKind"
          },
          "apiUrl": {
            "type": "string",
            "nullable": true
          },
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "clearApiKey": {
            "type": "boolean"
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "authorRef": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ConnectionTestResultDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "succeeded",
          "message",
          "categoryCount"
        ],
        "properties": {
          "succeeded": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "categoryCount": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "SiteContentKeyDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "prefix",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastUsedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "CreatedSiteContentKeyDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "prefix",
          "createdAt",
          "key"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "key": {
            "type": "string"
          }
        }
      },
      "CreateSiteContentKeyRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "SiteCategoryDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "title",
          "slug",
          "isActive",
          "isExternal"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isExternal": {
            "type": "boolean"
          }
        }
      },
      "SaveSiteCategoryRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "title"
        ],
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "id": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "SitePromptDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "instructions"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/SitePromptType"
          },
          "instructions": {
            "type": "string"
          }
        }
      },
      "SitePromptType": {
        "type": "string",
        "description": "",
        "x-enumNames": [
          "ImageGeneration",
          "Humanization",
          "InfographicStyle",
          "ContentPlanTopics",
          "InfographicAlternateStyle",
          "HeroStyle"
        ],
        "enum": [
          "ImageGeneration",
          "Humanization",
          "InfographicStyle",
          "ContentPlanTopics",
          "InfographicAlternateStyle",
          "HeroStyle"
        ]
      },
      "UpdateSitePromptsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "prompts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SitePromptInput"
            }
          }
        }
      },
      "SitePromptInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "$ref": "#/components/schemas/SitePromptType"
          },
          "instructions": {
            "type": "string"
          }
        }
      },
      "SitePageTypeDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "path",
          "isSystemDefined"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "isSystemDefined": {
            "type": "boolean"
          }
        }
      },
      "SaveSitePageTypeRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "path"
        ],
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "id": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        }
      },
      "SiteMemberDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "email",
          "role",
          "isPending"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "userId": {
            "type": "string",
            "format": "guid",
            "nullable": true
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/SiteUserRole"
          },
          "isPending": {
            "type": "boolean"
          }
        }
      },
      "AddSiteMemberRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "email"
        ],
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "email": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/SiteUserRole"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpdateSiteMemberRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "siteId": {
            "type": "string",
            "format": "guid"
          },
          "memberId": {
            "type": "string",
            "format": "guid"
          },
          "role": {
            "$ref": "#/components/schemas/SiteUserRole"
          }
        }
      },
      "UsageDashboardResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "activeUsersToday",
          "activeUsersLast7Days",
          "activeUsersLast30Days",
          "totalSessions",
          "totalActivities",
          "dailyActiveUsers",
          "activityByCategory",
          "activityByType",
          "usersOptedOutOfTracking"
        ],
        "properties": {
          "activeUsersToday": {
            "type": "integer",
            "format": "int32"
          },
          "activeUsersLast7Days": {
            "type": "integer",
            "format": "int32"
          },
          "activeUsersLast30Days": {
            "type": "integer",
            "format": "int32"
          },
          "totalSessions": {
            "type": "integer",
            "format": "int32"
          },
          "totalActivities": {
            "type": "integer",
            "format": "int32"
          },
          "dailyActiveUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DailyActiveUsersPoint"
            }
          },
          "activityByCategory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CategoryBreakdown"
            }
          },
          "activityByType": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CategoryBreakdown"
            }
          },
          "usersOptedOutOfTracking": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "DailyActiveUsersPoint": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "date",
          "uniqueUsers",
          "totalActivities"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "uniqueUsers": {
            "type": "integer",
            "format": "int32"
          },
          "totalActivities": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "CategoryBreakdown": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "count"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PagedResultOfUserActivityListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserActivityListItem"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "UserActivityListItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "userId",
          "userName",
          "activityType",
          "category",
          "occurredAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "userId": {
            "type": "string",
            "format": "guid"
          },
          "userName": {
            "type": "string"
          },
          "userEmail": {
            "type": "string",
            "nullable": true
          },
          "activityType": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "UserEngagementItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "userId",
          "userName",
          "totalActivities",
          "sessionCount",
          "topCategories"
        ],
        "properties": {
          "userId": {
            "type": "string",
            "format": "guid"
          },
          "userName": {
            "type": "string"
          },
          "userEmail": {
            "type": "string",
            "nullable": true
          },
          "totalActivities": {
            "type": "integer",
            "format": "int32"
          },
          "sessionCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastActiveDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "topCategories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CategoryBreakdown"
            }
          }
        }
      },
      "PagedResultOfUserInvitationDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserInvitationDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "UserInvitationDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "email",
          "roleName",
          "status",
          "isExpired",
          "expiresAt",
          "invitedByName",
          "createdAt",
          "acceptedAt",
          "revokedAt",
          "resendCount",
          "lastSentAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "email": {
            "type": "string"
          },
          "roleName": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/InvitationStatus"
          },
          "isExpired": {
            "type": "boolean"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "invitedByName": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "acceptedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resendCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastSentAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "InvitationStatus": {
        "type": "integer",
        "description": "",
        "x-enumNames": [
          "Pending",
          "Accepted",
          "Revoked"
        ],
        "enum": [
          0,
          1,
          2
        ]
      },
      "GetUserInvitationsListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SortedPagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "filter": {
                "type": "string",
                "nullable": true
              },
              "status": {
                "nullable": true,
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/InvitationStatus"
                  }
                ]
              },
              "onlyPending": {
                "type": "boolean",
                "nullable": true
              }
            }
          }
        ]
      },
      "CreateUserInvitationRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "email"
        ],
        "properties": {
          "email": {
            "type": "string"
          },
          "roleName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "PagedResultOfAccessRequestDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "items",
          "totalCount",
          "page",
          "pageSize"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccessRequestDto"
            }
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "AccessRequestDto": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "email",
          "displayName",
          "loginProvider",
          "status",
          "requestedAt",
          "decidedAt",
          "decidedByName",
          "decisionNote"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "email": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "loginProvider": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/AccessRequestStatus"
          },
          "requestedAt": {
            "type": "string",
            "format": "date-time"
          },
          "decidedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "decidedByName": {
            "type": "string",
            "nullable": true
          },
          "decisionNote": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "AccessRequestStatus": {
        "type": "integer",
        "description": "",
        "x-enumNames": [
          "Pending",
          "Approved",
          "Rejected"
        ],
        "enum": [
          0,
          1,
          2
        ]
      },
      "GetAccessRequestsListRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SortedPagedRequest"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "filter": {
                "type": "string",
                "nullable": true
              },
              "status": {
                "nullable": true,
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AccessRequestStatus"
                  }
                ]
              }
            }
          }
        ]
      },
      "ApproveAccessRequestBody": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "roleName": {
            "type": "string",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "RejectAccessRequestBody": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UserNotificationResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "userId",
          "notificationType",
          "isEnabled"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "userId": {
            "type": "string",
            "format": "guid"
          },
          "notificationType": {
            "$ref": "#/components/schemas/UserNotificationTypes"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "reminderTime": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UserNotificationTypes": {
        "type": "integer",
        "description": "",
        "x-enumNames": [
          "ProductUpdates",
          "WeeklySummary",
          "UsageDigest",
          "UpdatePrivacy",
          "AiPrivacy"
        ],
        "enum": [
          0,
          1,
          2,
          3,
          4
        ]
      },
      "UpsertUserNotificationRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "notificationType": {
            "$ref": "#/components/schemas/UserNotificationTypes"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "reminderTime": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpsertUserNotificationsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "preferences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserNotificationUpsertItem"
            }
          }
        }
      },
      "UserNotificationUpsertItem": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "notificationType": {
            "$ref": "#/components/schemas/UserNotificationTypes"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "reminderTime": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UserProfileResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "userId",
          "emailConfirmed"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "guid"
          },
          "userId": {
            "type": "string",
            "format": "guid"
          },
          "company": {
            "type": "string",
            "nullable": true
          },
          "companyWebsiteUrl": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "profileImageUrl": {
            "type": "string",
            "nullable": true
          },
          "timezonePreference": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpdateUserInfoResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "userId"
        ],
        "properties": {
          "userId": {
            "type": "string",
            "format": "guid"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "company": {
            "type": "string",
            "nullable": true
          },
          "companyWebsiteUrl": {
            "type": "string",
            "nullable": true
          },
          "timezonePreference": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpdateUserInfoRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "company": {
            "type": "string",
            "nullable": true
          },
          "companyWebsiteUrl": {
            "type": "string",
            "nullable": true
          },
          "timezonePreference": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpdateUserTimezoneRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "timezonePreference": {
            "type": "string"
          }
        }
      },
      "UploadProfileImageResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "userId",
          "profileImageUrl"
        ],
        "properties": {
          "userId": {
            "type": "string",
            "format": "guid"
          },
          "profileImageUrl": {
            "type": "string"
          }
        }
      },
      "UpdateProfileImageResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "userId"
        ],
        "properties": {
          "userId": {
            "type": "string",
            "format": "guid"
          },
          "profileImageUrl": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "UpdateProfileImageRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "profileImageUrl": {
            "type": "string",
            "nullable": true
          }
        }
      }
    },
    "securitySchemes": {
      "Code Flow": {
        "type": "oauth2",
        "bearerFormat": "JWT",
        "openIdConnectUrl": "https://auth.textagent.dev/.well-known/openid-configuration",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://auth.textagent.dev/connect/authorize",
            "tokenUrl": "https://auth.textagent.dev/connect/token",
            "scopes": {
              "openid": "Identity user Id",
              "profile": "User's profile",
              "email": "Email",
              "roles": "User's roles",
              "Main_Api": "Main Api Scope",
              "permissions": "permissions"
            }
          }
        }
      }
    }
  }
}