/* * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT. */ import { l } from "@atproto/lex"; import * as RichtextFacet from "../richtext/facet.defs.js"; import * as RepoStrongRef from "../../../com/atproto/repo/strongRef.defs.js"; const $nsid = "place.stream.vod.comment"; export { $nsid }; /** Record containing a comment on a VOD. */ type Main = { $type: "place.stream.vod.comment"; /** * The comment text content. */ "text":string; /** * Client-declared timestamp when this comment was created. */ "createdAt":l.DatetimeString; /** * AT-URI of the place.stream.video record this comment belongs to. */ "video":l.AtUriString; /** * Annotations of text (mentions, URLs, etc) */ "facets"?:(RichtextFacet.Main)[];"reply"?:ReplyRef }; export type { Main }; /** Record containing a comment on a VOD. */ const main = /*#__PURE__*/ l.record<"tid", Main>("tid", $nsid, /*#__PURE__*/ l.object({"text":/*#__PURE__*/ l.string({"maxLength":3000,"maxGraphemes":300}),"createdAt":/*#__PURE__*/ l.string({"format":"datetime"}),"video":/*#__PURE__*/ l.string({"format":"at-uri"}),"facets":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => RichtextFacet.main) as any), )),"reply":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => replyRef) as any))})); export { main }; export const $type = $nsid; export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main); export const $build = /*#__PURE__*/ main.build.bind(main); export const $assert = /*#__PURE__*/ main.assert.bind(main); export const $check = /*#__PURE__*/ main.check.bind(main); export const $cast = /*#__PURE__*/ main.cast.bind(main); export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main); export const $matches = /*#__PURE__*/ main.matches.bind(main); export const $parse = /*#__PURE__*/ main.parse.bind(main); export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main); export const $validate = /*#__PURE__*/ main.validate.bind(main); export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main); type ReplyRef = { $type?: "place.stream.vod.comment#replyRef";"root":RepoStrongRef.Main;"parent":RepoStrongRef.Main }; export type { ReplyRef }; const replyRef = /*#__PURE__*/ l.typedObject($nsid, "replyRef", /*#__PURE__*/ l.object({"root":/*#__PURE__*/ l.ref((() => RepoStrongRef.main) as any),"parent":/*#__PURE__*/ l.ref((() => RepoStrongRef.main) as any)})); export { replyRef };