@hypercerts-org/lexicon 0.10.0-beta.1 → 0.10.0-beta.11

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 (63) hide show
  1. package/CHANGELOG.md +319 -0
  2. package/README.md +119 -298
  3. package/SCHEMAS.md +295 -0
  4. package/dist/exports.d.ts +267 -135
  5. package/dist/exports.d.ts.map +1 -1
  6. package/dist/generated/exports.d.ts +267 -135
  7. package/dist/generated/exports.d.ts.map +1 -1
  8. package/dist/generated/lexicons.d.ts +558 -304
  9. package/dist/generated/lexicons.d.ts.map +1 -1
  10. package/dist/generated/types/app/bsky/richtext/facet.d.ts +8 -0
  11. package/dist/generated/types/app/bsky/richtext/facet.d.ts.map +1 -0
  12. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +32 -29
  13. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  14. package/dist/generated/types/org/hypercerts/claim/collection.d.ts +26 -9
  15. package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -1
  16. package/dist/generated/types/org/hypercerts/claim/{contribution.d.ts → contributionDetails.d.ts} +8 -10
  17. package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  18. package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts +23 -0
  19. package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  20. package/dist/generated/types/org/hypercerts/defs.d.ts +44 -0
  21. package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -1
  22. package/dist/generated/types/org/hypercerts/helper/workScopeTag.d.ts +31 -0
  23. package/dist/generated/types/org/hypercerts/helper/workScopeTag.d.ts.map +1 -0
  24. package/dist/index.cjs +923 -532
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.mjs +904 -517
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/lexicons.cjs +320 -160
  29. package/dist/lexicons.cjs.map +1 -1
  30. package/dist/lexicons.d.ts +558 -304
  31. package/dist/lexicons.d.ts.map +1 -1
  32. package/dist/lexicons.mjs +320 -160
  33. package/dist/lexicons.mjs.map +1 -1
  34. package/dist/types/app/bsky/richtext/facet.d.ts +8 -0
  35. package/dist/types/app/bsky/richtext/facet.d.ts.map +1 -0
  36. package/dist/types/org/hypercerts/claim/activity.d.ts +32 -29
  37. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  38. package/dist/types/org/hypercerts/claim/collection.d.ts +26 -9
  39. package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -1
  40. package/dist/types/org/hypercerts/claim/{contribution.d.ts → contributionDetails.d.ts} +8 -10
  41. package/dist/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  42. package/dist/types/org/hypercerts/claim/contributorInformation.d.ts +23 -0
  43. package/dist/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  44. package/dist/types/org/hypercerts/defs.d.ts +44 -0
  45. package/dist/types/org/hypercerts/defs.d.ts.map +1 -1
  46. package/dist/types/org/hypercerts/helper/workScopeTag.d.ts +31 -0
  47. package/dist/types/org/hypercerts/helper/workScopeTag.d.ts.map +1 -0
  48. package/lexicons/org/hypercerts/claim/activity.json +59 -60
  49. package/lexicons/org/hypercerts/claim/collection.json +50 -17
  50. package/lexicons/org/hypercerts/claim/contributionDetails.json +43 -0
  51. package/lexicons/org/hypercerts/claim/contributorInformation.json +39 -0
  52. package/lexicons/org/hypercerts/claim/evaluation.json +1 -1
  53. package/lexicons/org/hypercerts/defs.json +88 -0
  54. package/lexicons/org/hypercerts/helper/workScopeTag.json +65 -0
  55. package/package.json +17 -6
  56. package/dist/generated/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
  57. package/dist/generated/types/org/hypercerts/claim/project.d.ts +0 -29
  58. package/dist/generated/types/org/hypercerts/claim/project.d.ts.map +0 -1
  59. package/dist/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
  60. package/dist/types/org/hypercerts/claim/project.d.ts +0 -29
  61. package/dist/types/org/hypercerts/claim/project.d.ts.map +0 -1
  62. package/lexicons/org/hypercerts/claim/contribution.json +0 -50
  63. package/lexicons/org/hypercerts/claim/project.json +0 -64
package/CHANGELOG.md ADDED
@@ -0,0 +1,319 @@
1
+ # @hypercerts-org/lexicon
2
+
3
+ ## 0.10.0-beta.11
4
+
5
+ ### Minor Changes
6
+
7
+ - [#123](https://github.com/hypercerts-org/hypercerts-lexicon/pull/123) [`c623d32`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/c623d327e0e6c1a4f5ca92135ece284cfe166421) Thanks [@aspiers](https://github.com/aspiers)! - Add `location` property to collections. Collections can now reference a location record directly via strongRef. This replaces the sidecar pattern which was impractical since location records cannot be reused across multiple collections.
8
+
9
+ ## 0.10.0-beta.10
10
+
11
+ ### Minor Changes
12
+
13
+ - [#122](https://github.com/hypercerts-org/hypercerts-lexicon/pull/122) [`3e3da41`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/3e3da41df8016d4d7f63477000a01756704d0820) Thanks [@aspiers](https://github.com/aspiers)! - Drop HELPER\_ prefix from workScopeTag constants. `HELPER_WORK_SCOPE_TAG_NSID`, `HELPER_WORK_SCOPE_TAG_LEXICON_JSON`, and `HELPER_WORK_SCOPE_TAG_LEXICON_DOC` are now `WORK_SCOPE_TAG_NSID`, `WORK_SCOPE_TAG_LEXICON_JSON`, and `WORK_SCOPE_TAG_LEXICON_DOC`.
14
+
15
+ ## 0.10.0-beta.9
16
+
17
+ ### Minor Changes
18
+
19
+ - [#121](https://github.com/hypercerts-org/hypercerts-lexicon/pull/121) [`5c33b79`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/5c33b796f78eca2a207116d246a715cd5712f392) Thanks [@aspiers](https://github.com/aspiers)! - Fix camelCase export names to use underscores. Generated constants like `CONTRIBUTIONDETAILS_LEXICON_*` are now `CONTRIBUTION_DETAILS_LEXICON_*` for consistency.
20
+
21
+ Affected exports:
22
+ - `CONTRIBUTION_DETAILS_NSID`, `CONTRIBUTION_DETAILS_LEXICON_JSON`, `CONTRIBUTION_DETAILS_LEXICON_DOC` (was `CONTRIBUTIONDETAILS_*`)
23
+ - `CONTRIBUTOR_INFORMATION_NSID`, `CONTRIBUTOR_INFORMATION_LEXICON_JSON`, `CONTRIBUTOR_INFORMATION_LEXICON_DOC` (was `CONTRIBUTORINFORMATION_*`)
24
+ - `STRONG_REF_NSID`, `STRONG_REF_LEXICON_JSON`, `STRONG_REF_LEXICON_DOC` (was `STRONGREF_*`)
25
+ - `HELPER_WORK_SCOPE_TAG_NSID`, `HELPER_WORK_SCOPE_TAG_LEXICON_JSON`, `HELPER_WORK_SCOPE_TAG_LEXICON_DOC` (was `HELPER_WORKSCOPETAG_*`)
26
+
27
+ ## 0.10.0-beta.8
28
+
29
+ ### Minor Changes
30
+
31
+ - [#107](https://github.com/hypercerts-org/hypercerts-lexicon/pull/107) [`678de97`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/678de97614826fc124ed3208cccb236d9b6e2bb1) Thanks [@holkexyz](https://github.com/holkexyz)! - Add work scope logic expression system with boolean operators
32
+
33
+ **New Features:**
34
+ - **Work scope logic AST (`org.hypercerts.defs`):**
35
+ - Added `org.hypercerts.defs#workScopeAll` (logical AND): requires all arguments to be satisfied, with recursive union support for nested expressions
36
+ - Added `org.hypercerts.defs#workScopeAny` (logical OR): requires at least one argument to be satisfied, with recursive union support for nested expressions
37
+ - Added `org.hypercerts.defs#workScopeNot` (logical NOT): negates an expression, with recursive union support for nested expressions
38
+ - Added `org.hypercerts.defs#workScopeAtom`: atomic reference to a scope tag record via strongRef
39
+ - All operators support recursive boolean logic expressions through union types in their `args`/`arg` properties, allowing nested combinations of `workScopeAll`, `workScopeAny`, `workScopeNot`, and `workScopeAtom`
40
+ - **Work scope tag lexicon (`org.hypercerts.helper.workScopeTag`):**
41
+ - New record type for reusable scope atoms
42
+ - Fields: `createdAt`, `key`, `label` (required), `kind`, `description`, `parent`, `aliases`, `externalReference` (optional)
43
+ - Supports taxonomy/hierarchy via `parent` strongRef
44
+ - Supports external references via URI or blob
45
+ - **Activity lexicon (`org.hypercerts.claim.activity`):**
46
+ - Added `org.hypercerts.claim.activity#workScope` field using a union type that references `org.hypercerts.defs#workScopeAll`, `org.hypercerts.defs#workScopeAny`, `org.hypercerts.defs#workScopeNot`, and `org.hypercerts.defs#workScopeAtom`
47
+ - Enables complex boolean logic expressions for work scope definitions with recursive nesting support
48
+ - Replaces simple strongRef approach with expressive AST-based system
49
+
50
+ **Breaking Changes:**
51
+ - The `workScope` field in `org.hypercerts.claim.activity` now expects a work scope logic expression instead of a simple strongRef. Existing records using the old format will need to be migrated to use the new AST structure.
52
+
53
+ ## 0.10.0-beta.7
54
+
55
+ ### Minor Changes
56
+
57
+ - [#106](https://github.com/hypercerts-org/hypercerts-lexicon/pull/106) [`b03a1f7`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/b03a1f7925b56a5d614bb3a40f7fe5e6321f3d34) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Add avatar and banner fields to collection lexicon for visual representation
58
+
59
+ - [#113](https://github.com/hypercerts-org/hypercerts-lexicon/pull/113) [`c3f9ca2`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/c3f9ca2f5cb2c5da4d0f4272a74d06f6798e058b) Thanks [@holkexyz](https://github.com/holkexyz)! - Refactor collection items structure to support optional weights and remove activityWeight from activity schema
60
+
61
+ **Breaking Changes:**
62
+ - **Activity lexicon (`org.hypercerts.claim.activity`):**
63
+ - Removed `org.hypercerts.claim.activity#activityWeight` def
64
+ - Activity records no longer include activity weight information
65
+ - **Collection lexicon (`org.hypercerts.claim.collection`):**
66
+ - Changed `org.hypercerts.claim.collection#items` from array of strongRefs to array of item objects
67
+ - Added `org.hypercerts.claim.collection#item` def with:
68
+ - `itemIdentifier` (required): strongRef to an item (activity or collection)
69
+ - `itemWeight` (optional): positive numeric value stored as string
70
+ - Supports recursive collection nesting (items can reference activities or other collections)
71
+
72
+ **Migration:**
73
+
74
+ **Collection items:** Convert from array of strongRefs to array of item objects:
75
+
76
+ ```json
77
+ // Before
78
+ "items": [strongRef1, strongRef2]
79
+
80
+ // After
81
+ "items": [
82
+ { "itemIdentifier": strongRef1, "itemWeight": "1.5" },
83
+ { "itemIdentifier": strongRef2 }
84
+ ]
85
+ ```
86
+
87
+ **Activity weights:** Migrate existing `org.hypercerts.claim.activity#activityWeight` data to collection `org.hypercerts.claim.collection#item.itemWeight`:
88
+
89
+ ```json
90
+ // Old (removed from activity)
91
+ { "activity": { "uri": "...", "cid": "..." }, "weight": "1.5" }
92
+
93
+ // New (in collection items)
94
+ { "itemIdentifier": { "uri": "...", "cid": "..." }, "itemWeight": "1.5" }
95
+ ```
96
+
97
+ Update collections that reference activities to include weights in `org.hypercerts.claim.collection#item.itemWeight`. Weights can be dropped if not needed.
98
+
99
+ - [#91](https://github.com/hypercerts-org/hypercerts-lexicon/pull/91) [`0c6da09`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/0c6da093c8a38a3ee516a85b6bffee0850535b14) Thanks [@holkexyz](https://github.com/holkexyz)! - Add rich text facet support to activity claim descriptions
100
+
101
+ Add `shortDescriptionFacets` and `descriptionFacets` fields to the activity lexicon to support rich text annotations (mentions, URLs, hashtags, etc.) in activity claim descriptions.
102
+
103
+ ## 0.10.0-beta.6
104
+
105
+ ### Minor Changes
106
+
107
+ - [#102](https://github.com/hypercerts-org/hypercerts-lexicon/pull/102) [`68011ae`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/68011ae1f58dcc35408e2400c02dfa16559e18d6) Thanks [@holkexyz](https://github.com/holkexyz)! - Refactor contributions structure and split contributor lexicon
108
+
109
+ **Breaking Changes:**
110
+ - **Activity lexicon (`org.hypercerts.claim.activity`):**
111
+ - Renamed `contributions` field to `contributors`
112
+ - Replaced `contributions` array (array of strongRefs) with new `contributors` array containing contributor objects
113
+ - Each contributor object has three fields:
114
+ - `contributorInformation` (required): string (DID/identifier) or strongRef to `org.hypercerts.claim.contributorInformation#main`
115
+ - `weight` (optional): positive number (stored as string)
116
+ - `contributionDetails` (optional): string or strongRef to `org.hypercerts.claim.contributionDetails#main`
117
+ - Renamed internal `contribution` object type to `contributor`
118
+ - Renamed string wrapper defs: `contributorInformationString` → `contributorIdentity`, `contributionDetailsString` → `contributorRole`
119
+ - Updated `contributorRole` string limits: maxLength 10000, maxGraphemes 1000
120
+ - **Contributor lexicon (`org.hypercerts.claim.contributor`):**
121
+ - Split into two separate lexicon files:
122
+ - `org.hypercerts.claim.contributorInformation`: new lexicon file containing `identifier`, `displayName`, `image` (contributor profile information)
123
+ - `org.hypercerts.claim.contributionDetails`: new lexicon file containing `role`, `contributionDescription`, `startDate`, `endDate` (contribution-specific details)
124
+ - The original `org.hypercerts.claim.contributor` lexicon has been removed
125
+
126
+ Existing contributions using the old structure will need to be migrated to the new format.
127
+
128
+ ## 0.10.0-beta.5
129
+
130
+ ### Minor Changes
131
+
132
+ - [#78](https://github.com/hypercerts-org/hypercerts-lexicon/pull/78) [`c55d8a7`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/c55d8a77ff2949136bab0c6680b7e458712404f1) Thanks [@bitbeckers](https://github.com/bitbeckers)! - Remove org.hypercerts.claim.project lexicon and replace with org.hypercerts.claim.collection.project sidecar. Projects are now represented as collections with an optional project sidecar (same TID) that provides rich-text descriptions, avatars, and cover photos. Avatar and coverPhoto fields moved from base collection to project sidecar. Collections without the project sidecar are simple groupings; collections with it are "projects" with rich documentation.
133
+
134
+ - [#93](https://github.com/hypercerts-org/hypercerts-lexicon/pull/93) [`3276d6e`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/3276d6e59975ac8cfdd9a8eed09ddfd57fdddf41) Thanks [@bitbeckers](https://github.com/bitbeckers)! - Change workScope from inline object definition to strongRef in activity lexicon. This breaking change removes the workScope definition (withinAllOf, withinAnyOf, withinNoneOf properties) and changes the workScope property to reference an external record via strongRef, allowing for more flexible work scope definitions.
135
+
136
+ - [#97](https://github.com/hypercerts-org/hypercerts-lexicon/pull/97) [`ceddab9`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/ceddab9e829d8ade3868eac4d10dd906e12a153c) Thanks [@aspiers](https://github.com/aspiers)! - Move schema documentation tables from README.md to auto-generated SCHEMAS.md to reduce git merge conflicts. The SCHEMAS.md file is now auto-generated from lexicon definitions and included in the distributed package.
137
+
138
+ - [#78](https://github.com/hypercerts-org/hypercerts-lexicon/pull/78) [`cc9d7bf`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/cc9d7bff3dc63f155ce8e11204fc1506ca687711) Thanks [@bitbeckers](https://github.com/bitbeckers)! - Refactor collection lexicon to use items array instead of activities. The items array contains plain strongRefs (com.atproto.repo.strongRef) that can reference activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection), enabling recursive collection nesting. This change removes the activityWeight object structure from the base collection lexicon.
139
+
140
+ - [#67](https://github.com/hypercerts-org/hypercerts-lexicon/pull/67) [`b51dd76`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/b51dd7652b73c5ae6bba103f07eca9f5195809f0) Thanks [@bitbeckers](https://github.com/bitbeckers)! - Remove bidirectional project-activity link. Activities no longer include a `project` field reference. Projects continue to reference activities via the `activities` array, making the relationship unidirectional (project → activities only).
141
+
142
+ - [#98](https://github.com/hypercerts-org/hypercerts-lexicon/pull/98) [`43b0431`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/43b04316d8cb11066d61d79e70f262f0d2426cde) Thanks [@aspiers](https://github.com/aspiers)! - Remove org.hypercerts.claim.collection.project lexicon
143
+
144
+ - [#75](https://github.com/hypercerts-org/hypercerts-lexicon/pull/75) [`95e2ba1`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/95e2ba174ea348746ce64507bf94b73c3d3d3954) Thanks [@s-adamantine](https://github.com/s-adamantine)! - Unify project and collection schemas into a single
145
+ `org.hypercerts.claim.collection` lexicon with `type` discriminator
146
+ field to allow collections to be designated as projects. Custom
147
+ strings are also allowed in `type`.
148
+
149
+ Also make `shortDescription` field optional in
150
+ `org.hypercerts.claim.collection` to match
151
+ `org.hypercerts.claim.project`.
152
+
153
+ This unification removes `org.hypercerts.claim.project`, so existing
154
+ projects should be migrated to collections with `type` set to
155
+ `project`.
156
+
157
+ - [#80](https://github.com/hypercerts-org/hypercerts-lexicon/pull/80) [`e8d5a7c`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/e8d5a7cd080e4f8d4e6b96ce5762678deaeb2902) Thanks [@s-adamantine](https://github.com/s-adamantine)! - Updated `org.hypercerts.claim.collection` lexicon:
158
+ - Added optional `type` field to specify collection type (e.g., 'favorites', 'project')
159
+ - Renamed fields for consistency:
160
+ - `collectionTitle` → `title`
161
+ - `shortCollectionDescription` → `shortDescription`
162
+ - `collectionDescription` → `description`
163
+ - Changed `description` from string to Leaflet linear document reference (`pub.leaflet.pages.linearDocument#main`) to support rich-text descriptions
164
+
165
+ **Breaking changes**:
166
+ - Field names have been renamed (e.g., `collectionTitle` → `title`)
167
+ - The `description` field now expects a reference object instead of a plain string
168
+
169
+ - [#92](https://github.com/hypercerts-org/hypercerts-lexicon/pull/92) [`bec8e63`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/bec8e63195fb73734b68f3d5201864b9bede0904) Thanks [@s-adamantine](https://github.com/s-adamantine)! - Update `org.hypercerts.claim.contributor` lexicon to support individual contributor profiles and roles.
170
+
171
+ Breaking Changes:
172
+ - Removed `contributors` array.
173
+ - Added `identifier`, `displayName`, and `image` fields for individual profiles.
174
+ - Renamed `description` to `contributionDescription`.
175
+ - Updated `required` fields to only include `createdAt`.
176
+
177
+ Also corrected incorrect references to `org.hypercerts.claim.contribution` across the codebase to use the correct ID `org.hypercerts.claim.contributor`.
178
+
179
+ ### Patch Changes
180
+
181
+ - [#77](https://github.com/hypercerts-org/hypercerts-lexicon/pull/77) [`0d61ff7`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/0d61ff7e030a25682cd71877ae603b8782b09c3b) Thanks [@bitbeckers](https://github.com/bitbeckers)! - Document ATProto sidecar pattern for collections using app.certified.location. Collections can now have location metadata by creating a location record with the same TID, allowing location updates without changing the collection CID. Updated README with usage example and ERD with sidecar relationship.
182
+
183
+ - [#74](https://github.com/hypercerts-org/hypercerts-lexicon/pull/74) [`f845f92`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/f845f924907f62c8b96afa6a18ac203c4bd4cad5) Thanks [@aspiers](https://github.com/aspiers)! - Make startDate and endDate optional in activity lexicon
184
+
185
+ ## 0.10.0-beta.4
186
+
187
+ ### Minor Changes
188
+
189
+ - [#47](https://github.com/hypercerts-org/hypercerts-lexicon/pull/47) [`6a66e4b`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/6a66e4b78ef676cc66b35773f2f9828ea697d332) Thanks [@satyam-mishra-pce](https://github.com/satyam-mishra-pce)! - Add support for multiple locations in an activity claim.
190
+
191
+ ## 0.10.0-beta.3
192
+
193
+ ### Patch Changes
194
+
195
+ - [`ece7629`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/ece7629956d6efbfed757d66609fe4ccc1c81d5a) Thanks [@aspiers](https://github.com/aspiers)! - Include CHANGELOG.md in package distribution for better user documentation.
196
+
197
+ ## 0.10.0-beta.2
198
+
199
+ ### Patch Changes
200
+
201
+ - [`5a490bf`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/5a490bf4404f6690fe832f82023ea05663050977) Thanks [@aspiers](https://github.com/aspiers)! - Add basic test suite using vitest 4.
202
+
203
+ ## 0.10.0-beta.1
204
+
205
+ ### Minor Changes
206
+
207
+ - [`96bdb6c`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/96bdb6c9c7107680da301a92a8120ee60e676f15) Thanks [@aspiers](https://github.com/aspiers)! - Improved exports structure with semantic collection mappings for extra syntactic sugar.
208
+
209
+ **Breaking Changes:**
210
+ - Renamed `ids` export to `HYPERCERTS_NSIDS_BY_TYPE` (maps type namespaces to NSIDs)
211
+
212
+ **New Features:**
213
+ - Added `HYPERCERTS_NSIDS` object with semantic keys (e.g., `ACTIVITY`, `RIGHTS`, `CONTRIBUTION`)
214
+ - Added `HYPERCERTS_LEXICON_JSON` object with semantic keys mapping to raw JSON lexicons
215
+ - Added `HYPERCERTS_LEXICON_DOC` object with semantic keys mapping to typed lexicon documents
216
+ - All three new objects share the same key structure for consistency
217
+
218
+ **Migration Guide:**
219
+
220
+ If you were using the `ids` export (rare):
221
+
222
+ ```typescript
223
+ // Before
224
+ import { ids } from "@hypercerts-org/lexicon";
225
+ const nsid = ids.OrgHypercertsClaimActivity;
226
+
227
+ // After
228
+ import { HYPERCERTS_NSIDS_BY_TYPE } from "@hypercerts-org/lexicon";
229
+ const nsid = HYPERCERTS_NSIDS_BY_TYPE.OrgHypercertsClaimActivity;
230
+ ```
231
+
232
+ Most users should use individual NSID constants (unchanged):
233
+
234
+ ```typescript
235
+ import { ACTIVITY_NSID, RIGHTS_NSID } from "@hypercerts-org/lexicon";
236
+ ```
237
+
238
+ Or the new semantic mapping:
239
+
240
+ ```typescript
241
+ import { HYPERCERTS_NSIDS } from "@hypercerts-org/lexicon";
242
+ const nsid = HYPERCERTS_NSIDS.ACTIVITY; // Same as ACTIVITY_NSID
243
+ ```
244
+
245
+ - [`ec91289`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/ec912892497198741254a861fd9104fa7c6dc827) Thanks [@aspiers](https://github.com/aspiers)! - chore: switch to build via rollup
246
+
247
+ Major build system improvements:
248
+ - **Build System**: Migrated from direct TypeScript to Rollup-based builds
249
+ - Generates proper ESM (`dist/index.mjs`) and CommonJS (`dist/index.cjs`) bundles
250
+ - Generates TypeScript declarations (`dist/index.d.ts`)
251
+ - Includes source maps for debugging
252
+ - Adds `/lexicons` export for lighter bundle (validation only)
253
+ - **Code Generation**:
254
+ - Auto-generates `generated/exports.ts` with clean, organized exports
255
+ - Creates type shims for external lexicons (@atcute/leaflet)
256
+ - All generated code now in `generated/` directory (gitignored)
257
+ - **Package Exports**:
258
+ - Main export: `@hypercerts-org/lexicon` (full package with types)
259
+ - Lexicons export: `@hypercerts-org/lexicon/lexicons` (schemas only, smaller bundle)
260
+ - Proper dual package support (ESM + CommonJS)
261
+ - **Code Quality**:
262
+ - Added ESLint configuration
263
+ - Added TypeScript type-checking to CI
264
+ - Improved build validation workflow
265
+ - **Dependencies**:
266
+ - Added `@atcute/leaflet` for external lexicon references
267
+ - Added `multiformats` as runtime dependency
268
+ - Moved `@atproto/lex-cli` to devDependencies (build-time only)
269
+
270
+ **Migration**: No breaking changes for existing users. Package structure is improved
271
+ but import paths remain compatible.
272
+
273
+ ### Patch Changes
274
+
275
+ - [`913eb06`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/913eb06bcec519552f45f5d9797579ce99be1635) Thanks [@aspiers](https://github.com/aspiers)! - Switch from bundled to individual type declaration files
276
+
277
+ **Changes:**
278
+ - Removed `rollup-plugin-dts` dependency
279
+ - Switched to native TypeScript declaration generation
280
+ - Type declarations now mirror source structure in `dist/types/`
281
+ - Individual type files are small (1-3KB each) and lazy-loaded by TypeScript
282
+ - Improves IDE performance by avoiding single 39MB bundled declaration file
283
+
284
+ **Technical Details:**
285
+
286
+ The package now generates individual `.d.ts` files alongside the bundled JavaScript
287
+ output. This provides better IDE performance as TypeScript can lazy-load type files
288
+ on demand rather than parsing a massive bundled declaration file upfront.
289
+
290
+ ## 0.10.0-beta.0
291
+
292
+ ### Minor Changes
293
+
294
+ - [`6a62c04`](https://github.com/hypercerts-org/hypercerts-lexicon/commit/6a62c04e98950756a196110490cabd72f936a976) Thanks [@aspiers](https://github.com/aspiers)! - This release represents the migration of the lexicon package from the SDK monorepo (`hypercerts-sdk/packages/lexicon`) to a dedicated standalone repository (`hypercerts-lexicon`). This separation allows for independent versioning and development of the lexicon definitions.
295
+
296
+ Major architectural and feature updates compared to the SDK lexicon package include but are not limited to the following:
297
+
298
+ **New Lexicons:**
299
+ - Activity model: `org.hypercerts.claim.activity` - activity-based hypercert records (replaces single claim model)
300
+ - Project records: `org.hypercerts.claim.project` - projects that group multiple activities
301
+ - Shared definitions: `org.hypercerts.defs` - common types (uri, smallBlob, largeBlob, smallImage, largeImage)
302
+ - Badge system: `app.certified.badge.definition`, `app.certified.badge.award`, `app.certified.badge.response` for badge-based endorsements
303
+ - Funding receipts: `org.hypercerts.funding.receipt` - payment and funding tracking
304
+
305
+ **Architectural Changes:**
306
+ - **Claim model**: Replaced single `org.hypercerts.claim` record with activity-based `org.hypercerts.claim.activity` model
307
+ - **Collection model**: Collections now reference activities (via `activityWeight`) instead of claims (via `claimItem`)
308
+ - **Work scope**: Activity model uses structured `workScope` object with label-based conditions (`withinAllOf`, `withinAnyOf`, `withinNoneOf`)
309
+ - **Time fields**: Activity uses `startDate`/`endDate` instead of `workTimeFrameFrom`/`workTimeFrameTo`
310
+ - **Image references**: Activity model references `org.hypercerts.defs#smallImage` instead of `app.certified.defs#uri`/`smallBlob`
311
+
312
+ **Definition Updates:**
313
+ - `app.certified.defs` now includes `did` type definition
314
+ - Added `org.hypercerts.defs` with image and blob type definitions
315
+ - Activity model references project via AT-URI instead of strongRef
316
+
317
+ **Removed/Replaced:**
318
+ - `org.hypercerts.claim` (replaced by `org.hypercerts.claim.activity`)
319
+ - Top-level `org.hypercerts.collection` (replaced by `org.hypercerts.claim.collection` using activities)