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