@ihavethatonvinyl/lexicons 0.0.0-stage → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["$nsid","main","$type","$isTypeOf","$build","$assert","$check","$cast","$ifMatches","$matches","$parse","$safeParse","$validate","$safeValidate","$nsid","$nsid","main","RepoStrongRef.main","ArticleDefs.contents","$type","$isTypeOf","$build","$assert","$check","$cast","$ifMatches","$matches","$parse","$safeParse","$validate","$safeValidate","$nsid","$params","$input","ArticleDefs.contents","$output","ArticleRevision.main","main","$lxm","$nsid","$params","$input","$output","main","$lxm","$nsid","main","$nsid","$params","$output","IhavethatonvinylArticle.main","ArticleRevision.main","main","$lxm","$nsid","$params","$output","ArticleRevision.main","main","$lxm","$nsid","IhavethatonvinylArticle.main","ArticleRevision.main","main","$nsid","main","__exportAll","l","$nsid$10","main$9","$isTypeOf$2","$build$2","$assert$2","$check$2","$cast$2","$ifMatches$2","$matches$2","$parse$2","$safeParse$2","$validate$2","$safeValidate$2","strongRef_exports","repo_exports","atproto_exports","$nsid$9","paragraphBlockData","headerBlockData","dividerBlockData","quoteBlockData","checkedListItemMeta","orderedListItemMeta","listItem","listBlockData","url","localImage","imageBlockData","linkMeta","linkBlockData","tableRow","tableBlockData","paragraph","header","divider","quote","list","image","link","table","contents","$nsid$8","main$8","$isTypeOf$1","$build$1","$assert$1","$check$1","$cast$1","$ifMatches$1","$matches$1","$parse$1","$safeParse$1","$validate$1","$safeValidate$1","$nsid$7","$params$4","$input$2","$output$4","main$7","createArticleRevision_exports","$nsid$6","$params$3","$input$1","$output$3","main$6","unpublishArticle_exports","$nsid$5","main$5","$isTypeOf","$build","$assert","$check","$cast","$ifMatches","$matches","$parse","$safeParse","$validate","$safeValidate","defs_exports","$nsid$4","$params$2","$output$2","main$4","getArticle_exports","$nsid$3","$params$1","$output$1","main$3","listArticles_exports","$nsid$2","$params","$input","$output","main$2","publishArticleRevision_exports","revision_exports","article_exports","$nsid$1","main$1","editor_exports","$nsid","main","publisher_exports","auth_exports","ihavethatonvinyl_exports","com_exports"],"sources":["../src/gen/com/atproto/repo/strongRef.defs.ts","../src/gen/com/atproto/repo/strongRef.ts","../src/gen/com/atproto/repo.ts","../src/gen/com/atproto.ts","../src/gen/com/ihavethatonvinyl/article/defs.defs.ts","../src/gen/com/ihavethatonvinyl/article/revision.defs.ts","../src/gen/com/ihavethatonvinyl/article/createArticleRevision.defs.ts","../src/gen/com/ihavethatonvinyl/article/createArticleRevision.ts","../src/gen/com/ihavethatonvinyl/article/unpublishArticle.defs.ts","../src/gen/com/ihavethatonvinyl/article/unpublishArticle.ts","../src/gen/com/ihavethatonvinyl/article.defs.ts","../src/gen/com/ihavethatonvinyl/article/defs.ts","../src/gen/com/ihavethatonvinyl/article/getArticle.defs.ts","../src/gen/com/ihavethatonvinyl/article/getArticle.ts","../src/gen/com/ihavethatonvinyl/article/listArticles.defs.ts","../src/gen/com/ihavethatonvinyl/article/listArticles.ts","../src/gen/com/ihavethatonvinyl/article/publishArticleRevision.defs.ts","../src/gen/com/ihavethatonvinyl/article/publishArticleRevision.ts","../src/gen/com/ihavethatonvinyl/article/revision.ts","../src/gen/com/ihavethatonvinyl/article.ts","../src/gen/com/ihavethatonvinyl/auth/editor.defs.ts","../src/gen/com/ihavethatonvinyl/auth/editor.ts","../src/gen/com/ihavethatonvinyl/auth/publisher.defs.ts","../src/gen/com/ihavethatonvinyl/auth/publisher.ts","../src/gen/com/ihavethatonvinyl/auth.ts","../src/gen/com/ihavethatonvinyl.ts","../src/gen/com.ts"],"sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.atproto.repo.strongRef'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\ntype Main = {\n $type?: 'com.atproto.repo.strongRef'\n cid: l.CidString\n uri: l.AtUriString\n}\n\nexport type { Main }\n\nconst main = /*#__PURE__*/ l.typedObject<Main>(\n $nsid,\n 'main',\n /*#__PURE__*/ l.object({\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n }),\n)\n\nexport { main }\n\nconst $type = $nsid\n\ntype $type = typeof $type\n\nexport { $type }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './strongRef.defs'\nexport { main as default } from './strongRef.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as strongRef from './repo/strongRef'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as repo from './atproto/repo'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article.defs'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\ntype ParagraphBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#paragraphBlockData'\n text: string\n}\n\nexport type { ParagraphBlockData }\n\nconst paragraphBlockData = /*#__PURE__*/ l.typedObject<ParagraphBlockData>(\n $nsid,\n 'paragraphBlockData',\n /*#__PURE__*/ l.object({ text: /*#__PURE__*/ l.string() }),\n)\n\nexport { paragraphBlockData }\n\ntype HeaderBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#headerBlockData'\n text: string\n level: number\n}\n\nexport type { HeaderBlockData }\n\nconst headerBlockData = /*#__PURE__*/ l.typedObject<HeaderBlockData>(\n $nsid,\n 'headerBlockData',\n /*#__PURE__*/ l.object({\n text: /*#__PURE__*/ l.string(),\n level: /*#__PURE__*/ l.integer({ minimum: 1, maximum: 6 }),\n }),\n)\n\nexport { headerBlockData }\n\ntype DividerBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#dividerBlockData'\n}\n\nexport type { DividerBlockData }\n\nconst dividerBlockData = /*#__PURE__*/ l.typedObject<DividerBlockData>(\n $nsid,\n 'dividerBlockData',\n /*#__PURE__*/ l.object({}),\n)\n\nexport { dividerBlockData }\n\ntype QuoteBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#quoteBlockData'\n text: string\n caption?: string\n alignment?: 'left' | 'center'\n}\n\nexport type { QuoteBlockData }\n\nconst quoteBlockData = /*#__PURE__*/ l.typedObject<QuoteBlockData>(\n $nsid,\n 'quoteBlockData',\n /*#__PURE__*/ l.object({\n text: /*#__PURE__*/ l.string(),\n caption: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n alignment: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.enum(['left', 'center']),\n 'left',\n ),\n ),\n }),\n)\n\nexport { quoteBlockData }\n\ntype CheckedListItemMeta = {\n $type?: 'com.ihavethatonvinyl.article.defs#checkedListItemMeta'\n checked?: boolean\n}\n\nexport type { CheckedListItemMeta }\n\nconst checkedListItemMeta = /*#__PURE__*/ l.typedObject<CheckedListItemMeta>(\n $nsid,\n 'checkedListItemMeta',\n /*#__PURE__*/ l.object({\n checked: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n }),\n)\n\nexport { checkedListItemMeta }\n\ntype OrderedListItemMeta = {\n $type?: 'com.ihavethatonvinyl.article.defs#orderedListItemMeta'\n start?: number\n counterType?: string\n}\n\nexport type { OrderedListItemMeta }\n\nconst orderedListItemMeta = /*#__PURE__*/ l.typedObject<OrderedListItemMeta>(\n $nsid,\n 'orderedListItemMeta',\n /*#__PURE__*/ l.object({\n start: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ minimum: 1 })),\n counterType: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n }),\n)\n\nexport { orderedListItemMeta }\n\ntype ListItem = {\n $type?: 'com.ihavethatonvinyl.article.defs#listItem'\n content: string\n meta?:\n | l.$Typed<CheckedListItemMeta>\n | l.$Typed<OrderedListItemMeta>\n | l.Unknown$TypedObject\n | null\n items?: ListItem[]\n}\n\nexport type { ListItem }\n\nconst listItem = /*#__PURE__*/ l.typedObject<ListItem>(\n $nsid,\n 'listItem',\n /*#__PURE__*/ l.object({\n content: /*#__PURE__*/ l.string(),\n meta: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.nullable(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<CheckedListItemMeta>(\n (() => checkedListItemMeta) as any,\n ),\n /*#__PURE__*/ l.typedRef<OrderedListItemMeta>(\n (() => orderedListItemMeta) as any,\n ),\n ],\n false,\n ),\n ),\n ),\n items: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ListItem>((() => listItem) as any),\n ),\n ),\n }),\n)\n\nexport { listItem }\n\ntype ListBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#listBlockData'\n style: 'ordered' | 'unordered' | 'checked' | l.UnknownString\n meta?:\n | l.$Typed<CheckedListItemMeta>\n | l.$Typed<OrderedListItemMeta>\n | l.Unknown$TypedObject\n | null\n items?: ListItem[]\n}\n\nexport type { ListBlockData }\n\nconst listBlockData = /*#__PURE__*/ l.typedObject<ListBlockData>(\n $nsid,\n 'listBlockData',\n /*#__PURE__*/ l.object({\n style: /*#__PURE__*/ l.string<{\n knownValues: ['ordered', 'unordered', 'checked']\n }>(),\n meta: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.nullable(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<CheckedListItemMeta>(\n (() => checkedListItemMeta) as any,\n ),\n /*#__PURE__*/ l.typedRef<OrderedListItemMeta>(\n (() => orderedListItemMeta) as any,\n ),\n ],\n false,\n ),\n ),\n ),\n items: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ListItem>((() => listItem) as any),\n ),\n ),\n }),\n)\n\nexport { listBlockData }\n\ntype Url = { $type?: 'com.ihavethatonvinyl.article.defs#url'; url: l.UriString }\n\nexport type { Url }\n\nconst url = /*#__PURE__*/ l.typedObject<Url>(\n $nsid,\n 'url',\n /*#__PURE__*/ l.object({ url: /*#__PURE__*/ l.string({ format: 'uri' }) }),\n)\n\nexport { url }\n\ntype LocalImage = {\n $type?: 'com.ihavethatonvinyl.article.defs#localImage'\n mimeType: string\n b64Data: string\n}\n\nexport type { LocalImage }\n\nconst localImage = /*#__PURE__*/ l.typedObject<LocalImage>(\n $nsid,\n 'localImage',\n /*#__PURE__*/ l.object({\n mimeType: /*#__PURE__*/ l.string(),\n b64Data: /*#__PURE__*/ l.string({ maxLength: 1468006 }),\n }),\n)\n\nexport { localImage }\n\ntype ImageBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#imageBlockData'\n file?: Url\n imageBlob?: l.BlobRef\n image?: LocalImage\n caption?: string\n withBorder?: boolean\n withBackground?: boolean\n stretched?: boolean\n}\n\nexport type { ImageBlockData }\n\nconst imageBlockData = /*#__PURE__*/ l.typedObject<ImageBlockData>(\n $nsid,\n 'imageBlockData',\n /*#__PURE__*/ l.object({\n file: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<Url>((() => url) as any),\n ),\n imageBlob: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.blob({ accept: ['image/*'], maxSize: 1048576 }),\n ),\n image: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<LocalImage>((() => localImage) as any),\n ),\n caption: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n withBorder: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n withBackground: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n stretched: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n }),\n)\n\nexport { imageBlockData }\n\ntype LinkMeta = {\n $type?: 'com.ihavethatonvinyl.article.defs#linkMeta'\n title?: string\n description?: string\n image?: Url\n}\n\nexport type { LinkMeta }\n\nconst linkMeta = /*#__PURE__*/ l.typedObject<LinkMeta>(\n $nsid,\n 'linkMeta',\n /*#__PURE__*/ l.object({\n title: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n image: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<Url>((() => url) as any),\n ),\n }),\n)\n\nexport { linkMeta }\n\ntype LinkBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#linkBlockData'\n url: l.UriString\n meta?: LinkMeta\n}\n\nexport type { LinkBlockData }\n\nconst linkBlockData = /*#__PURE__*/ l.typedObject<LinkBlockData>(\n $nsid,\n 'linkBlockData',\n /*#__PURE__*/ l.object({\n url: /*#__PURE__*/ l.string({ format: 'uri' }),\n meta: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<LinkMeta>((() => linkMeta) as any),\n ),\n }),\n)\n\nexport { linkBlockData }\n\ntype TableRow = {\n $type?: 'com.ihavethatonvinyl.article.defs#tableRow'\n columns: string[]\n}\n\nexport type { TableRow }\n\nconst tableRow = /*#__PURE__*/ l.typedObject<TableRow>(\n $nsid,\n 'tableRow',\n /*#__PURE__*/ l.object({\n columns: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), { minLength: 1 }),\n }),\n)\n\nexport { tableRow }\n\ntype TableBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#tableBlockData'\n withHeadings?: boolean\n stretched?: boolean\n rows: TableRow[]\n}\n\nexport type { TableBlockData }\n\nconst tableBlockData = /*#__PURE__*/ l.typedObject<TableBlockData>(\n $nsid,\n 'tableBlockData',\n /*#__PURE__*/ l.object({\n withHeadings: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n stretched: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n rows: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<TableRow>((() => tableRow) as any),\n { minLength: 1 },\n ),\n }),\n)\n\nexport { tableBlockData }\n\ntype Paragraph = {\n $type?: 'com.ihavethatonvinyl.article.defs#paragraph'\n type?: 'paragraph'\n data?: ParagraphBlockData\n}\n\nexport type { Paragraph }\n\nconst paragraph = /*#__PURE__*/ l.typedObject<Paragraph>(\n $nsid,\n 'paragraph',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('paragraph')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ParagraphBlockData>(\n (() => paragraphBlockData) as any,\n ),\n ),\n }),\n)\n\nexport { paragraph }\n\ntype Header = {\n $type?: 'com.ihavethatonvinyl.article.defs#header'\n type?: 'header'\n data?: HeaderBlockData\n}\n\nexport type { Header }\n\nconst header = /*#__PURE__*/ l.typedObject<Header>(\n $nsid,\n 'header',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('header')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<HeaderBlockData>((() => headerBlockData) as any),\n ),\n }),\n)\n\nexport { header }\n\ntype Divider = {\n $type?: 'com.ihavethatonvinyl.article.defs#divider'\n type?: 'divider'\n data?: DividerBlockData\n}\n\nexport type { Divider }\n\nconst divider = /*#__PURE__*/ l.typedObject<Divider>(\n $nsid,\n 'divider',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('divider')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<DividerBlockData>((() => dividerBlockData) as any),\n ),\n }),\n)\n\nexport { divider }\n\ntype Quote = {\n $type?: 'com.ihavethatonvinyl.article.defs#quote'\n type?: 'quote'\n data?: QuoteBlockData\n}\n\nexport type { Quote }\n\nconst quote = /*#__PURE__*/ l.typedObject<Quote>(\n $nsid,\n 'quote',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('quote')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<QuoteBlockData>((() => quoteBlockData) as any),\n ),\n }),\n)\n\nexport { quote }\n\ntype List = {\n $type?: 'com.ihavethatonvinyl.article.defs#list'\n type?: 'list'\n data?: ListBlockData\n}\n\nexport type { List }\n\nconst list = /*#__PURE__*/ l.typedObject<List>(\n $nsid,\n 'list',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('list')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ListBlockData>((() => listBlockData) as any),\n ),\n }),\n)\n\nexport { list }\n\ntype Image = {\n $type?: 'com.ihavethatonvinyl.article.defs#image'\n type?: 'image'\n data?: ImageBlockData\n}\n\nexport type { Image }\n\nconst image = /*#__PURE__*/ l.typedObject<Image>(\n $nsid,\n 'image',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('image')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ImageBlockData>((() => imageBlockData) as any),\n ),\n }),\n)\n\nexport { image }\n\ntype Link = {\n $type?: 'com.ihavethatonvinyl.article.defs#link'\n type?: 'linkTool'\n data?: LinkBlockData\n}\n\nexport type { Link }\n\nconst link = /*#__PURE__*/ l.typedObject<Link>(\n $nsid,\n 'link',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('linkTool')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<LinkBlockData>((() => linkBlockData) as any),\n ),\n }),\n)\n\nexport { link }\n\ntype Table = {\n $type?: 'com.ihavethatonvinyl.article.defs#table'\n type?: 'table'\n data?: TableBlockData\n}\n\nexport type { Table }\n\nconst table = /*#__PURE__*/ l.typedObject<Table>(\n $nsid,\n 'table',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('table')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TableBlockData>((() => tableBlockData) as any),\n ),\n }),\n)\n\nexport { table }\n\n/** An article's contents */\ntype Contents = {\n $type?: 'com.ihavethatonvinyl.article.defs#contents'\n\n /**\n * The article title\n */\n title: string\n\n /**\n * The blurb to be shown in list view\n */\n blurb: string\n\n /**\n * The image shown at the beginning of the article and in list view\n */\n heroImage?: l.BlobRef\n\n /**\n * A list of authors for the article. Free-form to allow plain names, or identifiers for a user\n */\n authors: string[]\n categories: (\n | 'conversations'\n | 'q-and-a'\n | 'essays'\n | 'features'\n | 'liner-notes'\n | l.UnknownString\n )[]\n body?: (\n | l.$Typed<Paragraph>\n | l.$Typed<Header>\n | l.$Typed<Divider>\n | l.$Typed<Quote>\n | l.$Typed<List>\n | l.$Typed<Image>\n | l.$Typed<Link>\n | l.$Typed<Table>\n | l.Unknown$TypedObject\n )[]\n}\n\nexport type { Contents }\n\n/** An article's contents */\nconst contents = /*#__PURE__*/ l.typedObject<Contents>(\n $nsid,\n 'contents',\n /*#__PURE__*/ l.object({\n title: /*#__PURE__*/ l.string({ minGraphemes: 1, maxGraphemes: 256 }),\n blurb: /*#__PURE__*/ l.string({ maxGraphemes: 2048 }),\n heroImage: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.blob({ accept: ['image/*'], maxSize: 1048576 }),\n ),\n authors: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {\n minLength: 1,\n maxLength: 5,\n }),\n categories: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{\n knownValues: [\n 'conversations',\n 'q-and-a',\n 'essays',\n 'features',\n 'liner-notes',\n ]\n }>(),\n { minLength: 1 },\n ),\n body: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<Paragraph>((() => paragraph) as any),\n /*#__PURE__*/ l.typedRef<Header>((() => header) as any),\n /*#__PURE__*/ l.typedRef<Divider>((() => divider) as any),\n /*#__PURE__*/ l.typedRef<Quote>((() => quote) as any),\n /*#__PURE__*/ l.typedRef<List>((() => list) as any),\n /*#__PURE__*/ l.typedRef<Image>((() => image) as any),\n /*#__PURE__*/ l.typedRef<Link>((() => link) as any),\n /*#__PURE__*/ l.typedRef<Table>((() => table) as any),\n ],\n false,\n ),\n ),\n ),\n }),\n)\n\nexport { contents }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as RepoStrongRef from '../../atproto/repo/strongRef.defs'\nimport * as ArticleDefs from './defs.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.revision'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\n/** An I Have That on Vinyl article revision */\ntype Main = {\n $type: 'com.ihavethatonvinyl.article.revision'\n published: l.DatetimeString\n publishedBy: l.DidString\n articles?: RepoStrongRef.Main[]\n contents: ArticleDefs.Contents\n\n /**\n * A short description of what was updated\n */\n notes?: string\n}\n\nexport type { Main }\n\n/** An I Have That on Vinyl article revision */\nconst main = /*#__PURE__*/ l.record<'tid', Main>(\n 'tid',\n $nsid,\n /*#__PURE__*/ l.object({\n published: /*#__PURE__*/ l.string({ format: 'datetime' }),\n publishedBy: /*#__PURE__*/ l.string({ format: 'did' }),\n articles: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n { minLength: 1 },\n ),\n ),\n contents: /*#__PURE__*/ l.ref<ArticleDefs.Contents>(\n (() => ArticleDefs.contents) as any,\n ),\n notes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ maxGraphemes: 1024 }),\n ),\n }),\n)\n\nexport { main }\n\nconst $type = $nsid\n\ntype $type = typeof $type\n\nexport { $type }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ArticleDefs from './defs.defs'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.createArticleRevision'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params()\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n contents: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ArticleDefs.Contents>(\n (() => ArticleDefs.contents) as any,\n ),\n ),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n revision: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** creates an article revision. If articles is empty, it's assumed this is a new article */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './createArticleRevision.defs'\nexport { main as default } from './createArticleRevision.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article.unpublishArticle'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n article: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'at-uri' }),\n ),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.payload()\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.payload()\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Deletes an article and removes any refs to it from all revisions */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './unpublishArticle.defs'\nexport { main as default } from './unpublishArticle.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\n/** An I Have That on Vinyl article. It is immutable so backlinks and comments survive edits. The record key acts as the article's URL slug */\ntype Main = {\n $type: 'com.ihavethatonvinyl.article'\n\n /**\n * The date the article was originally published\n */\n published: l.DatetimeString\n\n /**\n * The user who published the article\n */\n publishedBy: l.DidString\n}\n\nexport type { Main }\n\n/** An I Have That on Vinyl article. It is immutable so backlinks and comments survive edits. The record key acts as the article's URL slug */\nconst main = /*#__PURE__*/ l.record<'literal:self', Main>(\n 'literal:self',\n $nsid,\n /*#__PURE__*/ l.object({\n published: /*#__PURE__*/ l.string({ format: 'datetime' }),\n publishedBy: /*#__PURE__*/ l.string({ format: 'did' }),\n }),\n)\n\nexport { main }\n\nconst $type = $nsid\n\ntype $type = typeof $type\n\nexport { $type }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './defs.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as IhavethatonvinylArticle from '../article.defs'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.getArticle'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n article: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'at-uri' }),\n ),\n allVersions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false),\n ),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n article: /*#__PURE__*/ l.ref<IhavethatonvinylArticle.Main>(\n (() => IhavethatonvinylArticle.main) as any,\n ),\n contents: /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n history: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n ),\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Fetch an article with its latest revision, plus optionally all older versions */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './getArticle.defs'\nexport { main as default } from './getArticle.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.listArticles'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n limit: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.integer({ minimum: 1, maximum: 100 }),\n 25,\n ),\n ),\n cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n sort: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(['asc', 'desc']), 'desc'),\n ),\n sortBy: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.string<{ knownValues: ['published', 'updated'] }>(),\n 'published',\n ),\n ),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n items: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n ),\n cursor: /*#__PURE__*/ l.string(),\n total: /*#__PURE__*/ l.integer({ minimum: 0 }),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** returns the latest version of the articles that match the search criteria */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './listArticles.defs'\nexport { main as default } from './listArticles.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as IhavethatonvinylArticle from '../article.defs'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.publishArticleRevision'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n revision: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.payload()\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n article: /*#__PURE__*/ l.ref<IhavethatonvinylArticle.Main>(\n (() => IhavethatonvinylArticle.main) as any,\n ),\n contents: /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** publishes an article revision. if one of the revision's article refs exists in the repo, it is considered an update */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './publishArticleRevision.defs'\nexport { main as default } from './publishArticleRevision.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './revision.defs'\nexport { main as default } from './revision.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as createArticleRevision from './article/createArticleRevision'\nexport * as unpublishArticle from './article/unpublishArticle'\nexport * from './article.defs'\nexport { main as default } from './article.defs'\nexport * as defs from './article/defs'\nexport * as getArticle from './article/getArticle'\nexport * as listArticles from './article/listArticles'\nexport * as publishArticleRevision from './article/publishArticleRevision'\nexport * as revision from './article/revision'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.auth.editor'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nconst main = /*#__PURE__*/ l.permissionSet(\n $nsid,\n [\n /*#__PURE__*/ l.permission('repo', {\n action: ['create'],\n collection: ['com.ihavethatonvinyl.article.revision'],\n }),\n /*#__PURE__*/ l.permission('blob', { accept: ['image/*'] }),\n ],\n { title: 'ihavethatonvinyl.com', detail: 'Manage article contents' },\n)\n\nexport { main }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './editor.defs'\nexport { main as default } from './editor.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.auth.publisher'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nconst main = /*#__PURE__*/ l.permissionSet(\n $nsid,\n [\n /*#__PURE__*/ l.permission('repo', {\n action: ['create', 'delete'],\n collection: ['com.ihavethatonvinyl.article'],\n }),\n ],\n { title: 'ihavethatonvinyl.com', detail: 'Manage articles' },\n)\n\nexport { main }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './publisher.defs'\nexport { main as default } from './publisher.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as editor from './auth/editor'\nexport * as publisher from './auth/publisher'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as article from './ihavethatonvinyl/article'\nexport * as auth from './ihavethatonvinyl/auth'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as atproto from './com/atproto'\nexport * as ihavethatonvinyl from './com/ihavethatonvinyl'\n"],"mappings":"A,oFAMA,MAAMA,EAAQ,6BAcRC,EAAqBkE,gBAAE,YAC3BnE,EACA,OACcmE,gBAAE,OAAO,CACrB,IAAmBA,gBAAE,OAAO,CAAE,OAAQ,KAAM,CAAC,EAC7C,IAAmBA,gBAAE,O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E,cAC3BsG,GACA,CACgBtG,gBAAE,WAAW,OAAQ,CACjC,OAAQ,CAAC,SAAU,QAAQ,EAC3B,WAAY,CAAC,8BAA8B,CAC7C,CAAC,CACH,EACA,CAAE,MAAO,uBAAwB,OAAQ,iBAAkB,CAC7D,E"}
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "@ihavethatonvinyl/lexicons",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.1",
4
+ "description": "",
5
+ "keywords": [],
6
+ "license": "MIT",
7
+ "author": "Josh Ghiloni <oss@joshghiloni.me>",
8
+ "files": [
9
+ "dist/index.*",
10
+ "schemas/com/ihavethatonvinyl"
11
+ ],
12
+ "type": "module",
13
+ "main": "dist/index.js",
14
+ "types": "dist/index.d.ts",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "devDependencies": {
19
+ "@atproto/lex": "^0.6.1",
20
+ "@atproto/lex-cli": "^0.10.20",
21
+ "oxfmt": "^0.79.0",
22
+ "oxlint": "^1.94.0",
23
+ "prototypey": "^0.8.1",
24
+ "rimraf": "^6.1.4",
25
+ "tsdown": "^0.23.7",
26
+ "typescript": "^7.0.2"
27
+ },
28
+ "scripts": {
29
+ "build": "tsdown",
30
+ "clean-generated-schemas": "rimraf schemas/com && lex install --lexicons ./schemas --no-save com.atproto.repo.strongRef",
31
+ "clean-generated-go": "rimraf api",
32
+ "clean-generated-typescript": "rimraf src/gen/*",
33
+ "clean": "printf $'clean-generated-%s\n' go schemas typescript | xargs -L1 pnpm run",
34
+ "codegen": "pnpm clean && pnpm gen-schema && pnpm gen-go-sdk && pnpm gen-ts-sdk && pnpm build",
35
+ "fmt": "oxfmt",
36
+ "fmt:check": "oxfmt --check",
37
+ "gen-schema": "prototypey gen-emit ./schemas ./src/lex/index.ts",
38
+ "gen-go-sdk": "./build-go-types.sh",
39
+ "gen-ts-sdk": "lex build --lexicons ./schemas --out ./src/gen --import-ext '' --index-file --pretty",
40
+ "lint": "oxlint"
41
+ }
6
42
  }
@@ -0,0 +1,34 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "com.ihavethatonvinyl.article.createArticleRevision",
4
+ "defs": {
5
+ "main": {
6
+ "type": "procedure",
7
+ "description": "creates an article revision. If articles is empty, it's assumed this is a new article",
8
+ "input": {
9
+ "encoding": "application/json",
10
+ "schema": {
11
+ "type": "object",
12
+ "properties": {
13
+ "contents": {
14
+ "type": "ref",
15
+ "ref": "com.ihavethatonvinyl.article.defs#contents"
16
+ }
17
+ }
18
+ }
19
+ },
20
+ "output": {
21
+ "encoding": "application/json",
22
+ "schema": {
23
+ "type": "object",
24
+ "properties": {
25
+ "revision": {
26
+ "type": "ref",
27
+ "ref": "com.ihavethatonvinyl.article.revision"
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,446 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "com.ihavethatonvinyl.article.defs",
4
+ "defs": {
5
+ "paragraphBlockData": {
6
+ "type": "object",
7
+ "properties": {
8
+ "text": {
9
+ "type": "string"
10
+ }
11
+ },
12
+ "required": [
13
+ "text"
14
+ ]
15
+ },
16
+ "headerBlockData": {
17
+ "type": "object",
18
+ "properties": {
19
+ "text": {
20
+ "type": "string"
21
+ },
22
+ "level": {
23
+ "type": "integer",
24
+ "minimum": 1,
25
+ "maximum": 6
26
+ }
27
+ },
28
+ "required": [
29
+ "text",
30
+ "level"
31
+ ]
32
+ },
33
+ "dividerBlockData": {
34
+ "type": "object",
35
+ "properties": {}
36
+ },
37
+ "quoteBlockData": {
38
+ "type": "object",
39
+ "properties": {
40
+ "text": {
41
+ "type": "string"
42
+ },
43
+ "caption": {
44
+ "type": "string"
45
+ },
46
+ "alignment": {
47
+ "type": "string",
48
+ "enum": [
49
+ "left",
50
+ "center"
51
+ ],
52
+ "default": "left"
53
+ }
54
+ },
55
+ "required": [
56
+ "text"
57
+ ]
58
+ },
59
+ "checkedListItemMeta": {
60
+ "type": "object",
61
+ "properties": {
62
+ "checked": {
63
+ "type": "boolean"
64
+ }
65
+ }
66
+ },
67
+ "orderedListItemMeta": {
68
+ "type": "object",
69
+ "properties": {
70
+ "start": {
71
+ "type": "integer",
72
+ "minimum": 1
73
+ },
74
+ "counterType": {
75
+ "type": "string"
76
+ }
77
+ }
78
+ },
79
+ "listItem": {
80
+ "type": "object",
81
+ "properties": {
82
+ "content": {
83
+ "type": "string"
84
+ },
85
+ "meta": {
86
+ "type": "union",
87
+ "refs": [
88
+ "#checkedListItemMeta",
89
+ "#orderedListItemMeta"
90
+ ],
91
+ "closed": false
92
+ },
93
+ "items": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "ref",
97
+ "ref": "#listItem"
98
+ }
99
+ }
100
+ },
101
+ "required": [
102
+ "content"
103
+ ],
104
+ "nullable": [
105
+ "meta"
106
+ ]
107
+ },
108
+ "listBlockData": {
109
+ "type": "object",
110
+ "properties": {
111
+ "style": {
112
+ "type": "string",
113
+ "knownValues": [
114
+ "ordered",
115
+ "unordered",
116
+ "checked"
117
+ ]
118
+ },
119
+ "meta": {
120
+ "type": "union",
121
+ "refs": [
122
+ "#checkedListItemMeta",
123
+ "#orderedListItemMeta"
124
+ ],
125
+ "closed": false
126
+ },
127
+ "items": {
128
+ "type": "array",
129
+ "items": {
130
+ "type": "ref",
131
+ "ref": "#listItem"
132
+ }
133
+ }
134
+ },
135
+ "required": [
136
+ "style"
137
+ ],
138
+ "nullable": [
139
+ "meta"
140
+ ]
141
+ },
142
+ "url": {
143
+ "type": "object",
144
+ "properties": {
145
+ "url": {
146
+ "type": "string",
147
+ "format": "uri"
148
+ }
149
+ },
150
+ "required": [
151
+ "url"
152
+ ]
153
+ },
154
+ "localImage": {
155
+ "type": "object",
156
+ "properties": {
157
+ "mimeType": {
158
+ "type": "string"
159
+ },
160
+ "b64Data": {
161
+ "type": "string",
162
+ "maxLength": 1468006
163
+ }
164
+ },
165
+ "required": [
166
+ "mimeType",
167
+ "b64Data"
168
+ ]
169
+ },
170
+ "imageBlockData": {
171
+ "type": "object",
172
+ "properties": {
173
+ "file": {
174
+ "type": "ref",
175
+ "ref": "#url"
176
+ },
177
+ "imageBlob": {
178
+ "type": "blob",
179
+ "accept": [
180
+ "image/*"
181
+ ],
182
+ "maxSize": 1048576
183
+ },
184
+ "image": {
185
+ "type": "ref",
186
+ "ref": "#localImage"
187
+ },
188
+ "caption": {
189
+ "type": "string"
190
+ },
191
+ "withBorder": {
192
+ "type": "boolean"
193
+ },
194
+ "withBackground": {
195
+ "type": "boolean"
196
+ },
197
+ "stretched": {
198
+ "type": "boolean"
199
+ }
200
+ }
201
+ },
202
+ "linkMeta": {
203
+ "type": "object",
204
+ "properties": {
205
+ "title": {
206
+ "type": "string"
207
+ },
208
+ "description": {
209
+ "type": "string"
210
+ },
211
+ "image": {
212
+ "type": "ref",
213
+ "ref": "#url"
214
+ }
215
+ }
216
+ },
217
+ "linkBlockData": {
218
+ "type": "object",
219
+ "properties": {
220
+ "url": {
221
+ "type": "string",
222
+ "format": "uri"
223
+ },
224
+ "meta": {
225
+ "type": "ref",
226
+ "ref": "#linkMeta"
227
+ }
228
+ },
229
+ "required": [
230
+ "url"
231
+ ]
232
+ },
233
+ "tableRow": {
234
+ "type": "object",
235
+ "properties": {
236
+ "columns": {
237
+ "type": "array",
238
+ "items": {
239
+ "type": "string"
240
+ },
241
+ "minLength": 1
242
+ }
243
+ },
244
+ "required": [
245
+ "columns"
246
+ ]
247
+ },
248
+ "tableBlockData": {
249
+ "type": "object",
250
+ "properties": {
251
+ "withHeadings": {
252
+ "type": "boolean"
253
+ },
254
+ "stretched": {
255
+ "type": "boolean"
256
+ },
257
+ "rows": {
258
+ "type": "array",
259
+ "items": {
260
+ "type": "ref",
261
+ "ref": "#tableRow"
262
+ },
263
+ "minLength": 1
264
+ }
265
+ },
266
+ "required": [
267
+ "rows"
268
+ ]
269
+ },
270
+ "paragraph": {
271
+ "type": "object",
272
+ "properties": {
273
+ "type": {
274
+ "type": "string",
275
+ "const": "paragraph"
276
+ },
277
+ "data": {
278
+ "type": "ref",
279
+ "ref": "#paragraphBlockData"
280
+ }
281
+ }
282
+ },
283
+ "header": {
284
+ "type": "object",
285
+ "properties": {
286
+ "type": {
287
+ "type": "string",
288
+ "const": "header"
289
+ },
290
+ "data": {
291
+ "type": "ref",
292
+ "ref": "#headerBlockData"
293
+ }
294
+ }
295
+ },
296
+ "divider": {
297
+ "type": "object",
298
+ "properties": {
299
+ "type": {
300
+ "type": "string",
301
+ "const": "divider"
302
+ },
303
+ "data": {
304
+ "type": "ref",
305
+ "ref": "#dividerBlockData"
306
+ }
307
+ }
308
+ },
309
+ "quote": {
310
+ "type": "object",
311
+ "properties": {
312
+ "type": {
313
+ "type": "string",
314
+ "const": "quote"
315
+ },
316
+ "data": {
317
+ "type": "ref",
318
+ "ref": "#quoteBlockData"
319
+ }
320
+ }
321
+ },
322
+ "list": {
323
+ "type": "object",
324
+ "properties": {
325
+ "type": {
326
+ "type": "string",
327
+ "const": "list"
328
+ },
329
+ "data": {
330
+ "type": "ref",
331
+ "ref": "#listBlockData"
332
+ }
333
+ }
334
+ },
335
+ "image": {
336
+ "type": "object",
337
+ "properties": {
338
+ "type": {
339
+ "type": "string",
340
+ "const": "image"
341
+ },
342
+ "data": {
343
+ "type": "ref",
344
+ "ref": "#imageBlockData"
345
+ }
346
+ }
347
+ },
348
+ "link": {
349
+ "type": "object",
350
+ "properties": {
351
+ "type": {
352
+ "type": "string",
353
+ "const": "linkTool"
354
+ },
355
+ "data": {
356
+ "type": "ref",
357
+ "ref": "#linkBlockData"
358
+ }
359
+ }
360
+ },
361
+ "table": {
362
+ "type": "object",
363
+ "properties": {
364
+ "type": {
365
+ "type": "string",
366
+ "const": "table"
367
+ },
368
+ "data": {
369
+ "type": "ref",
370
+ "ref": "#tableBlockData"
371
+ }
372
+ }
373
+ },
374
+ "contents": {
375
+ "type": "object",
376
+ "properties": {
377
+ "title": {
378
+ "type": "string",
379
+ "description": "The article title",
380
+ "minGraphemes": 1,
381
+ "maxGraphemes": 256
382
+ },
383
+ "blurb": {
384
+ "type": "string",
385
+ "description": "The blurb to be shown in list view",
386
+ "maxGraphemes": 2048
387
+ },
388
+ "heroImage": {
389
+ "type": "blob",
390
+ "description": "The image shown at the beginning of the article and in list view",
391
+ "accept": [
392
+ "image/*"
393
+ ],
394
+ "maxSize": 1048576
395
+ },
396
+ "authors": {
397
+ "type": "array",
398
+ "items": {
399
+ "type": "string"
400
+ },
401
+ "description": "A list of authors for the article. Free-form to allow plain names, or identifiers for a user",
402
+ "minLength": 1,
403
+ "maxLength": 5
404
+ },
405
+ "categories": {
406
+ "type": "array",
407
+ "items": {
408
+ "type": "string",
409
+ "knownValues": [
410
+ "conversations",
411
+ "q-and-a",
412
+ "essays",
413
+ "features",
414
+ "liner-notes"
415
+ ]
416
+ },
417
+ "minLength": 1
418
+ },
419
+ "body": {
420
+ "type": "array",
421
+ "items": {
422
+ "type": "union",
423
+ "refs": [
424
+ "#paragraph",
425
+ "#header",
426
+ "#divider",
427
+ "#quote",
428
+ "#list",
429
+ "#image",
430
+ "#link",
431
+ "#table"
432
+ ],
433
+ "closed": false
434
+ }
435
+ }
436
+ },
437
+ "description": "An article's contents",
438
+ "required": [
439
+ "title",
440
+ "blurb",
441
+ "authors",
442
+ "categories"
443
+ ]
444
+ }
445
+ }
446
+ }