@atcute/bluesky
Version:
Bluesky (app.bsky.* and chat.bsky.*) schema definitions
1,069 lines (1,068 loc) • 616 kB
TypeScript
import type { $type } from '@atcute/lexicons';
import type * as AppBskyEmbedRecord from '../lexicons/types/app/bsky/embed/record.ts';
import type * as AppBskyEmbedRecordWithMedia from '../lexicons/types/app/bsky/embed/recordWithMedia.ts';
/**
* a union type of all possible raw embeds.
*/
export interface RawEmbeds {
media?: AppBskyEmbedRecordWithMedia.Main['media'];
record?: AppBskyEmbedRecordWithMedia.Main['record'];
}
/**
* a raw media embed.
*/
export type RawMediaEmbed = NonNullable<RawEmbeds['media']>;
/**
* a raw record embed.
*/
export type RawRecordEmbed = NonNullable<RawEmbeds['record']>;
/**
* extracts raw media embed from a post record embed
* @param embed the embed interface to extract from
* @returns the extracted raw media embed, if any
*/
export declare const unwrapRawMediaEmbed: (embed: ({
$type?: "app.bsky.embed.recordWithMedia" | undefined;
media: ({
$type?: "app.bsky.embed.external" | undefined;
external: {
$type?: "app.bsky.embed.external#external" | undefined;
description: string;
thumb?: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string> | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external";
}) | ({
$type?: "app.bsky.embed.images" | undefined;
images: {
$type?: "app.bsky.embed.images#image" | undefined;
alt: string;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
image: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
}[];
} & {
$type: "app.bsky.embed.images";
}) | ({
$type?: "app.bsky.embed.video" | undefined;
alt?: string | undefined;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
captions?: {
$type?: "app.bsky.embed.video#caption" | undefined;
file: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
lang: string;
}[] | undefined;
presentation?: "default" | "gif" | (string & {}) | undefined;
video: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
} & {
$type: "app.bsky.embed.video";
});
record: {
$type?: "app.bsky.embed.record" | undefined;
record: {
$type?: "com.atproto.repo.strongRef" | undefined;
cid: string;
uri: import("@atcute/lexicons").ResourceUri;
};
};
} & {
$type: "app.bsky.embed.recordWithMedia";
}) | ({
$type?: "app.bsky.embed.external" | undefined;
external: {
$type?: "app.bsky.embed.external#external" | undefined;
description: string;
thumb?: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string> | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external";
}) | ({
$type?: "app.bsky.embed.images" | undefined;
images: {
$type?: "app.bsky.embed.images#image" | undefined;
alt: string;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
image: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
}[];
} & {
$type: "app.bsky.embed.images";
}) | ({
$type?: "app.bsky.embed.video" | undefined;
alt?: string | undefined;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
captions?: {
$type?: "app.bsky.embed.video#caption" | undefined;
file: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
lang: string;
}[] | undefined;
presentation?: "default" | "gif" | (string & {}) | undefined;
video: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
} & {
$type: "app.bsky.embed.video";
}) | ({
$type?: "app.bsky.embed.record" | undefined;
record: {
$type?: "com.atproto.repo.strongRef" | undefined;
cid: string;
uri: import("@atcute/lexicons").ResourceUri;
};
} & {
$type: "app.bsky.embed.record";
}) | undefined) => ({
$type?: "app.bsky.embed.external" | undefined;
external: {
$type?: "app.bsky.embed.external#external" | undefined;
description: string;
thumb?: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string> | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external";
}) | ({
$type?: "app.bsky.embed.images" | undefined;
images: {
$type?: "app.bsky.embed.images#image" | undefined;
alt: string;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
image: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
}[];
} & {
$type: "app.bsky.embed.images";
}) | ({
$type?: "app.bsky.embed.video" | undefined;
alt?: string | undefined;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
captions?: {
$type?: "app.bsky.embed.video#caption" | undefined;
file: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
lang: string;
}[] | undefined;
presentation?: "default" | "gif" | (string & {}) | undefined;
video: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
} & {
$type: "app.bsky.embed.video";
}) | undefined;
/**
* extracts raw record embed from a post record embed
* @param embed the embed interface to extract from
* @returns the extracted raw record embed, if any
*/
export declare const unwrapRawRecordEmbed: (embed: ({
$type?: "app.bsky.embed.recordWithMedia" | undefined;
media: ({
$type?: "app.bsky.embed.external" | undefined;
external: {
$type?: "app.bsky.embed.external#external" | undefined;
description: string;
thumb?: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string> | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external";
}) | ({
$type?: "app.bsky.embed.images" | undefined;
images: {
$type?: "app.bsky.embed.images#image" | undefined;
alt: string;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
image: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
}[];
} & {
$type: "app.bsky.embed.images";
}) | ({
$type?: "app.bsky.embed.video" | undefined;
alt?: string | undefined;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
captions?: {
$type?: "app.bsky.embed.video#caption" | undefined;
file: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
lang: string;
}[] | undefined;
presentation?: "default" | "gif" | (string & {}) | undefined;
video: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
} & {
$type: "app.bsky.embed.video";
});
record: {
$type?: "app.bsky.embed.record" | undefined;
record: {
$type?: "com.atproto.repo.strongRef" | undefined;
cid: string;
uri: import("@atcute/lexicons").ResourceUri;
};
};
} & {
$type: "app.bsky.embed.recordWithMedia";
}) | ({
$type?: "app.bsky.embed.external" | undefined;
external: {
$type?: "app.bsky.embed.external#external" | undefined;
description: string;
thumb?: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string> | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external";
}) | ({
$type?: "app.bsky.embed.images" | undefined;
images: {
$type?: "app.bsky.embed.images#image" | undefined;
alt: string;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
image: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
}[];
} & {
$type: "app.bsky.embed.images";
}) | ({
$type?: "app.bsky.embed.video" | undefined;
alt?: string | undefined;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
captions?: {
$type?: "app.bsky.embed.video#caption" | undefined;
file: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
lang: string;
}[] | undefined;
presentation?: "default" | "gif" | (string & {}) | undefined;
video: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
} & {
$type: "app.bsky.embed.video";
}) | ({
$type?: "app.bsky.embed.record" | undefined;
record: {
$type?: "com.atproto.repo.strongRef" | undefined;
cid: string;
uri: import("@atcute/lexicons").ResourceUri;
};
} & {
$type: "app.bsky.embed.record";
}) | undefined) => {
$type?: "app.bsky.embed.record" | undefined;
record: {
$type?: "com.atproto.repo.strongRef" | undefined;
cid: string;
uri: import("@atcute/lexicons").ResourceUri;
};
} | undefined;
/**
* extracts raw media and record embeds from a post record embed
* @param embed the embed interface to extract from
* @returns the extracted raw media and record embeds, if any
*/
export declare const unwrapRawEmbed: (embed: ({
$type?: "app.bsky.embed.recordWithMedia" | undefined;
media: ({
$type?: "app.bsky.embed.external" | undefined;
external: {
$type?: "app.bsky.embed.external#external" | undefined;
description: string;
thumb?: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string> | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external";
}) | ({
$type?: "app.bsky.embed.images" | undefined;
images: {
$type?: "app.bsky.embed.images#image" | undefined;
alt: string;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
image: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
}[];
} & {
$type: "app.bsky.embed.images";
}) | ({
$type?: "app.bsky.embed.video" | undefined;
alt?: string | undefined;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
captions?: {
$type?: "app.bsky.embed.video#caption" | undefined;
file: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
lang: string;
}[] | undefined;
presentation?: "default" | "gif" | (string & {}) | undefined;
video: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
} & {
$type: "app.bsky.embed.video";
});
record: {
$type?: "app.bsky.embed.record" | undefined;
record: {
$type?: "com.atproto.repo.strongRef" | undefined;
cid: string;
uri: import("@atcute/lexicons").ResourceUri;
};
};
} & {
$type: "app.bsky.embed.recordWithMedia";
}) | ({
$type?: "app.bsky.embed.external" | undefined;
external: {
$type?: "app.bsky.embed.external#external" | undefined;
description: string;
thumb?: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string> | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external";
}) | ({
$type?: "app.bsky.embed.images" | undefined;
images: {
$type?: "app.bsky.embed.images#image" | undefined;
alt: string;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
image: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
}[];
} & {
$type: "app.bsky.embed.images";
}) | ({
$type?: "app.bsky.embed.video" | undefined;
alt?: string | undefined;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
captions?: {
$type?: "app.bsky.embed.video#caption" | undefined;
file: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
lang: string;
}[] | undefined;
presentation?: "default" | "gif" | (string & {}) | undefined;
video: import("@atcute/lexicons").Blob<string> | import("@atcute/lexicons").LegacyBlob<string>;
} & {
$type: "app.bsky.embed.video";
}) | ({
$type?: "app.bsky.embed.record" | undefined;
record: {
$type?: "com.atproto.repo.strongRef" | undefined;
cid: string;
uri: import("@atcute/lexicons").ResourceUri;
};
} & {
$type: "app.bsky.embed.record";
}) | undefined) => RawEmbeds;
/**
* a union type of all possible embeds.
*/
export interface Embeds {
media?: AppBskyEmbedRecordWithMedia.View['media'];
record?: AppBskyEmbedRecordWithMedia.View['record']['record'];
}
/**
* a media embed.
*/
export type MediaEmbed = NonNullable<Embeds['media']>;
/**
* a record embed.
*/
export type RecordEmbed = NonNullable<Embeds['record']>;
/**
* extracts media embed from a post embed
* @param embed the embed interface to extract from
* @returns the extracted media embed, if any
*/
export declare const unwrapMediaEmbed: (embed: ({
$type?: "app.bsky.embed.recordWithMedia#view" | undefined;
media: ({
$type?: "app.bsky.embed.external#view" | undefined;
external: {
$type?: "app.bsky.embed.external#viewExternal" | undefined;
description: string;
thumb?: `${string}:${string}` | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external#view";
}) | ({
$type?: "app.bsky.embed.images#view" | undefined;
images: {
$type?: "app.bsky.embed.images#viewImage" | undefined;
alt: string;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
fullsize: `${string}:${string}`;
thumb: `${string}:${string}`;
}[];
} & {
$type: "app.bsky.embed.images#view";
}) | ({
$type?: "app.bsky.embed.video#view" | undefined;
alt?: string | undefined;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
cid: string;
playlist: `${string}:${string}`;
presentation?: "default" | "gif" | (string & {}) | undefined;
thumbnail?: `${string}:${string}` | undefined;
} & {
$type: "app.bsky.embed.video#view";
});
record: {
$type?: "app.bsky.embed.record#view" | undefined;
record: ({
$type?: "app.bsky.labeler.defs#labelerView" | undefined;
cid: string;
creator: {
$type?: "app.bsky.actor.defs#profileView" | undefined;
associated?: {
$type?: "app.bsky.actor.defs#profileAssociated" | undefined;
activitySubscription?: {
$type?: "app.bsky.actor.defs#profileAssociatedActivitySubscription" | undefined;
allowSubscriptions: "followers" | "mutuals" | "none" | (string & {});
} | undefined;
chat?: {
$type?: "app.bsky.actor.defs#profileAssociatedChat" | undefined;
allowIncoming: "all" | "following" | "none" | (string & {});
} | undefined;
feedgens?: number | undefined;
germ?: {
$type?: "app.bsky.actor.defs#profileAssociatedGerm" | undefined;
messageMeUrl: `${string}:${string}`;
showButtonTo: "everyone" | "usersIFollow" | (string & {});
} | undefined;
labeler?: boolean | undefined;
lists?: number | undefined;
starterPacks?: number | undefined;
} | undefined;
avatar?: `${string}:${string}` | undefined;
createdAt?: string | undefined;
debug?: Record<string, unknown> | undefined;
description?: string | undefined;
did: `did:${string}:${string}`;
displayName?: string | undefined;
handle: `${string}.${string}`;
indexedAt?: string | undefined;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
pronouns?: string | undefined;
status?: {
$type?: "app.bsky.actor.defs#statusView" | undefined;
cid?: string | undefined;
embed?: ({
$type?: "app.bsky.embed.external#view" | undefined;
external: {
$type?: "app.bsky.embed.external#viewExternal" | undefined;
description: string;
thumb?: `${string}:${string}` | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external#view";
}) | undefined;
expiresAt?: string | undefined;
isActive?: boolean | undefined;
isDisabled?: boolean | undefined;
record: Record<string, unknown>;
status: "app.bsky.actor.status#live" | (string & {});
uri?: import("@atcute/lexicons").ResourceUri | undefined;
} | undefined;
verification?: {
$type?: "app.bsky.actor.defs#verificationState" | undefined;
trustedVerifierStatus: "invalid" | "none" | "valid" | (string & {});
verifications: {
$type?: "app.bsky.actor.defs#verificationView" | undefined;
createdAt: string;
isValid: boolean;
issuer: `did:${string}:${string}`;
uri: import("@atcute/lexicons").ResourceUri;
}[];
verifiedStatus: "invalid" | "none" | "valid" | (string & {});
} | undefined;
viewer?: {
$type?: "app.bsky.actor.defs#viewerState" | undefined;
activitySubscription?: {
$type?: "app.bsky.notification.defs#activitySubscription" | undefined;
post: boolean;
reply: boolean;
} | undefined;
blockedBy?: boolean | undefined;
blocking?: import("@atcute/lexicons").ResourceUri | undefined;
blockingByList?: {
$type?: "app.bsky.graph.defs#listViewBasic" | undefined;
avatar?: `${string}:${string}` | undefined;
cid: string;
indexedAt?: string | undefined;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
listItemCount?: number | undefined;
name: string;
purpose: "app.bsky.graph.defs#curatelist" | "app.bsky.graph.defs#modlist" | "app.bsky.graph.defs#referencelist" | (string & {});
uri: import("@atcute/lexicons").ResourceUri;
viewer?: {
$type?: "app.bsky.graph.defs#listViewerState" | undefined;
blocked?: import("@atcute/lexicons").ResourceUri | undefined;
muted?: boolean | undefined;
} | undefined;
} | undefined;
followedBy?: import("@atcute/lexicons").ResourceUri | undefined;
following?: import("@atcute/lexicons").ResourceUri | undefined;
knownFollowers?: {
$type?: "app.bsky.actor.defs#knownFollowers" | undefined;
count: number;
followers: {
$type?: "app.bsky.actor.defs#profileViewBasic" | undefined;
associated?: {
$type?: "app.bsky.actor.defs#profileAssociated" | undefined;
activitySubscription?: {
$type?: "app.bsky.actor.defs#profileAssociatedActivitySubscription" | undefined;
allowSubscriptions: "followers" | "mutuals" | "none" | (string & {});
} | undefined;
chat?: {
$type?: "app.bsky.actor.defs#profileAssociatedChat" | undefined;
allowIncoming: "all" | "following" | "none" | (string & {});
} | undefined;
feedgens?: number | undefined;
germ?: {
$type?: "app.bsky.actor.defs#profileAssociatedGerm" | undefined;
messageMeUrl: `${string}:${string}`;
showButtonTo: "everyone" | "usersIFollow" | (string & {});
} | undefined;
labeler?: boolean | undefined;
lists?: number | undefined;
starterPacks?: number | undefined;
} | undefined;
avatar?: `${string}:${string}` | undefined;
createdAt?: string | undefined;
debug?: Record<string, unknown> | undefined;
did: `did:${string}:${string}`;
displayName?: string | undefined;
handle: `${string}.${string}`;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
pronouns?: string | undefined;
status?: {
$type?: "app.bsky.actor.defs#statusView" | undefined;
cid?: string | undefined;
embed?: ({
$type?: "app.bsky.embed.external#view" | undefined;
external: {
$type?: "app.bsky.embed.external#viewExternal" | undefined;
description: string;
thumb?: `${string}:${string}` | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external#view";
}) | undefined;
expiresAt?: string | undefined;
isActive?: boolean | undefined;
isDisabled?: boolean | undefined;
record: Record<string, unknown>;
status: "app.bsky.actor.status#live" | (string & {});
uri?: import("@atcute/lexicons").ResourceUri | undefined;
} | undefined;
verification?: {
$type?: "app.bsky.actor.defs#verificationState" | undefined;
trustedVerifierStatus: "invalid" | "none" | "valid" | (string & {});
verifications: {
$type?: "app.bsky.actor.defs#verificationView" | undefined;
createdAt: string;
isValid: boolean;
issuer: `did:${string}:${string}`;
uri: import("@atcute/lexicons").ResourceUri;
}[];
verifiedStatus: "invalid" | "none" | "valid" | (string & {});
} | undefined;
viewer?: /*elided*/ any | undefined;
}[];
} | undefined;
muted?: boolean | undefined;
mutedByList?: {
$type?: "app.bsky.graph.defs#listViewBasic" | undefined;
avatar?: `${string}:${string}` | undefined;
cid: string;
indexedAt?: string | undefined;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
listItemCount?: number | undefined;
name: string;
purpose: "app.bsky.graph.defs#curatelist" | "app.bsky.graph.defs#modlist" | "app.bsky.graph.defs#referencelist" | (string & {});
uri: import("@atcute/lexicons").ResourceUri;
viewer?: {
$type?: "app.bsky.graph.defs#listViewerState" | undefined;
blocked?: import("@atcute/lexicons").ResourceUri | undefined;
muted?: boolean | undefined;
} | undefined;
} | undefined;
} | undefined;
};
indexedAt: string;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
likeCount?: number | undefined;
uri: import("@atcute/lexicons").ResourceUri;
viewer?: {
$type?: "app.bsky.labeler.defs#labelerViewerState" | undefined;
like?: import("@atcute/lexicons").ResourceUri | undefined;
} | undefined;
} & {
$type: "app.bsky.labeler.defs#labelerView";
}) | ({
$type?: "app.bsky.embed.record#viewBlocked" | undefined;
author: {
$type?: "app.bsky.feed.defs#blockedAuthor" | undefined;
did: `did:${string}:${string}`;
viewer?: {
$type?: "app.bsky.actor.defs#viewerState" | undefined;
activitySubscription?: {
$type?: "app.bsky.notification.defs#activitySubscription" | undefined;
post: boolean;
reply: boolean;
} | undefined;
blockedBy?: boolean | undefined;
blocking?: import("@atcute/lexicons").ResourceUri | undefined;
blockingByList?: {
$type?: "app.bsky.graph.defs#listViewBasic" | undefined;
avatar?: `${string}:${string}` | undefined;
cid: string;
indexedAt?: string | undefined;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
listItemCount?: number | undefined;
name: string;
purpose: "app.bsky.graph.defs#curatelist" | "app.bsky.graph.defs#modlist" | "app.bsky.graph.defs#referencelist" | (string & {});
uri: import("@atcute/lexicons").ResourceUri;
viewer?: {
$type?: "app.bsky.graph.defs#listViewerState" | undefined;
blocked?: import("@atcute/lexicons").ResourceUri | undefined;
muted?: boolean | undefined;
} | undefined;
} | undefined;
followedBy?: import("@atcute/lexicons").ResourceUri | undefined;
following?: import("@atcute/lexicons").ResourceUri | undefined;
knownFollowers?: {
$type?: "app.bsky.actor.defs#knownFollowers" | undefined;
count: number;
followers: {
$type?: "app.bsky.actor.defs#profileViewBasic" | undefined;
associated?: {
$type?: "app.bsky.actor.defs#profileAssociated" | undefined;
activitySubscription?: {
$type?: "app.bsky.actor.defs#profileAssociatedActivitySubscription" | undefined;
allowSubscriptions: "followers" | "mutuals" | "none" | (string & {});
} | undefined;
chat?: {
$type?: "app.bsky.actor.defs#profileAssociatedChat" | undefined;
allowIncoming: "all" | "following" | "none" | (string & {});
} | undefined;
feedgens?: number | undefined;
germ?: {
$type?: "app.bsky.actor.defs#profileAssociatedGerm" | undefined;
messageMeUrl: `${string}:${string}`;
showButtonTo: "everyone" | "usersIFollow" | (string & {});
} | undefined;
labeler?: boolean | undefined;
lists?: number | undefined;
starterPacks?: number | undefined;
} | undefined;
avatar?: `${string}:${string}` | undefined;
createdAt?: string | undefined;
debug?: Record<string, unknown> | undefined;
did: `did:${string}:${string}`;
displayName?: string | undefined;
handle: `${string}.${string}`;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
pronouns?: string | undefined;
status?: {
$type?: "app.bsky.actor.defs#statusView" | undefined;
cid?: string | undefined;
embed?: ({
$type?: "app.bsky.embed.external#view" | undefined;
external: {
$type?: "app.bsky.embed.external#viewExternal" | undefined;
description: string;
thumb?: `${string}:${string}` | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external#view";
}) | undefined;
expiresAt?: string | undefined;
isActive?: boolean | undefined;
isDisabled?: boolean | undefined;
record: Record<string, unknown>;
status: "app.bsky.actor.status#live" | (string & {});
uri?: import("@atcute/lexicons").ResourceUri | undefined;
} | undefined;
verification?: {
$type?: "app.bsky.actor.defs#verificationState" | undefined;
trustedVerifierStatus: "invalid" | "none" | "valid" | (string & {});
verifications: {
$type?: "app.bsky.actor.defs#verificationView" | undefined;
createdAt: string;
isValid: boolean;
issuer: `did:${string}:${string}`;
uri: import("@atcute/lexicons").ResourceUri;
}[];
verifiedStatus: "invalid" | "none" | "valid" | (string & {});
} | undefined;
viewer?: any | undefined;
}[];
} | undefined;
muted?: boolean | undefined;
mutedByList?: {
$type?: "app.bsky.graph.defs#listViewBasic" | undefined;
avatar?: `${string}:${string}` | undefined;
cid: string;
indexedAt?: string | undefined;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
listItemCount?: number | undefined;
name: string;
purpose: "app.bsky.graph.defs#curatelist" | "app.bsky.graph.defs#modlist" | "app.bsky.graph.defs#referencelist" | (string & {});
uri: import("@atcute/lexicons").ResourceUri;
viewer?: {
$type?: "app.bsky.graph.defs#listViewerState" | undefined;
blocked?: import("@atcute/lexicons").ResourceUri | undefined;
muted?: boolean | undefined;
} | undefined;
} | undefined;
} | undefined;
};
blocked: true;
uri: import("@atcute/lexicons").ResourceUri;
} & {
$type: "app.bsky.embed.record#viewBlocked";
}) | ({
$type?: "app.bsky.embed.record#viewDetached" | undefined;
detached: true;
uri: import("@atcute/lexicons").ResourceUri;
} & {
$type: "app.bsky.embed.record#viewDetached";
}) | ({
$type?: "app.bsky.embed.record#viewNotFound" | undefined;
notFound: true;
uri: import("@atcute/lexicons").ResourceUri;
} & {
$type: "app.bsky.embed.record#viewNotFound";
}) | ({
$type?: "app.bsky.embed.record#viewRecord" | undefined;
author: {
$type?: "app.bsky.actor.defs#profileViewBasic" | undefined;
associated?: {
$type?: "app.bsky.actor.defs#profileAssociated" | undefined;
activitySubscription?: {
$type?: "app.bsky.actor.defs#profileAssociatedActivitySubscription" | undefined;
allowSubscriptions: "followers" | "mutuals" | "none" | (string & {});
} | undefined;
chat?: {
$type?: "app.bsky.actor.defs#profileAssociatedChat" | undefined;
allowIncoming: "all" | "following" | "none" | (string & {});
} | undefined;
feedgens?: number | undefined;
germ?: {
$type?: "app.bsky.actor.defs#profileAssociatedGerm" | undefined;
messageMeUrl: `${string}:${string}`;
showButtonTo: "everyone" | "usersIFollow" | (string & {});
} | undefined;
labeler?: boolean | undefined;
lists?: number | undefined;
starterPacks?: number | undefined;
} | undefined;
avatar?: `${string}:${string}` | undefined;
createdAt?: string | undefined;
debug?: Record<string, unknown> | undefined;
did: `did:${string}:${string}`;
displayName?: string | undefined;
handle: `${string}.${string}`;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
pronouns?: string | undefined;
status?: {
$type?: "app.bsky.actor.defs#statusView" | undefined;
cid?: string | undefined;
embed?: ({
$type?: "app.bsky.embed.external#view" | undefined;
external: {
$type?: "app.bsky.embed.external#viewExternal" | undefined;
description: string;
thumb?: `${string}:${string}` | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external#view";
}) | undefined;
expiresAt?: string | undefined;
isActive?: boolean | undefined;
isDisabled?: boolean | undefined;
record: Record<string, unknown>;
status: "app.bsky.actor.status#live" | (string & {});
uri?: import("@atcute/lexicons").ResourceUri | undefined;
} | undefined;
verification?: {
$type?: "app.bsky.actor.defs#verificationState" | undefined;
trustedVerifierStatus: "invalid" | "none" | "valid" | (string & {});
verifications: {
$type?: "app.bsky.actor.defs#verificationView" | undefined;
createdAt: string;
isValid: boolean;
issuer: `did:${string}:${string}`;
uri: import("@atcute/lexicons").ResourceUri;
}[];
verifiedStatus: "invalid" | "none" | "valid" | (string & {});
} | undefined;
viewer?: any | undefined;
};
cid: string;
embeds?: ((/*elided*/ any & {
$type: "app.bsky.embed.recordWithMedia#view";
}) | ({
$type?: "app.bsky.embed.external#view" | undefined;
external: {
$type?: "app.bsky.embed.external#viewExternal" | undefined;
description: string;
thumb?: `${string}:${string}` | undefined;
title: string;
uri: `${string}:${string}`;
};
} & {
$type: "app.bsky.embed.external#view";
}) | ({
$type?: "app.bsky.embed.images#view" | undefined;
images: {
$type?: "app.bsky.embed.images#viewImage" | undefined;
alt: string;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
fullsize: `${string}:${string}`;
thumb: `${string}:${string}`;
}[];
} & {
$type: "app.bsky.embed.images#view";
}) | ({
$type?: "app.bsky.embed.video#view" | undefined;
alt?: string | undefined;
aspectRatio?: {
$type?: "app.bsky.embed.defs#aspectRatio" | undefined;
height: number;
width: number;
} | undefined;
cid: string;
playlist: `${string}:${string}`;
presentation?: "default" | "gif" | (string & {}) | undefined;
thumbnail?: `${string}:${string}` | undefined;
} & {
$type: "app.bsky.embed.video#view";
}) | (/*elided*/ any & {
$type: "app.bsky.embed.record#view";
}))[] | undefined;
indexedAt: string;
labels?: {
$type?: "com.atproto.label.defs#label" | undefined;
cid?: string | undefined;
cts: string;
exp?: string | undefined;
neg?: boolean | undefined;
sig?: import("@atcute/lexicons").Bytes | undefined;
src: `did:${string}:${string}`;
uri: `${string}:${string}`;
val: string;
ver?: number | undefined;
}[] | undefined;
likeCount?: number | undefined;
quoteCount?: number | undefined;
replyCount?: number | undefined;
repostCount?: number | undefined;
uri: import("@atcute/lexicons").ResourceUri;
value: Record<string, unknown>;
} & {
$type: "app.bsky.embed.record#viewRecord";
}) | ({
$type?: "app.bsky.feed.defs#generatorView" | undefined;
acceptsInteractions?: boolean | undefined;
avatar?: `${string}:${string}` | undefined;
cid: string;
contentMode?: "app.bsky.feed.defs#contentModeUnspecified" | "app.bsky.feed.defs#contentModeVideo" | (string & {}) | undefined;
creator: {
$type?: "app.bsky.actor.defs#profileView" | undefined;
associated?: {
$type?: "app.bsky.actor.defs#profileAssociated" | undefined;
activitySubscription?: {
$type?: "app.bsky.actor.defs#profileAssociatedActivitySubscription" | undefined;
allowSubscriptions: "followers" | "mutuals" | "none" | (string & {});
} | undefined;
chat?: {
$type?: "app.bsky.actor.defs#profileAssociatedChat" | undefined;
allowIncoming: "all" | "following" | "none" | (string & {});
} | undefined;
feedgens?: number | undefined;
germ?: {
$type?: "app.bsky.actor.defs#profileAssociatedGerm" | undefined;
messageMeUrl: `${string}:${string}`;
showButtonTo: "everyone" | "usersIFollow" | (string & {});
} | undefined;
labeler?: boolean | undefined;
lists?: number | undefined;
starterPacks?: number | undefined;
} | undefined;
avatar?: `${string}:${string}` | undefined;
createdAt?: string | undefined;
debug?: Record<string, unknown> | undefined;
description?: string | undefined;
did: `did:${string}:${string}`;
displayName?: string | undefined;