{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "authorDid": {
            "description": "DID of the user asking the question",
            "format": "did",
            "type": "string"
          },
          "content": {
            "description": "The question content",
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "createdAt": {
            "description": "When the question was created",
            "format": "datetime",
            "type": "string"
          },
          "sourceData": {
            "description": "Platform-specific metadata and additional data",
            "type": "unknown"
          },
          "sourceType": {
            "description": "The platform/source where this question originated",
            "enum": [
              "askimut",
              "bsky",
              "standard.site",
              "mastodon",
              "nostr"
            ],
            "type": "string"
          },
          "sourceUri": {
            "description": "Original URI from the source platform (e.g., Bluesky post URI)",
            "format": "uri",
            "type": "string"
          },
          "tags": {
            "description": "Optional tags for categorizing the question",
            "items": {
              "maxLength": 50,
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "targetDid": {
            "description": "DID of the user being asked",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "content",
          "targetDid",
          "authorDid",
          "sourceType",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "at.askimut.question",
  "lexicon": 1
}
