@hypercerts-org/lexicon 0.12.0 → 1.0.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 (36) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +92 -9
  3. package/SCHEMAS.md +122 -106
  4. package/dist/exports.d.ts +39 -2
  5. package/dist/exports.d.ts.map +1 -1
  6. package/dist/generated/exports.d.ts +39 -2
  7. package/dist/generated/exports.d.ts.map +1 -1
  8. package/dist/generated/lexicons.d.ts +74 -10
  9. package/dist/generated/lexicons.d.ts.map +1 -1
  10. package/dist/generated/types/app/certified/graph/follow.d.ts +18 -0
  11. package/dist/generated/types/app/certified/graph/follow.d.ts.map +1 -0
  12. package/dist/generated/types/app/certified/location.d.ts +1 -1
  13. package/dist/generated/types/app/certified/location.d.ts.map +1 -1
  14. package/dist/generated/types/org/hypercerts/workscope/tag.d.ts +2 -2
  15. package/dist/generated/types/org/hypercerts/workscope/tag.d.ts.map +1 -1
  16. package/dist/index.cjs +323 -224
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.mjs +315 -220
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/lexicons.cjs +38 -5
  21. package/dist/lexicons.cjs.map +1 -1
  22. package/dist/lexicons.d.ts +74 -10
  23. package/dist/lexicons.d.ts.map +1 -1
  24. package/dist/lexicons.mjs +38 -5
  25. package/dist/lexicons.mjs.map +1 -1
  26. package/dist/types/app/certified/graph/follow.d.ts +18 -0
  27. package/dist/types/app/certified/graph/follow.d.ts.map +1 -0
  28. package/dist/types/app/certified/location.d.ts +1 -1
  29. package/dist/types/app/certified/location.d.ts.map +1 -1
  30. package/dist/types/org/hypercerts/workscope/tag.d.ts +2 -2
  31. package/dist/types/org/hypercerts/workscope/tag.d.ts.map +1 -1
  32. package/lexicons/app/certified/graph/follow.json +32 -0
  33. package/lexicons/app/certified/location.json +1 -1
  34. package/lexicons/org/hypercerts/claim/activity.json +2 -2
  35. package/lexicons/org/hypercerts/workscope/tag.json +2 -2
  36. package/package.json +1 -1
package/dist/lexicons.cjs CHANGED
@@ -421,6 +421,38 @@ const schemaDict = {
421
421
  },
422
422
  },
423
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
+ },
424
456
  AppCertifiedLinkEvm: {
425
457
  lexicon: 1,
426
458
  id: 'app.certified.link.evm',
@@ -540,7 +572,7 @@ const schemaDict = {
540
572
  },
541
573
  locationType: {
542
574
  type: 'string',
543
- 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",
544
576
  knownValues: [
545
577
  'coordinate-decimal',
546
578
  'geojson-point',
@@ -1004,8 +1036,8 @@ const schemaDict = {
1004
1036
  scope: {
1005
1037
  type: 'string',
1006
1038
  description: 'The work scope description string.',
1007
- maxLength: 1000,
1008
- maxGraphemes: 100,
1039
+ maxLength: 10000,
1040
+ maxGraphemes: 1000,
1009
1041
  },
1010
1042
  },
1011
1043
  },
@@ -1844,7 +1876,7 @@ const schemaDict = {
1844
1876
  },
1845
1877
  category: {
1846
1878
  type: 'string',
1847
- description: 'Category type of this scope.',
1879
+ description: 'Category type of this scope. Values beyond the known set are permitted.',
1848
1880
  knownValues: ['topic', 'language', 'domain', 'method'],
1849
1881
  maxLength: 50,
1850
1882
  },
@@ -1861,7 +1893,7 @@ const schemaDict = {
1861
1893
  },
1862
1894
  status: {
1863
1895
  type: 'string',
1864
- 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.',
1865
1897
  knownValues: ['proposed', 'accepted', 'deprecated'],
1866
1898
  maxLength: 20,
1867
1899
  },
@@ -2557,6 +2589,7 @@ const ids = {
2557
2589
  AppCertifiedBadgeDefinition: 'app.certified.badge.definition',
2558
2590
  AppCertifiedBadgeResponse: 'app.certified.badge.response',
2559
2591
  AppCertifiedDefs: 'app.certified.defs',
2592
+ AppCertifiedGraphFollow: 'app.certified.graph.follow',
2560
2593
  AppCertifiedLinkEvm: 'app.certified.link.evm',
2561
2594
  AppCertifiedLocation: 'app.certified.location',
2562
2595
  ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',