{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stashr-me/json-schema/stashr-me-bookmark-filters-schema.json",
  "title": "BookmarkFilters",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stashr-me-openapi.json#/components/schemas/BookmarkFilters",
  "properties": {
    "authorMode": {
      "default": "include",
      "enum": [
        "include",
        "exclude"
      ],
      "type": "string"
    },
    "authors": {
      "items": {
        "description": "An author username (\"naval\"), optionally platform-scoped (\"twitter:naval\")",
        "type": "string"
      },
      "type": "array"
    },
    "capturedAfter": {
      "description": "Only bookmarks saved on/after this ISO-8601 date or datetime (inclusive)",
      "type": "string"
    },
    "capturedBefore": {
      "description": "Only bookmarks saved before this ISO-8601 date or datetime (exclusive)",
      "type": "string"
    },
    "capturedWithin": {
      "description": "Only bookmarks saved in the last N days, as \"<N>d\" (1d–3650d), counted in UTC days including today. \"7d\" = today and the 6 days before",
      "pattern": "^[1-9][0-9]{0,3}d$",
      "type": "string"
    },
    "contentTypeMode": {
      "default": "include",
      "enum": [
        "include",
        "exclude"
      ],
      "type": "string"
    },
    "contentTypes": {
      "items": {
        "description": "A content type (\"article\"), optionally platform-scoped (\"twitter:article\"). Valid types: repo, image, post, video, comment, article, page, snippet, event, link, listing",
        "type": "string"
      },
      "type": "array"
    },
    "excludeTags": {
      "items": {
        "description": "A tag name the bookmark must not have (ANDed with tags/tagMode). \"__untagged__\" excludes untagged bookmarks",
        "type": "string"
      },
      "type": "array"
    },
    "favorite": {
      "items": {
        "enum": [
          "favorite",
          "not-favorite"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "media": {
      "items": {
        "enum": [
          "image",
          "video",
          "any-media",
          "text-only"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "mediaMode": {
      "default": "include",
      "enum": [
        "include",
        "exclude"
      ],
      "type": "string"
    },
    "note": {
      "items": {
        "enum": [
          "has-note",
          "no-note"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "platformMode": {
      "default": "include",
      "enum": [
        "include",
        "exclude"
      ],
      "type": "string"
    },
    "platforms": {
      "items": {
        "description": "Platform id. X/Twitter is \"twitter\".",
        "enum": [
          "github",
          "instagram",
          "reddit",
          "linkedin",
          "tiktok",
          "twitter",
          "web",
          "youtube",
          "facebook",
          "hackernews"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "postedAfter": {
      "description": "Only bookmarks originally posted on/after this ISO-8601 date or datetime (inclusive). Bookmarks without a known post date are excluded",
      "type": "string"
    },
    "postedBefore": {
      "description": "Only bookmarks originally posted before this ISO-8601 date or datetime (exclusive). Bookmarks without a known post date are excluded",
      "type": "string"
    },
    "postedWithin": {
      "description": "Only bookmarks originally posted in the last N days, as \"<N>d\" (1d–3650d), counted in UTC days including today. Bookmarks without a known post date are excluded",
      "pattern": "^[1-9][0-9]{0,3}d$",
      "type": "string"
    },
    "tagMode": {
      "default": "include_any",
      "enum": [
        "include_any",
        "include_all",
        "exclude_any",
        "exclude_all"
      ],
      "type": "string"
    },
    "tags": {
      "items": {
        "description": "A tag name from /v1/tags",
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object"
}