@atproto/pds 0.4.186 → 0.4.188

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.
Files changed (110) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/account-manager/account-manager.d.ts +1 -1
  3. package/dist/account-manager/account-manager.d.ts.map +1 -1
  4. package/dist/account-manager/account-manager.js +1 -0
  5. package/dist/account-manager/account-manager.js.map +1 -1
  6. package/dist/account-manager/helpers/email-token.js +1 -1
  7. package/dist/account-manager/helpers/email-token.js.map +1 -1
  8. package/dist/account-manager/oauth-store.d.ts +2 -2
  9. package/dist/account-manager/oauth-store.d.ts.map +1 -1
  10. package/dist/account-manager/oauth-store.js +9 -3
  11. package/dist/account-manager/oauth-store.js.map +1 -1
  12. package/dist/lexicon/types/app/bsky/actor/profile.d.ts +4 -3
  13. package/dist/lexicon/types/app/bsky/actor/profile.d.ts.map +1 -1
  14. package/dist/lexicon/types/app/bsky/actor/profile.js +9 -7
  15. package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
  16. package/dist/lexicon/types/app/bsky/actor/status.d.ts +4 -3
  17. package/dist/lexicon/types/app/bsky/actor/status.d.ts.map +1 -1
  18. package/dist/lexicon/types/app/bsky/actor/status.js +9 -7
  19. package/dist/lexicon/types/app/bsky/actor/status.js.map +1 -1
  20. package/dist/lexicon/types/app/bsky/feed/generator.d.ts +4 -3
  21. package/dist/lexicon/types/app/bsky/feed/generator.d.ts.map +1 -1
  22. package/dist/lexicon/types/app/bsky/feed/generator.js +9 -7
  23. package/dist/lexicon/types/app/bsky/feed/generator.js.map +1 -1
  24. package/dist/lexicon/types/app/bsky/feed/like.d.ts +4 -3
  25. package/dist/lexicon/types/app/bsky/feed/like.d.ts.map +1 -1
  26. package/dist/lexicon/types/app/bsky/feed/like.js +9 -7
  27. package/dist/lexicon/types/app/bsky/feed/like.js.map +1 -1
  28. package/dist/lexicon/types/app/bsky/feed/post.d.ts +4 -3
  29. package/dist/lexicon/types/app/bsky/feed/post.d.ts.map +1 -1
  30. package/dist/lexicon/types/app/bsky/feed/post.js +9 -7
  31. package/dist/lexicon/types/app/bsky/feed/post.js.map +1 -1
  32. package/dist/lexicon/types/app/bsky/feed/postgate.d.ts +4 -3
  33. package/dist/lexicon/types/app/bsky/feed/postgate.d.ts.map +1 -1
  34. package/dist/lexicon/types/app/bsky/feed/postgate.js +9 -7
  35. package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -1
  36. package/dist/lexicon/types/app/bsky/feed/repost.d.ts +4 -3
  37. package/dist/lexicon/types/app/bsky/feed/repost.d.ts.map +1 -1
  38. package/dist/lexicon/types/app/bsky/feed/repost.js +9 -7
  39. package/dist/lexicon/types/app/bsky/feed/repost.js.map +1 -1
  40. package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +4 -3
  41. package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
  42. package/dist/lexicon/types/app/bsky/feed/threadgate.js +9 -7
  43. package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
  44. package/dist/lexicon/types/app/bsky/graph/block.d.ts +4 -3
  45. package/dist/lexicon/types/app/bsky/graph/block.d.ts.map +1 -1
  46. package/dist/lexicon/types/app/bsky/graph/block.js +9 -7
  47. package/dist/lexicon/types/app/bsky/graph/block.js.map +1 -1
  48. package/dist/lexicon/types/app/bsky/graph/follow.d.ts +4 -3
  49. package/dist/lexicon/types/app/bsky/graph/follow.d.ts.map +1 -1
  50. package/dist/lexicon/types/app/bsky/graph/follow.js +9 -7
  51. package/dist/lexicon/types/app/bsky/graph/follow.js.map +1 -1
  52. package/dist/lexicon/types/app/bsky/graph/list.d.ts +4 -3
  53. package/dist/lexicon/types/app/bsky/graph/list.d.ts.map +1 -1
  54. package/dist/lexicon/types/app/bsky/graph/list.js +9 -7
  55. package/dist/lexicon/types/app/bsky/graph/list.js.map +1 -1
  56. package/dist/lexicon/types/app/bsky/graph/listblock.d.ts +4 -3
  57. package/dist/lexicon/types/app/bsky/graph/listblock.d.ts.map +1 -1
  58. package/dist/lexicon/types/app/bsky/graph/listblock.js +9 -7
  59. package/dist/lexicon/types/app/bsky/graph/listblock.js.map +1 -1
  60. package/dist/lexicon/types/app/bsky/graph/listitem.d.ts +4 -3
  61. package/dist/lexicon/types/app/bsky/graph/listitem.d.ts.map +1 -1
  62. package/dist/lexicon/types/app/bsky/graph/listitem.js +9 -7
  63. package/dist/lexicon/types/app/bsky/graph/listitem.js.map +1 -1
  64. package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts +4 -3
  65. package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts.map +1 -1
  66. package/dist/lexicon/types/app/bsky/graph/starterpack.js +9 -7
  67. package/dist/lexicon/types/app/bsky/graph/starterpack.js.map +1 -1
  68. package/dist/lexicon/types/app/bsky/graph/verification.d.ts +4 -3
  69. package/dist/lexicon/types/app/bsky/graph/verification.d.ts.map +1 -1
  70. package/dist/lexicon/types/app/bsky/graph/verification.js +9 -7
  71. package/dist/lexicon/types/app/bsky/graph/verification.js.map +1 -1
  72. package/dist/lexicon/types/app/bsky/labeler/service.d.ts +4 -3
  73. package/dist/lexicon/types/app/bsky/labeler/service.d.ts.map +1 -1
  74. package/dist/lexicon/types/app/bsky/labeler/service.js +9 -7
  75. package/dist/lexicon/types/app/bsky/labeler/service.js.map +1 -1
  76. package/dist/lexicon/types/app/bsky/notification/declaration.d.ts +4 -3
  77. package/dist/lexicon/types/app/bsky/notification/declaration.d.ts.map +1 -1
  78. package/dist/lexicon/types/app/bsky/notification/declaration.js +9 -7
  79. package/dist/lexicon/types/app/bsky/notification/declaration.js.map +1 -1
  80. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +4 -3
  81. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -1
  82. package/dist/lexicon/types/chat/bsky/actor/declaration.js +9 -7
  83. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -1
  84. package/dist/lexicon/types/com/atproto/lexicon/schema.d.ts +4 -3
  85. package/dist/lexicon/types/com/atproto/lexicon/schema.d.ts.map +1 -1
  86. package/dist/lexicon/types/com/atproto/lexicon/schema.js +9 -7
  87. package/dist/lexicon/types/com/atproto/lexicon/schema.js.map +1 -1
  88. package/package.json +8 -8
  89. package/src/account-manager/account-manager.ts +2 -0
  90. package/src/account-manager/helpers/email-token.ts +1 -1
  91. package/src/account-manager/oauth-store.ts +15 -5
  92. package/src/lexicon/types/app/bsky/actor/profile.ts +12 -6
  93. package/src/lexicon/types/app/bsky/actor/status.ts +12 -6
  94. package/src/lexicon/types/app/bsky/feed/generator.ts +12 -6
  95. package/src/lexicon/types/app/bsky/feed/like.ts +12 -6
  96. package/src/lexicon/types/app/bsky/feed/post.ts +12 -6
  97. package/src/lexicon/types/app/bsky/feed/postgate.ts +12 -6
  98. package/src/lexicon/types/app/bsky/feed/repost.ts +12 -6
  99. package/src/lexicon/types/app/bsky/feed/threadgate.ts +12 -6
  100. package/src/lexicon/types/app/bsky/graph/block.ts +12 -6
  101. package/src/lexicon/types/app/bsky/graph/follow.ts +12 -6
  102. package/src/lexicon/types/app/bsky/graph/list.ts +12 -6
  103. package/src/lexicon/types/app/bsky/graph/listblock.ts +12 -6
  104. package/src/lexicon/types/app/bsky/graph/listitem.ts +12 -6
  105. package/src/lexicon/types/app/bsky/graph/starterpack.ts +12 -6
  106. package/src/lexicon/types/app/bsky/graph/verification.ts +12 -6
  107. package/src/lexicon/types/app/bsky/labeler/service.ts +12 -6
  108. package/src/lexicon/types/app/bsky/notification/declaration.ts +12 -6
  109. package/src/lexicon/types/chat/bsky/actor/declaration.ts +12 -6
  110. package/src/lexicon/types/com/atproto/lexicon/schema.ts +12 -6
@@ -1,18 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LIVE = void 0;
4
- exports.isRecord = isRecord;
5
- exports.validateRecord = validateRecord;
4
+ exports.isMain = isMain;
5
+ exports.isRecord = isMain;
6
+ exports.validateMain = validateMain;
7
+ exports.validateRecord = validateMain;
6
8
  const lexicons_1 = require("../../../../lexicons");
7
9
  const util_1 = require("../../../../util");
8
10
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
9
11
  const id = 'app.bsky.actor.status';
10
- const hashRecord = 'main';
11
- function isRecord(v) {
12
- return is$typed(v, id, hashRecord);
12
+ const hashMain = 'main';
13
+ function isMain(v) {
14
+ return is$typed(v, id, hashMain);
13
15
  }
14
- function validateRecord(v) {
15
- return validate(v, id, hashRecord, true);
16
+ function validateMain(v) {
17
+ return validate(v, id, hashMain, true);
16
18
  }
17
19
  /** Advertises an account as currently offering live content. */
18
20
  exports.LIVE = `${id}#live`;
@@ -1 +1 @@
1
- {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/status.ts"],"names":[],"mappings":";;;AA8BA,4BAEC;AAED,wCAEC;AA/BD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,uBAAuB,CAAA;AAalC,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC;AAED,gEAAgE;AACnD,QAAA,IAAI,GAAG,GAAG,EAAE,OAAO,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.actor.status'\n\nexport interface Record {\n $type: 'app.bsky.actor.status'\n /** The status for the account. */\n status: 'app.bsky.actor.status#live' | (string & {})\n embed?: $Typed<AppBskyEmbedExternal.Main> | { $type: string }\n /** The duration of the status in minutes. Applications can choose to impose minimum and maximum limits. */\n durationMinutes?: number\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashRecord = 'main'\n\nexport function isRecord<V>(v: V) {\n return is$typed(v, id, hashRecord)\n}\n\nexport function validateRecord<V>(v: V) {\n return validate<Record & V>(v, id, hashRecord, true)\n}\n\n/** Advertises an account as currently offering live content. */\nexport const LIVE = `${id}#live`\n"]}
1
+ {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/status.ts"],"names":[],"mappings":";;;AA8BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AApChC,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,uBAAuB,CAAA;AAalC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAQD,gEAAgE;AACnD,QAAA,IAAI,GAAG,GAAG,EAAE,OAAO,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.actor.status'\n\nexport interface Main {\n $type: 'app.bsky.actor.status'\n /** The status for the account. */\n status: 'app.bsky.actor.status#live' | (string & {})\n embed?: $Typed<AppBskyEmbedExternal.Main> | { $type: string }\n /** The duration of the status in minutes. Applications can choose to impose minimum and maximum limits. */\n durationMinutes?: number\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n\n/** Advertises an account as currently offering live content. */\nexport const LIVE = `${id}#live`\n"]}
@@ -5,7 +5,7 @@ import { type ValidationResult, BlobRef } from '@atproto/lexicon';
5
5
  import { type $Typed } from '../../../../util';
6
6
  import type * as AppBskyRichtextFacet from '../richtext/facet.js';
7
7
  import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
8
- export interface Record {
8
+ export interface Main {
9
9
  $type: 'app.bsky.feed.generator';
10
10
  did: string;
11
11
  displayName: string;
@@ -21,6 +21,7 @@ export interface Record {
21
21
  createdAt: string;
22
22
  [k: string]: unknown;
23
23
  }
24
- export declare function isRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.generator", "main">;
25
- export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
24
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.generator", "main">;
25
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
26
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
26
27
  //# sourceMappingURL=generator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/generator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,yBAAyB,CAAA;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iBAAiB,CAAC,EAAE,oBAAoB,CAAC,IAAI,EAAE,CAAA;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iHAAiH;IACjH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACnE,WAAW,CAAC,EACR,2CAA2C,GAC3C,qCAAqC,GACrC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/generator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,yBAAyB,CAAA;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iBAAiB,CAAC,EAAE,oBAAoB,CAAC,IAAI,EAAE,CAAA;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iHAAiH;IACjH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACnE,WAAW,CAAC,EACR,2CAA2C,GAC3C,qCAAqC,GACrC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRecord = isRecord;
4
- exports.validateRecord = validateRecord;
3
+ exports.isMain = isMain;
4
+ exports.isRecord = isMain;
5
+ exports.validateMain = validateMain;
6
+ exports.validateRecord = validateMain;
5
7
  const lexicons_1 = require("../../../../lexicons");
6
8
  const util_1 = require("../../../../util");
7
9
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
8
10
  const id = 'app.bsky.feed.generator';
9
- const hashRecord = 'main';
10
- function isRecord(v) {
11
- return is$typed(v, id, hashRecord);
11
+ const hashMain = 'main';
12
+ function isMain(v) {
13
+ return is$typed(v, id, hashMain);
12
14
  }
13
- function validateRecord(v) {
14
- return validate(v, id, hashRecord, true);
15
+ function validateMain(v) {
16
+ return validate(v, id, hashMain, true);
15
17
  }
16
18
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/generator.ts"],"names":[],"mappings":";;AAsCA,4BAEC;AAED,wCAEC;AAvCD,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yBAAyB,CAAA;AAoBpC,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyRichtextFacet from '../richtext/facet.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.generator'\n\nexport interface Record {\n $type: 'app.bsky.feed.generator'\n did: string\n displayName: string\n description?: string\n descriptionFacets?: AppBskyRichtextFacet.Main[]\n avatar?: BlobRef\n /** Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions */\n acceptsInteractions?: boolean\n labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }\n contentMode?:\n | 'app.bsky.feed.defs#contentModeUnspecified'\n | 'app.bsky.feed.defs#contentModeVideo'\n | (string & {})\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashRecord = 'main'\n\nexport function isRecord<V>(v: V) {\n return is$typed(v, id, hashRecord)\n}\n\nexport function validateRecord<V>(v: V) {\n return validate<Record & V>(v, id, hashRecord, true)\n}\n"]}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/generator.ts"],"names":[],"mappings":";;AAsCA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AA5ChC,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yBAAyB,CAAA;AAoBpC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyRichtextFacet from '../richtext/facet.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.generator'\n\nexport interface Main {\n $type: 'app.bsky.feed.generator'\n did: string\n displayName: string\n description?: string\n descriptionFacets?: AppBskyRichtextFacet.Main[]\n avatar?: BlobRef\n /** Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions */\n acceptsInteractions?: boolean\n labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }\n contentMode?:\n | 'app.bsky.feed.defs#contentModeUnspecified'\n | 'app.bsky.feed.defs#contentModeVideo'\n | (string & {})\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
@@ -3,13 +3,14 @@
3
3
  */
4
4
  import { type ValidationResult } from '@atproto/lexicon';
5
5
  import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
6
- export interface Record {
6
+ export interface Main {
7
7
  $type: 'app.bsky.feed.like';
8
8
  subject: ComAtprotoRepoStrongRef.Main;
9
9
  createdAt: string;
10
10
  via?: ComAtprotoRepoStrongRef.Main;
11
11
  [k: string]: unknown;
12
12
  }
13
- export declare function isRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.like", "main">;
14
- export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
13
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.like", "main">;
14
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
15
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
15
16
  //# sourceMappingURL=like.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"like.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/like.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,oBAAoB,CAAA;IAC3B,OAAO,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iFAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
1
+ {"version":3,"file":"like.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/like.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,oBAAoB,CAAA;IAC3B,OAAO,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRecord = isRecord;
4
- exports.validateRecord = validateRecord;
3
+ exports.isMain = isMain;
4
+ exports.isRecord = isMain;
5
+ exports.validateMain = validateMain;
6
+ exports.validateRecord = validateMain;
5
7
  const lexicons_1 = require("../../../../lexicons");
6
8
  const util_1 = require("../../../../util");
7
9
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
8
10
  const id = 'app.bsky.feed.like';
9
- const hashRecord = 'main';
10
- function isRecord(v) {
11
- return is$typed(v, id, hashRecord);
11
+ const hashMain = 'main';
12
+ function isMain(v) {
13
+ return is$typed(v, id, hashMain);
12
14
  }
13
- function validateRecord(v) {
14
- return validate(v, id, hashRecord, true);
15
+ function validateMain(v) {
16
+ return validate(v, id, hashMain, true);
15
17
  }
16
18
  //# sourceMappingURL=like.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"like.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/like.ts"],"names":[],"mappings":";;AA2BA,4BAEC;AAED,wCAEC;AA5BD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oBAAoB,CAAA;AAU/B,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.like'\n\nexport interface Record {\n $type: 'app.bsky.feed.like'\n subject: ComAtprotoRepoStrongRef.Main\n createdAt: string\n via?: ComAtprotoRepoStrongRef.Main\n [k: string]: unknown\n}\n\nconst hashRecord = 'main'\n\nexport function isRecord<V>(v: V) {\n return is$typed(v, id, hashRecord)\n}\n\nexport function validateRecord<V>(v: V) {\n return validate<Record & V>(v, id, hashRecord, true)\n}\n"]}
1
+ {"version":3,"file":"like.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/like.ts"],"names":[],"mappings":";;AA2BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAjChC,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oBAAoB,CAAA;AAU/B,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.like'\n\nexport interface Main {\n $type: 'app.bsky.feed.like'\n subject: ComAtprotoRepoStrongRef.Main\n createdAt: string\n via?: ComAtprotoRepoStrongRef.Main\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
@@ -11,7 +11,7 @@ import type * as AppBskyEmbedRecord from '../embed/record.js';
11
11
  import type * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia.js';
12
12
  import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
13
13
  import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
14
- export interface Record {
14
+ export interface Main {
15
15
  $type: 'app.bsky.feed.post';
16
16
  /** The primary post content. May be an empty string, if there are embeds. */
17
17
  text: string;
@@ -34,8 +34,9 @@ export interface Record {
34
34
  createdAt: string;
35
35
  [k: string]: unknown;
36
36
  }
37
- export declare function isRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.post", "main">;
38
- export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
37
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.post", "main">;
38
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
39
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
39
40
  export interface ReplyRef {
40
41
  $type?: 'app.bsky.feed.post#replyRef';
41
42
  root: ComAtprotoRepoStrongRef.Main;
@@ -1 +1 @@
1
- {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/post.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,oBAAoB,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,KAAK,kBAAkB,MAAM,oBAAo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ports.isRecord = isRecord;
4
- exports.validateRecord = validateRecord;
3
+ exports.isMain = isMain;
4
+ exports.isRecord = isMain;
5
+ exports.validateMain = validateMain;
6
+ exports.validateRecord = validateMain;
5
7
  exports.isReplyRef = isReplyRef;
6
8
  exports.validateReplyRef = validateReplyRef;
7
9
  exports.isEntity = isEntity;
@@ -12,12 +14,12 @@ const lexicons_1 = require("../../../../lexicons");
12
14
  const util_1 = require("../../../../util");
13
15
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
14
16
  const id = 'app.bsky.feed.post';
15
- const hashRecord = 'main';
16
- function isRecord(v) {
17
- return is$typed(v, id, hashRecord);
17
+ const hashMain = 'main';
18
+ function isMain(v) {
19
+ return is$typed(v, id, hashMain);
18
20
  }
19
- function validateRecord(v) {
20
- return validate(v, id, hashRecord, true);
21
+ function validateMain(v) {
22
+ return validate(v, id, hashMain, true);
21
23
  }
22
24
  const hashReplyRef = 'replyRef';
23
25
  function isReplyRef(v) {
@@ -1 +1 @@
1
- {"version":3,"file":"post.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/post.ts"],"names":[],"mappings":";;AAoDA,4BAEC;AAED,wCAEC;AAUD,gCAEC;AAED,4CAEC;AAaD,4BAEC;AAED,wCAEC;AAWD,kCAEC;AAED,8CAEC;AAzGD,mDAA4D;AAC5D,2CAIyB;AAUzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oBAAoB,CAAA;AA4B/B,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC;AAQD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,SAAgB,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC;AAWD,MAAM,UAAU,GAAG,QAAQ,CAAA;AAE3B,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AAChD,CAAC;AASD,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,SAAgB,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyRichtextFacet from '../richtext/facet.js'\nimport type * as AppBskyEmbedImages from '../embed/images.js'\nimport type * as AppBskyEmbedVideo from '../embed/video.js'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\nimport type * as AppBskyEmbedRecord from '../embed/record.js'\nimport type * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.post'\n\nexport interface Record {\n $type: 'app.bsky.feed.post'\n /** The primary post content. May be an empty string, if there are embeds. */\n text: string\n /** DEPRECATED: replaced by app.bsky.richtext.facet. */\n entities?: Entity[]\n /** Annotations of text (mentions, URLs, hashtags, etc) */\n facets?: AppBskyRichtextFacet.Main[]\n reply?: ReplyRef\n embed?:\n | $Typed<AppBskyEmbedImages.Main>\n | $Typed<AppBskyEmbedVideo.Main>\n | $Typed<AppBskyEmbedExternal.Main>\n | $Typed<AppBskyEmbedRecord.Main>\n | $Typed<AppBskyEmbedRecordWithMedia.Main>\n | { $type: string }\n /** Indicates human language of post primary text content. */\n langs?: string[]\n labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }\n /** Additional hashtags, in addition to any included in post text and facets. */\n tags?: string[]\n /** Client-declared timestamp when this post was originally created. */\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashRecord = 'main'\n\nexport function isRecord<V>(v: V) {\n return is$typed(v, id, hashRecord)\n}\n\nexport function validateRecord<V>(v: V) {\n return validate<Record & V>(v, id, hashRecord, true)\n}\n\nexport interface ReplyRef {\n $type?: 'app.bsky.feed.post#replyRef'\n root: ComAtprotoRepoStrongRef.Main\n parent: ComAtprotoRepoStrongRef.Main\n}\n\nconst hashReplyRef = 'replyRef'\n\nexport function isReplyRef<V>(v: V) {\n return is$typed(v, id, hashReplyRef)\n}\n\nexport function validateReplyRef<V>(v: V) {\n return validate<ReplyRef & V>(v, id, hashReplyRef)\n}\n\n/** Deprecated: use facets instead. */\nexport interface Entity {\n $type?: 'app.bsky.feed.post#entity'\n index: TextSlice\n /** Expected values are 'mention' and 'link'. */\n type: string\n value: string\n}\n\nconst hashEntity = 'entity'\n\nexport function isEntity<V>(v: V) {\n return is$typed(v, id, hashEntity)\n}\n\nexport function validateEntity<V>(v: V) {\n return validate<Entity & V>(v, id, hashEntity)\n}\n\n/** Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. */\nexport interface TextSlice {\n $type?: 'app.bsky.feed.post#textSlice'\n start: number\n end: number\n}\n\nconst hashTextSlice = 'textSlice'\n\nexport function isTextSlice<V>(v: V) {\n return is$typed(v, id, hashTextSlice)\n}\n\nexport function validateTextSlice<V>(v: V) {\n return validate<TextSlice & V>(v, id, hashTextSlice)\n}\n"]}
1
+ {"version":3,"file":"post.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/post.ts"],"names":[],"mappings":";;AAoDA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAWhC,gCAEC;AAED,4CAEC;AAaD,4BAEC;AAED,wCAEC;AAWD,kCAEC;AAED,8CAEC;AA/GD,mDAA4D;AAC5D,2CAIyB;AAUzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oBAAoB,CAAA;AA4B/B,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAcD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,SAAgB,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC;AAWD,MAAM,UAAU,GAAG,QAAQ,CAAA;AAE3B,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AAChD,CAAC;AASD,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,SAAgB,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyRichtextFacet from '../richtext/facet.js'\nimport type * as AppBskyEmbedImages from '../embed/images.js'\nimport type * as AppBskyEmbedVideo from '../embed/video.js'\nimport type * as AppBskyEmbedExternal from '../embed/external.js'\nimport type * as AppBskyEmbedRecord from '../embed/record.js'\nimport type * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.post'\n\nexport interface Main {\n $type: 'app.bsky.feed.post'\n /** The primary post content. May be an empty string, if there are embeds. */\n text: string\n /** DEPRECATED: replaced by app.bsky.richtext.facet. */\n entities?: Entity[]\n /** Annotations of text (mentions, URLs, hashtags, etc) */\n facets?: AppBskyRichtextFacet.Main[]\n reply?: ReplyRef\n embed?:\n | $Typed<AppBskyEmbedImages.Main>\n | $Typed<AppBskyEmbedVideo.Main>\n | $Typed<AppBskyEmbedExternal.Main>\n | $Typed<AppBskyEmbedRecord.Main>\n | $Typed<AppBskyEmbedRecordWithMedia.Main>\n | { $type: string }\n /** Indicates human language of post primary text content. */\n langs?: string[]\n labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }\n /** Additional hashtags, in addition to any included in post text and facets. */\n tags?: string[]\n /** Client-declared timestamp when this post was originally created. */\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n\nexport interface ReplyRef {\n $type?: 'app.bsky.feed.post#replyRef'\n root: ComAtprotoRepoStrongRef.Main\n parent: ComAtprotoRepoStrongRef.Main\n}\n\nconst hashReplyRef = 'replyRef'\n\nexport function isReplyRef<V>(v: V) {\n return is$typed(v, id, hashReplyRef)\n}\n\nexport function validateReplyRef<V>(v: V) {\n return validate<ReplyRef & V>(v, id, hashReplyRef)\n}\n\n/** Deprecated: use facets instead. */\nexport interface Entity {\n $type?: 'app.bsky.feed.post#entity'\n index: TextSlice\n /** Expected values are 'mention' and 'link'. */\n type: string\n value: string\n}\n\nconst hashEntity = 'entity'\n\nexport function isEntity<V>(v: V) {\n return is$typed(v, id, hashEntity)\n}\n\nexport function validateEntity<V>(v: V) {\n return validate<Entity & V>(v, id, hashEntity)\n}\n\n/** Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. */\nexport interface TextSlice {\n $type?: 'app.bsky.feed.post#textSlice'\n start: number\n end: number\n}\n\nconst hashTextSlice = 'textSlice'\n\nexport function isTextSlice<V>(v: V) {\n return is$typed(v, id, hashTextSlice)\n}\n\nexport function validateTextSlice<V>(v: V) {\n return validate<TextSlice & V>(v, id, hashTextSlice)\n}\n"]}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { type ValidationResult } from '@atproto/lexicon';
5
5
  import { type $Typed } from '../../../../util';
6
- export interface Record {
6
+ export interface Main {
7
7
  $type: 'app.bsky.feed.postgate';
8
8
  createdAt: string;
9
9
  /** Reference (AT-URI) to the post record. */
@@ -16,8 +16,9 @@ export interface Record {
16
16
  })[];
17
17
  [k: string]: unknown;
18
18
  }
19
- export declare function isRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.postgate", "main">;
20
- export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
19
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.postgate", "main">;
20
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
21
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
21
22
  /** Disables embedding of this post. */
22
23
  export interface DisableRule {
23
24
  $type?: 'app.bsky.feed.postgate#disableRule';
@@ -1 +1 @@
1
- {"version":3,"file":"postgate.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/postgate.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AAMzB,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,wBAAwB,CAAA;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,6EAA6E;IAC7E,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAA;IAChC,kJAAkJ;IAClJ,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;IAC5D,CAAC,CAAC,EAA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AAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,oCAAoC,CAAA;CAC7C;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4FAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
@@ -1,19 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRecord = isRecord;
4
- exports.validateRecord = validateRecord;
3
+ exports.isMain = isMain;
4
+ exports.isRecord = isMain;
5
+ exports.validateMain = validateMain;
6
+ exports.validateRecord = validateMain;
5
7
  exports.isDisableRule = isDisableRule;
6
8
  exports.validateDisableRule = validateDisableRule;
7
9
  const lexicons_1 = require("../../../../lexicons");
8
10
  const util_1 = require("../../../../util");
9
11
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
10
12
  const id = 'app.bsky.feed.postgate';
11
- const hashRecord = 'main';
12
- function isRecord(v) {
13
- return is$typed(v, id, hashRecord);
13
+ const hashMain = 'main';
14
+ function isMain(v) {
15
+ return is$typed(v, id, hashMain);
14
16
  }
15
- function validateRecord(v) {
16
- return validate(v, id, hashRecord, true);
17
+ function validateMain(v) {
18
+ return validate(v, id, hashMain, true);
17
19
  }
18
20
  const hashDisableRule = 'disableRule';
19
21
  function isDisableRule(v) {
@@ -1 +1 @@
1
- {"version":3,"file":"postgate.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/postgate.ts"],"names":[],"mappings":";;AA8BA,4BAEC;AAED,wCAEC;AASD,sCAEC;AAED,kDAEC;AA9CD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAcnC,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC;AAOD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,SAAgB,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.postgate'\n\nexport interface Record {\n $type: 'app.bsky.feed.postgate'\n createdAt: string\n /** Reference (AT-URI) to the post record. */\n post: string\n /** List of AT-URIs embedding this post that the author has detached from. */\n detachedEmbeddingUris?: string[]\n /** List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */\n embeddingRules?: ($Typed<DisableRule> | { $type: string })[]\n [k: string]: unknown\n}\n\nconst hashRecord = 'main'\n\nexport function isRecord<V>(v: V) {\n return is$typed(v, id, hashRecord)\n}\n\nexport function validateRecord<V>(v: V) {\n return validate<Record & V>(v, id, hashRecord, true)\n}\n\n/** Disables embedding of this post. */\nexport interface DisableRule {\n $type?: 'app.bsky.feed.postgate#disableRule'\n}\n\nconst hashDisableRule = 'disableRule'\n\nexport function isDisableRule<V>(v: V) {\n return is$typed(v, id, hashDisableRule)\n}\n\nexport function validateDisableRule<V>(v: V) {\n return validate<DisableRule & V>(v, id, hashDisableRule)\n}\n"]}
1
+ {"version":3,"file":"postgate.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/postgate.ts"],"names":[],"mappings":";;AA8BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAUhC,sCAEC;AAED,kDAEC;AApDD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAcnC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAaD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,SAAgB,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.postgate'\n\nexport interface Main {\n $type: 'app.bsky.feed.postgate'\n createdAt: string\n /** Reference (AT-URI) to the post record. */\n post: string\n /** List of AT-URIs embedding this post that the author has detached from. */\n detachedEmbeddingUris?: string[]\n /** List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */\n embeddingRules?: ($Typed<DisableRule> | { $type: string })[]\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n\n/** Disables embedding of this post. */\nexport interface DisableRule {\n $type?: 'app.bsky.feed.postgate#disableRule'\n}\n\nconst hashDisableRule = 'disableRule'\n\nexport function isDisableRule<V>(v: V) {\n return is$typed(v, id, hashDisableRule)\n}\n\nexport function validateDisableRule<V>(v: V) {\n return validate<DisableRule & V>(v, id, hashDisableRule)\n}\n"]}
@@ -3,13 +3,14 @@
3
3
  */
4
4
  import { type ValidationResult } from '@atproto/lexicon';
5
5
  import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
6
- export interface Record {
6
+ export interface Main {
7
7
  $type: 'app.bsky.feed.repost';
8
8
  subject: ComAtprotoRepoStrongRef.Main;
9
9
  createdAt: string;
10
10
  via?: ComAtprotoRepoStrongRef.Main;
11
11
  [k: string]: unknown;
12
12
  }
13
- export declare function isRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.repost", "main">;
14
- export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
13
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.repost", "main">;
14
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
15
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
15
16
  //# sourceMappingURL=repost.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repost.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/repost.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,sBAAsB,CAAA;IAC7B,OAAO,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mFAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
1
+ {"version":3,"file":"repost.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/repost.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,sBAAsB,CAAA;IAC7B,OAAO,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRecord = isRecord;
4
- exports.validateRecord = validateRecord;
3
+ exports.isMain = isMain;
4
+ exports.isRecord = isMain;
5
+ exports.validateMain = validateMain;
6
+ exports.validateRecord = validateMain;
5
7
  const lexicons_1 = require("../../../../lexicons");
6
8
  const util_1 = require("../../../../util");
7
9
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
8
10
  const id = 'app.bsky.feed.repost';
9
- const hashRecord = 'main';
10
- function isRecord(v) {
11
- return is$typed(v, id, hashRecord);
11
+ const hashMain = 'main';
12
+ function isMain(v) {
13
+ return is$typed(v, id, hashMain);
12
14
  }
13
- function validateRecord(v) {
14
- return validate(v, id, hashRecord, true);
15
+ function validateMain(v) {
16
+ return validate(v, id, hashMain, true);
15
17
  }
16
18
  //# sourceMappingURL=repost.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"repost.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/repost.ts"],"names":[],"mappings":";;AA2BA,4BAEC;AAED,wCAEC;AA5BD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sBAAsB,CAAA;AAUjC,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.repost'\n\nexport interface Record {\n $type: 'app.bsky.feed.repost'\n subject: ComAtprotoRepoStrongRef.Main\n createdAt: string\n via?: ComAtprotoRepoStrongRef.Main\n [k: string]: unknown\n}\n\nconst hashRecord = 'main'\n\nexport function isRecord<V>(v: V) {\n return is$typed(v, id, hashRecord)\n}\n\nexport function validateRecord<V>(v: V) {\n return validate<Record & V>(v, id, hashRecord, true)\n}\n"]}
1
+ {"version":3,"file":"repost.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/repost.ts"],"names":[],"mappings":";;AA2BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAjChC,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sBAAsB,CAAA;AAUjC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.repost'\n\nexport interface Main {\n $type: 'app.bsky.feed.repost'\n subject: ComAtprotoRepoStrongRef.Main\n createdAt: string\n via?: ComAtprotoRepoStrongRef.Main\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { type ValidationResult } from '@atproto/lexicon';
5
5
  import { type $Typed } from '../../../../util';
6
- export interface Record {
6
+ export interface Main {
7
7
  $type: 'app.bsky.feed.threadgate';
8
8
  /** Reference (AT-URI) to the post record. */
9
9
  post: string;
@@ -16,8 +16,9 @@ export interface Record {
16
16
  hiddenReplies?: string[];
17
17
  [k: string]: unknown;
18
18
  }
19
- export declare function isRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.threadgate", "main">;
20
- export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
19
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.feed.threadgate", "main">;
20
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
21
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
21
22
  /** Allow replies from actors mentioned in your post. */
22
23
  export interface MentionRule {
23
24
  $type?: 'app.bsky.feed.threadgate#mentionRule';
@@ -1 +1 @@
1
- {"version":3,"file":"threadgate.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/threadgate.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AAMzB,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,0BAA0B,CAAA;IACjC,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAA;IACZ,gJAAgJ;IAChJ,KAAK,CAAC,EAAE,CACJ,MAAM,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gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,uCAAuC,CAAA;CAChD;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C;AAED,4CAA4C;AAC5C,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,wCAAwC,CAAA;CACjD;AAID,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gGAEtC;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uCAE5C;AAED,2CAA2C;AAC3C,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;CACb;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2FAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRecord = isRecord;
4
- exports.validateRecord = validateRecord;
3
+ exports.isMain = isMain;
4
+ exports.isRecord = isMain;
5
+ exports.validateMain = validateMain;
6
+ exports.validateRecord = validateMain;
5
7
  exports.isMentionRule = isMentionRule;
6
8
  exports.validateMentionRule = validateMentionRule;
7
9
  exports.isFollowerRule = isFollowerRule;
@@ -14,12 +16,12 @@ const lexicons_1 = require("../../../../lexicons");
14
16
  const util_1 = require("../../../../util");
15
17
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
16
18
  const id = 'app.bsky.feed.threadgate';
17
- const hashRecord = 'main';
18
- function isRecord(v) {
19
- return is$typed(v, id, hashRecord);
19
+ const hashMain = 'main';
20
+ function isMain(v) {
21
+ return is$typed(v, id, hashMain);
20
22
  }
21
- function validateRecord(v) {
22
- return validate(v, id, hashRecord, true);
23
+ function validateMain(v) {
24
+ return validate(v, id, hashMain, true);
23
25
  }
24
26
  const hashMentionRule = 'mentionRule';
25
27
  function isMentionRule(v) {
@@ -1 +1 @@
1
- {"version":3,"file":"threadgate.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/threadgate.ts"],"names":[],"mappings":";;AAoCA,4BAEC;AAED,wCAEC;AASD,sCAEC;AAED,kDAEC;AASD,wCAEC;AAED,oDAEC;AASD,0CAEC;AAED,sDAEC;AAUD,gCAEC;AAED,4CAEC;AAlGD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,0BAA0B,CAAA;AAoBrC,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC;AAOD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,SAAgB,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC;AAOD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,SAAgB,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC;AAOD,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAEzC,SAAgB,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC3C,CAAC;AAED,SAAgB,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAoB,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC9D,CAAC;AAQD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,SAAgB,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.threadgate'\n\nexport interface Record {\n $type: 'app.bsky.feed.threadgate'\n /** Reference (AT-URI) to the post record. */\n post: string\n /** List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. */\n allow?: (\n | $Typed<MentionRule>\n | $Typed<FollowerRule>\n | $Typed<FollowingRule>\n | $Typed<ListRule>\n | { $type: string }\n )[]\n createdAt: string\n /** List of hidden reply URIs. */\n hiddenReplies?: string[]\n [k: string]: unknown\n}\n\nconst hashRecord = 'main'\n\nexport function isRecord<V>(v: V) {\n return is$typed(v, id, hashRecord)\n}\n\nexport function validateRecord<V>(v: V) {\n return validate<Record & V>(v, id, hashRecord, true)\n}\n\n/** Allow replies from actors mentioned in your post. */\nexport interface MentionRule {\n $type?: 'app.bsky.feed.threadgate#mentionRule'\n}\n\nconst hashMentionRule = 'mentionRule'\n\nexport function isMentionRule<V>(v: V) {\n return is$typed(v, id, hashMentionRule)\n}\n\nexport function validateMentionRule<V>(v: V) {\n return validate<MentionRule & V>(v, id, hashMentionRule)\n}\n\n/** Allow replies from actors who follow you. */\nexport interface FollowerRule {\n $type?: 'app.bsky.feed.threadgate#followerRule'\n}\n\nconst hashFollowerRule = 'followerRule'\n\nexport function isFollowerRule<V>(v: V) {\n return is$typed(v, id, hashFollowerRule)\n}\n\nexport function validateFollowerRule<V>(v: V) {\n return validate<FollowerRule & V>(v, id, hashFollowerRule)\n}\n\n/** Allow replies from actors you follow. */\nexport interface FollowingRule {\n $type?: 'app.bsky.feed.threadgate#followingRule'\n}\n\nconst hashFollowingRule = 'followingRule'\n\nexport function isFollowingRule<V>(v: V) {\n return is$typed(v, id, hashFollowingRule)\n}\n\nexport function validateFollowingRule<V>(v: V) {\n return validate<FollowingRule & V>(v, id, hashFollowingRule)\n}\n\n/** Allow replies from actors on a list. */\nexport interface ListRule {\n $type?: 'app.bsky.feed.threadgate#listRule'\n list: string\n}\n\nconst hashListRule = 'listRule'\n\nexport function isListRule<V>(v: V) {\n return is$typed(v, id, hashListRule)\n}\n\nexport function validateListRule<V>(v: V) {\n return validate<ListRule & V>(v, id, hashListRule)\n}\n"]}
1
+ {"version":3,"file":"threadgate.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/threadgate.ts"],"names":[],"mappings":";;AAoCA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAUhC,sCAEC;AAED,kDAEC;AASD,wCAEC;AAED,oDAEC;AASD,0CAEC;AAED,sDAEC;AAUD,gCAEC;AAED,4CAEC;AAxGD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAA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AC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,SAAgB,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.threadgate'\n\nexport interface Main {\n $type: 'app.bsky.feed.threadgate'\n /** Reference (AT-URI) to the post record. */\n post: string\n /** List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. */\n allow?: (\n | $Typed<MentionRule>\n | $Typed<FollowerRule>\n | $Typed<FollowingRule>\n | $Typed<ListRule>\n | { $type: string }\n )[]\n createdAt: string\n /** List of hidden reply URIs. */\n hiddenReplies?: string[]\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n\n/** Allow replies from actors mentioned in your post. */\nexport interface MentionRule {\n $type?: 'app.bsky.feed.threadgate#mentionRule'\n}\n\nconst hashMentionRule = 'mentionRule'\n\nexport function isMentionRule<V>(v: V) {\n return is$typed(v, id, hashMentionRule)\n}\n\nexport function validateMentionRule<V>(v: V) {\n return validate<MentionRule & V>(v, id, hashMentionRule)\n}\n\n/** Allow replies from actors who follow you. */\nexport interface FollowerRule {\n $type?: 'app.bsky.feed.threadgate#followerRule'\n}\n\nconst hashFollowerRule = 'followerRule'\n\nexport function isFollowerRule<V>(v: V) {\n return is$typed(v, id, hashFollowerRule)\n}\n\nexport function validateFollowerRule<V>(v: V) {\n return validate<FollowerRule & V>(v, id, hashFollowerRule)\n}\n\n/** Allow replies from actors you follow. */\nexport interface FollowingRule {\n $type?: 'app.bsky.feed.threadgate#followingRule'\n}\n\nconst hashFollowingRule = 'followingRule'\n\nexport function isFollowingRule<V>(v: V) {\n return is$typed(v, id, hashFollowingRule)\n}\n\nexport function validateFollowingRule<V>(v: V) {\n return validate<FollowingRule & V>(v, id, hashFollowingRule)\n}\n\n/** Allow replies from actors on a list. */\nexport interface ListRule {\n $type?: 'app.bsky.feed.threadgate#listRule'\n list: string\n}\n\nconst hashListRule = 'listRule'\n\nexport function isListRule<V>(v: V) {\n return is$typed(v, id, hashListRule)\n}\n\nexport function validateListRule<V>(v: V) {\n return validate<ListRule & V>(v, id, hashListRule)\n}\n"]}
@@ -2,13 +2,14 @@
2
2
  * GENERATED CODE - DO NOT MODIFY
3
3
  */
4
4
  import { type ValidationResult } from '@atproto/lexicon';
5
- export interface Record {
5
+ export interface Main {
6
6
  $type: 'app.bsky.graph.block';
7
7
  /** DID of the account to be blocked. */
8
8
  subject: string;
9
9
  createdAt: string;
10
10
  [k: string]: unknown;
11
11
  }
12
- export declare function isRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.graph.block", "main">;
13
- export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
12
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.graph.block", "main">;
13
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
14
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
14
15
  //# sourceMappingURL=block.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/block.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,sBAAsB,CAAA;IAC7B,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mFAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/block.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,sBAAsB,CAAA;IAC7B,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
@@ -1,16 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRecord = isRecord;
4
- exports.validateRecord = validateRecord;
3
+ exports.isMain = isMain;
4
+ exports.isRecord = isMain;
5
+ exports.validateMain = validateMain;
6
+ exports.validateRecord = validateMain;
5
7
  const lexicons_1 = require("../../../../lexicons");
6
8
  const util_1 = require("../../../../util");
7
9
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
8
10
  const id = 'app.bsky.graph.block';
9
- const hashRecord = 'main';
10
- function isRecord(v) {
11
- return is$typed(v, id, hashRecord);
11
+ const hashMain = 'main';
12
+ function isMain(v) {
13
+ return is$typed(v, id, hashMain);
12
14
  }
13
- function validateRecord(v) {
14
- return validate(v, id, hashRecord, true);
15
+ function validateMain(v) {
16
+ return validate(v, id, hashMain, true);
15
17
  }
16
18
  //# sourceMappingURL=block.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"block.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/block.ts"],"names":[],"mappings":";;AA0BA,4BAEC;AAED,wCAEC;AA3BD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sBAAsB,CAAA;AAUjC,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.graph.block'\n\nexport interface Record {\n $type: 'app.bsky.graph.block'\n /** DID of the account to be blocked. */\n subject: string\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashRecord = 'main'\n\nexport function isRecord<V>(v: V) {\n return is$typed(v, id, hashRecord)\n}\n\nexport function validateRecord<V>(v: V) {\n return validate<Record & V>(v, id, hashRecord, true)\n}\n"]}
1
+ {"version":3,"file":"block.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/block.ts"],"names":[],"mappings":";;AA0BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAhChC,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sBAAsB,CAAA;AAUjC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.graph.block'\n\nexport interface Main {\n $type: 'app.bsky.graph.block'\n /** DID of the account to be blocked. */\n subject: string\n createdAt: string\n [k: string]: unknown\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n"]}
@@ -2,12 +2,13 @@
2
2
  * GENERATED CODE - DO NOT MODIFY
3
3
  */
4
4
  import { type ValidationResult } from '@atproto/lexicon';
5
- export interface Record {
5
+ export interface Main {
6
6
  $type: 'app.bsky.graph.follow';
7
7
  subject: string;
8
8
  createdAt: string;
9
9
  [k: string]: unknown;
10
10
  }
11
- export declare function isRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.graph.follow", "main">;
12
- export declare function validateRecord<V>(v: V): ValidationResult<Record & V>;
11
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.graph.follow", "main">;
12
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
13
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
13
14
  //# sourceMappingURL=follow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/follow.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,uBAAuB,CAAA;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oFAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
1
+ {"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/follow.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,uBAAuB,CAAA;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}