net.nusno.gyoka.feed.defs

Repository @nusno.net did:plc:gjkxkrudpqumaiiytxodmpaj namespace authority
Details · defs
Kinddefs
Authorityfeed.gyoka.nusno.net
Commit rev3n2xvbmojmf23
Indexed
cid bafyreihtrtg5u3lod7x7sjfxtlmwzk2vsyfocrcglesuz5x2rvnvjhzrhe

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "feedView": {
      "description": "A Gyoka feed entry.",
      "properties": {
        "isActive": {
          "description": "Whether the feed is currently active.",
          "type": "boolean"
        },
        "langFilter": {
          "description": "Whether language filtering is enabled for the feed.",
          "type": "boolean"
        },
        "orderRevision": {
          "description": "Current feed order revision.",
          "minimum": 0,
          "type": "integer"
        },
        "uri": {
          "description": "AT-URI of the feed generator record.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "orderRevision",
        "langFilter",
        "isActive"
      ],
      "type": "object"
    },
    "placement": {
      "properties": {
        "anchor": {
          "description": "AT-URI of the anchor post. Required by before and after placements.",
          "format": "at-uri",
          "type": "string"
        },
        "position": {
          "enum": [
            "append",
            "prepend",
            "before",
            "after"
          ],
          "type": "string"
        }
      },
      "required": [
        "position"
      ],
      "type": "object"
    },
    "postInput": {
      "properties": {
        "cid": {
          "description": "CID of the post record.",
          "format": "cid",
          "type": "string"
        },
        "indexedAt": {
          "description": "Timestamp recorded when the post is added. Defaults to the current time when omitted.",
          "format": "datetime",
          "type": "string"
        },
        "languages": {
          "description": "Optional language tags for the post. The wildcard '*' is accepted, and non-wildcard values are normalized to primary language subtags.",
          "items": {
            "description": "A BCP-47 language tag or the wildcard '*'.",
            "type": "string"
          },
          "maxLength": 5,
          "type": "array"
        },
        "reason": {
          "closed": true,
          "description": "Reason for including the post in the feed skeleton.",
          "refs": [
            "#skeletonReasonRepost",
            "#skeletonReasonPin"
          ],
          "type": "union"
        },
        "uri": {
          "description": "AT-URI of the app.bsky.feed.post record to add.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid"
      ],
      "type": "object"
    },
    "postResult": {
      "properties": {
        "action": {
          "enum": [
            "created",
            "updated",
            "unchanged",
            "failed",
            "removed",
            "notFound"
          ],
          "type": "string"
        },
        "error": {
          "description": "Error code for a failed item.",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "action"
      ],
      "type": "object"
    },
    "postView": {
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "languages": {
          "items": {
            "description": "Normalized primary language tag or '*'.",
            "type": "string"
          },
          "type": "array"
        },
        "reason": {
          "closed": true,
          "refs": [
            "#skeletonReasonRepost",
            "#skeletonReasonPin"
          ],
          "type": "union"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "languages",
        "indexedAt"
      ],
      "type": "object"
    },
    "skeletonReasonPin": {
      "properties": {},
      "type": "object"
    },
    "skeletonReasonRepost": {
      "properties": {
        "repost": {
          "description": "AT-URI of the app.bsky.feed.repost record associated with this reason.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "repost"
      ],
      "type": "object"
    }
  },
  "id": "net.nusno.gyoka.feed.defs",
  "lexicon": 1
}