@hypercerts-org/lexicon 0.10.0-beta.4 → 0.10.0-beta.6

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 (49) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/README.md +66 -311
  3. package/SCHEMAS.md +284 -0
  4. package/dist/exports.d.ts +76 -118
  5. package/dist/exports.d.ts.map +1 -1
  6. package/dist/generated/exports.d.ts +76 -118
  7. package/dist/generated/exports.d.ts.map +1 -1
  8. package/dist/generated/lexicons.d.ts +182 -266
  9. package/dist/generated/lexicons.d.ts.map +1 -1
  10. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +21 -18
  11. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  12. package/dist/generated/types/org/hypercerts/claim/collection.d.ts +9 -9
  13. package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -1
  14. package/dist/generated/types/org/hypercerts/claim/{contribution.d.ts → contributionDetails.d.ts} +8 -10
  15. package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  16. package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts +23 -0
  17. package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  18. package/dist/index.cjs +270 -357
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.mjs +263 -350
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/lexicons.cjs +102 -141
  23. package/dist/lexicons.cjs.map +1 -1
  24. package/dist/lexicons.d.ts +182 -266
  25. package/dist/lexicons.d.ts.map +1 -1
  26. package/dist/lexicons.mjs +102 -141
  27. package/dist/lexicons.mjs.map +1 -1
  28. package/dist/types/org/hypercerts/claim/activity.d.ts +21 -18
  29. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  30. package/dist/types/org/hypercerts/claim/collection.d.ts +9 -9
  31. package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -1
  32. package/dist/types/org/hypercerts/claim/{contribution.d.ts → contributionDetails.d.ts} +8 -10
  33. package/dist/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  34. package/dist/types/org/hypercerts/claim/contributorInformation.d.ts +23 -0
  35. package/dist/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  36. package/lexicons/org/hypercerts/claim/activity.json +29 -39
  37. package/lexicons/org/hypercerts/claim/collection.json +14 -17
  38. package/lexicons/org/hypercerts/claim/contributionDetails.json +43 -0
  39. package/lexicons/org/hypercerts/claim/contributorInformation.json +39 -0
  40. package/lexicons/org/hypercerts/claim/evaluation.json +1 -1
  41. package/package.json +6 -2
  42. package/dist/generated/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
  43. package/dist/generated/types/org/hypercerts/claim/project.d.ts +0 -29
  44. package/dist/generated/types/org/hypercerts/claim/project.d.ts.map +0 -1
  45. package/dist/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
  46. package/dist/types/org/hypercerts/claim/project.d.ts +0 -29
  47. package/dist/types/org/hypercerts/claim/project.d.ts.map +0 -1
  48. package/lexicons/org/hypercerts/claim/contribution.json +0 -50
  49. package/lexicons/org/hypercerts/claim/project.json +0 -64
@@ -1 +1 @@
1
- {"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../generated/lexicons.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,QAAQ,EAER,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAA;AAGzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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B,CAAC,CAAC,CAAC,CAAA;AACtB,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EACnD,CAAC,EAAE,OAAO,EACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,KAAK,GACnB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAiBtB,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;CAmBN,CAAA"}
package/dist/lexicons.mjs CHANGED
@@ -264,13 +264,7 @@ const schemaDict = {
264
264
  key: 'any',
265
265
  record: {
266
266
  type: 'object',
267
- required: [
268
- 'title',
269
- 'shortDescription',
270
- 'createdAt',
271
- 'startDate',
272
- 'endDate',
273
- ],
267
+ required: ['title', 'shortDescription', 'createdAt'],
274
268
  properties: {
275
269
  title: {
276
270
  type: 'string',
@@ -299,7 +293,8 @@ const schemaDict = {
299
293
  },
300
294
  workScope: {
301
295
  type: 'ref',
302
- ref: 'lex:org.hypercerts.claim.activity#workScope',
296
+ ref: 'lex:com.atproto.repo.strongRef',
297
+ description: 'A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions.',
303
298
  },
304
299
  startDate: {
305
300
  type: 'string',
@@ -311,12 +306,12 @@ const schemaDict = {
311
306
  format: 'datetime',
312
307
  description: 'When the work ended',
313
308
  },
314
- contributions: {
309
+ contributors: {
315
310
  type: 'array',
316
- description: 'A strong reference to the contributions done to create the impact in the hypercerts. The record referenced must conform with the lexicon org.hypercerts.claim.contribution.',
311
+ description: 'An array of contributor objects, each containing contributor information, weight, and contribution details.',
317
312
  items: {
318
313
  type: 'ref',
319
- ref: 'lex:com.atproto.repo.strongRef',
314
+ ref: 'lex:org.hypercerts.claim.activity#contributor',
320
315
  },
321
316
  },
322
317
  rights: {
@@ -332,11 +327,6 @@ const schemaDict = {
332
327
  ref: 'lex:com.atproto.repo.strongRef',
333
328
  },
334
329
  },
335
- project: {
336
- type: 'string',
337
- format: 'at-uri',
338
- description: 'A reference (AT-URI) to the project record that this activity is part of. The record referenced must conform with the lexicon org.hypercerts.claim.project. This activity must also be referenced by the project, establishing a bidirectional link.',
339
- },
340
330
  createdAt: {
341
331
  type: 'string',
342
332
  format: 'datetime',
@@ -345,36 +335,42 @@ const schemaDict = {
345
335
  },
346
336
  },
347
337
  },
348
- workScope: {
338
+ contributor: {
349
339
  type: 'object',
350
- description: 'Logical scope of the work using label-based conditions. All labels in `withinAllOf` must apply; at least one label in `withinAnyOf` must apply if provided; no label in `withinNoneOf` may apply.',
340
+ required: ['contributorInformation'],
351
341
  properties: {
352
- withinAllOf: {
353
- type: 'array',
354
- description: 'Labels that MUST all hold for the scope to apply.',
355
- items: {
356
- type: 'string',
357
- },
358
- maxLength: 100,
342
+ contributorInformation: {
343
+ type: 'union',
344
+ refs: [
345
+ 'lex:org.hypercerts.claim.activity#contributorIdentity',
346
+ 'lex:com.atproto.repo.strongRef',
347
+ ],
348
+ description: 'Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main.',
359
349
  },
360
- withinAnyOf: {
361
- type: 'array',
362
- description: 'Labels of which AT LEAST ONE must hold (optional). If omitted or empty, imposes no additional condition.',
363
- items: {
364
- type: 'string',
365
- },
366
- maxLength: 100,
350
+ weight: {
351
+ type: 'string',
352
+ description: 'The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.',
367
353
  },
368
- withinNoneOf: {
369
- type: 'array',
370
- description: 'Labels that MUST NOT hold for the scope to apply.',
371
- items: {
372
- type: 'string',
373
- },
374
- maxLength: 100,
354
+ contributionDetails: {
355
+ type: 'union',
356
+ refs: [
357
+ 'lex:org.hypercerts.claim.activity#contributorRole',
358
+ 'lex:com.atproto.repo.strongRef',
359
+ ],
360
+ description: 'Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main.',
375
361
  },
376
362
  },
377
363
  },
364
+ contributorIdentity: {
365
+ type: 'string',
366
+ description: 'Contributor information as a string (DID or identifier).',
367
+ },
368
+ contributorRole: {
369
+ type: 'string',
370
+ description: 'Contribution details as a string.',
371
+ maxLength: 10000,
372
+ maxGraphemes: 1000,
373
+ },
378
374
  activityWeight: {
379
375
  type: 'object',
380
376
  required: ['activity', 'weight'],
@@ -398,12 +394,16 @@ const schemaDict = {
398
394
  defs: {
399
395
  main: {
400
396
  type: 'record',
401
- description: 'A collection/group of hypercerts that have a specific property.',
397
+ description: 'A collection/group of items (activities and/or other collections). Collections support recursive nesting. Use app.certified.location as a sidecar (same TID) for location metadata.',
402
398
  key: 'tid',
403
399
  record: {
404
400
  type: 'object',
405
- required: ['title', 'activities', 'createdAt'],
401
+ required: ['title', 'items', 'createdAt'],
406
402
  properties: {
403
+ type: {
404
+ type: 'string',
405
+ description: "The type of this collection. Possible fields can be 'favorites', 'project', or any other type of collection.",
406
+ },
407
407
  title: {
408
408
  type: 'string',
409
409
  description: 'The title of this collection',
@@ -414,26 +414,19 @@ const schemaDict = {
414
414
  type: 'string',
415
415
  maxLength: 3000,
416
416
  maxGraphemes: 300,
417
- description: 'A short description of this collection',
417
+ description: 'Short summary of this collection, suitable for previews and list views',
418
418
  },
419
- avatar: {
420
- type: 'blob',
421
- description: 'Primary avatar image representing this collection across apps and views; typically a square image.',
422
- accept: ['image/png', 'image/jpeg'],
423
- maxSize: 1000000,
424
- },
425
- coverPhoto: {
426
- type: 'blob',
427
- description: 'The cover photo of this collection.',
428
- accept: ['image/png', 'image/jpeg'],
429
- maxSize: 1000000,
419
+ description: {
420
+ type: 'ref',
421
+ ref: 'lex:pub.leaflet.pages.linearDocument#main',
422
+ description: 'Rich-text description, represented as a Leaflet linear document.',
430
423
  },
431
- activities: {
424
+ items: {
432
425
  type: 'array',
433
- description: 'Array of activities with their associated weights in this collection',
426
+ description: 'Array of strong references to items in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection).',
434
427
  items: {
435
428
  type: 'ref',
436
- ref: 'lex:org.hypercerts.claim.activity#activityWeight',
429
+ ref: 'lex:com.atproto.repo.strongRef',
437
430
  },
438
431
  },
439
432
  createdAt: {
@@ -446,35 +439,28 @@ const schemaDict = {
446
439
  },
447
440
  },
448
441
  },
449
- OrgHypercertsClaimContribution: {
442
+ OrgHypercertsClaimContributionDetails: {
450
443
  lexicon: 1,
451
- id: 'org.hypercerts.claim.contribution',
444
+ id: 'org.hypercerts.claim.contributionDetails',
452
445
  defs: {
453
446
  main: {
454
447
  type: 'record',
455
- description: "A contribution made toward a hypercert's impact.",
448
+ description: 'Details about a specific contribution including role, description, and timeframe.',
456
449
  key: 'tid',
457
450
  record: {
458
451
  type: 'object',
459
- required: ['contributors', 'createdAt'],
452
+ required: ['createdAt'],
460
453
  properties: {
461
454
  role: {
462
455
  type: 'string',
463
- description: 'Role or title of the contributor(s).',
456
+ description: 'Role or title of the contributor.',
464
457
  maxLength: 100,
465
458
  },
466
- contributors: {
467
- type: 'array',
468
- description: 'List of the contributors (names, pseudonyms, or DIDs). If multiple contributors are stored in the same hypercertContribution, then they would have the exact same role.',
469
- items: {
470
- type: 'string',
471
- },
472
- },
473
- description: {
459
+ contributionDescription: {
474
460
  type: 'string',
475
- description: 'What the contribution concretely achieved',
476
- maxLength: 2000,
477
- maxGraphemes: 500,
461
+ description: 'What the contribution concretely was.',
462
+ maxLength: 10000,
463
+ maxGraphemes: 1000,
478
464
  },
479
465
  startDate: {
480
466
  type: 'string',
@@ -484,12 +470,51 @@ const schemaDict = {
484
470
  endDate: {
485
471
  type: 'string',
486
472
  format: 'datetime',
487
- description: 'When this contribution finished. This should be a subset of the hypercert timeframe.',
473
+ description: 'When this contribution finished. This should be a subset of the hypercert timeframe.',
488
474
  },
489
475
  createdAt: {
490
476
  type: 'string',
491
477
  format: 'datetime',
492
- description: 'Client-declared timestamp when this record was originally created',
478
+ description: 'Client-declared timestamp when this record was originally created.',
479
+ },
480
+ },
481
+ },
482
+ },
483
+ },
484
+ },
485
+ OrgHypercertsClaimContributorInformation: {
486
+ lexicon: 1,
487
+ id: 'org.hypercerts.claim.contributorInformation',
488
+ defs: {
489
+ main: {
490
+ type: 'record',
491
+ description: 'Contributor information including identifier, display name, and image.',
492
+ key: 'tid',
493
+ record: {
494
+ type: 'object',
495
+ required: ['createdAt'],
496
+ properties: {
497
+ identifier: {
498
+ type: 'string',
499
+ description: 'DID or a URI to a social profile of the contributor.',
500
+ },
501
+ displayName: {
502
+ type: 'string',
503
+ description: 'Display name of the contributor.',
504
+ maxLength: 100,
505
+ },
506
+ image: {
507
+ type: 'union',
508
+ refs: [
509
+ 'lex:org.hypercerts.defs#uri',
510
+ 'lex:org.hypercerts.defs#smallImage',
511
+ ],
512
+ description: 'The contributor visual representation as a URI or image blob.',
513
+ },
514
+ createdAt: {
515
+ type: 'string',
516
+ format: 'datetime',
517
+ description: 'Client-declared timestamp when this record was originally created.',
493
518
  },
494
519
  },
495
520
  },
@@ -555,7 +580,7 @@ const schemaDict = {
555
580
  },
556
581
  measurements: {
557
582
  type: 'array',
558
- description: 'Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement ',
583
+ description: 'Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement',
559
584
  items: {
560
585
  type: 'ref',
561
586
  ref: 'lex:com.atproto.repo.strongRef',
@@ -715,70 +740,6 @@ const schemaDict = {
715
740
  },
716
741
  },
717
742
  },
718
- OrgHypercertsClaimProject: {
719
- lexicon: 1,
720
- id: 'org.hypercerts.claim.project',
721
- defs: {
722
- main: {
723
- type: 'record',
724
- description: 'A project that can include multiple activities, each of which may be linked to at most one project.',
725
- key: 'tid',
726
- record: {
727
- type: 'object',
728
- required: ['title', 'shortDescription', 'createdAt'],
729
- properties: {
730
- title: {
731
- type: 'string',
732
- description: 'Title of this project',
733
- maxLength: 800,
734
- maxGraphemes: 80,
735
- },
736
- shortDescription: {
737
- type: 'string',
738
- maxLength: 3000,
739
- maxGraphemes: 300,
740
- description: 'Short summary of this project, suitable for previews and list views.',
741
- },
742
- description: {
743
- type: 'ref',
744
- ref: 'lex:pub.leaflet.pages.linearDocument#main',
745
- description: 'Rich-text description of this project, represented as a Leaflet linear document.',
746
- },
747
- avatar: {
748
- type: 'blob',
749
- description: 'Primary avatar image representing this project across apps and views; typically a square logo or project identity image.',
750
- accept: ['image/png', 'image/jpeg'],
751
- maxSize: 1000000,
752
- },
753
- coverPhoto: {
754
- type: 'blob',
755
- description: 'The cover photo of this project.',
756
- accept: ['image/png', 'image/jpeg'],
757
- maxSize: 1000000,
758
- },
759
- activities: {
760
- type: 'array',
761
- description: 'Array of activities with their associated weights in this project',
762
- items: {
763
- type: 'ref',
764
- ref: 'lex:org.hypercerts.claim.activity#activityWeight',
765
- },
766
- },
767
- location: {
768
- type: 'ref',
769
- ref: 'lex:com.atproto.repo.strongRef',
770
- description: 'A strong reference to a location record describing where the work for this project took place. The referenced record must conform to the app.certified.location lexicon.',
771
- },
772
- createdAt: {
773
- type: 'string',
774
- format: 'datetime',
775
- description: 'Client-declared timestamp when this record was originally created',
776
- },
777
- },
778
- },
779
- },
780
- },
781
- },
782
743
  OrgHypercertsClaimRights: {
783
744
  lexicon: 1,
784
745
  id: 'org.hypercerts.claim.rights',
@@ -985,11 +946,11 @@ const ids = {
985
946
  ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
986
947
  OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',
987
948
  OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',
988
- OrgHypercertsClaimContribution: 'org.hypercerts.claim.contribution',
949
+ OrgHypercertsClaimContributionDetails: 'org.hypercerts.claim.contributionDetails',
950
+ OrgHypercertsClaimContributorInformation: 'org.hypercerts.claim.contributorInformation',
989
951
  OrgHypercertsClaimEvaluation: 'org.hypercerts.claim.evaluation',
990
952
  OrgHypercertsClaimEvidence: 'org.hypercerts.claim.evidence',
991
953
  OrgHypercertsClaimMeasurement: 'org.hypercerts.claim.measurement',
992
- OrgHypercertsClaimProject: 'org.hypercerts.claim.project',
993
954
  OrgHypercertsClaimRights: 'org.hypercerts.claim.rights',
994
955
  OrgHypercertsDefs: 'org.hypercerts.defs',
995
956
  OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',