import { l } from "@atproto/lex-schema"; import * as ActorDefs from "../../../app/bsky/actor/defs.defs.js"; import * as BadgeDefs from "../badge/defs.defs.js"; import * as ChatProfile from "./profile.defs.js"; import * as ChatPinnedRecord from "./pinnedRecord.defs.js"; declare const $nsid = "place.stream.chat.defs"; type $nsid = typeof $nsid; export { $nsid }; type MessageView = { $type?: "place.stream.chat.defs#messageView"; "cid": l.CidString; "uri": l.AtUriString; "author": ActorDefs.ProfileViewBasic; /** * Up to 3 badge tokens to display with the message. First badge is server-controlled, remaining badges are user-settable. Tokens are looked up in badges.json for display info. */ "badges"?: (BadgeDefs.BadgeView)[]; "record": l.LexMap; /** * If true, this message has been deleted or labeled and should be cleared from the cache */ "deleted"?: boolean; "replyTo"?: l.$Typed | l.Unknown$TypedObject; "indexedAt": l.DatetimeString; "chatProfile"?: ChatProfile.Main; }; export type { MessageView }; declare const messageView: l.TypedObjectSchema<"place.stream.chat.defs#messageView", l.Validator>; export { messageView }; /** View of a pinned chat record with hydrated message data. */ type PinnedRecordView = { $type?: "place.stream.chat.defs#pinnedRecordView"; "cid": l.CidString; "uri": l.AtUriString; "record": ChatPinnedRecord.Main; "message"?: MessageView; "pinnedBy"?: ChatProfile.Main; "indexedAt": l.DatetimeString; }; export type { PinnedRecordView }; /** View of a pinned chat record with hydrated message data. */ declare const pinnedRecordView: l.TypedObjectSchema<"place.stream.chat.defs#pinnedRecordView", l.Validator>; export { pinnedRecordView }; //# sourceMappingURL=defs.defs.d.ts.map