···1212const linkRecord = object({
1313 description: 'a record linking to the subject',
1414 properties: {
1515- did: required(string({ format: 'did', description: 'the DID of the linking record\'s repository' })),
1515+ did: required(string({ format: 'did', description: "the DID of the linking record's repository" })),
1616 collection: required(string({ format: 'nsid', description: 'the collection of the linking record' })),
1717 rkey: required(string({ format: 'record-key', description: 'the record key of the linking record' })),
1818 },
···2525 description: 'a list of records linking to any record, identity, or uri',
2626 parameters: params({
2727 properties: {
2828- subject: required(string({ format: 'uri', description: 'the target being linked to (at-uri, did, or uri)' })),
2929- source: required(string({ description: 'collection and path specification (e.g., \'app.bsky.feed.like:subject.uri\')' })),
2828+ subject: required(
2929+ string({ format: 'uri', description: 'the target being linked to (at-uri, did, or uri)' }),
3030+ ),
3131+ source: required(
3232+ string({
3333+ description: "collection and path specification (e.g., 'app.bsky.feed.like:subject.uri')",
3434+ }),
3535+ ),
3036 did: array({
3137 description: 'filter links to those from specific users',
3238 items: string({ format: 'did' }),
···2525 description: 'count many-to-many relationships with secondary link paths',
2626 parameters: params({
2727 properties: {
2828- subject: required(string({ format: 'uri', description: 'the primary target being linked to (at-uri, did, or uri)' })),
2828+ subject: required(
2929+ string({
3030+ format: 'uri',
3131+ description: 'the primary target being linked to (at-uri, did, or uri)',
3232+ }),
3333+ ),
2934 source: required(string({ description: 'collection and path specification for the primary link' })),
3030- pathToOther: required(string({ description: 'path to the secondary link in the many-to-many record (e.g., \'otherThing.uri\')' })),
3535+ pathToOther: required(
3636+ string({
3737+ description: "path to the secondary link in the many-to-many record (e.g., 'otherThing.uri')",
3838+ }),
3939+ ),
3140 did: array({
3241 description: 'filter links to those from specific users',
3342 items: string({ format: 'did' }),
···11-import {
22- document,
33- object,
44- params,
55- query,
66- required,
77- string,
88-} from '@atcute/lexicon-doc/builder';
11+import { document, object, params, query, required, string } from '@atcute/lexicon-doc/builder';
92103export default document({
114 id: 'com.bad-example.identity.resolveMiniDoc',
125 defs: {
136 main: query({
1414- description: 'like com.atproto.identity.resolveIdentity but instead of the full didDoc it returns an atproto-relevant subset',
77+ description:
88+ 'like com.atproto.identity.resolveIdentity but instead of the full didDoc it returns an atproto-relevant subset',
159 parameters: params({
1610 properties: {
1711 identifier: required(string({ format: 'at-identifier', description: 'handle or DID to resolve' })),
···2115 encoding: 'application/json',
2216 schema: object({
2317 properties: {
2424- did: required(string({ format: 'did', description: 'DID, bi-directionally verified if a handle was provided in the query' })),
2525- handle: required(string({ format: 'handle', description: 'the validated handle of the account or \'handle.invalid\' if the handle did not bi-directionally match the DID document' })),
2626- pds: required(string({ format: 'uri', description: 'the identity\'s PDS URL' })),
1818+ did: required(
1919+ string({
2020+ format: 'did',
2121+ description: 'DID, bi-directionally verified if a handle was provided in the query',
2222+ }),
2323+ ),
2424+ handle: required(
2525+ string({
2626+ format: 'handle',
2727+ description:
2828+ "the validated handle of the account or 'handle.invalid' if the handle did not bi-directionally match the DID document",
2929+ }),
3030+ ),
3131+ pds: required(string({ format: 'uri', description: "the identity's PDS URL" })),
2732 signing_key: required(string({ description: 'the atproto signing key publicKeyMultibase' })),
2833 },
2934 }),
···11-import {
22- document,
33- object,
44- params,
55- query,
66- required,
77- string,
88- unknown,
99-} from '@atcute/lexicon-doc/builder';
11+import { document, object, params, query, required, string, unknown } from '@atcute/lexicon-doc/builder';
102113export default document({
124 id: 'com.bad-example.repo.getUriRecord',
135 defs: {
146 main: query({
1515- description: 'ergonomic complement to com.atproto.repo.getRecord which accepts an at-uri instead of individual repo/collection/rkey params',
77+ description:
88+ 'ergonomic complement to com.atproto.repo.getRecord which accepts an at-uri instead of individual repo/collection/rkey params',
169 parameters: params({
1710 properties: {
1818- at_uri: required(string({ format: 'at-uri', description: 'the at-uri of the record (identifier can be a DID or handle)' })),
1919- cid: string({ format: 'cid', description: 'optional CID of the version of the record. if not specified, return the most recent version. if specified and a newer version exists, returns 404.' }),
1111+ at_uri: required(
1212+ string({
1313+ format: 'at-uri',
1414+ description: 'the at-uri of the record (identifier can be a DID or handle)',
1515+ }),
1616+ ),
1717+ cid: string({
1818+ format: 'cid',
1919+ description:
2020+ 'optional CID of the version of the record. if not specified, return the most recent version. if specified and a newer version exists, returns 404.',
2121+ }),
2022 },
2123 }),
2224 output: {
···115115116116 const defaultExport = (mod as any)?.default;
117117 if (!isLexDocumentBuilder(defaultExport)) {
118118- console.error(pc.bold(pc.red(`module "${relativePath}" default export is not a valid LexDocumentBuilder`)));
118118+ console.error(
119119+ pc.bold(pc.red(`module "${relativePath}" default export is not a valid LexDocumentBuilder`)),
120120+ );
119121 console.error(`expected default export to be a LexDocumentBuilder (object with 'id' and 'defs')`);
120122 process.exit(1);
121123 }