appBskyFeedGetAuthorFeed top-level constant

Map<String, dynamic> const appBskyFeedGetAuthorFeed

app.bsky.feed.getAuthorFeed

Implementation

const appBskyFeedGetAuthorFeed = <String, dynamic>{
  "lexicon": 1,
  "id": "app.bsky.feed.getAuthorFeed",
  "defs": {
    "main": {
      "type": "query",
      "description":
          "Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth.",
      "parameters": {
        "type": "params",
        "required": ["actor"],
        "properties": {
          "actor": {"type": "string", "format": "at-identifier"},
          "limit": {
            "type": "integer",
            "default": 50,
            "minimum": 1,
            "maximum": 100,
          },
          "cursor": {"type": "string"},
          "filter": {
            "type": "string",
            "description":
                "Combinations of post/repost types to include in response.",
            "default": "posts_with_replies",
            "knownValues": [
              "posts_with_replies",
              "posts_no_replies",
              "posts_with_media",
              "posts_and_author_threads",
              "posts_with_video",
            ],
          },
          "includePins": {"type": "boolean", "default": false},
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["feed"],
          "properties": {
            "cursor": {"type": "string"},
            "feed": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "app.bsky.feed.defs#feedViewPost",
              },
            },
          },
        },
      },
      "errors": [
        {"name": "BlockedActor"},
        {"name": "BlockedByActor"},
      ],
    },
  },
};