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

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 (45) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +66 -311
  3. package/SCHEMAS.md +276 -0
  4. package/dist/exports.d.ts +29 -128
  5. package/dist/exports.d.ts.map +1 -1
  6. package/dist/generated/exports.d.ts +29 -128
  7. package/dist/generated/exports.d.ts.map +1 -1
  8. package/dist/generated/lexicons.d.ts +82 -270
  9. package/dist/generated/lexicons.d.ts.map +1 -1
  10. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +4 -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/contributor.d.ts +31 -0
  15. package/dist/generated/types/org/hypercerts/claim/contributor.d.ts.map +1 -0
  16. package/dist/index.cjs +247 -495
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.mjs +239 -483
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/lexicons.cjs +45 -143
  21. package/dist/lexicons.cjs.map +1 -1
  22. package/dist/lexicons.d.ts +82 -270
  23. package/dist/lexicons.d.ts.map +1 -1
  24. package/dist/lexicons.mjs +45 -143
  25. package/dist/lexicons.mjs.map +1 -1
  26. package/dist/types/org/hypercerts/claim/activity.d.ts +4 -18
  27. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  28. package/dist/types/org/hypercerts/claim/collection.d.ts +9 -9
  29. package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -1
  30. package/dist/types/org/hypercerts/claim/contributor.d.ts +31 -0
  31. package/dist/types/org/hypercerts/claim/contributor.d.ts.map +1 -0
  32. package/lexicons/org/hypercerts/claim/activity.json +4 -44
  33. package/lexicons/org/hypercerts/claim/collection.json +14 -17
  34. package/lexicons/org/hypercerts/claim/{contribution.json → contributor.json} +24 -14
  35. package/lexicons/org/hypercerts/claim/evaluation.json +1 -1
  36. package/package.json +7 -3
  37. package/dist/generated/types/org/hypercerts/claim/contribution.d.ts +0 -24
  38. package/dist/generated/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
  39. package/dist/generated/types/org/hypercerts/claim/project.d.ts +0 -29
  40. package/dist/generated/types/org/hypercerts/claim/project.d.ts.map +0 -1
  41. package/dist/types/org/hypercerts/claim/contribution.d.ts +0 -24
  42. package/dist/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
  43. package/dist/types/org/hypercerts/claim/project.d.ts +0 -29
  44. package/dist/types/org/hypercerts/claim/project.d.ts.map +0 -1
  45. package/lexicons/org/hypercerts/claim/project.json +0 -64
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ function is$type($type, id, hash) {
16
16
  $type.startsWith(id) &&
17
17
  $type.endsWith(hash);
18
18
  }
19
- function is$typed$f(v, id, hash) {
19
+ function is$typed$e(v, id, hash) {
20
20
  return isObject(v) && '$type' in v && is$type(v.$type, id, hash);
21
21
  }
22
22
  function maybe$typed(v, id, hash) {
@@ -273,13 +273,7 @@ const schemaDict = {
273
273
  key: 'any',
274
274
  record: {
275
275
  type: 'object',
276
- required: [
277
- 'title',
278
- 'shortDescription',
279
- 'createdAt',
280
- 'startDate',
281
- 'endDate',
282
- ],
276
+ required: ['title', 'shortDescription', 'createdAt'],
283
277
  properties: {
284
278
  title: {
285
279
  type: 'string',
@@ -308,7 +302,8 @@ const schemaDict = {
308
302
  },
309
303
  workScope: {
310
304
  type: 'ref',
311
- ref: 'lex:org.hypercerts.claim.activity#workScope',
305
+ ref: 'lex:com.atproto.repo.strongRef',
306
+ description: 'A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions.',
312
307
  },
313
308
  startDate: {
314
309
  type: 'string',
@@ -322,7 +317,7 @@ const schemaDict = {
322
317
  },
323
318
  contributions: {
324
319
  type: 'array',
325
- 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.',
320
+ 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.contributor.',
326
321
  items: {
327
322
  type: 'ref',
328
323
  ref: 'lex:com.atproto.repo.strongRef',
@@ -341,11 +336,6 @@ const schemaDict = {
341
336
  ref: 'lex:com.atproto.repo.strongRef',
342
337
  },
343
338
  },
344
- project: {
345
- type: 'string',
346
- format: 'at-uri',
347
- 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.',
348
- },
349
339
  createdAt: {
350
340
  type: 'string',
351
341
  format: 'datetime',
@@ -354,36 +344,6 @@ const schemaDict = {
354
344
  },
355
345
  },
356
346
  },
357
- workScope: {
358
- type: 'object',
359
- 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.',
360
- properties: {
361
- withinAllOf: {
362
- type: 'array',
363
- description: 'Labels that MUST all hold for the scope to apply.',
364
- items: {
365
- type: 'string',
366
- },
367
- maxLength: 100,
368
- },
369
- withinAnyOf: {
370
- type: 'array',
371
- description: 'Labels of which AT LEAST ONE must hold (optional). If omitted or empty, imposes no additional condition.',
372
- items: {
373
- type: 'string',
374
- },
375
- maxLength: 100,
376
- },
377
- withinNoneOf: {
378
- type: 'array',
379
- description: 'Labels that MUST NOT hold for the scope to apply.',
380
- items: {
381
- type: 'string',
382
- },
383
- maxLength: 100,
384
- },
385
- },
386
- },
387
347
  activityWeight: {
388
348
  type: 'object',
389
349
  required: ['activity', 'weight'],
@@ -407,12 +367,16 @@ const schemaDict = {
407
367
  defs: {
408
368
  main: {
409
369
  type: 'record',
410
- description: 'A collection/group of hypercerts that have a specific property.',
370
+ 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.',
411
371
  key: 'tid',
412
372
  record: {
413
373
  type: 'object',
414
- required: ['title', 'activities', 'createdAt'],
374
+ required: ['title', 'items', 'createdAt'],
415
375
  properties: {
376
+ type: {
377
+ type: 'string',
378
+ description: "The type of this collection. Possible fields can be 'favorites', 'project', or any other type of collection.",
379
+ },
416
380
  title: {
417
381
  type: 'string',
418
382
  description: 'The title of this collection',
@@ -423,26 +387,19 @@ const schemaDict = {
423
387
  type: 'string',
424
388
  maxLength: 3000,
425
389
  maxGraphemes: 300,
426
- description: 'A short description of this collection',
427
- },
428
- avatar: {
429
- type: 'blob',
430
- description: 'Primary avatar image representing this collection across apps and views; typically a square image.',
431
- accept: ['image/png', 'image/jpeg'],
432
- maxSize: 1000000,
390
+ description: 'Short summary of this collection, suitable for previews and list views',
433
391
  },
434
- coverPhoto: {
435
- type: 'blob',
436
- description: 'The cover photo of this collection.',
437
- accept: ['image/png', 'image/jpeg'],
438
- maxSize: 1000000,
392
+ description: {
393
+ type: 'ref',
394
+ ref: 'lex:pub.leaflet.pages.linearDocument#main',
395
+ description: 'Rich-text description, represented as a Leaflet linear document.',
439
396
  },
440
- activities: {
397
+ items: {
441
398
  type: 'array',
442
- description: 'Array of activities with their associated weights in this collection',
399
+ 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).',
443
400
  items: {
444
401
  type: 'ref',
445
- ref: 'lex:org.hypercerts.claim.activity#activityWeight',
402
+ ref: 'lex:com.atproto.repo.strongRef',
446
403
  },
447
404
  },
448
405
  createdAt: {
@@ -455,9 +412,9 @@ const schemaDict = {
455
412
  },
456
413
  },
457
414
  },
458
- OrgHypercertsClaimContribution: {
415
+ OrgHypercertsClaimContributor: {
459
416
  lexicon: 1,
460
- id: 'org.hypercerts.claim.contribution',
417
+ id: 'org.hypercerts.claim.contributor',
461
418
  defs: {
462
419
  main: {
463
420
  type: 'record',
@@ -465,23 +422,33 @@ const schemaDict = {
465
422
  key: 'tid',
466
423
  record: {
467
424
  type: 'object',
468
- required: ['contributors', 'createdAt'],
425
+ required: ['createdAt'],
469
426
  properties: {
470
- role: {
427
+ identifier: {
428
+ type: 'string',
429
+ description: 'DID or a URI to a social profile of the contributor.',
430
+ },
431
+ displayName: {
471
432
  type: 'string',
472
- description: 'Role or title of the contributor(s).',
433
+ description: 'Display name of the contributor.',
473
434
  maxLength: 100,
474
435
  },
475
- contributors: {
476
- type: 'array',
477
- 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.',
478
- items: {
479
- type: 'string',
480
- },
436
+ image: {
437
+ type: 'union',
438
+ refs: [
439
+ 'lex:org.hypercerts.defs#uri',
440
+ 'lex:org.hypercerts.defs#smallImage',
441
+ ],
442
+ description: 'The contributor visual representation as a URI or image blob.',
481
443
  },
482
- description: {
444
+ role: {
483
445
  type: 'string',
484
- description: 'What the contribution concretely achieved',
446
+ description: 'Role or title of the contributor.',
447
+ maxLength: 100,
448
+ },
449
+ contributionDescription: {
450
+ type: 'string',
451
+ description: 'What the contribution concretely achieved.',
485
452
  maxLength: 2000,
486
453
  maxGraphemes: 500,
487
454
  },
@@ -493,12 +460,12 @@ const schemaDict = {
493
460
  endDate: {
494
461
  type: 'string',
495
462
  format: 'datetime',
496
- description: 'When this contribution finished. This should be a subset of the hypercert timeframe.',
463
+ description: 'When this contribution finished. This should be a subset of the hypercert timeframe.',
497
464
  },
498
465
  createdAt: {
499
466
  type: 'string',
500
467
  format: 'datetime',
501
- description: 'Client-declared timestamp when this record was originally created',
468
+ description: 'Client-declared timestamp when this record was originally created.',
502
469
  },
503
470
  },
504
471
  },
@@ -564,7 +531,7 @@ const schemaDict = {
564
531
  },
565
532
  measurements: {
566
533
  type: 'array',
567
- description: 'Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement ',
534
+ description: 'Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement',
568
535
  items: {
569
536
  type: 'ref',
570
537
  ref: 'lex:com.atproto.repo.strongRef',
@@ -724,70 +691,6 @@ const schemaDict = {
724
691
  },
725
692
  },
726
693
  },
727
- OrgHypercertsClaimProject: {
728
- lexicon: 1,
729
- id: 'org.hypercerts.claim.project',
730
- defs: {
731
- main: {
732
- type: 'record',
733
- description: 'A project that can include multiple activities, each of which may be linked to at most one project.',
734
- key: 'tid',
735
- record: {
736
- type: 'object',
737
- required: ['title', 'shortDescription', 'createdAt'],
738
- properties: {
739
- title: {
740
- type: 'string',
741
- description: 'Title of this project',
742
- maxLength: 800,
743
- maxGraphemes: 80,
744
- },
745
- shortDescription: {
746
- type: 'string',
747
- maxLength: 3000,
748
- maxGraphemes: 300,
749
- description: 'Short summary of this project, suitable for previews and list views.',
750
- },
751
- description: {
752
- type: 'ref',
753
- ref: 'lex:pub.leaflet.pages.linearDocument#main',
754
- description: 'Rich-text description of this project, represented as a Leaflet linear document.',
755
- },
756
- avatar: {
757
- type: 'blob',
758
- description: 'Primary avatar image representing this project across apps and views; typically a square logo or project identity image.',
759
- accept: ['image/png', 'image/jpeg'],
760
- maxSize: 1000000,
761
- },
762
- coverPhoto: {
763
- type: 'blob',
764
- description: 'The cover photo of this project.',
765
- accept: ['image/png', 'image/jpeg'],
766
- maxSize: 1000000,
767
- },
768
- activities: {
769
- type: 'array',
770
- description: 'Array of activities with their associated weights in this project',
771
- items: {
772
- type: 'ref',
773
- ref: 'lex:org.hypercerts.claim.activity#activityWeight',
774
- },
775
- },
776
- location: {
777
- type: 'ref',
778
- ref: 'lex:com.atproto.repo.strongRef',
779
- 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.',
780
- },
781
- createdAt: {
782
- type: 'string',
783
- format: 'datetime',
784
- description: 'Client-declared timestamp when this record was originally created',
785
- },
786
- },
787
- },
788
- },
789
- },
790
- },
791
694
  OrgHypercertsClaimRights: {
792
695
  lexicon: 1,
793
696
  id: 'org.hypercerts.claim.rights',
@@ -977,8 +880,8 @@ const schemaDict = {
977
880
  };
978
881
  const schemas = Object.values(schemaDict);
979
882
  const lexicons = new Lexicons(schemas);
980
- function validate$f(v, id, hash, requiredType) {
981
- return (requiredType ? is$typed$f : maybe$typed)(v, id, hash)
883
+ function validate$e(v, id, hash, requiredType) {
884
+ return (requiredType ? is$typed$e : maybe$typed)(v, id, hash)
982
885
  ? lexicons.validate(`${id}#${hash}`, v)
983
886
  : {
984
887
  success: false,
@@ -994,19 +897,18 @@ const ids = {
994
897
  ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
995
898
  OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',
996
899
  OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',
997
- OrgHypercertsClaimContribution: 'org.hypercerts.claim.contribution',
900
+ OrgHypercertsClaimContributor: 'org.hypercerts.claim.contributor',
998
901
  OrgHypercertsClaimEvaluation: 'org.hypercerts.claim.evaluation',
999
902
  OrgHypercertsClaimEvidence: 'org.hypercerts.claim.evidence',
1000
903
  OrgHypercertsClaimMeasurement: 'org.hypercerts.claim.measurement',
1001
- OrgHypercertsClaimProject: 'org.hypercerts.claim.project',
1002
904
  OrgHypercertsClaimRights: 'org.hypercerts.claim.rights',
1003
905
  OrgHypercertsDefs: 'org.hypercerts.defs',
1004
906
  OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',
1005
907
  };
1006
908
 
1007
- var lexicon$f = 1;
1008
- var id$u = "app.certified.badge.award";
1009
- var defs$h = {
909
+ var lexicon$e = 1;
910
+ var id$s = "app.certified.badge.award";
911
+ var defs$g = {
1010
912
  main: {
1011
913
  type: "record",
1012
914
  description: "Records a badge award to a user, project, or activity claim.",
@@ -1046,14 +948,14 @@ var defs$h = {
1046
948
  }
1047
949
  };
1048
950
  var BADGE_AWARD_LEXICON_JSON = {
1049
- lexicon: lexicon$f,
1050
- id: id$u,
1051
- defs: defs$h
951
+ lexicon: lexicon$e,
952
+ id: id$s,
953
+ defs: defs$g
1052
954
  };
1053
955
 
1054
- var lexicon$e = 1;
1055
- var id$t = "app.certified.badge.definition";
1056
- var defs$g = {
956
+ var lexicon$d = 1;
957
+ var id$r = "app.certified.badge.definition";
958
+ var defs$f = {
1057
959
  main: {
1058
960
  type: "record",
1059
961
  description: "Defines a badge that can be awarded via badge award records to users, projects, or activity claims.",
@@ -1108,14 +1010,14 @@ var defs$g = {
1108
1010
  }
1109
1011
  };
1110
1012
  var BADGE_DEFINITION_LEXICON_JSON = {
1111
- lexicon: lexicon$e,
1112
- id: id$t,
1113
- defs: defs$g
1013
+ lexicon: lexicon$d,
1014
+ id: id$r,
1015
+ defs: defs$f
1114
1016
  };
1115
1017
 
1116
- var lexicon$d = 1;
1117
- var id$s = "app.certified.badge.response";
1118
- var defs$f = {
1018
+ var lexicon$c = 1;
1019
+ var id$q = "app.certified.badge.response";
1020
+ var defs$e = {
1119
1021
  main: {
1120
1022
  type: "record",
1121
1023
  description: "Recipient response to a badge award.",
@@ -1155,15 +1057,15 @@ var defs$f = {
1155
1057
  }
1156
1058
  };
1157
1059
  var BADGE_RESPONSE_LEXICON_JSON = {
1158
- lexicon: lexicon$d,
1159
- id: id$s,
1160
- defs: defs$f
1060
+ lexicon: lexicon$c,
1061
+ id: id$q,
1062
+ defs: defs$e
1161
1063
  };
1162
1064
 
1163
- var lexicon$c = 1;
1164
- var id$r = "app.certified.defs";
1065
+ var lexicon$b = 1;
1066
+ var id$p = "app.certified.defs";
1165
1067
  var description$1 = "Common type definitions used across certified protocols.";
1166
- var defs$e = {
1068
+ var defs$d = {
1167
1069
  did: {
1168
1070
  type: "string",
1169
1071
  format: "did",
@@ -1171,15 +1073,15 @@ var defs$e = {
1171
1073
  }
1172
1074
  };
1173
1075
  var CERTIFIED_DEFS_LEXICON_JSON = {
1174
- lexicon: lexicon$c,
1175
- id: id$r,
1076
+ lexicon: lexicon$b,
1077
+ id: id$p,
1176
1078
  description: description$1,
1177
- defs: defs$e
1079
+ defs: defs$d
1178
1080
  };
1179
1081
 
1180
- var lexicon$b = 1;
1181
- var id$q = "app.certified.location";
1182
- var defs$d = {
1082
+ var lexicon$a = 1;
1083
+ var id$o = "app.certified.location";
1084
+ var defs$c = {
1183
1085
  main: {
1184
1086
  type: "record",
1185
1087
  description: "A location reference",
@@ -1244,15 +1146,15 @@ var defs$d = {
1244
1146
  }
1245
1147
  };
1246
1148
  var LOCATION_LEXICON_JSON = {
1247
- lexicon: lexicon$b,
1248
- id: id$q,
1249
- defs: defs$d
1149
+ lexicon: lexicon$a,
1150
+ id: id$o,
1151
+ defs: defs$c
1250
1152
  };
1251
1153
 
1252
- var lexicon$a = 1;
1253
- var id$p = "com.atproto.repo.strongRef";
1154
+ var lexicon$9 = 1;
1155
+ var id$n = "com.atproto.repo.strongRef";
1254
1156
  var description = "A URI with a content-hash fingerprint.";
1255
- var defs$c = {
1157
+ var defs$b = {
1256
1158
  main: {
1257
1159
  type: "object",
1258
1160
  required: [
@@ -1272,15 +1174,15 @@ var defs$c = {
1272
1174
  }
1273
1175
  };
1274
1176
  var STRONGREF_LEXICON_JSON = {
1275
- lexicon: lexicon$a,
1276
- id: id$p,
1177
+ lexicon: lexicon$9,
1178
+ id: id$n,
1277
1179
  description: description,
1278
- defs: defs$c
1180
+ defs: defs$b
1279
1181
  };
1280
1182
 
1281
- var lexicon$9 = 1;
1282
- var id$o = "org.hypercerts.claim.activity";
1283
- var defs$b = {
1183
+ var lexicon$8 = 1;
1184
+ var id$m = "org.hypercerts.claim.activity";
1185
+ var defs$a = {
1284
1186
  main: {
1285
1187
  type: "record",
1286
1188
  description: "A hypercert record tracking impact work.",
@@ -1290,9 +1192,7 @@ var defs$b = {
1290
1192
  required: [
1291
1193
  "title",
1292
1194
  "shortDescription",
1293
- "createdAt",
1294
- "startDate",
1295
- "endDate"
1195
+ "createdAt"
1296
1196
  ],
1297
1197
  properties: {
1298
1198
  title: {
@@ -1322,7 +1222,8 @@ var defs$b = {
1322
1222
  },
1323
1223
  workScope: {
1324
1224
  type: "ref",
1325
- ref: "#workScope"
1225
+ ref: "com.atproto.repo.strongRef",
1226
+ description: "A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions."
1326
1227
  },
1327
1228
  startDate: {
1328
1229
  type: "string",
@@ -1336,7 +1237,7 @@ var defs$b = {
1336
1237
  },
1337
1238
  contributions: {
1338
1239
  type: "array",
1339
- 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.",
1240
+ 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.contributor.",
1340
1241
  items: {
1341
1242
  type: "ref",
1342
1243
  ref: "com.atproto.repo.strongRef"
@@ -1355,11 +1256,6 @@ var defs$b = {
1355
1256
  ref: "com.atproto.repo.strongRef"
1356
1257
  }
1357
1258
  },
1358
- project: {
1359
- type: "string",
1360
- format: "at-uri",
1361
- 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."
1362
- },
1363
1259
  createdAt: {
1364
1260
  type: "string",
1365
1261
  format: "datetime",
@@ -1368,36 +1264,6 @@ var defs$b = {
1368
1264
  }
1369
1265
  }
1370
1266
  },
1371
- workScope: {
1372
- type: "object",
1373
- 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.",
1374
- properties: {
1375
- withinAllOf: {
1376
- type: "array",
1377
- description: "Labels that MUST all hold for the scope to apply.",
1378
- items: {
1379
- type: "string"
1380
- },
1381
- maxLength: 100
1382
- },
1383
- withinAnyOf: {
1384
- type: "array",
1385
- description: "Labels of which AT LEAST ONE must hold (optional). If omitted or empty, imposes no additional condition.",
1386
- items: {
1387
- type: "string"
1388
- },
1389
- maxLength: 100
1390
- },
1391
- withinNoneOf: {
1392
- type: "array",
1393
- description: "Labels that MUST NOT hold for the scope to apply.",
1394
- items: {
1395
- type: "string"
1396
- },
1397
- maxLength: 100
1398
- }
1399
- }
1400
- },
1401
1267
  activityWeight: {
1402
1268
  type: "object",
1403
1269
  required: [
@@ -1418,26 +1284,30 @@ var defs$b = {
1418
1284
  }
1419
1285
  };
1420
1286
  var ACTIVITY_LEXICON_JSON = {
1421
- lexicon: lexicon$9,
1422
- id: id$o,
1423
- defs: defs$b
1287
+ lexicon: lexicon$8,
1288
+ id: id$m,
1289
+ defs: defs$a
1424
1290
  };
1425
1291
 
1426
- var lexicon$8 = 1;
1427
- var id$n = "org.hypercerts.claim.collection";
1428
- var defs$a = {
1292
+ var lexicon$7 = 1;
1293
+ var id$l = "org.hypercerts.claim.collection";
1294
+ var defs$9 = {
1429
1295
  main: {
1430
1296
  type: "record",
1431
- description: "A collection/group of hypercerts that have a specific property.",
1297
+ 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.",
1432
1298
  key: "tid",
1433
1299
  record: {
1434
1300
  type: "object",
1435
1301
  required: [
1436
1302
  "title",
1437
- "activities",
1303
+ "items",
1438
1304
  "createdAt"
1439
1305
  ],
1440
1306
  properties: {
1307
+ type: {
1308
+ type: "string",
1309
+ description: "The type of this collection. Possible fields can be 'favorites', 'project', or any other type of collection."
1310
+ },
1441
1311
  title: {
1442
1312
  type: "string",
1443
1313
  description: "The title of this collection",
@@ -1448,32 +1318,19 @@ var defs$a = {
1448
1318
  type: "string",
1449
1319
  maxLength: 3000,
1450
1320
  maxGraphemes: 300,
1451
- description: "A short description of this collection"
1452
- },
1453
- avatar: {
1454
- type: "blob",
1455
- description: "Primary avatar image representing this collection across apps and views; typically a square image.",
1456
- accept: [
1457
- "image/png",
1458
- "image/jpeg"
1459
- ],
1460
- maxSize: 1000000
1321
+ description: "Short summary of this collection, suitable for previews and list views"
1461
1322
  },
1462
- coverPhoto: {
1463
- type: "blob",
1464
- description: "The cover photo of this collection.",
1465
- accept: [
1466
- "image/png",
1467
- "image/jpeg"
1468
- ],
1469
- maxSize: 1000000
1323
+ description: {
1324
+ type: "ref",
1325
+ ref: "pub.leaflet.pages.linearDocument#main",
1326
+ description: "Rich-text description, represented as a Leaflet linear document."
1470
1327
  },
1471
- activities: {
1328
+ items: {
1472
1329
  type: "array",
1473
- description: "Array of activities with their associated weights in this collection",
1330
+ 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).",
1474
1331
  items: {
1475
1332
  type: "ref",
1476
- ref: "org.hypercerts.claim.activity#activityWeight"
1333
+ ref: "com.atproto.repo.strongRef"
1477
1334
  }
1478
1335
  },
1479
1336
  createdAt: {
@@ -1486,14 +1343,14 @@ var defs$a = {
1486
1343
  }
1487
1344
  };
1488
1345
  var COLLECTION_LEXICON_JSON = {
1489
- lexicon: lexicon$8,
1490
- id: id$n,
1491
- defs: defs$a
1346
+ lexicon: lexicon$7,
1347
+ id: id$l,
1348
+ defs: defs$9
1492
1349
  };
1493
1350
 
1494
- var lexicon$7 = 1;
1495
- var id$m = "org.hypercerts.claim.contribution";
1496
- var defs$9 = {
1351
+ var lexicon$6 = 1;
1352
+ var id$k = "org.hypercerts.claim.contributor";
1353
+ var defs$8 = {
1497
1354
  main: {
1498
1355
  type: "record",
1499
1356
  description: "A contribution made toward a hypercert's impact.",
@@ -1501,25 +1358,34 @@ var defs$9 = {
1501
1358
  record: {
1502
1359
  type: "object",
1503
1360
  required: [
1504
- "contributors",
1505
1361
  "createdAt"
1506
1362
  ],
1507
1363
  properties: {
1508
- role: {
1364
+ identifier: {
1365
+ type: "string",
1366
+ description: "DID or a URI to a social profile of the contributor."
1367
+ },
1368
+ displayName: {
1509
1369
  type: "string",
1510
- description: "Role or title of the contributor(s).",
1370
+ description: "Display name of the contributor.",
1511
1371
  maxLength: 100
1512
1372
  },
1513
- contributors: {
1514
- type: "array",
1515
- 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.",
1516
- items: {
1517
- type: "string"
1518
- }
1373
+ image: {
1374
+ type: "union",
1375
+ refs: [
1376
+ "org.hypercerts.defs#uri",
1377
+ "org.hypercerts.defs#smallImage"
1378
+ ],
1379
+ description: "The contributor visual representation as a URI or image blob."
1519
1380
  },
1520
- description: {
1381
+ role: {
1382
+ type: "string",
1383
+ description: "Role or title of the contributor.",
1384
+ maxLength: 100
1385
+ },
1386
+ contributionDescription: {
1521
1387
  type: "string",
1522
- description: "What the contribution concretely achieved",
1388
+ description: "What the contribution concretely achieved.",
1523
1389
  maxLength: 2000,
1524
1390
  maxGraphemes: 500
1525
1391
  },
@@ -1531,26 +1397,26 @@ var defs$9 = {
1531
1397
  endDate: {
1532
1398
  type: "string",
1533
1399
  format: "datetime",
1534
- description: "When this contribution finished. This should be a subset of the hypercert timeframe."
1400
+ description: "When this contribution finished. This should be a subset of the hypercert timeframe."
1535
1401
  },
1536
1402
  createdAt: {
1537
1403
  type: "string",
1538
1404
  format: "datetime",
1539
- description: "Client-declared timestamp when this record was originally created"
1405
+ description: "Client-declared timestamp when this record was originally created."
1540
1406
  }
1541
1407
  }
1542
1408
  }
1543
1409
  }
1544
1410
  };
1545
- var CONTRIBUTION_LEXICON_JSON = {
1546
- lexicon: lexicon$7,
1547
- id: id$m,
1548
- defs: defs$9
1411
+ var CONTRIBUTOR_LEXICON_JSON = {
1412
+ lexicon: lexicon$6,
1413
+ id: id$k,
1414
+ defs: defs$8
1549
1415
  };
1550
1416
 
1551
- var lexicon$6 = 1;
1552
- var id$l = "org.hypercerts.claim.evaluation";
1553
- var defs$8 = {
1417
+ var lexicon$5 = 1;
1418
+ var id$j = "org.hypercerts.claim.evaluation";
1419
+ var defs$7 = {
1554
1420
  score: {
1555
1421
  type: "object",
1556
1422
  description: "Overall score for an evaluation on a numeric scale.",
@@ -1614,7 +1480,7 @@ var defs$8 = {
1614
1480
  },
1615
1481
  measurements: {
1616
1482
  type: "array",
1617
- description: "Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement ",
1483
+ description: "Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement",
1618
1484
  items: {
1619
1485
  type: "ref",
1620
1486
  ref: "com.atproto.repo.strongRef"
@@ -1647,14 +1513,14 @@ var defs$8 = {
1647
1513
  }
1648
1514
  };
1649
1515
  var EVALUATION_LEXICON_JSON = {
1650
- lexicon: lexicon$6,
1651
- id: id$l,
1652
- defs: defs$8
1516
+ lexicon: lexicon$5,
1517
+ id: id$j,
1518
+ defs: defs$7
1653
1519
  };
1654
1520
 
1655
- var lexicon$5 = 1;
1656
- var id$k = "org.hypercerts.claim.evidence";
1657
- var defs$7 = {
1521
+ var lexicon$4 = 1;
1522
+ var id$i = "org.hypercerts.claim.evidence";
1523
+ var defs$6 = {
1658
1524
  main: {
1659
1525
  type: "record",
1660
1526
  description: "A piece of evidence related to a hypercert record (e.g. an activity, project, claim, or evaluation). Evidence may support, clarify, or challenge the referenced subject.",
@@ -1716,14 +1582,14 @@ var defs$7 = {
1716
1582
  }
1717
1583
  };
1718
1584
  var EVIDENCE_LEXICON_JSON = {
1719
- lexicon: lexicon$5,
1720
- id: id$k,
1721
- defs: defs$7
1585
+ lexicon: lexicon$4,
1586
+ id: id$i,
1587
+ defs: defs$6
1722
1588
  };
1723
1589
 
1724
- var lexicon$4 = 1;
1725
- var id$j = "org.hypercerts.claim.measurement";
1726
- var defs$6 = {
1590
+ var lexicon$3 = 1;
1591
+ var id$h = "org.hypercerts.claim.measurement";
1592
+ var defs$5 = {
1727
1593
  main: {
1728
1594
  type: "record",
1729
1595
  description: "Measurement data related to a hypercert record (e.g. an activity and its impact).",
@@ -1795,91 +1661,13 @@ var defs$6 = {
1795
1661
  }
1796
1662
  };
1797
1663
  var MEASUREMENT_LEXICON_JSON = {
1798
- lexicon: lexicon$4,
1799
- id: id$j,
1800
- defs: defs$6
1801
- };
1802
-
1803
- var lexicon$3 = 1;
1804
- var id$i = "org.hypercerts.claim.project";
1805
- var defs$5 = {
1806
- main: {
1807
- type: "record",
1808
- description: "A project that can include multiple activities, each of which may be linked to at most one project.",
1809
- key: "tid",
1810
- record: {
1811
- type: "object",
1812
- required: [
1813
- "title",
1814
- "shortDescription",
1815
- "createdAt"
1816
- ],
1817
- properties: {
1818
- title: {
1819
- type: "string",
1820
- description: "Title of this project",
1821
- maxLength: 800,
1822
- maxGraphemes: 80
1823
- },
1824
- shortDescription: {
1825
- type: "string",
1826
- maxLength: 3000,
1827
- maxGraphemes: 300,
1828
- description: "Short summary of this project, suitable for previews and list views."
1829
- },
1830
- description: {
1831
- type: "ref",
1832
- ref: "pub.leaflet.pages.linearDocument#main",
1833
- description: "Rich-text description of this project, represented as a Leaflet linear document."
1834
- },
1835
- avatar: {
1836
- type: "blob",
1837
- description: "Primary avatar image representing this project across apps and views; typically a square logo or project identity image.",
1838
- accept: [
1839
- "image/png",
1840
- "image/jpeg"
1841
- ],
1842
- maxSize: 1000000
1843
- },
1844
- coverPhoto: {
1845
- type: "blob",
1846
- description: "The cover photo of this project.",
1847
- accept: [
1848
- "image/png",
1849
- "image/jpeg"
1850
- ],
1851
- maxSize: 1000000
1852
- },
1853
- activities: {
1854
- type: "array",
1855
- description: "Array of activities with their associated weights in this project",
1856
- items: {
1857
- type: "ref",
1858
- ref: "org.hypercerts.claim.activity#activityWeight"
1859
- }
1860
- },
1861
- location: {
1862
- type: "ref",
1863
- ref: "com.atproto.repo.strongRef",
1864
- 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."
1865
- },
1866
- createdAt: {
1867
- type: "string",
1868
- format: "datetime",
1869
- description: "Client-declared timestamp when this record was originally created"
1870
- }
1871
- }
1872
- }
1873
- }
1874
- };
1875
- var PROJECT_LEXICON_JSON = {
1876
1664
  lexicon: lexicon$3,
1877
- id: id$i,
1665
+ id: id$h,
1878
1666
  defs: defs$5
1879
1667
  };
1880
1668
 
1881
1669
  var lexicon$2 = 1;
1882
- var id$h = "org.hypercerts.claim.rights";
1670
+ var id$g = "org.hypercerts.claim.rights";
1883
1671
  var defs$4 = {
1884
1672
  main: {
1885
1673
  type: "record",
@@ -1927,12 +1715,12 @@ var defs$4 = {
1927
1715
  };
1928
1716
  var RIGHTS_LEXICON_JSON = {
1929
1717
  lexicon: lexicon$2,
1930
- id: id$h,
1718
+ id: id$g,
1931
1719
  defs: defs$4
1932
1720
  };
1933
1721
 
1934
1722
  var lexicon$1 = 1;
1935
- var id$g = "org.hypercerts.defs";
1723
+ var id$f = "org.hypercerts.defs";
1936
1724
  var defs$3 = {
1937
1725
  uri: {
1938
1726
  type: "object",
@@ -2026,12 +1814,12 @@ var defs$3 = {
2026
1814
  };
2027
1815
  var HYPERCERTS_DEFS_LEXICON_JSON = {
2028
1816
  lexicon: lexicon$1,
2029
- id: id$g,
1817
+ id: id$f,
2030
1818
  defs: defs$3
2031
1819
  };
2032
1820
 
2033
1821
  var lexicon = 1;
2034
- var id$f = "org.hypercerts.funding.receipt";
1822
+ var id$e = "org.hypercerts.funding.receipt";
2035
1823
  var defs$2 = {
2036
1824
  main: {
2037
1825
  type: "record",
@@ -2102,30 +1890,12 @@ var defs$2 = {
2102
1890
  };
2103
1891
  var FUNDING_RECEIPT_LEXICON_JSON = {
2104
1892
  lexicon: lexicon,
2105
- id: id$f,
1893
+ id: id$e,
2106
1894
  defs: defs$2
2107
1895
  };
2108
1896
 
2109
- const is$typed$e = is$typed$f, validate$e = validate$f;
2110
- const id$e = 'app.certified.badge.award';
2111
- const hashMain$d = 'main';
2112
- function isMain$d(v) {
2113
- return is$typed$e(v, id$e, hashMain$d);
2114
- }
2115
- function validateMain$d(v) {
2116
- return validate$e(v, id$e, hashMain$d, true);
2117
- }
2118
-
2119
- var award = /*#__PURE__*/Object.freeze({
2120
- __proto__: null,
2121
- isMain: isMain$d,
2122
- isRecord: isMain$d,
2123
- validateMain: validateMain$d,
2124
- validateRecord: validateMain$d
2125
- });
2126
-
2127
- const is$typed$d = is$typed$f, validate$d = validate$f;
2128
- const id$d = 'app.certified.badge.definition';
1897
+ const is$typed$d = is$typed$e, validate$d = validate$e;
1898
+ const id$d = 'app.certified.badge.award';
2129
1899
  const hashMain$c = 'main';
2130
1900
  function isMain$c(v) {
2131
1901
  return is$typed$d(v, id$d, hashMain$c);
@@ -2134,7 +1904,7 @@ function validateMain$c(v) {
2134
1904
  return validate$d(v, id$d, hashMain$c, true);
2135
1905
  }
2136
1906
 
2137
- var definition = /*#__PURE__*/Object.freeze({
1907
+ var award = /*#__PURE__*/Object.freeze({
2138
1908
  __proto__: null,
2139
1909
  isMain: isMain$c,
2140
1910
  isRecord: isMain$c,
@@ -2142,8 +1912,8 @@ var definition = /*#__PURE__*/Object.freeze({
2142
1912
  validateRecord: validateMain$c
2143
1913
  });
2144
1914
 
2145
- const is$typed$c = is$typed$f, validate$c = validate$f;
2146
- const id$c = 'app.certified.badge.response';
1915
+ const is$typed$c = is$typed$e, validate$c = validate$e;
1916
+ const id$c = 'app.certified.badge.definition';
2147
1917
  const hashMain$b = 'main';
2148
1918
  function isMain$b(v) {
2149
1919
  return is$typed$c(v, id$c, hashMain$b);
@@ -2152,7 +1922,7 @@ function validateMain$b(v) {
2152
1922
  return validate$c(v, id$c, hashMain$b, true);
2153
1923
  }
2154
1924
 
2155
- var response = /*#__PURE__*/Object.freeze({
1925
+ var definition = /*#__PURE__*/Object.freeze({
2156
1926
  __proto__: null,
2157
1927
  isMain: isMain$b,
2158
1928
  isRecord: isMain$b,
@@ -2160,12 +1930,8 @@ var response = /*#__PURE__*/Object.freeze({
2160
1930
  validateRecord: validateMain$b
2161
1931
  });
2162
1932
 
2163
- var defs$1 = /*#__PURE__*/Object.freeze({
2164
- __proto__: null
2165
- });
2166
-
2167
- const is$typed$b = is$typed$f, validate$b = validate$f;
2168
- const id$b = 'app.certified.location';
1933
+ const is$typed$b = is$typed$e, validate$b = validate$e;
1934
+ const id$b = 'app.certified.badge.response';
2169
1935
  const hashMain$a = 'main';
2170
1936
  function isMain$a(v) {
2171
1937
  return is$typed$b(v, id$b, hashMain$a);
@@ -2174,7 +1940,7 @@ function validateMain$a(v) {
2174
1940
  return validate$b(v, id$b, hashMain$a, true);
2175
1941
  }
2176
1942
 
2177
- var location = /*#__PURE__*/Object.freeze({
1943
+ var response = /*#__PURE__*/Object.freeze({
2178
1944
  __proto__: null,
2179
1945
  isMain: isMain$a,
2180
1946
  isRecord: isMain$a,
@@ -2182,60 +1948,46 @@ var location = /*#__PURE__*/Object.freeze({
2182
1948
  validateRecord: validateMain$a
2183
1949
  });
2184
1950
 
2185
- const is$typed$a = is$typed$f, validate$a = validate$f;
2186
- const id$a = 'com.atproto.repo.strongRef';
1951
+ var defs$1 = /*#__PURE__*/Object.freeze({
1952
+ __proto__: null
1953
+ });
1954
+
1955
+ const is$typed$a = is$typed$e, validate$a = validate$e;
1956
+ const id$a = 'app.certified.location';
2187
1957
  const hashMain$9 = 'main';
2188
1958
  function isMain$9(v) {
2189
1959
  return is$typed$a(v, id$a, hashMain$9);
2190
1960
  }
2191
1961
  function validateMain$9(v) {
2192
- return validate$a(v, id$a, hashMain$9);
1962
+ return validate$a(v, id$a, hashMain$9, true);
2193
1963
  }
2194
1964
 
2195
- var strongRef = /*#__PURE__*/Object.freeze({
1965
+ var location = /*#__PURE__*/Object.freeze({
2196
1966
  __proto__: null,
2197
1967
  isMain: isMain$9,
2198
- validateMain: validateMain$9
1968
+ isRecord: isMain$9,
1969
+ validateMain: validateMain$9,
1970
+ validateRecord: validateMain$9
2199
1971
  });
2200
1972
 
2201
- const is$typed$9 = is$typed$f, validate$9 = validate$f;
2202
- const id$9 = 'org.hypercerts.claim.activity';
1973
+ const is$typed$9 = is$typed$e, validate$9 = validate$e;
1974
+ const id$9 = 'com.atproto.repo.strongRef';
2203
1975
  const hashMain$8 = 'main';
2204
1976
  function isMain$8(v) {
2205
1977
  return is$typed$9(v, id$9, hashMain$8);
2206
1978
  }
2207
1979
  function validateMain$8(v) {
2208
- return validate$9(v, id$9, hashMain$8, true);
2209
- }
2210
- const hashWorkScope = 'workScope';
2211
- function isWorkScope(v) {
2212
- return is$typed$9(v, id$9, hashWorkScope);
2213
- }
2214
- function validateWorkScope(v) {
2215
- return validate$9(v, id$9, hashWorkScope);
2216
- }
2217
- const hashActivityWeight = 'activityWeight';
2218
- function isActivityWeight(v) {
2219
- return is$typed$9(v, id$9, hashActivityWeight);
2220
- }
2221
- function validateActivityWeight(v) {
2222
- return validate$9(v, id$9, hashActivityWeight);
1980
+ return validate$9(v, id$9, hashMain$8);
2223
1981
  }
2224
1982
 
2225
- var activity = /*#__PURE__*/Object.freeze({
1983
+ var strongRef = /*#__PURE__*/Object.freeze({
2226
1984
  __proto__: null,
2227
- isActivityWeight: isActivityWeight,
2228
1985
  isMain: isMain$8,
2229
- isRecord: isMain$8,
2230
- isWorkScope: isWorkScope,
2231
- validateActivityWeight: validateActivityWeight,
2232
- validateMain: validateMain$8,
2233
- validateRecord: validateMain$8,
2234
- validateWorkScope: validateWorkScope
1986
+ validateMain: validateMain$8
2235
1987
  });
2236
1988
 
2237
- const is$typed$8 = is$typed$f, validate$8 = validate$f;
2238
- const id$8 = 'org.hypercerts.claim.collection';
1989
+ const is$typed$8 = is$typed$e, validate$8 = validate$e;
1990
+ const id$8 = 'org.hypercerts.claim.activity';
2239
1991
  const hashMain$7 = 'main';
2240
1992
  function isMain$7(v) {
2241
1993
  return is$typed$8(v, id$8, hashMain$7);
@@ -2243,17 +1995,26 @@ function isMain$7(v) {
2243
1995
  function validateMain$7(v) {
2244
1996
  return validate$8(v, id$8, hashMain$7, true);
2245
1997
  }
1998
+ const hashActivityWeight = 'activityWeight';
1999
+ function isActivityWeight(v) {
2000
+ return is$typed$8(v, id$8, hashActivityWeight);
2001
+ }
2002
+ function validateActivityWeight(v) {
2003
+ return validate$8(v, id$8, hashActivityWeight);
2004
+ }
2246
2005
 
2247
- var collection = /*#__PURE__*/Object.freeze({
2006
+ var activity = /*#__PURE__*/Object.freeze({
2248
2007
  __proto__: null,
2008
+ isActivityWeight: isActivityWeight,
2249
2009
  isMain: isMain$7,
2250
2010
  isRecord: isMain$7,
2011
+ validateActivityWeight: validateActivityWeight,
2251
2012
  validateMain: validateMain$7,
2252
2013
  validateRecord: validateMain$7
2253
2014
  });
2254
2015
 
2255
- const is$typed$7 = is$typed$f, validate$7 = validate$f;
2256
- const id$7 = 'org.hypercerts.claim.contribution';
2016
+ const is$typed$7 = is$typed$e, validate$7 = validate$e;
2017
+ const id$7 = 'org.hypercerts.claim.collection';
2257
2018
  const hashMain$6 = 'main';
2258
2019
  function isMain$6(v) {
2259
2020
  return is$typed$7(v, id$7, hashMain$6);
@@ -2262,7 +2023,7 @@ function validateMain$6(v) {
2262
2023
  return validate$7(v, id$7, hashMain$6, true);
2263
2024
  }
2264
2025
 
2265
- var contribution = /*#__PURE__*/Object.freeze({
2026
+ var collection = /*#__PURE__*/Object.freeze({
2266
2027
  __proto__: null,
2267
2028
  isMain: isMain$6,
2268
2029
  isRecord: isMain$6,
@@ -2270,15 +2031,8 @@ var contribution = /*#__PURE__*/Object.freeze({
2270
2031
  validateRecord: validateMain$6
2271
2032
  });
2272
2033
 
2273
- const is$typed$6 = is$typed$f, validate$6 = validate$f;
2274
- const id$6 = 'org.hypercerts.claim.evaluation';
2275
- const hashScore = 'score';
2276
- function isScore(v) {
2277
- return is$typed$6(v, id$6, hashScore);
2278
- }
2279
- function validateScore(v) {
2280
- return validate$6(v, id$6, hashScore);
2281
- }
2034
+ const is$typed$6 = is$typed$e, validate$6 = validate$e;
2035
+ const id$6 = 'org.hypercerts.claim.contributor';
2282
2036
  const hashMain$5 = 'main';
2283
2037
  function isMain$5(v) {
2284
2038
  return is$typed$6(v, id$6, hashMain$5);
@@ -2287,18 +2041,23 @@ function validateMain$5(v) {
2287
2041
  return validate$6(v, id$6, hashMain$5, true);
2288
2042
  }
2289
2043
 
2290
- var evaluation = /*#__PURE__*/Object.freeze({
2044
+ var contributor = /*#__PURE__*/Object.freeze({
2291
2045
  __proto__: null,
2292
2046
  isMain: isMain$5,
2293
2047
  isRecord: isMain$5,
2294
- isScore: isScore,
2295
2048
  validateMain: validateMain$5,
2296
- validateRecord: validateMain$5,
2297
- validateScore: validateScore
2049
+ validateRecord: validateMain$5
2298
2050
  });
2299
2051
 
2300
- const is$typed$5 = is$typed$f, validate$5 = validate$f;
2301
- const id$5 = 'org.hypercerts.claim.evidence';
2052
+ const is$typed$5 = is$typed$e, validate$5 = validate$e;
2053
+ const id$5 = 'org.hypercerts.claim.evaluation';
2054
+ const hashScore = 'score';
2055
+ function isScore(v) {
2056
+ return is$typed$5(v, id$5, hashScore);
2057
+ }
2058
+ function validateScore(v) {
2059
+ return validate$5(v, id$5, hashScore);
2060
+ }
2302
2061
  const hashMain$4 = 'main';
2303
2062
  function isMain$4(v) {
2304
2063
  return is$typed$5(v, id$5, hashMain$4);
@@ -2307,16 +2066,18 @@ function validateMain$4(v) {
2307
2066
  return validate$5(v, id$5, hashMain$4, true);
2308
2067
  }
2309
2068
 
2310
- var evidence = /*#__PURE__*/Object.freeze({
2069
+ var evaluation = /*#__PURE__*/Object.freeze({
2311
2070
  __proto__: null,
2312
2071
  isMain: isMain$4,
2313
2072
  isRecord: isMain$4,
2073
+ isScore: isScore,
2314
2074
  validateMain: validateMain$4,
2315
- validateRecord: validateMain$4
2075
+ validateRecord: validateMain$4,
2076
+ validateScore: validateScore
2316
2077
  });
2317
2078
 
2318
- const is$typed$4 = is$typed$f, validate$4 = validate$f;
2319
- const id$4 = 'org.hypercerts.claim.measurement';
2079
+ const is$typed$4 = is$typed$e, validate$4 = validate$e;
2080
+ const id$4 = 'org.hypercerts.claim.evidence';
2320
2081
  const hashMain$3 = 'main';
2321
2082
  function isMain$3(v) {
2322
2083
  return is$typed$4(v, id$4, hashMain$3);
@@ -2325,7 +2086,7 @@ function validateMain$3(v) {
2325
2086
  return validate$4(v, id$4, hashMain$3, true);
2326
2087
  }
2327
2088
 
2328
- var measurement = /*#__PURE__*/Object.freeze({
2089
+ var evidence = /*#__PURE__*/Object.freeze({
2329
2090
  __proto__: null,
2330
2091
  isMain: isMain$3,
2331
2092
  isRecord: isMain$3,
@@ -2333,8 +2094,8 @@ var measurement = /*#__PURE__*/Object.freeze({
2333
2094
  validateRecord: validateMain$3
2334
2095
  });
2335
2096
 
2336
- const is$typed$3 = is$typed$f, validate$3 = validate$f;
2337
- const id$3 = 'org.hypercerts.claim.project';
2097
+ const is$typed$3 = is$typed$e, validate$3 = validate$e;
2098
+ const id$3 = 'org.hypercerts.claim.measurement';
2338
2099
  const hashMain$2 = 'main';
2339
2100
  function isMain$2(v) {
2340
2101
  return is$typed$3(v, id$3, hashMain$2);
@@ -2343,7 +2104,7 @@ function validateMain$2(v) {
2343
2104
  return validate$3(v, id$3, hashMain$2, true);
2344
2105
  }
2345
2106
 
2346
- var project = /*#__PURE__*/Object.freeze({
2107
+ var measurement = /*#__PURE__*/Object.freeze({
2347
2108
  __proto__: null,
2348
2109
  isMain: isMain$2,
2349
2110
  isRecord: isMain$2,
@@ -2351,7 +2112,7 @@ var project = /*#__PURE__*/Object.freeze({
2351
2112
  validateRecord: validateMain$2
2352
2113
  });
2353
2114
 
2354
- const is$typed$2 = is$typed$f, validate$2 = validate$f;
2115
+ const is$typed$2 = is$typed$e, validate$2 = validate$e;
2355
2116
  const id$2 = 'org.hypercerts.claim.rights';
2356
2117
  const hashMain$1 = 'main';
2357
2118
  function isMain$1(v) {
@@ -2369,7 +2130,7 @@ var rights = /*#__PURE__*/Object.freeze({
2369
2130
  validateRecord: validateMain$1
2370
2131
  });
2371
2132
 
2372
- const is$typed$1 = is$typed$f, validate$1 = validate$f;
2133
+ const is$typed$1 = is$typed$e, validate$1 = validate$e;
2373
2134
  const id$1 = 'org.hypercerts.defs';
2374
2135
  const hashUri = 'uri';
2375
2136
  function isUri(v) {
@@ -2421,7 +2182,7 @@ var defs = /*#__PURE__*/Object.freeze({
2421
2182
  validateUri: validateUri
2422
2183
  });
2423
2184
 
2424
- const is$typed = is$typed$f, validate = validate$f;
2185
+ const is$typed = is$typed$e, validate = validate$e;
2425
2186
  const id = 'org.hypercerts.funding.receipt';
2426
2187
  const hashMain = 'main';
2427
2188
  function isMain(v) {
@@ -2445,7 +2206,7 @@ var receipt = /*#__PURE__*/Object.freeze({
2445
2206
  * ⚠️ DO NOT EDIT THIS FILE MANUALLY ⚠️
2446
2207
  *
2447
2208
  * This file is automatically generated by scripts/generate-exports.js
2448
- * Generated: 2026-01-12T15:25:09.220Z
2209
+ * Generated: 2026-01-21T06:36:03.155Z
2449
2210
  *
2450
2211
  * To regenerate this file, run:
2451
2212
  * npm run gen-api
@@ -2470,11 +2231,10 @@ const LOCATION_NSID = "app.certified.location";
2470
2231
  const STRONGREF_NSID = "com.atproto.repo.strongRef";
2471
2232
  const ACTIVITY_NSID = "org.hypercerts.claim.activity";
2472
2233
  const COLLECTION_NSID = "org.hypercerts.claim.collection";
2473
- const CONTRIBUTION_NSID = "org.hypercerts.claim.contribution";
2234
+ const CONTRIBUTOR_NSID = "org.hypercerts.claim.contributor";
2474
2235
  const EVALUATION_NSID = "org.hypercerts.claim.evaluation";
2475
2236
  const EVIDENCE_NSID = "org.hypercerts.claim.evidence";
2476
2237
  const MEASUREMENT_NSID = "org.hypercerts.claim.measurement";
2477
- const PROJECT_NSID = "org.hypercerts.claim.project";
2478
2238
  const RIGHTS_NSID = "org.hypercerts.claim.rights";
2479
2239
  const HYPERCERTS_DEFS_NSID = "org.hypercerts.defs";
2480
2240
  const FUNDING_RECEIPT_NSID = "org.hypercerts.funding.receipt";
@@ -2493,11 +2253,10 @@ const HYPERCERTS_NSIDS = {
2493
2253
  STRONGREF: STRONGREF_NSID,
2494
2254
  ACTIVITY: ACTIVITY_NSID,
2495
2255
  COLLECTION: COLLECTION_NSID,
2496
- CONTRIBUTION: CONTRIBUTION_NSID,
2256
+ CONTRIBUTOR: CONTRIBUTOR_NSID,
2497
2257
  EVALUATION: EVALUATION_NSID,
2498
2258
  EVIDENCE: EVIDENCE_NSID,
2499
2259
  MEASUREMENT: MEASUREMENT_NSID,
2500
- PROJECT: PROJECT_NSID,
2501
2260
  RIGHTS: RIGHTS_NSID,
2502
2261
  HYPERCERTS_DEFS: HYPERCERTS_DEFS_NSID,
2503
2262
  FUNDING_RECEIPT: FUNDING_RECEIPT_NSID,
@@ -2514,11 +2273,10 @@ const HYPERCERTS_LEXICON_JSON = {
2514
2273
  STRONGREF: STRONGREF_LEXICON_JSON,
2515
2274
  ACTIVITY: ACTIVITY_LEXICON_JSON,
2516
2275
  COLLECTION: COLLECTION_LEXICON_JSON,
2517
- CONTRIBUTION: CONTRIBUTION_LEXICON_JSON,
2276
+ CONTRIBUTOR: CONTRIBUTOR_LEXICON_JSON,
2518
2277
  EVALUATION: EVALUATION_LEXICON_JSON,
2519
2278
  EVIDENCE: EVIDENCE_LEXICON_JSON,
2520
2279
  MEASUREMENT: MEASUREMENT_LEXICON_JSON,
2521
- PROJECT: PROJECT_LEXICON_JSON,
2522
2280
  RIGHTS: RIGHTS_LEXICON_JSON,
2523
2281
  HYPERCERTS_DEFS: HYPERCERTS_DEFS_LEXICON_JSON,
2524
2282
  FUNDING_RECEIPT: FUNDING_RECEIPT_LEXICON_JSON,
@@ -2532,11 +2290,10 @@ const LOCATION_LEXICON_DOC = lexicons.get(LOCATION_NSID);
2532
2290
  const STRONGREF_LEXICON_DOC = lexicons.get(STRONGREF_NSID);
2533
2291
  const ACTIVITY_LEXICON_DOC = lexicons.get(ACTIVITY_NSID);
2534
2292
  const COLLECTION_LEXICON_DOC = lexicons.get(COLLECTION_NSID);
2535
- const CONTRIBUTION_LEXICON_DOC = lexicons.get(CONTRIBUTION_NSID);
2293
+ const CONTRIBUTOR_LEXICON_DOC = lexicons.get(CONTRIBUTOR_NSID);
2536
2294
  const EVALUATION_LEXICON_DOC = lexicons.get(EVALUATION_NSID);
2537
2295
  const EVIDENCE_LEXICON_DOC = lexicons.get(EVIDENCE_NSID);
2538
2296
  const MEASUREMENT_LEXICON_DOC = lexicons.get(MEASUREMENT_NSID);
2539
- const PROJECT_LEXICON_DOC = lexicons.get(PROJECT_NSID);
2540
2297
  const RIGHTS_LEXICON_DOC = lexicons.get(RIGHTS_NSID);
2541
2298
  const HYPERCERTS_DEFS_LEXICON_DOC = lexicons.get(HYPERCERTS_DEFS_NSID);
2542
2299
  const FUNDING_RECEIPT_LEXICON_DOC = lexicons.get(FUNDING_RECEIPT_NSID);
@@ -2552,15 +2309,14 @@ const HYPERCERTS_LEXICON_DOC = {
2552
2309
  STRONGREF: STRONGREF_LEXICON_DOC,
2553
2310
  ACTIVITY: ACTIVITY_LEXICON_DOC,
2554
2311
  COLLECTION: COLLECTION_LEXICON_DOC,
2555
- CONTRIBUTION: CONTRIBUTION_LEXICON_DOC,
2312
+ CONTRIBUTOR: CONTRIBUTOR_LEXICON_DOC,
2556
2313
  EVALUATION: EVALUATION_LEXICON_DOC,
2557
2314
  EVIDENCE: EVIDENCE_LEXICON_DOC,
2558
2315
  MEASUREMENT: MEASUREMENT_LEXICON_DOC,
2559
- PROJECT: PROJECT_LEXICON_DOC,
2560
2316
  RIGHTS: RIGHTS_LEXICON_DOC,
2561
2317
  HYPERCERTS_DEFS: HYPERCERTS_DEFS_LEXICON_DOC,
2562
2318
  FUNDING_RECEIPT: FUNDING_RECEIPT_LEXICON_DOC,
2563
2319
  };
2564
2320
 
2565
- export { ACTIVITY_LEXICON_DOC, ACTIVITY_LEXICON_JSON, ACTIVITY_NSID, award as AppCertifiedBadgeAward, definition as AppCertifiedBadgeDefinition, response as AppCertifiedBadgeResponse, defs$1 as AppCertifiedDefs, location as AppCertifiedLocation, BADGE_AWARD_LEXICON_DOC, BADGE_AWARD_LEXICON_JSON, BADGE_AWARD_NSID, BADGE_DEFINITION_LEXICON_DOC, BADGE_DEFINITION_LEXICON_JSON, BADGE_DEFINITION_NSID, BADGE_RESPONSE_LEXICON_DOC, BADGE_RESPONSE_LEXICON_JSON, BADGE_RESPONSE_NSID, CERTIFIED_DEFS_LEXICON_DOC, CERTIFIED_DEFS_LEXICON_JSON, CERTIFIED_DEFS_NSID, COLLECTION_LEXICON_DOC, COLLECTION_LEXICON_JSON, COLLECTION_NSID, CONTRIBUTION_LEXICON_DOC, CONTRIBUTION_LEXICON_JSON, CONTRIBUTION_NSID, strongRef as ComAtprotoRepoStrongRef, EVALUATION_LEXICON_DOC, EVALUATION_LEXICON_JSON, EVALUATION_NSID, EVIDENCE_LEXICON_DOC, EVIDENCE_LEXICON_JSON, EVIDENCE_NSID, FUNDING_RECEIPT_LEXICON_DOC, FUNDING_RECEIPT_LEXICON_JSON, FUNDING_RECEIPT_NSID, HYPERCERTS_DEFS_LEXICON_DOC, HYPERCERTS_DEFS_LEXICON_JSON, HYPERCERTS_DEFS_NSID, HYPERCERTS_LEXICON_DOC, HYPERCERTS_LEXICON_JSON, HYPERCERTS_NSIDS, ids as HYPERCERTS_NSIDS_BY_TYPE, schemas as HYPERCERTS_SCHEMAS, schemaDict as HYPERCERTS_SCHEMA_DICT, LOCATION_LEXICON_DOC, LOCATION_LEXICON_JSON, LOCATION_NSID, MEASUREMENT_LEXICON_DOC, MEASUREMENT_LEXICON_JSON, MEASUREMENT_NSID, activity as OrgHypercertsClaimActivity, collection as OrgHypercertsClaimCollection, contribution as OrgHypercertsClaimContribution, evaluation as OrgHypercertsClaimEvaluation, evidence as OrgHypercertsClaimEvidence, measurement as OrgHypercertsClaimMeasurement, project as OrgHypercertsClaimProject, rights as OrgHypercertsClaimRights, defs as OrgHypercertsDefs, receipt as OrgHypercertsFundingReceipt, PROJECT_LEXICON_DOC, PROJECT_LEXICON_JSON, PROJECT_NSID, RIGHTS_LEXICON_DOC, RIGHTS_LEXICON_JSON, RIGHTS_NSID, STRONGREF_LEXICON_DOC, STRONGREF_LEXICON_JSON, STRONGREF_NSID, asPredicate, is$typed$f as is$typed, lexicons, maybe$typed, validate$f as validate };
2321
+ export { ACTIVITY_LEXICON_DOC, ACTIVITY_LEXICON_JSON, ACTIVITY_NSID, award as AppCertifiedBadgeAward, definition as AppCertifiedBadgeDefinition, response as AppCertifiedBadgeResponse, defs$1 as AppCertifiedDefs, location as AppCertifiedLocation, BADGE_AWARD_LEXICON_DOC, BADGE_AWARD_LEXICON_JSON, BADGE_AWARD_NSID, BADGE_DEFINITION_LEXICON_DOC, BADGE_DEFINITION_LEXICON_JSON, BADGE_DEFINITION_NSID, BADGE_RESPONSE_LEXICON_DOC, BADGE_RESPONSE_LEXICON_JSON, BADGE_RESPONSE_NSID, CERTIFIED_DEFS_LEXICON_DOC, CERTIFIED_DEFS_LEXICON_JSON, CERTIFIED_DEFS_NSID, COLLECTION_LEXICON_DOC, COLLECTION_LEXICON_JSON, COLLECTION_NSID, CONTRIBUTOR_LEXICON_DOC, CONTRIBUTOR_LEXICON_JSON, CONTRIBUTOR_NSID, strongRef as ComAtprotoRepoStrongRef, EVALUATION_LEXICON_DOC, EVALUATION_LEXICON_JSON, EVALUATION_NSID, EVIDENCE_LEXICON_DOC, EVIDENCE_LEXICON_JSON, EVIDENCE_NSID, FUNDING_RECEIPT_LEXICON_DOC, FUNDING_RECEIPT_LEXICON_JSON, FUNDING_RECEIPT_NSID, HYPERCERTS_DEFS_LEXICON_DOC, HYPERCERTS_DEFS_LEXICON_JSON, HYPERCERTS_DEFS_NSID, HYPERCERTS_LEXICON_DOC, HYPERCERTS_LEXICON_JSON, HYPERCERTS_NSIDS, ids as HYPERCERTS_NSIDS_BY_TYPE, schemas as HYPERCERTS_SCHEMAS, schemaDict as HYPERCERTS_SCHEMA_DICT, LOCATION_LEXICON_DOC, LOCATION_LEXICON_JSON, LOCATION_NSID, MEASUREMENT_LEXICON_DOC, MEASUREMENT_LEXICON_JSON, MEASUREMENT_NSID, activity as OrgHypercertsClaimActivity, collection as OrgHypercertsClaimCollection, contributor as OrgHypercertsClaimContributor, evaluation as OrgHypercertsClaimEvaluation, evidence as OrgHypercertsClaimEvidence, measurement as OrgHypercertsClaimMeasurement, rights as OrgHypercertsClaimRights, defs as OrgHypercertsDefs, receipt as OrgHypercertsFundingReceipt, RIGHTS_LEXICON_DOC, RIGHTS_LEXICON_JSON, RIGHTS_NSID, STRONGREF_LEXICON_DOC, STRONGREF_LEXICON_JSON, STRONGREF_NSID, asPredicate, is$typed$e as is$typed, lexicons, maybe$typed, validate$e as validate };
2566
2322
  //# sourceMappingURL=index.mjs.map