{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-create-note-dto-schema.json",
  "title": "CreateNoteDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/softsync-ai-notes-api-openapi.yml#/components/schemas/CreateNoteDto",
  "type": "object",
  "properties": {
    "content": {
      "description": "Note content",
      "allOf": [
        {
          "$ref": "#/$defs/NoteContentDto"
        }
      ]
    },
    "isPrivate": {
      "type": "boolean",
      "description": "Whether this is a private note"
    },
    "replyToMessageId": {
      "type": "string",
      "description": "Reply to another message ID"
    },
    "attachedRecordIds": {
      "description": "Record IDs to attach to this note",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "files": {
      "description": "Optional file attachments",
      "type": "array",
      "items": {
        "$ref": "#/$defs/FileAttachment"
      }
    }
  },
  "required": [
    "content",
    "isPrivate"
  ],
  "$defs": {
    "FileAttachment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "fileName": {
          "type": "string"
        },
        "fileSize": {
          "type": "number"
        },
        "mime": {
          "type": "string"
        },
        "isInline": {
          "type": "boolean"
        },
        "contentId": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "path",
        "fileName",
        "fileSize",
        "mime"
      ]
    },
    "NoteContentDto": {
      "type": "object",
      "properties": {
        "content": {
          "type": "string"
        }
      },
      "required": [
        "content"
      ]
    }
  }
}