UNPKG

astro-loader-bluesky-posts

Version:

Astro loader for loading Bluesky posts and threads using post URLs or AT-URIs.

1,204 lines (1,202 loc) 159 kB
import { z } from 'astro/zod'; import { RichTextProps } from '@atproto/api'; import { Loader } from 'astro/loaders'; declare const PostSchema: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; associated: z.ZodOptional<z.ZodObject<{ chat: z.ZodOptional<z.ZodObject<{ allowIncoming: z.ZodOptional<z.ZodEnum<{ none: "none"; following: "following"; all: "all"; }>>; }, z.core.$strip>>; }, z.core.$strip>>; labels: z.ZodOptional<z.ZodArray<z.ZodUnknown>>; createdAt: z.ZodOptional<z.ZodString>; }, z.core.$strip>; record: z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.feed.post">; createdAt: z.ZodString; langs: z.ZodOptional<z.ZodArray<z.ZodString>>; text: z.ZodOptional<z.ZodString>; reply: z.ZodOptional<z.ZodObject<{ parent: z.ZodObject<{ cid: z.ZodString; uri: z.ZodString; }, z.core.$strip>; root: z.ZodObject<{ cid: z.ZodString; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; embed: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images">; images: z.ZodArray<z.ZodObject<{ alt: z.ZodString; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; image: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images#view">; images: z.ZodArray<z.ZodObject<{ thumb: z.ZodString; fullsize: z.ZodString; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video">; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; video: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video#view">; cid: z.ZodString; playlist: z.ZodString; thumbnail: z.ZodOptional<z.ZodString>; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external#view">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.record">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.recordWithMedia">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; media: z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images">; images: z.ZodArray<z.ZodObject<{ alt: z.ZodString; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; image: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video">; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; video: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.record#view">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; replyCount: z.ZodOptional<z.ZodNumber>; repostCount: z.ZodOptional<z.ZodNumber>; likeCount: z.ZodOptional<z.ZodNumber>; quoteCount: z.ZodOptional<z.ZodNumber>; indexedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.recordWithMedia#view">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; media: z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external#view">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images#view">; images: z.ZodArray<z.ZodObject<{ thumb: z.ZodString; fullsize: z.ZodString; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video#view">; cid: z.ZodString; playlist: z.ZodString; thumbnail: z.ZodOptional<z.ZodString>; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.list">; list: z.ZodObject<{ title: z.ZodString; items: z.ZodArray<z.ZodObject<{ uri: z.ZodString; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.list#view">; list: z.ZodObject<{ title: z.ZodString; items: z.ZodArray<z.ZodObject<{ uri: z.ZodString; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.starterPack">; starterPack: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; members: z.ZodArray<z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.starterPack#view">; starterPack: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; members: z.ZodArray<z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodString; }, z.core.$catchall<z.ZodUnknown>>]>>; facets: z.ZodOptional<z.ZodArray<z.ZodObject<{ index: z.ZodObject<{ byteStart: z.ZodNumber; byteEnd: z.ZodNumber; }, z.core.$strip>; features: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.richtext.facet#mention">; did: z.ZodString; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.richtext.facet#link">; uri: z.ZodString; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.richtext.facet#tag">; tag: z.ZodString; }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>]>>; }, z.core.$strip>>>; }, z.core.$catchall<z.ZodUnknown>>; embed: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images">; images: z.ZodArray<z.ZodObject<{ alt: z.ZodString; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; image: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images#view">; images: z.ZodArray<z.ZodObject<{ thumb: z.ZodString; fullsize: z.ZodString; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video">; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; video: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video#view">; cid: z.ZodString; playlist: z.ZodString; thumbnail: z.ZodOptional<z.ZodString>; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external#view">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.record">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.recordWithMedia">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; media: z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images">; images: z.ZodArray<z.ZodObject<{ alt: z.ZodString; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; image: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video">; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; video: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.record#view">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; replyCount: z.ZodOptional<z.ZodNumber>; repostCount: z.ZodOptional<z.ZodNumber>; likeCount: z.ZodOptional<z.ZodNumber>; quoteCount: z.ZodOptional<z.ZodNumber>; indexedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.recordWithMedia#view">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; media: z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external#view">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images#view">; images: z.ZodArray<z.ZodObject<{ thumb: z.ZodString; fullsize: z.ZodString; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video#view">; cid: z.ZodString; playlist: z.ZodString; thumbnail: z.ZodOptional<z.ZodString>; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.list">; list: z.ZodObject<{ title: z.ZodString; items: z.ZodArray<z.ZodObject<{ uri: z.ZodString; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.list#view">; list: z.ZodObject<{ title: z.ZodString; items: z.ZodArray<z.ZodObject<{ uri: z.ZodString; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.starterPack">; starterPack: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; members: z.ZodArray<z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.starterPack#view">; starterPack: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; members: z.ZodArray<z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodString; }, z.core.$catchall<z.ZodUnknown>>]>>; replyCount: z.ZodNumber; repostCount: z.ZodNumber; likeCount: z.ZodNumber; quoteCount: z.ZodNumber; indexedAt: z.ZodString; labels: z.ZodOptional<z.ZodArray<z.ZodUnknown>>; }, z.core.$strip>; declare const PostViewExtendedSchema: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; associated: z.ZodOptional<z.ZodObject<{ chat: z.ZodOptional<z.ZodObject<{ allowIncoming: z.ZodOptional<z.ZodEnum<{ none: "none"; following: "following"; all: "all"; }>>; }, z.core.$strip>>; }, z.core.$strip>>; labels: z.ZodOptional<z.ZodArray<z.ZodUnknown>>; createdAt: z.ZodOptional<z.ZodString>; }, z.core.$strip>; record: z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.feed.post">; createdAt: z.ZodString; langs: z.ZodOptional<z.ZodArray<z.ZodString>>; text: z.ZodOptional<z.ZodString>; reply: z.ZodOptional<z.ZodObject<{ parent: z.ZodObject<{ cid: z.ZodString; uri: z.ZodString; }, z.core.$strip>; root: z.ZodObject<{ cid: z.ZodString; uri: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; embed: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images">; images: z.ZodArray<z.ZodObject<{ alt: z.ZodString; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; image: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images#view">; images: z.ZodArray<z.ZodObject<{ thumb: z.ZodString; fullsize: z.ZodString; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video">; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; video: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video#view">; cid: z.ZodString; playlist: z.ZodString; thumbnail: z.ZodOptional<z.ZodString>; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external#view">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.record">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.recordWithMedia">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; media: z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images">; images: z.ZodArray<z.ZodObject<{ alt: z.ZodString; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; image: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video">; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; video: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.record#view">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; replyCount: z.ZodOptional<z.ZodNumber>; repostCount: z.ZodOptional<z.ZodNumber>; likeCount: z.ZodOptional<z.ZodNumber>; quoteCount: z.ZodOptional<z.ZodNumber>; indexedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.recordWithMedia#view">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; media: z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external#view">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images#view">; images: z.ZodArray<z.ZodObject<{ thumb: z.ZodString; fullsize: z.ZodString; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video#view">; cid: z.ZodString; playlist: z.ZodString; thumbnail: z.ZodOptional<z.ZodString>; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.list">; list: z.ZodObject<{ title: z.ZodString; items: z.ZodArray<z.ZodObject<{ uri: z.ZodString; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.list#view">; list: z.ZodObject<{ title: z.ZodString; items: z.ZodArray<z.ZodObject<{ uri: z.ZodString; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.starterPack">; starterPack: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; members: z.ZodArray<z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.starterPack#view">; starterPack: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; members: z.ZodArray<z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodString; }, z.core.$catchall<z.ZodUnknown>>]>>; facets: z.ZodOptional<z.ZodArray<z.ZodObject<{ index: z.ZodObject<{ byteStart: z.ZodNumber; byteEnd: z.ZodNumber; }, z.core.$strip>; features: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.richtext.facet#mention">; did: z.ZodString; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.richtext.facet#link">; uri: z.ZodString; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.richtext.facet#tag">; tag: z.ZodString; }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>]>>; }, z.core.$strip>>>; }, z.core.$catchall<z.ZodUnknown>>; embed: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images">; images: z.ZodArray<z.ZodObject<{ alt: z.ZodString; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; image: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images#view">; images: z.ZodArray<z.ZodObject<{ thumb: z.ZodString; fullsize: z.ZodString; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video">; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; video: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video#view">; cid: z.ZodString; playlist: z.ZodString; thumbnail: z.ZodOptional<z.ZodString>; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external#view">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.record">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.recordWithMedia">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; media: z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images">; images: z.ZodArray<z.ZodObject<{ alt: z.ZodString; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; image: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video">; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ height: z.ZodNumber; width: z.ZodNumber; }, z.core.$strip>>; video: z.ZodObject<{ $type: z.ZodLiteral<"blob">; ref: z.ZodObject<{ $link: z.ZodString; }, z.core.$strip>; mimeType: z.ZodString; size: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.record#view">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; replyCount: z.ZodOptional<z.ZodNumber>; repostCount: z.ZodOptional<z.ZodNumber>; likeCount: z.ZodOptional<z.ZodNumber>; quoteCount: z.ZodOptional<z.ZodNumber>; indexedAt: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.recordWithMedia#view">; record: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>; value: z.ZodObject<{ $type: z.ZodString; createdAt: z.ZodString; text: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; media: z.ZodUnion<readonly [z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.external#view">; external: z.ZodObject<{ uri: z.ZodString; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; thumb: z.ZodOptional<z.ZodString>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.images#view">; images: z.ZodArray<z.ZodObject<{ thumb: z.ZodString; fullsize: z.ZodString; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.video#view">; cid: z.ZodString; playlist: z.ZodString; thumbnail: z.ZodOptional<z.ZodString>; alt: z.ZodOptional<z.ZodString>; aspectRatio: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>]>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.list">; list: z.ZodObject<{ title: z.ZodString; items: z.ZodArray<z.ZodObject<{ uri: z.ZodString; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.list#view">; list: z.ZodObject<{ title: z.ZodString; items: z.ZodArray<z.ZodObject<{ uri: z.ZodString; label: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.starterPack">; starterPack: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; members: z.ZodArray<z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodLiteral<"app.bsky.embed.starterPack#view">; starterPack: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional<z.ZodString>; members: z.ZodArray<z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ $type: z.ZodString; }, z.core.$catchall<z.ZodUnknown>>]>>; replyCount: z.ZodNumber; repostCount: z.ZodNumber; likeCount: z.ZodNumber; quoteCount: z.ZodNumber; indexedAt: z.ZodString; labels: z.ZodOptional<z.ZodArray<z.ZodUnknown>>; link: z.ZodString; html: z.ZodString; }, z.core.$strip>; declare const NotFoundPostSchema: z.ZodObject<{ $type: z.ZodOptional<z.ZodLiteral<"app.bsky.feed.defs#notFoundPost">>; uri: z.ZodString; notFound: z.ZodLiteral<true>; }, z.core.$strip>; declare const BlockedPostSchema: z.ZodObject<{ $type: z.ZodOptional<z.ZodLiteral<"app.bsky.feed.defs#blockedPost">>; uri: z.ZodString; blocked: z.ZodLiteral<true>; }, z.core.$strip>; interface ThreadViewPost { $type?: 'app.bsky.feed.defs#threadViewPost'; post: z.infer<typeof PostSchema>; parent?: ThreadViewPost | z.infer<typeof NotFoundPostSchema> | z.infer<typeof BlockedPostSchema>; replies?: (ThreadViewPost | z.infer<typeof NotFoundPostSchema> | z.infer<typeof BlockedPostSchema>)[]; } declare const PostWithThreadViewExtendedSchema: z.ZodObject<{ uri: z.ZodString; $type: z.ZodOptional<z.ZodLiteral<"app.bsky.feed.defs#threadViewPost">>; post: z.ZodObject<{ uri: z.ZodString; cid: z.ZodString; author: z.ZodObject<{ did: z.ZodString; handle: z.ZodString; displayName: z.ZodOptional<z.ZodString>; avatar: z.ZodOptional<z.ZodString>; associated: z.ZodOptional<z.ZodObject<{ chat: z.ZodOptional<z.ZodObject<{ allowIncoming: z.ZodOptional<z.ZodEnum<{ none: "none"; following: "following"; all: "all"; }>>; }, z.core.$strip>>;