tools.kryphocron.feed.postPublic

Public-tier post. Field schema compatible with app.bsky.feed.post; consuming AppViews must include this NSID in their allowlist to index it. Substrate behavior: emit to public firehose, no audience-list consultation.

Details · record, key tid
Kindrecord
Record keytid
Authorityfeed.kryphocron.tools
Commit rev3n2ivygkip22a
Indexed
cid bafyreiela4ztrzr3ymfz6sv6ueayx6u6pc7j3q3sbthsj7d47drzbawfnu

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "aspectRatio": {
      "description": "Width and height of an image or video. Only the ratio is meaningful; units are arbitrary.",
      "properties": {
        "height": {
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "byteSlice": {
      "properties": {
        "byteEnd": {
          "minimum": 0,
          "type": "integer"
        },
        "byteStart": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "byteStart",
        "byteEnd"
      ],
      "type": "object"
    },
    "caption": {
      "properties": {
        "file": {
          "accept": [
            "text/vtt"
          ],
          "maxSize": 20000,
          "type": "blob"
        },
        "lang": {
          "format": "language",
          "type": "string"
        }
      },
      "required": [
        "lang",
        "file"
      ],
      "type": "object"
    },
    "embedExternal": {
      "properties": {
        "external": {
          "ref": "#external",
          "type": "ref"
        }
      },
      "required": [
        "external"
      ],
      "type": "object"
    },
    "embedGallery": {
      "properties": {
        "items": {
          "description": "Gallery items. The schema ceiling of 20 is future-proofing; authoring clients should currently limit galleries to 10 items.",
          "items": {
            "refs": [
              "#galleryImage"
            ],
            "type": "union"
          },
          "maxLength": 20,
          "type": "array"
        }
      },
      "required": [
        "items"
      ],
      "type": "object"
    },
    "embedImage": {
      "properties": {
        "images": {
          "items": {
            "ref": "#image",
            "type": "ref"
          },
          "maxLength": 4,
          "type": "array"
        }
      },
      "required": [
        "images"
      ],
      "type": "object"
    },
    "embedRecord": {
      "properties": {
        "record": {
          "ref": "#strongRef",
          "type": "ref"
        }
      },
      "required": [
        "record"
      ],
      "type": "object"
    },
    "embedRecordWithMedia": {
      "properties": {
        "media": {
          "refs": [
            "#embedImage",
            "#embedGallery",
            "#embedVideo",
            "#embedExternal"
          ],
          "type": "union"
        },
        "record": {
          "ref": "#embedRecord",
          "type": "ref"
        }
      },
      "required": [
        "record",
        "media"
      ],
      "type": "object"
    },
    "embedVideo": {
      "properties": {
        "alt": {
          "description": "Alt-text for accessibility.",
          "type": "string"
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref"
        },
        "captions": {
          "items": {
            "ref": "#caption",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        },
        "presentation": {
          "description": "Presentation hint for clients.",
          "knownValues": [
            "default",
            "gif"
          ],
          "type": "string"
        },
        "video": {
          "accept": [
            "video/mp4"
          ],
          "maxSize": 300000000,
          "type": "blob"
        }
      },
      "required": [
        "video"
      ],
      "type": "object"
    },
    "external": {
      "properties": {
        "description": {
          "type": "string"
        },
        "thumb": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        },
        "title": {
          "type": "string"
        },
        "uri": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "title",
        "description"
      ],
      "type": "object"
    },
    "facet": {
      "properties": {
        "features": {
          "items": {
            "refs": [
              "#mention",
              "#link",
              "#tag"
            ],
            "type": "union"
          },
          "type": "array"
        },
        "index": {
          "ref": "#byteSlice",
          "type": "ref"
        }
      },
      "required": [
        "index",
        "features"
      ],
      "type": "object"
    },
    "galleryImage": {
      "properties": {
        "alt": {
          "description": "Alt-text for accessibility.",
          "type": "string"
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref"
        },
        "image": {
          "accept": [
            "image/*"
          ],
          "maxSize": 2000000,
          "type": "blob"
        }
      },
      "required": [
        "image",
        "alt",
        "aspectRatio"
      ],
      "type": "object"
    },
    "image": {
      "properties": {
        "alt": {
          "description": "Alt-text for accessibility.",
          "type": "string"
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref"
        },
        "image": {
          "accept": [
            "image/*"
          ],
          "maxSize": 2000000,
          "type": "blob"
        }
      },
      "required": [
        "image",
        "alt"
      ],
      "type": "object"
    },
    "link": {
      "properties": {
        "uri": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "Time the post was created on the client.",
            "format": "datetime",
            "type": "string"
          },
          "embed": {
            "description": "Optional embed (image, external link, or quoted record).",
            "refs": [
              "#embedImage",
              "#embedExternal",
              "#embedRecord"
            ],
            "type": "union"
          },
          "facets": {
            "description": "Text annotations (mentions, links, tags).",
            "items": {
              "ref": "#facet",
              "type": "ref"
            },
            "type": "array"
          },
          "reply": {
            "description": "Optional parent and root post references.",
            "ref": "#replyRef",
            "type": "ref"
          },
          "text": {
            "description": "Post content.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          }
        },
        "required": [
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "mention": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "replyRef": {
      "properties": {
        "parent": {
          "ref": "#strongRef",
          "type": "ref"
        },
        "root": {
          "ref": "#strongRef",
          "type": "ref"
        }
      },
      "required": [
        "root",
        "parent"
      ],
      "type": "object"
    },
    "selfLabel": {
      "properties": {
        "val": {
          "description": "The label value.",
          "maxLength": 128,
          "type": "string"
        }
      },
      "required": [
        "val"
      ],
      "type": "object"
    },
    "selfLabels": {
      "description": "Content labels applied by the record's author.",
      "properties": {
        "values": {
          "items": {
            "ref": "#selfLabel",
            "type": "ref"
          },
          "maxLength": 10,
          "type": "array"
        }
      },
      "required": [
        "values"
      ],
      "type": "object"
    },
    "strongRef": {
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid"
      ],
      "type": "object"
    },
    "tag": {
      "properties": {
        "tag": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "required": [
        "tag"
      ],
      "type": "object"
    }
  },
  "description": "Public-tier post. Field schema compatible with app.bsky.feed.post; consuming AppViews must include this NSID in their allowlist to index it. Substrate behavior: emit to public firehose, no audience-list consultation.",
  "id": "tools.kryphocron.feed.postPublic",
  "lexicon": 1
}