{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orion-advisor-solutions/json-schema/orion-advisor-solutions-oas-web-api-dto-blogging-newsfeed-dto-schema.json",
  "title": "OAS.WebApi.DTO.Blogging.NewsfeedDto",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orion-advisor-solutions-blogging-newsfeed-api-openapi.yml#/components/schemas/OAS.WebApi.DTO.Blogging.NewsfeedDto",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "title": {
      "type": "string"
    },
    "feedStatus": {
      "type": "string",
      "enum": [
        "Inactive",
        "Active",
        "Draft",
        "Scheduled",
        "Published",
        "EBN",
        "Statement"
      ]
    },
    "feedType": {
      "type": "string",
      "enum": [
        "Post",
        "Rss",
        "Notification",
        "Statement",
        "Webinar",
        "AdvisorMaterial"
      ]
    },
    "audienceType": {
      "type": "string",
      "enum": [
        "Clients",
        "Reps"
      ]
    },
    "audience": {
      "$ref": "#/$defs/OAS.WebApi.DTO.Blogging.NewsfeedAudienceDto"
    },
    "content": {
      "$ref": "#/$defs/OAS.WebApi.DTO.Blogging.NewsfeedContentDto"
    },
    "publishDate": {
      "type": "string",
      "format": "date-time"
    },
    "createdBy": {
      "type": "string"
    },
    "categoryId": {
      "type": "integer",
      "format": "int32"
    },
    "subCategoryId": {
      "type": "integer",
      "format": "int32"
    },
    "file": {
      "$ref": "#/$defs/MultipartDataMediaFormatter.Infrastructure.HttpFile"
    }
  },
  "type": "object",
  "$defs": {
    "MultipartDataMediaFormatter.Infrastructure.HttpFile": {
      "properties": {
        "fileName": {
          "type": "string"
        },
        "mediaType": {
          "type": "string"
        },
        "data": {
          "$ref": "#/$defs/System.Net.Http.StreamContent"
        }
      },
      "type": "object"
    },
    "OAS.DataModel.Portfolio.SimpleClient": {
      "properties": {
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "entityName": {
          "type": "string"
        },
        "isActive": {
          "type": "boolean"
        },
        "repCode": {
          "type": "string"
        },
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "OAS.WebApi.DTO.Blogging.NewsfeedAudienceDto": {
      "properties": {
        "includeAllClients": {
          "type": "boolean"
        },
        "clients": {
          "items": {
            "$ref": "#/$defs/OAS.DataModel.Portfolio.SimpleClient"
          },
          "type": "array"
        },
        "isInclusive": {
          "type": "boolean"
        },
        "brokerDealerIds": {
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "type": "array"
        },
        "audienceFacing": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "OAS.WebApi.DTO.Blogging.NewsfeedContentDto": {
      "properties": {
        "caption": {
          "type": "string"
        },
        "contentText": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "blobId": {
          "type": "integer",
          "format": "int32"
        },
        "file": {
          "$ref": "#/$defs/MultipartDataMediaFormatter.Infrastructure.HttpFile"
        },
        "fileName": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "System.Collections.Generic.KeyValuePairOfSystem.StringAndSystem.Collections.Generic.IEnumerableOfSystem.String": {
      "properties": {
        "key": {
          "readOnly": true,
          "type": "string"
        },
        "value": {
          "items": {
            "type": "string"
          },
          "readOnly": true,
          "type": "array"
        }
      },
      "type": "object"
    },
    "System.Net.Http.StreamContent": {
      "properties": {
        "headers": {
          "items": {
            "$ref": "#/$defs/System.Collections.Generic.KeyValuePairOfSystem.StringAndSystem.Collections.Generic.IEnumerableOfSystem.String"
          },
          "readOnly": true,
          "type": "array"
        }
      },
      "type": "object"
    }
  }
}