appBskyUnspeccedGetAtmosphereTimeline top-level constant

Map<String, dynamic> const appBskyUnspeccedGetAtmosphereTimeline

app.bsky.unspecced.getAtmosphereTimeline

Implementation

const appBskyUnspeccedGetAtmosphereTimeline = <String, dynamic>{
  "lexicon": 1,
  "id": "app.bsky.unspecced.getAtmosphereTimeline",
  "defs": {
    "main": {
      "type": "query",
      "description":
          "Get the authenticated viewer's Atmosphere activity timeline. Groups contain visible activities from the returned page.",
      "parameters": {
        "type": "params",
        "properties": {
          "cursor": {"type": "string"},
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["feed"],
          "properties": {
            "cursor": {"type": "string"},
            "feed": {
              "type": "array",
              "items": {
                "type": "union",
                "refs": [
                  "#activityItem",
                  "#activityActorGroup",
                  "#activitySubjectGroup",
                ],
              },
            },
          },
        },
      },
    },
    "activityRecord": {
      "type": "object",
      "required": ["uri", "cid", "indexedAt"],
      "properties": {
        "uri": {"type": "string", "format": "at-uri"},
        "cid": {"type": "string", "format": "cid"},
        "indexedAt": {"type": "string", "format": "datetime"},
      },
    },
    "viewerState": {
      "type": "object",
      "required": ["subscribed"],
      "properties": {
        "subscribed": {"type": "boolean"},
      },
    },
    "activityItem": {
      "type": "object",
      "required": ["record", "collection", "viewerState"],
      "properties": {
        "record": {"type": "ref", "ref": "#activityRecord"},
        "collection": {"type": "string", "format": "nsid"},
        "viewerState": {"type": "ref", "ref": "#viewerState"},
        "relatedActivity": {
          "type": "array",
          "description":
              "Collection-specific activity references targeting this item's record. Article creations with related activity remain standalone; only the parent item's view is hydrated.",
          "items": {"type": "ref", "ref": "#activityRelatedGroup"},
        },
        "bskyPostRef": {
          "type": "ref",
          "description":
              "The Bluesky post associated with the rendered article or livestream, as declared by its author. The referenced post may not be available.",
          "ref": "com.atproto.repo.strongRef",
        },
        "viewBskyPost": {
          "type": "ref",
          "description":
              "The hydrated Bluesky post associated with the rendered article or livestream, as declared by its author. Omitted when the post is unavailable to the viewer.",
          "ref": "app.bsky.feed.defs#postView",
        },
        "view": {
          "type": "union",
          "refs": [
            "app.bsky.embed.external#viewArticle",
            "app.bsky.embed.external#viewArticlePublication",
            "app.bsky.embed.external#viewGallery",
            "app.bsky.embed.external#viewLivestream",
            "app.bsky.feed.defs#postView",
          ],
        },
      },
    },
    "activityActorGroup": {
      "type": "object",
      "description":
          "Activities by one actor in one collection, positioned at the newest group item. Only the newest item is hydrated. Article creations with related activity remain standalone.",
      "required": ["id", "collection", "indexedAt", "actor", "item", "uris"],
      "properties": {
        "id": {"type": "string"},
        "collection": {"type": "string", "format": "nsid"},
        "indexedAt": {"type": "string", "format": "datetime"},
        "actor": {"type": "string", "format": "did"},
        "item": {"type": "ref", "ref": "#activityItem"},
        "uris": {
          "type": "array",
          "description":
              "All visible group item URIs, including the hydrated item, in newest-first timeline order.",
          "items": {"type": "string", "format": "at-uri"},
          "minLength": 2,
        },
      },
    },
    "activitySubject": {
      "type": "object",
      "description":
          "The shared target of grouped activities, not an activity itself.",
      "required": ["uri", "viewerState", "view"],
      "properties": {
        "uri": {"type": "string", "format": "at-uri"},
        "viewerState": {"type": "ref", "ref": "#viewerState"},
        "bskyPostRef": {
          "type": "ref",
          "description":
              "The author's declared Bluesky post for the target. The post may be unavailable.",
          "ref": "com.atproto.repo.strongRef",
        },
        "viewBskyPost": {
          "type": "ref",
          "description":
              "The hydrated Bluesky post declared by the target's author. Omitted when the post is unavailable to the viewer.",
          "ref": "app.bsky.feed.defs#postView",
        },
        "view": {
          "type": "union",
          "refs": [
            "app.bsky.embed.external#viewArticle",
            "app.bsky.embed.external#viewArticlePublication",
            "app.bsky.embed.external#viewGallery",
          ],
        },
      },
    },
    "activityGroupItem": {
      "type": "object",
      "description":
          "An unhydrated group item. Its actor DID is the authority of its record URI.",
      "required": ["record", "collection"],
      "properties": {
        "record": {"type": "ref", "ref": "#activityRecord"},
        "collection": {"type": "string", "format": "nsid"},
      },
    },
    "activityRelatedGroup": {
      "type": "object",
      "description":
          "Visible activities in one collection targeting the parent item's record, without a time window. Contains references and profiles only, not a shared subject or hydrated action views. Buckets follow newest-first first appearance.",
      "required": ["collection", "activities", "actors"],
      "properties": {
        "collection": {"type": "string", "format": "nsid"},
        "activities": {
          "type": "array",
          "description":
              "Visible activity references in newest-first timeline order. Every activity has the bucket's collection.",
          "items": {"type": "ref", "ref": "#activityGroupItem"},
          "minLength": 1,
        },
        "actors": {
          "type": "array",
          "description":
              "Unique actors in first-appearance order among the bucket's activities.",
          "items": {
            "type": "ref",
            "ref": "app.bsky.actor.defs#profileViewBasic",
          },
          "minLength": 1,
        },
      },
    },
    "activitySubjectGroup": {
      "type": "object",
      "description":
          "Activities in one collection sharing a target, by at least two distinct actors, positioned at the newest group item. Article recommendations and shares group separately across the returned page without a time window. Article creations are not subject-group items. Publication subscriptions and gallery favorites retain age-based grouping windows.",
      "required": [
        "id",
        "collection",
        "indexedAt",
        "subject",
        "activities",
        "actors",
      ],
      "properties": {
        "id": {"type": "string"},
        "collection": {"type": "string", "format": "nsid"},
        "indexedAt": {"type": "string", "format": "datetime"},
        "subject": {"type": "ref", "ref": "#activitySubject"},
        "activities": {
          "type": "array",
          "description":
              "Visible group items in newest-first timeline order. Every activity has the group's collection.",
          "items": {"type": "ref", "ref": "#activityGroupItem"},
          "minLength": 2,
        },
        "actors": {
          "type": "array",
          "description":
              "Unique actors in first-appearance order among group items. At least two distinct actors are required.",
          "items": {
            "type": "ref",
            "ref": "app.bsky.actor.defs#profileViewBasic",
          },
          "minLength": 2,
        },
      },
    },
  },
};