appBskyUnspeccedGetAtmosphereRecordViews top-level constant

Map<String, dynamic> const appBskyUnspeccedGetAtmosphereRecordViews

app.bsky.unspecced.getAtmosphereRecordViews

Implementation

const appBskyUnspeccedGetAtmosphereRecordViews = <String, dynamic>{
  "lexicon": 1,
  "id": "app.bsky.unspecced.getAtmosphereRecordViews",
  "defs": {
    "main": {
      "type": "procedure",
      "description":
          "Get hydrated views and raw associations for multiple Atmosphere records. Requires authentication. Roots may be latest or pinned to exact CIDs; dependencies are always latest.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["records"],
          "properties": {
            "records": {
              "type": "array",
              "description":
                  "Records to fetch. Results preserve this order, including duplicates.",
              "items": {"type": "ref", "ref": "#recordRef"},
              "minLength": 1,
              "maxLength": 25,
            },
          },
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["views"],
          "properties": {
            "views": {
              "type": "array",
              "description":
                  "Index-aligned with the input records. Missing or invisible roots produce empty objects. Visible roots without a supported view still return raw associations. Each result includes only its own dependencies.",
              "items": {"type": "ref", "ref": "#recordView"},
              "maxLength": 25,
            },
          },
        },
      },
    },
    "recordRef": {
      "type": "object",
      "required": ["uri"],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description":
              "Complete DID-based AT-URI of the record, including collection and record key.",
        },
        "cid": {
          "type": "string",
          "format": "cid",
          "description":
              "Optional CID pinning the exact record version. Omit to fetch the latest version. Unavailable pins never fall back to latest.",
        },
      },
    },
    "recordView": {
      "type": "object",
      "properties": {
        "view": {
          "type": "union",
          "description":
              "Hydrated view, present only when the records supply enough information to populate the required fields.",
          "refs": [
            "app.bsky.embed.external#viewArticle",
            "app.bsky.embed.external#viewArticlePublication",
            "app.bsky.embed.external#viewGallery",
            "app.bsky.embed.external#viewLivestream",
          ],
        },
        "associatedRefs": {
          "type": "array",
          "description":
              "The selected root followed by its visible latest dependencies: a document's publication or a gallery's items and photos. Index-aligned with associatedRecords.",
          "items": {"type": "ref", "ref": "com.atproto.repo.strongRef"},
        },
        "associatedRecords": {
          "type": "array",
          "description": "Raw record data, index-aligned with associatedRefs.",
          "items": {"type": "unknown"},
        },
      },
    },
  },
};