appBskyGraphDefs top-level constant

Map<String, dynamic> const appBskyGraphDefs

app.bsky.graph.defs

Implementation

const appBskyGraphDefs = <String, dynamic>{
  "lexicon": 1,
  "id": "app.bsky.graph.defs",
  "defs": {
    "listViewBasic": {
      "type": "object",
      "required": ["uri", "cid", "name", "purpose"],
      "properties": {
        "uri": {"type": "string", "format": "at-uri"},
        "cid": {"type": "string", "format": "cid"},
        "name": {"type": "string", "minLength": 1, "maxLength": 64},
        "purpose": {"type": "ref", "ref": "#listPurpose"},
        "avatar": {"type": "string", "format": "uri"},
        "labels": {
          "type": "array",
          "items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
        },
        "viewer": {"type": "ref", "ref": "#listViewerState"},
        "indexedAt": {"type": "string", "format": "datetime"}
      }
    },
    "listView": {
      "type": "object",
      "required": ["uri", "cid", "creator", "name", "purpose", "indexedAt"],
      "properties": {
        "uri": {"type": "string", "format": "at-uri"},
        "cid": {"type": "string", "format": "cid"},
        "creator": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"},
        "name": {"type": "string", "minLength": 1, "maxLength": 64},
        "purpose": {"type": "ref", "ref": "#listPurpose"},
        "description": {
          "type": "string",
          "maxLength": 3000,
          "maxGraphemes": 300
        },
        "descriptionFacets": {
          "type": "array",
          "items": {"type": "ref", "ref": "app.bsky.richtext.facet"}
        },
        "avatar": {"type": "string", "format": "uri"},
        "labels": {
          "type": "array",
          "items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
        },
        "viewer": {"type": "ref", "ref": "#listViewerState"},
        "indexedAt": {"type": "string", "format": "datetime"}
      }
    },
    "listItemView": {
      "type": "object",
      "required": ["uri", "subject"],
      "properties": {
        "uri": {"type": "string", "format": "at-uri"},
        "subject": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
      }
    },
    "listPurpose": {
      "type": "string",
      "knownValues": [
        "app.bsky.graph.defs#modlist",
        "app.bsky.graph.defs#curatelist"
      ]
    },
    "modlist": {
      "type": "token",
      "description":
          "A list of actors to apply an aggregate moderation action (mute/block) on."
    },
    "curatelist": {
      "type": "token",
      "description":
          "A list of actors used for curation purposes such as list feeds or interaction gating."
    },
    "listViewerState": {
      "type": "object",
      "properties": {
        "muted": {"type": "boolean"},
        "blocked": {"type": "string", "format": "at-uri"}
      }
    },
    "notFoundActor": {
      "type": "object",
      "description": "indicates that a handle or DID could not be resolved",
      "required": ["actor", "notFound"],
      "properties": {
        "actor": {"type": "string", "format": "at-identifier"},
        "notFound": {"type": "boolean", "const": true}
      }
    },
    "relationship": {
      "type": "object",
      "description":
          "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)",
      "required": ["did"],
      "properties": {
        "did": {"type": "string", "format": "did"},
        "following": {
          "type": "string",
          "format": "at-uri",
          "description":
              "if the actor follows this DID, this is the AT-URI of the follow record"
        },
        "followedBy": {
          "type": "string",
          "format": "at-uri",
          "description":
              "if the actor is followed by this DID, contains the AT-URI of the follow record"
        }
      }
    }
  }
};