@hypercerts-org/lexicon 0.11.2 → 0.13.0

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 (40) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +92 -9
  3. package/SCHEMAS.md +36 -18
  4. package/dist/exports.d.ts +49 -2
  5. package/dist/exports.d.ts.map +1 -1
  6. package/dist/generated/exports.d.ts +49 -2
  7. package/dist/generated/exports.d.ts.map +1 -1
  8. package/dist/generated/lexicons.d.ts +90 -6
  9. package/dist/generated/lexicons.d.ts.map +1 -1
  10. package/dist/generated/types/app/certified/actor/organization.d.ts +8 -0
  11. package/dist/generated/types/app/certified/actor/organization.d.ts.map +1 -1
  12. package/dist/generated/types/app/certified/graph/follow.d.ts +18 -0
  13. package/dist/generated/types/app/certified/graph/follow.d.ts.map +1 -0
  14. package/dist/generated/types/app/certified/location.d.ts +1 -1
  15. package/dist/generated/types/app/certified/location.d.ts.map +1 -1
  16. package/dist/generated/types/org/hypercerts/workscope/tag.d.ts +2 -2
  17. package/dist/generated/types/org/hypercerts/workscope/tag.d.ts.map +1 -1
  18. package/dist/index.cjs +350 -220
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.mjs +342 -216
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/lexicons.cjs +50 -3
  23. package/dist/lexicons.cjs.map +1 -1
  24. package/dist/lexicons.d.ts +90 -6
  25. package/dist/lexicons.d.ts.map +1 -1
  26. package/dist/lexicons.mjs +50 -3
  27. package/dist/lexicons.mjs.map +1 -1
  28. package/dist/types/app/certified/actor/organization.d.ts +8 -0
  29. package/dist/types/app/certified/actor/organization.d.ts.map +1 -1
  30. package/dist/types/app/certified/graph/follow.d.ts +18 -0
  31. package/dist/types/app/certified/graph/follow.d.ts.map +1 -0
  32. package/dist/types/app/certified/location.d.ts +1 -1
  33. package/dist/types/app/certified/location.d.ts.map +1 -1
  34. package/dist/types/org/hypercerts/workscope/tag.d.ts +2 -2
  35. package/dist/types/org/hypercerts/workscope/tag.d.ts.map +1 -1
  36. package/lexicons/app/certified/actor/organization.json +14 -0
  37. package/lexicons/app/certified/graph/follow.json +32 -0
  38. package/lexicons/app/certified/location.json +1 -1
  39. package/lexicons/org/hypercerts/workscope/tag.json +2 -2
  40. package/package.json +1 -1
package/dist/lexicons.cjs CHANGED
@@ -147,6 +147,20 @@ const schemaDict = {
147
147
  format: 'datetime',
148
148
  description: "When the organization was established. Stored as datetime per ATProto conventions (no date-only format exists). Clients should use midnight UTC (e.g., '2005-01-01T00:00:00.000Z'); consumers should treat only the date portion as canonical.",
149
149
  },
150
+ longDescription: {
151
+ type: 'union',
152
+ refs: [
153
+ 'lex:org.hypercerts.defs#descriptionString',
154
+ 'lex:pub.leaflet.pages.linearDocument',
155
+ 'lex:com.atproto.repo.strongRef',
156
+ ],
157
+ description: 'Long-form description of the organization, such as its mission, history, or detailed project narrative. An inline string for plain text or markdown, a Leaflet linear document record embedded directly, or a strong reference to an existing document record.',
158
+ },
159
+ visibility: {
160
+ type: 'string',
161
+ knownValues: ['public', 'unlisted'],
162
+ description: 'Controls whether the organization or project is publicly discoverable on platforms that honor this setting.',
163
+ },
150
164
  createdAt: {
151
165
  type: 'string',
152
166
  format: 'datetime',
@@ -407,6 +421,38 @@ const schemaDict = {
407
421
  },
408
422
  },
409
423
  },
424
+ AppCertifiedGraphFollow: {
425
+ lexicon: 1,
426
+ id: 'app.certified.graph.follow',
427
+ defs: {
428
+ main: {
429
+ type: 'record',
430
+ description: "Record declaring a social 'follow' relationship of another account. Duplicate follows will be ignored by the AppView.",
431
+ key: 'tid',
432
+ record: {
433
+ type: 'object',
434
+ required: ['subject', 'createdAt'],
435
+ properties: {
436
+ subject: {
437
+ type: 'string',
438
+ format: 'did',
439
+ description: 'DID of the account being followed.',
440
+ },
441
+ createdAt: {
442
+ type: 'string',
443
+ format: 'datetime',
444
+ description: 'Client-declared timestamp when this record was originally created.',
445
+ },
446
+ via: {
447
+ type: 'ref',
448
+ ref: 'lex:com.atproto.repo.strongRef',
449
+ description: 'Optional strong reference to a record that mediated this follow (e.g. a starter pack or other curated list). Mirrors the optional `via` field on app.bsky.graph.follow; the referenced record may conform with any lexicon.',
450
+ },
451
+ },
452
+ },
453
+ },
454
+ },
455
+ },
410
456
  AppCertifiedLinkEvm: {
411
457
  lexicon: 1,
412
458
  id: 'app.certified.link.evm',
@@ -526,7 +572,7 @@ const schemaDict = {
526
572
  },
527
573
  locationType: {
528
574
  type: 'string',
529
- description: 'An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point). See the Location Protocol spec for the full registry: https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry',
575
+ description: "An identifier for the format of the location data. Use `geojson-point` for a single GeoJSON Point; use `geojson` as the catch-all for any other GeoJSON geometry (Polygon, MultiPolygon, FeatureCollection, etc.) — the inner payload's own GeoJSON `type` field carries the specifics. Values beyond the known set are permitted; see the Location Protocol spec for the canonical registry: https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry",
530
576
  knownValues: [
531
577
  'coordinate-decimal',
532
578
  'geojson-point',
@@ -1830,7 +1876,7 @@ const schemaDict = {
1830
1876
  },
1831
1877
  category: {
1832
1878
  type: 'string',
1833
- description: 'Category type of this scope.',
1879
+ description: 'Category type of this scope. Values beyond the known set are permitted.',
1834
1880
  knownValues: ['topic', 'language', 'domain', 'method'],
1835
1881
  maxLength: 50,
1836
1882
  },
@@ -1847,7 +1893,7 @@ const schemaDict = {
1847
1893
  },
1848
1894
  status: {
1849
1895
  type: 'string',
1850
- description: 'Lifecycle status of this tag. Communities propose tags, curators accept them, deprecated tags point to replacements via supersededBy.',
1896
+ description: 'Lifecycle status of this tag. Communities propose tags, curators accept them, deprecated tags point to replacements via supersededBy. Values beyond the known set are permitted.',
1851
1897
  knownValues: ['proposed', 'accepted', 'deprecated'],
1852
1898
  maxLength: 20,
1853
1899
  },
@@ -2543,6 +2589,7 @@ const ids = {
2543
2589
  AppCertifiedBadgeDefinition: 'app.certified.badge.definition',
2544
2590
  AppCertifiedBadgeResponse: 'app.certified.badge.response',
2545
2591
  AppCertifiedDefs: 'app.certified.defs',
2592
+ AppCertifiedGraphFollow: 'app.certified.graph.follow',
2546
2593
  AppCertifiedLinkEvm: 'app.certified.link.evm',
2547
2594
  AppCertifiedLocation: 'app.certified.location',
2548
2595
  ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',