@hypercerts-org/lexicon 0.10.0 → 0.11.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.
Files changed (161) hide show
  1. package/CHANGELOG.md +218 -0
  2. package/README.md +392 -393
  3. package/SCHEMAS.md +539 -81
  4. package/dist/exports.d.ts +900 -10
  5. package/dist/exports.d.ts.map +1 -1
  6. package/dist/generated/exports.d.ts +900 -10
  7. package/dist/generated/exports.d.ts.map +1 -1
  8. package/dist/generated/lexicons.d.ts +2684 -1094
  9. package/dist/generated/lexicons.d.ts.map +1 -1
  10. package/dist/generated/types/app/bsky/richtext/facet.d.ts +44 -7
  11. package/dist/generated/types/app/bsky/richtext/facet.d.ts.map +1 -1
  12. package/dist/generated/types/app/certified/badge/award.d.ts +2 -3
  13. package/dist/generated/types/app/certified/badge/award.d.ts.map +1 -1
  14. package/dist/generated/types/app/certified/badge/definition.d.ts +3 -3
  15. package/dist/generated/types/app/certified/badge/definition.d.ts.map +1 -1
  16. package/dist/generated/types/app/certified/badge/response.d.ts +2 -2
  17. package/dist/generated/types/app/certified/badge/response.d.ts.map +1 -1
  18. package/dist/generated/types/app/certified/link/evm.d.ts +45 -0
  19. package/dist/generated/types/app/certified/link/evm.d.ts.map +1 -0
  20. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +6 -3
  21. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  22. package/dist/generated/types/org/hypercerts/collection.d.ts +11 -5
  23. package/dist/generated/types/org/hypercerts/collection.d.ts.map +1 -1
  24. package/dist/generated/types/org/hypercerts/context/attachment.d.ts +5 -3
  25. package/dist/generated/types/org/hypercerts/context/attachment.d.ts.map +1 -1
  26. package/dist/generated/types/org/hypercerts/context/evaluation.d.ts +6 -6
  27. package/dist/generated/types/org/hypercerts/context/evaluation.d.ts.map +1 -1
  28. package/dist/generated/types/org/hypercerts/defs.d.ts +11 -0
  29. package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -1
  30. package/dist/generated/types/org/hypercerts/funding/receipt.d.ts +17 -5
  31. package/dist/generated/types/org/hypercerts/funding/receipt.d.ts.map +1 -1
  32. package/dist/generated/types/pub/leaflet/blocks/blockquote.d.ts +13 -0
  33. package/dist/generated/types/pub/leaflet/blocks/blockquote.d.ts.map +1 -0
  34. package/dist/generated/types/pub/leaflet/blocks/bskyPost.d.ts +13 -0
  35. package/dist/generated/types/pub/leaflet/blocks/bskyPost.d.ts.map +1 -0
  36. package/dist/generated/types/pub/leaflet/blocks/button.d.ts +12 -0
  37. package/dist/generated/types/pub/leaflet/blocks/button.d.ts.map +1 -0
  38. package/dist/generated/types/pub/leaflet/blocks/code.d.ts +13 -0
  39. package/dist/generated/types/pub/leaflet/blocks/code.d.ts.map +1 -0
  40. package/dist/generated/types/pub/leaflet/blocks/header.d.ts +14 -0
  41. package/dist/generated/types/pub/leaflet/blocks/header.d.ts.map +1 -0
  42. package/dist/generated/types/pub/leaflet/blocks/horizontalRule.d.ts +10 -0
  43. package/dist/generated/types/pub/leaflet/blocks/horizontalRule.d.ts.map +1 -0
  44. package/dist/generated/types/pub/leaflet/blocks/iframe.d.ts +12 -0
  45. package/dist/generated/types/pub/leaflet/blocks/iframe.d.ts.map +1 -0
  46. package/dist/generated/types/pub/leaflet/blocks/image.d.ts +21 -0
  47. package/dist/generated/types/pub/leaflet/blocks/image.d.ts.map +1 -0
  48. package/dist/generated/types/pub/leaflet/blocks/math.d.ts +11 -0
  49. package/dist/generated/types/pub/leaflet/blocks/math.d.ts.map +1 -0
  50. package/dist/generated/types/pub/leaflet/blocks/orderedList.d.ts +31 -0
  51. package/dist/generated/types/pub/leaflet/blocks/orderedList.d.ts.map +1 -0
  52. package/dist/generated/types/pub/leaflet/blocks/page.d.ts +11 -0
  53. package/dist/generated/types/pub/leaflet/blocks/page.d.ts.map +1 -0
  54. package/dist/generated/types/pub/leaflet/blocks/poll.d.ts +12 -0
  55. package/dist/generated/types/pub/leaflet/blocks/poll.d.ts.map +1 -0
  56. package/dist/generated/types/pub/leaflet/blocks/text.d.ts +14 -0
  57. package/dist/generated/types/pub/leaflet/blocks/text.d.ts.map +1 -0
  58. package/dist/generated/types/pub/leaflet/blocks/unorderedList.d.ts +29 -0
  59. package/dist/generated/types/pub/leaflet/blocks/unorderedList.d.ts.map +1 -0
  60. package/dist/generated/types/pub/leaflet/blocks/website.d.ts +14 -0
  61. package/dist/generated/types/pub/leaflet/blocks/website.d.ts.map +1 -0
  62. package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts +54 -1
  63. package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -1
  64. package/dist/generated/types/pub/leaflet/richtext/facet.d.ts +97 -0
  65. package/dist/generated/types/pub/leaflet/richtext/facet.d.ts.map +1 -0
  66. package/dist/index.cjs +4487 -1808
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.mjs +4408 -1805
  69. package/dist/index.mjs.map +1 -1
  70. package/dist/lexicons.cjs +928 -36
  71. package/dist/lexicons.cjs.map +1 -1
  72. package/dist/lexicons.d.ts +2684 -1094
  73. package/dist/lexicons.d.ts.map +1 -1
  74. package/dist/lexicons.mjs +928 -36
  75. package/dist/lexicons.mjs.map +1 -1
  76. package/dist/types/app/bsky/richtext/facet.d.ts +44 -7
  77. package/dist/types/app/bsky/richtext/facet.d.ts.map +1 -1
  78. package/dist/types/app/certified/badge/award.d.ts +2 -3
  79. package/dist/types/app/certified/badge/award.d.ts.map +1 -1
  80. package/dist/types/app/certified/badge/definition.d.ts +3 -3
  81. package/dist/types/app/certified/badge/definition.d.ts.map +1 -1
  82. package/dist/types/app/certified/badge/response.d.ts +2 -2
  83. package/dist/types/app/certified/badge/response.d.ts.map +1 -1
  84. package/dist/types/app/certified/link/evm.d.ts +45 -0
  85. package/dist/types/app/certified/link/evm.d.ts.map +1 -0
  86. package/dist/types/org/hypercerts/claim/activity.d.ts +6 -3
  87. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  88. package/dist/types/org/hypercerts/collection.d.ts +11 -5
  89. package/dist/types/org/hypercerts/collection.d.ts.map +1 -1
  90. package/dist/types/org/hypercerts/context/attachment.d.ts +5 -3
  91. package/dist/types/org/hypercerts/context/attachment.d.ts.map +1 -1
  92. package/dist/types/org/hypercerts/context/evaluation.d.ts +6 -6
  93. package/dist/types/org/hypercerts/context/evaluation.d.ts.map +1 -1
  94. package/dist/types/org/hypercerts/defs.d.ts +11 -0
  95. package/dist/types/org/hypercerts/defs.d.ts.map +1 -1
  96. package/dist/types/org/hypercerts/funding/receipt.d.ts +17 -5
  97. package/dist/types/org/hypercerts/funding/receipt.d.ts.map +1 -1
  98. package/dist/types/pub/leaflet/blocks/blockquote.d.ts +13 -0
  99. package/dist/types/pub/leaflet/blocks/blockquote.d.ts.map +1 -0
  100. package/dist/types/pub/leaflet/blocks/bskyPost.d.ts +13 -0
  101. package/dist/types/pub/leaflet/blocks/bskyPost.d.ts.map +1 -0
  102. package/dist/types/pub/leaflet/blocks/button.d.ts +12 -0
  103. package/dist/types/pub/leaflet/blocks/button.d.ts.map +1 -0
  104. package/dist/types/pub/leaflet/blocks/code.d.ts +13 -0
  105. package/dist/types/pub/leaflet/blocks/code.d.ts.map +1 -0
  106. package/dist/types/pub/leaflet/blocks/header.d.ts +14 -0
  107. package/dist/types/pub/leaflet/blocks/header.d.ts.map +1 -0
  108. package/dist/types/pub/leaflet/blocks/horizontalRule.d.ts +10 -0
  109. package/dist/types/pub/leaflet/blocks/horizontalRule.d.ts.map +1 -0
  110. package/dist/types/pub/leaflet/blocks/iframe.d.ts +12 -0
  111. package/dist/types/pub/leaflet/blocks/iframe.d.ts.map +1 -0
  112. package/dist/types/pub/leaflet/blocks/image.d.ts +21 -0
  113. package/dist/types/pub/leaflet/blocks/image.d.ts.map +1 -0
  114. package/dist/types/pub/leaflet/blocks/math.d.ts +11 -0
  115. package/dist/types/pub/leaflet/blocks/math.d.ts.map +1 -0
  116. package/dist/types/pub/leaflet/blocks/orderedList.d.ts +31 -0
  117. package/dist/types/pub/leaflet/blocks/orderedList.d.ts.map +1 -0
  118. package/dist/types/pub/leaflet/blocks/page.d.ts +11 -0
  119. package/dist/types/pub/leaflet/blocks/page.d.ts.map +1 -0
  120. package/dist/types/pub/leaflet/blocks/poll.d.ts +12 -0
  121. package/dist/types/pub/leaflet/blocks/poll.d.ts.map +1 -0
  122. package/dist/types/pub/leaflet/blocks/text.d.ts +14 -0
  123. package/dist/types/pub/leaflet/blocks/text.d.ts.map +1 -0
  124. package/dist/types/pub/leaflet/blocks/unorderedList.d.ts +29 -0
  125. package/dist/types/pub/leaflet/blocks/unorderedList.d.ts.map +1 -0
  126. package/dist/types/pub/leaflet/blocks/website.d.ts +14 -0
  127. package/dist/types/pub/leaflet/blocks/website.d.ts.map +1 -0
  128. package/dist/types/pub/leaflet/pages/linearDocument.d.ts +54 -1
  129. package/dist/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -1
  130. package/dist/types/pub/leaflet/richtext/facet.d.ts +97 -0
  131. package/dist/types/pub/leaflet/richtext/facet.d.ts.map +1 -0
  132. package/lexicons/app/bsky/richtext/facet.json +51 -0
  133. package/lexicons/app/certified/badge/award.json +2 -2
  134. package/lexicons/app/certified/badge/definition.json +10 -2
  135. package/lexicons/app/certified/badge/response.json +2 -2
  136. package/lexicons/app/certified/link/evm.json +88 -0
  137. package/lexicons/org/hyperboards/board.json +1 -1
  138. package/lexicons/org/hypercerts/claim/activity.json +8 -4
  139. package/lexicons/org/hypercerts/collection.json +19 -5
  140. package/lexicons/org/hypercerts/context/attachment.json +16 -5
  141. package/lexicons/org/hypercerts/context/evaluation.json +9 -6
  142. package/lexicons/org/hypercerts/defs.json +21 -0
  143. package/lexicons/org/hypercerts/funding/receipt.json +30 -10
  144. package/lexicons/pub/leaflet/blocks/blockquote.json +22 -0
  145. package/lexicons/pub/leaflet/blocks/bskyPost.json +19 -0
  146. package/lexicons/pub/leaflet/blocks/button.json +19 -0
  147. package/lexicons/pub/leaflet/blocks/code.json +21 -0
  148. package/lexicons/pub/leaflet/blocks/header.json +27 -0
  149. package/lexicons/pub/leaflet/blocks/horizontalRule.json +11 -0
  150. package/lexicons/pub/leaflet/blocks/iframe.json +21 -0
  151. package/lexicons/pub/leaflet/blocks/image.json +37 -0
  152. package/lexicons/pub/leaflet/blocks/math.json +15 -0
  153. package/lexicons/pub/leaflet/blocks/orderedList.json +54 -0
  154. package/lexicons/pub/leaflet/blocks/page.json +15 -0
  155. package/lexicons/pub/leaflet/blocks/poll.json +16 -0
  156. package/lexicons/pub/leaflet/blocks/text.json +26 -0
  157. package/lexicons/pub/leaflet/blocks/unorderedList.json +50 -0
  158. package/lexicons/pub/leaflet/blocks/website.json +27 -0
  159. package/lexicons/pub/leaflet/pages/linearDocument.json +98 -0
  160. package/lexicons/pub/leaflet/richtext/facet.json +149 -0
  161. package/package.json +5 -5
@@ -0,0 +1,11 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ export interface Main {
6
+ $type?: 'pub.leaflet.blocks.math';
7
+ tex: string;
8
+ }
9
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.math", "main">;
10
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
11
+ //# sourceMappingURL=math.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/blocks/math.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import { type $Typed } from '../../../../util';
6
+ import type * as PubLeafletBlocksText from './text.js';
7
+ import type * as PubLeafletBlocksHeader from './header.js';
8
+ import type * as PubLeafletBlocksImage from './image.js';
9
+ import type * as PubLeafletBlocksUnorderedList from './unorderedList.js';
10
+ export interface Main {
11
+ $type?: 'pub.leaflet.blocks.orderedList';
12
+ /** The starting number for this ordered list. Defaults to 1 if not specified. */
13
+ startIndex?: number;
14
+ children: ListItem[];
15
+ }
16
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.orderedList", "main">;
17
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
18
+ export interface ListItem {
19
+ $type?: 'pub.leaflet.blocks.orderedList#listItem';
20
+ /** If present, this item is a checklist item. true = checked, false = unchecked. If absent, this is a normal list item. */
21
+ checked?: boolean;
22
+ content: $Typed<PubLeafletBlocksText.Main> | $Typed<PubLeafletBlocksHeader.Main> | $Typed<PubLeafletBlocksImage.Main> | {
23
+ $type: string;
24
+ };
25
+ /** Nested ordered list items. Mutually exclusive with unorderedListChildren; if both are present, children takes precedence. */
26
+ children?: ListItem[];
27
+ unorderedListChildren?: PubLeafletBlocksUnorderedList.Main;
28
+ }
29
+ export declare function isListItem<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.orderedList", "listItem">;
30
+ export declare function validateListItem<V>(v: V): ValidationResult<ListItem & V>;
31
+ //# sourceMappingURL=orderedList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orderedList.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/blocks/orderedList.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,WAAW,CAAA;AACtD,OAAO,KAAK,KAAK,sBAAsB,MAAM,aAAa,CAAA;AAC1D,OAAO,KAAK,KAAK,qBAAqB,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,KAAK,6BAA6B,MAAM,oBAAoB,CAAA;AAMxE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,gCAAgC,CAAA;IACxC,iFAAiF;IACjF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,QAAQ,EAAE,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,yCAAyC,CAAA;IACjD,2HAA2H;IAC3H,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,EACH,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,GACjC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,GACnC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,GAClC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,gIAAgI;IAChI,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,qBAAqB,CAAC,EAAE,6BAA6B,CAAC,IAAI,CAAA;CAC3D;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iGAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ export interface Main {
6
+ $type?: 'pub.leaflet.blocks.page';
7
+ id: string;
8
+ }
9
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.page", "main">;
10
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
11
+ //# sourceMappingURL=page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/blocks/page.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,EAAE,EAAE,MAAM,CAAA;CACX;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
6
+ export interface Main {
7
+ $type?: 'pub.leaflet.blocks.poll';
8
+ pollRef: ComAtprotoRepoStrongRef.Main;
9
+ }
10
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.poll", "main">;
11
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
12
+ //# sourceMappingURL=poll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/blocks/poll.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,CAAC,EAAE,yBAAyB,CAAA;IACjC,OAAO,EAAE,uBAAuB,CAAC,IAAI,CAAA;CACtC;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import type * as PubLeafletRichtextFacet from '../richtext/facet.js';
6
+ export interface Main {
7
+ $type?: 'pub.leaflet.blocks.text';
8
+ plaintext: string;
9
+ textSize?: 'default' | 'small' | 'large';
10
+ facets?: PubLeafletRichtextFacet.Main[];
11
+ }
12
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.text", "main">;
13
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
14
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/blocks/text.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,sBAAsB,CAAA;AAMpE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;IACxC,MAAM,CAAC,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;CACxC;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import { type $Typed } from '../../../../util';
6
+ import type * as PubLeafletBlocksText from './text.js';
7
+ import type * as PubLeafletBlocksHeader from './header.js';
8
+ import type * as PubLeafletBlocksImage from './image.js';
9
+ import type * as PubLeafletBlocksOrderedList from './orderedList.js';
10
+ export interface Main {
11
+ $type?: 'pub.leaflet.blocks.unorderedList';
12
+ children: ListItem[];
13
+ }
14
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.unorderedList", "main">;
15
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
16
+ export interface ListItem {
17
+ $type?: 'pub.leaflet.blocks.unorderedList#listItem';
18
+ /** If present, this item is a checklist item. true = checked, false = unchecked. If absent, this is a normal list item. */
19
+ checked?: boolean;
20
+ content: $Typed<PubLeafletBlocksText.Main> | $Typed<PubLeafletBlocksHeader.Main> | $Typed<PubLeafletBlocksImage.Main> | {
21
+ $type: string;
22
+ };
23
+ /** Nested unordered list items. Mutually exclusive with orderedListChildren; if both are present, children takes precedence. */
24
+ children?: ListItem[];
25
+ orderedListChildren?: PubLeafletBlocksOrderedList.Main;
26
+ }
27
+ export declare function isListItem<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.unorderedList", "listItem">;
28
+ export declare function validateListItem<V>(v: V): ValidationResult<ListItem & V>;
29
+ //# sourceMappingURL=unorderedList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unorderedList.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/blocks/unorderedList.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,WAAW,CAAA;AACtD,OAAO,KAAK,KAAK,sBAAsB,MAAM,aAAa,CAAA;AAC1D,OAAO,KAAK,KAAK,qBAAqB,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,KAAK,2BAA2B,MAAM,kBAAkB,CAAA;AAMpE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,QAAQ,EAAE,QAAQ,EAAE,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,2CAA2C,CAAA;IACnD,2HAA2H;IAC3H,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,EACH,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,GACjC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,GACnC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,GAClC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,gIAAgI;IAChI,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAA;IACrB,mBAAmB,CAAC,EAAE,2BAA2B,CAAC,IAAI,CAAA;CACvD;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon';
5
+ export interface Main {
6
+ $type?: 'pub.leaflet.blocks.website';
7
+ previewImage?: BlobRef;
8
+ title?: string;
9
+ description?: string;
10
+ src: string;
11
+ }
12
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.blocks.website", "main">;
13
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
14
+ //# sourceMappingURL=website.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/blocks/website.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,4BAA4B,CAAA;IACpC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;CACZ;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC"}
@@ -1,2 +1,55 @@
1
- export * from '@atcute/leaflet/types/pages/linearDocument';
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import { type $Typed } from '../../../../util';
6
+ import type * as PubLeafletBlocksIframe from '../blocks/iframe.js';
7
+ import type * as PubLeafletBlocksText from '../blocks/text.js';
8
+ import type * as PubLeafletBlocksBlockquote from '../blocks/blockquote.js';
9
+ import type * as PubLeafletBlocksHeader from '../blocks/header.js';
10
+ import type * as PubLeafletBlocksImage from '../blocks/image.js';
11
+ import type * as PubLeafletBlocksUnorderedList from '../blocks/unorderedList.js';
12
+ import type * as PubLeafletBlocksOrderedList from '../blocks/orderedList.js';
13
+ import type * as PubLeafletBlocksWebsite from '../blocks/website.js';
14
+ import type * as PubLeafletBlocksMath from '../blocks/math.js';
15
+ import type * as PubLeafletBlocksCode from '../blocks/code.js';
16
+ import type * as PubLeafletBlocksHorizontalRule from '../blocks/horizontalRule.js';
17
+ import type * as PubLeafletBlocksBskyPost from '../blocks/bskyPost.js';
18
+ import type * as PubLeafletBlocksPage from '../blocks/page.js';
19
+ import type * as PubLeafletBlocksPoll from '../blocks/poll.js';
20
+ import type * as PubLeafletBlocksButton from '../blocks/button.js';
21
+ export interface Main {
22
+ $type?: 'pub.leaflet.pages.linearDocument';
23
+ id?: string;
24
+ blocks: Block[];
25
+ }
26
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.pages.linearDocument", "main">;
27
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
28
+ export interface Block {
29
+ $type?: 'pub.leaflet.pages.linearDocument#block';
30
+ block: $Typed<PubLeafletBlocksIframe.Main> | $Typed<PubLeafletBlocksText.Main> | $Typed<PubLeafletBlocksBlockquote.Main> | $Typed<PubLeafletBlocksHeader.Main> | $Typed<PubLeafletBlocksImage.Main> | $Typed<PubLeafletBlocksUnorderedList.Main> | $Typed<PubLeafletBlocksOrderedList.Main> | $Typed<PubLeafletBlocksWebsite.Main> | $Typed<PubLeafletBlocksMath.Main> | $Typed<PubLeafletBlocksCode.Main> | $Typed<PubLeafletBlocksHorizontalRule.Main> | $Typed<PubLeafletBlocksBskyPost.Main> | $Typed<PubLeafletBlocksPage.Main> | $Typed<PubLeafletBlocksPoll.Main> | $Typed<PubLeafletBlocksButton.Main> | {
31
+ $type: string;
32
+ };
33
+ alignment?: 'lex:pub.leaflet.pages.linearDocument#textAlignLeft' | 'lex:pub.leaflet.pages.linearDocument#textAlignCenter' | 'lex:pub.leaflet.pages.linearDocument#textAlignRight' | 'lex:pub.leaflet.pages.linearDocument#textAlignJustify' | (string & {});
34
+ }
35
+ export declare function isBlock<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.pages.linearDocument", "block">;
36
+ export declare function validateBlock<V>(v: V): ValidationResult<Block & V>;
37
+ export declare const TEXTALIGNLEFT = "pub.leaflet.pages.linearDocument#textAlignLeft";
38
+ export declare const TEXTALIGNCENTER = "pub.leaflet.pages.linearDocument#textAlignCenter";
39
+ export declare const TEXTALIGNRIGHT = "pub.leaflet.pages.linearDocument#textAlignRight";
40
+ export declare const TEXTALIGNJUSTIFY = "pub.leaflet.pages.linearDocument#textAlignJustify";
41
+ export interface Quote {
42
+ $type?: 'pub.leaflet.pages.linearDocument#quote';
43
+ start: Position;
44
+ end: Position;
45
+ }
46
+ export declare function isQuote<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.pages.linearDocument", "quote">;
47
+ export declare function validateQuote<V>(v: V): ValidationResult<Quote & V>;
48
+ export interface Position {
49
+ $type?: 'pub.leaflet.pages.linearDocument#position';
50
+ block: number[];
51
+ offset: number;
52
+ }
53
+ export declare function isPosition<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.pages.linearDocument", "position">;
54
+ export declare function validatePosition<V>(v: V): ValidationResult<Position & V>;
2
55
  //# sourceMappingURL=linearDocument.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"linearDocument.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/pages/linearDocument.ts"],"names":[],"mappings":"AAEA,cAAc,4CAA4C,CAAC"}
1
+ {"version":3,"file":"linearDocument.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/pages/linearDocument.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,sBAAsB,MAAM,qBAAqB,CAAA;AAClE,OAAO,KAAK,KAAK,oBAAoB,MAAM,mBAAmB,CAAA;AAC9D,OAAO,KAAK,KAAK,0BAA0B,MAAM,yBAAyB,CAAA;AAC1E,OAAO,KAAK,KAAK,sBAAsB,MAAM,qBAAqB,CAAA;AAClE,OAAO,KAAK,KAAK,qBAAqB,MAAM,oBAAoB,CAAA;AAChE,OAAO,KAAK,KAAK,6BAA6B,MAAM,4BAA4B,CAAA;AAChF,OAAO,KAAK,KAAK,2BAA2B,MAAM,0BAA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ED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import { type $Typed } from '../../../../util';
6
+ /** Annotation of a sub-string within rich text. */
7
+ export interface Main {
8
+ $type?: 'pub.leaflet.richtext.facet';
9
+ index: ByteSlice;
10
+ features: ($Typed<Link> | $Typed<DidMention> | $Typed<AtMention> | $Typed<Code> | $Typed<Highlight> | $Typed<Underline> | $Typed<Strikethrough> | $Typed<Id> | $Typed<Bold> | $Typed<Italic> | $Typed<Footnote> | {
11
+ $type: string;
12
+ })[];
13
+ }
14
+ export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "main">;
15
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
16
+ /** Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. */
17
+ export interface ByteSlice {
18
+ $type?: 'pub.leaflet.richtext.facet#byteSlice';
19
+ byteStart: number;
20
+ byteEnd: number;
21
+ }
22
+ export declare function isByteSlice<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "byteSlice">;
23
+ export declare function validateByteSlice<V>(v: V): ValidationResult<ByteSlice & V>;
24
+ /** Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. */
25
+ export interface Link {
26
+ $type?: 'pub.leaflet.richtext.facet#link';
27
+ uri: string;
28
+ }
29
+ export declare function isLink<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "link">;
30
+ export declare function validateLink<V>(v: V): ValidationResult<Link & V>;
31
+ /** Facet feature for mentioning a did. */
32
+ export interface DidMention {
33
+ $type?: 'pub.leaflet.richtext.facet#didMention';
34
+ did: string;
35
+ }
36
+ export declare function isDidMention<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "didMention">;
37
+ export declare function validateDidMention<V>(v: V): ValidationResult<DidMention & V>;
38
+ /** Facet feature for mentioning an AT URI. */
39
+ export interface AtMention {
40
+ $type?: 'pub.leaflet.richtext.facet#atMention';
41
+ atURI: string;
42
+ }
43
+ export declare function isAtMention<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "atMention">;
44
+ export declare function validateAtMention<V>(v: V): ValidationResult<AtMention & V>;
45
+ /** Facet feature for inline code. */
46
+ export interface Code {
47
+ $type?: 'pub.leaflet.richtext.facet#code';
48
+ }
49
+ export declare function isCode<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "code">;
50
+ export declare function validateCode<V>(v: V): ValidationResult<Code & V>;
51
+ /** Facet feature for highlighted text. */
52
+ export interface Highlight {
53
+ $type?: 'pub.leaflet.richtext.facet#highlight';
54
+ }
55
+ export declare function isHighlight<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "highlight">;
56
+ export declare function validateHighlight<V>(v: V): ValidationResult<Highlight & V>;
57
+ /** Facet feature for underline markup */
58
+ export interface Underline {
59
+ $type?: 'pub.leaflet.richtext.facet#underline';
60
+ }
61
+ export declare function isUnderline<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "underline">;
62
+ export declare function validateUnderline<V>(v: V): ValidationResult<Underline & V>;
63
+ /** Facet feature for strikethrough markup */
64
+ export interface Strikethrough {
65
+ $type?: 'pub.leaflet.richtext.facet#strikethrough';
66
+ }
67
+ export declare function isStrikethrough<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "strikethrough">;
68
+ export declare function validateStrikethrough<V>(v: V): ValidationResult<Strikethrough & V>;
69
+ /** Facet feature for an identifier. Used for linking to a segment */
70
+ export interface Id {
71
+ $type?: 'pub.leaflet.richtext.facet#id';
72
+ id?: string;
73
+ }
74
+ export declare function isId<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "id">;
75
+ export declare function validateId<V>(v: V): ValidationResult<Id & V>;
76
+ /** Facet feature for bold text */
77
+ export interface Bold {
78
+ $type?: 'pub.leaflet.richtext.facet#bold';
79
+ }
80
+ export declare function isBold<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "bold">;
81
+ export declare function validateBold<V>(v: V): ValidationResult<Bold & V>;
82
+ /** Facet feature for italic text */
83
+ export interface Italic {
84
+ $type?: 'pub.leaflet.richtext.facet#italic';
85
+ }
86
+ export declare function isItalic<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "italic">;
87
+ export declare function validateItalic<V>(v: V): ValidationResult<Italic & V>;
88
+ /** Facet feature for a footnote reference */
89
+ export interface Footnote {
90
+ $type?: 'pub.leaflet.richtext.facet#footnote';
91
+ footnoteId: string;
92
+ contentPlaintext: string;
93
+ contentFacets?: Main[];
94
+ }
95
+ export declare function isFootnote<V>(v: V): v is import("../../../../util").$TypedObject<V, "pub.leaflet.richtext.facet", "footnote">;
96
+ export declare function validateFootnote<V>(v: V): ValidationResult<Footnote & V>;
97
+ //# sourceMappingURL=facet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facet.d.ts","sourceRoot":"","sources":["../../../../../generated/types/pub/leaflet/richtext/facet.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AAMzB,mDAAmD;AACnD,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,4BAA4B,CAAA;IACpC,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,CACN,MAAM,CAAC,IAAI,CAAC,GACZ,MAAM,CAAC,UAAU,CAAC,GAClB,MAAM,CAAC,SAAS,CAAC,GACjB,MAAM,CAAC,IAAI,CAAC,GACZ,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EAAE,CAAC,4BAEjC;AAED,kCAAkC;AAClC,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,iCAAiC,CAAA;CAC1C;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,oCAAoC;AACpC,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,mCAAmC,CAAA;CAC5C;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2FAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC;AAED,6CAA6C;AAC7C,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,qCAAqC,CAAA;IAC7C,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,IAAI,EAAE,CAAA;CACvB;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6FAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
@@ -0,0 +1,51 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "app.bsky.richtext.facet",
4
+ "defs": {
5
+ "main": {
6
+ "type": "object",
7
+ "description": "Annotation of a sub-string within rich text.",
8
+ "required": ["index", "features"],
9
+ "properties": {
10
+ "index": { "type": "ref", "ref": "#byteSlice" },
11
+ "features": {
12
+ "type": "array",
13
+ "items": { "type": "union", "refs": ["#mention", "#link", "#tag"] }
14
+ }
15
+ }
16
+ },
17
+ "mention": {
18
+ "type": "object",
19
+ "description": "Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.",
20
+ "required": ["did"],
21
+ "properties": {
22
+ "did": { "type": "string", "format": "did" }
23
+ }
24
+ },
25
+ "link": {
26
+ "type": "object",
27
+ "description": "Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.",
28
+ "required": ["uri"],
29
+ "properties": {
30
+ "uri": { "type": "string", "format": "uri" }
31
+ }
32
+ },
33
+ "tag": {
34
+ "type": "object",
35
+ "description": "Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').",
36
+ "required": ["tag"],
37
+ "properties": {
38
+ "tag": { "type": "string", "maxLength": 640, "maxGraphemes": 64 }
39
+ }
40
+ },
41
+ "byteSlice": {
42
+ "type": "object",
43
+ "description": "Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.",
44
+ "required": ["byteStart", "byteEnd"],
45
+ "properties": {
46
+ "byteStart": { "type": "integer", "minimum": 0 },
47
+ "byteEnd": { "type": "integer", "minimum": 0 }
48
+ }
49
+ }
50
+ }
51
+ }
@@ -12,8 +12,8 @@
12
12
  "properties": {
13
13
  "badge": {
14
14
  "type": "ref",
15
- "ref": "app.certified.badge.definition",
16
- "description": "Reference to the badge definition for this award."
15
+ "ref": "com.atproto.repo.strongRef",
16
+ "description": "Strong reference to the badge definition at the time of award. The record referenced must conform with the lexicon app.certified.badge.definition."
17
17
  },
18
18
  "subject": {
19
19
  "type": "union",
@@ -8,11 +8,19 @@
8
8
  "key": "tid",
9
9
  "record": {
10
10
  "type": "object",
11
- "required": ["title", "badgeType", "icon", "createdAt"],
11
+ "required": ["title", "badgeType", "createdAt"],
12
12
  "properties": {
13
13
  "badgeType": {
14
14
  "type": "string",
15
- "description": "Category of the badge (e.g. endorsement, participation, affiliation).",
15
+ "description": "Category of the badge. Values beyond the known set are permitted.",
16
+ "knownValues": [
17
+ "endorsement",
18
+ "verification",
19
+ "participation",
20
+ "certification",
21
+ "affiliation",
22
+ "recognition"
23
+ ],
16
24
  "maxLength": 100
17
25
  },
18
26
  "title": {
@@ -12,8 +12,8 @@
12
12
  "properties": {
13
13
  "badgeAward": {
14
14
  "type": "ref",
15
- "ref": "app.certified.badge.award",
16
- "description": "Reference to the badge award."
15
+ "ref": "com.atproto.repo.strongRef",
16
+ "description": "Strong reference to the badge award being responded to. The record referenced must conform with the lexicon app.certified.badge.award."
17
17
  },
18
18
  "response": {
19
19
  "type": "string",
@@ -0,0 +1,88 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "app.certified.link.evm",
4
+ "defs": {
5
+ "main": {
6
+ "type": "record",
7
+ "description": "A verifiable link between an ATProto DID and an EVM wallet address, proven via a cryptographic signature. Currently supports EOA wallets via EIP-712 typed data signatures; the proof field is an open union to allow future signature methods.",
8
+ "key": "any",
9
+ "record": {
10
+ "type": "object",
11
+ "required": ["address", "proof", "createdAt"],
12
+ "properties": {
13
+ "address": {
14
+ "type": "string",
15
+ "description": "EVM wallet address (0x-prefixed, with EIP-55 checksum recommended).",
16
+ "minLength": 42,
17
+ "maxLength": 42
18
+ },
19
+ "proof": {
20
+ "type": "union",
21
+ "refs": ["#eip712Proof"],
22
+ "description": "Cryptographic proof of wallet ownership. The union is open to allow future proof methods (e.g. ERC-1271, ERC-6492). Each variant bundles its signature with the corresponding message format."
23
+ },
24
+ "createdAt": {
25
+ "type": "string",
26
+ "format": "datetime",
27
+ "description": "Client-declared timestamp when this record was originally created."
28
+ }
29
+ }
30
+ }
31
+ },
32
+ "eip712Proof": {
33
+ "type": "object",
34
+ "description": "EOA wallet ownership proof via EIP-712 typed data signature. Contains both the structured message that was signed and the resulting signature.",
35
+ "required": ["signature", "message"],
36
+ "properties": {
37
+ "signature": {
38
+ "type": "string",
39
+ "description": "ECDSA signature over the EIP-712 hash (hex-encoded with 0x prefix, 64 or 65 bytes).",
40
+ "minLength": 130,
41
+ "maxLength": 132
42
+ },
43
+ "message": {
44
+ "type": "ref",
45
+ "ref": "#eip712Message",
46
+ "description": "The EIP-712 structured message fields that were signed."
47
+ }
48
+ }
49
+ },
50
+ "eip712Message": {
51
+ "type": "object",
52
+ "description": "The EIP-712 typed data message that was signed by the wallet. Contains the fields binding an ATProto DID to an EVM address on a specific chain.",
53
+ "required": ["did", "evmAddress", "chainId", "timestamp", "nonce"],
54
+ "properties": {
55
+ "did": {
56
+ "type": "string",
57
+ "format": "did",
58
+ "description": "The ATProto DID being linked to the EVM address.",
59
+ "maxLength": 256
60
+ },
61
+ "evmAddress": {
62
+ "type": "string",
63
+ "description": "The EVM wallet address (must match the top-level address field).",
64
+ "minLength": 42,
65
+ "maxLength": 42
66
+ },
67
+ "chainId": {
68
+ "type": "string",
69
+ "description": "EVM chain ID as string (bigint serialized). Identifies which chain was used for signing; for EOA wallets the identity link applies across all EVM-compatible chains.",
70
+ "minLength": 1,
71
+ "maxLength": 78
72
+ },
73
+ "timestamp": {
74
+ "type": "string",
75
+ "description": "Unix timestamp when the attestation was created (bigint serialized).",
76
+ "minLength": 1,
77
+ "maxLength": 78
78
+ },
79
+ "nonce": {
80
+ "type": "string",
81
+ "description": "Replay-protection nonce (bigint serialized).",
82
+ "minLength": 1,
83
+ "maxLength": 78
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
@@ -13,7 +13,7 @@
13
13
  "subject": {
14
14
  "type": "ref",
15
15
  "ref": "com.atproto.repo.strongRef",
16
- "description": "Reference to the org.hypercerts.claim.activity or org.hypercerts.claim.collection this board visualizes."
16
+ "description": "Reference to the org.hypercerts.claim.activity or org.hypercerts.collection this board visualizes."
17
17
  },
18
18
  "config": {
19
19
  "type": "ref",
@@ -30,9 +30,13 @@
30
30
  }
31
31
  },
32
32
  "description": {
33
- "type": "ref",
34
- "ref": "pub.leaflet.pages.linearDocument#main",
35
- "description": "Rich-text description, represented as a Leaflet linear document."
33
+ "type": "union",
34
+ "refs": [
35
+ "org.hypercerts.defs#descriptionString",
36
+ "pub.leaflet.pages.linearDocument",
37
+ "com.atproto.repo.strongRef"
38
+ ],
39
+ "description": "Long-form description of the activity. An inline string for plain text or markdown, a Leaflet linear document for rich-text content, or a strong reference to an external description record."
36
40
  },
37
41
  "image": {
38
42
  "type": "union",
@@ -45,7 +49,6 @@
45
49
  "contributors": {
46
50
  "type": "array",
47
51
  "description": "An array of contributor objects, each containing contributor information, weight, and contribution details.",
48
- "maxLength": 1000,
49
52
  "items": {
50
53
  "type": "ref",
51
54
  "ref": "#contributor"
@@ -90,6 +93,7 @@
90
93
  },
91
94
  "contributor": {
92
95
  "type": "object",
96
+ "description": "A contributor to the activity, with identity, weight, and contribution details.",
93
97
  "required": ["contributorIdentity"],
94
98
  "properties": {
95
99
  "contributorIdentity": {
@@ -12,7 +12,8 @@
12
12
  "properties": {
13
13
  "type": {
14
14
  "type": "string",
15
- "description": "The type of this collection. Possible fields can be 'favorites', 'project', or any other type of collection.",
15
+ "description": "The type of this collection. Values beyond the known set are permitted.",
16
+ "knownValues": ["favorites", "project", "portfolio", "program"],
16
17
  "maxLength": 64
17
18
  },
18
19
  "title": {
@@ -25,12 +26,24 @@
25
26
  "type": "string",
26
27
  "maxLength": 3000,
27
28
  "maxGraphemes": 300,
28
- "description": "Short summary of this collection, suitable for previews and list views"
29
+ "description": "Short summary of this collection, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`."
30
+ },
31
+ "shortDescriptionFacets": {
32
+ "type": "array",
33
+ "description": "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).",
34
+ "items": {
35
+ "type": "ref",
36
+ "ref": "app.bsky.richtext.facet"
37
+ }
29
38
  },
30
39
  "description": {
31
- "type": "ref",
32
- "ref": "pub.leaflet.pages.linearDocument#main",
33
- "description": "Rich-text description, represented as a Leaflet linear document."
40
+ "type": "union",
41
+ "refs": [
42
+ "org.hypercerts.defs#descriptionString",
43
+ "pub.leaflet.pages.linearDocument",
44
+ "com.atproto.repo.strongRef"
45
+ ],
46
+ "description": "Long-form description of the collection. An inline string for plain text or markdown, a Leaflet linear document for rich-text content, or a strong reference to an external description record."
34
47
  },
35
48
  "avatar": {
36
49
  "type": "union",
@@ -72,6 +85,7 @@
72
85
  },
73
86
  "item": {
74
87
  "type": "object",
88
+ "description": "An item in a collection, with an identifier and optional weight.",
75
89
  "required": ["itemIdentifier"],
76
90
  "properties": {
77
91
  "itemIdentifier": {