@hypercerts-org/lexicon 0.10.0-beta.3 → 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 +63 -0
  2. package/README.md +66 -311
  3. package/SCHEMAS.md +276 -0
  4. package/dist/exports.d.ts +34 -130
  5. package/dist/exports.d.ts.map +1 -1
  6. package/dist/generated/exports.d.ts +34 -130
  7. package/dist/generated/exports.d.ts.map +1 -1
  8. package/dist/generated/lexicons.d.ts +96 -278
  9. package/dist/generated/lexicons.d.ts.map +1 -1
  10. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +6 -19
  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 +261 -503
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.mjs +253 -491
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/lexicons.cjs +52 -147
  21. package/dist/lexicons.cjs.map +1 -1
  22. package/dist/lexicons.d.ts +96 -278
  23. package/dist/lexicons.d.ts.map +1 -1
  24. package/dist/lexicons.mjs +52 -147
  25. package/dist/lexicons.mjs.map +1 -1
  26. package/dist/types/org/hypercerts/claim/activity.d.ts +6 -19
  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 +11 -48
  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 +8 -4
  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',
@@ -335,15 +330,13 @@ const schemaDict = {
335
330
  ref: 'lex:com.atproto.repo.strongRef',
336
331
  description: 'A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights.',
337
332
  },
338
- location: {
339
- type: 'ref',
340
- ref: 'lex:com.atproto.repo.strongRef',
341
- description: 'A strong reference to the location where the activity was performed. The record referenced must conform with the lexicon app.certified.location.',
342
- },
343
- project: {
344
- type: 'string',
345
- format: 'at-uri',
346
- 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.',
333
+ locations: {
334
+ type: 'array',
335
+ description: 'An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location.',
336
+ items: {
337
+ type: 'ref',
338
+ ref: 'lex:com.atproto.repo.strongRef',
339
+ },
347
340
  },
348
341
  createdAt: {
349
342
  type: 'string',
@@ -353,36 +346,6 @@ const schemaDict = {
353
346
  },
354
347
  },
355
348
  },
356
- workScope: {
357
- type: 'object',
358
- 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.',
359
- properties: {
360
- withinAllOf: {
361
- type: 'array',
362
- description: 'Labels that MUST all hold for the scope to apply.',
363
- items: {
364
- type: 'string',
365
- },
366
- maxLength: 100,
367
- },
368
- withinAnyOf: {
369
- type: 'array',
370
- description: 'Labels of which AT LEAST ONE must hold (optional). If omitted or empty, imposes no additional condition.',
371
- items: {
372
- type: 'string',
373
- },
374
- maxLength: 100,
375
- },
376
- withinNoneOf: {
377
- type: 'array',
378
- description: 'Labels that MUST NOT hold for the scope to apply.',
379
- items: {
380
- type: 'string',
381
- },
382
- maxLength: 100,
383
- },
384
- },
385
- },
386
349
  activityWeight: {
387
350
  type: 'object',
388
351
  required: ['activity', 'weight'],
@@ -406,12 +369,16 @@ const schemaDict = {
406
369
  defs: {
407
370
  main: {
408
371
  type: 'record',
409
- 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.',
410
373
  key: 'tid',
411
374
  record: {
412
375
  type: 'object',
413
- required: ['title', 'activities', 'createdAt'],
376
+ required: ['title', 'items', 'createdAt'],
414
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
+ },
415
382
  title: {
416
383
  type: 'string',
417
384
  description: 'The title of this collection',
@@ -422,26 +389,19 @@ const schemaDict = {
422
389
  type: 'string',
423
390
  maxLength: 3000,
424
391
  maxGraphemes: 300,
425
- description: 'A short description of this collection',
426
- },
427
- avatar: {
428
- type: 'blob',
429
- description: 'Primary avatar image representing this collection across apps and views; typically a square image.',
430
- accept: ['image/png', 'image/jpeg'],
431
- maxSize: 1000000,
392
+ description: 'Short summary of this collection, suitable for previews and list views',
432
393
  },
433
- coverPhoto: {
434
- type: 'blob',
435
- description: 'The cover photo of this collection.',
436
- accept: ['image/png', 'image/jpeg'],
437
- 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.',
438
398
  },
439
- activities: {
399
+ items: {
440
400
  type: 'array',
441
- 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).',
442
402
  items: {
443
403
  type: 'ref',
444
- ref: 'lex:org.hypercerts.claim.activity#activityWeight',
404
+ ref: 'lex:com.atproto.repo.strongRef',
445
405
  },
446
406
  },
447
407
  createdAt: {
@@ -454,9 +414,9 @@ const schemaDict = {
454
414
  },
455
415
  },
456
416
  },
457
- OrgHypercertsClaimContribution: {
417
+ OrgHypercertsClaimContributor: {
458
418
  lexicon: 1,
459
- id: 'org.hypercerts.claim.contribution',
419
+ id: 'org.hypercerts.claim.contributor',
460
420
  defs: {
461
421
  main: {
462
422
  type: 'record',
@@ -464,23 +424,33 @@ const schemaDict = {
464
424
  key: 'tid',
465
425
  record: {
466
426
  type: 'object',
467
- required: ['contributors', 'createdAt'],
427
+ required: ['createdAt'],
468
428
  properties: {
469
- role: {
429
+ identifier: {
430
+ type: 'string',
431
+ description: 'DID or a URI to a social profile of the contributor.',
432
+ },
433
+ displayName: {
470
434
  type: 'string',
471
- description: 'Role or title of the contributor(s).',
435
+ description: 'Display name of the contributor.',
472
436
  maxLength: 100,
473
437
  },
474
- contributors: {
475
- type: 'array',
476
- 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.',
477
- items: {
478
- type: 'string',
479
- },
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.',
480
445
  },
481
- description: {
446
+ role: {
482
447
  type: 'string',
483
- 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.',
484
454
  maxLength: 2000,
485
455
  maxGraphemes: 500,
486
456
  },
@@ -492,12 +462,12 @@ const schemaDict = {
492
462
  endDate: {
493
463
  type: 'string',
494
464
  format: 'datetime',
495
- 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.',
496
466
  },
497
467
  createdAt: {
498
468
  type: 'string',
499
469
  format: 'datetime',
500
- description: 'Client-declared timestamp when this record was originally created',
470
+ description: 'Client-declared timestamp when this record was originally created.',
501
471
  },
502
472
  },
503
473
  },
@@ -563,7 +533,7 @@ const schemaDict = {
563
533
  },
564
534
  measurements: {
565
535
  type: 'array',
566
- 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',
567
537
  items: {
568
538
  type: 'ref',
569
539
  ref: 'lex:com.atproto.repo.strongRef',
@@ -723,70 +693,6 @@ const schemaDict = {
723
693
  },
724
694
  },
725
695
  },
726
- OrgHypercertsClaimProject: {
727
- lexicon: 1,
728
- id: 'org.hypercerts.claim.project',
729
- defs: {
730
- main: {
731
- type: 'record',
732
- description: 'A project that can include multiple activities, each of which may be linked to at most one project.',
733
- key: 'tid',
734
- record: {
735
- type: 'object',
736
- required: ['title', 'shortDescription', 'createdAt'],
737
- properties: {
738
- title: {
739
- type: 'string',
740
- description: 'Title of this project',
741
- maxLength: 800,
742
- maxGraphemes: 80,
743
- },
744
- shortDescription: {
745
- type: 'string',
746
- maxLength: 3000,
747
- maxGraphemes: 300,
748
- description: 'Short summary of this project, suitable for previews and list views.',
749
- },
750
- description: {
751
- type: 'ref',
752
- ref: 'lex:pub.leaflet.pages.linearDocument#main',
753
- description: 'Rich-text description of this project, represented as a Leaflet linear document.',
754
- },
755
- avatar: {
756
- type: 'blob',
757
- description: 'Primary avatar image representing this project across apps and views; typically a square logo or project identity image.',
758
- accept: ['image/png', 'image/jpeg'],
759
- maxSize: 1000000,
760
- },
761
- coverPhoto: {
762
- type: 'blob',
763
- description: 'The cover photo of this project.',
764
- accept: ['image/png', 'image/jpeg'],
765
- maxSize: 1000000,
766
- },
767
- activities: {
768
- type: 'array',
769
- description: 'Array of activities with their associated weights in this project',
770
- items: {
771
- type: 'ref',
772
- ref: 'lex:org.hypercerts.claim.activity#activityWeight',
773
- },
774
- },
775
- location: {
776
- type: 'ref',
777
- ref: 'lex:com.atproto.repo.strongRef',
778
- 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.',
779
- },
780
- createdAt: {
781
- type: 'string',
782
- format: 'datetime',
783
- description: 'Client-declared timestamp when this record was originally created',
784
- },
785
- },
786
- },
787
- },
788
- },
789
- },
790
696
  OrgHypercertsClaimRights: {
791
697
  lexicon: 1,
792
698
  id: 'org.hypercerts.claim.rights',
@@ -975,13 +881,13 @@ const schemaDict = {
975
881
  },
976
882
  };
977
883
  const schemas = Object.values(schemaDict);
978
- const lexicons = new lexicon$g.Lexicons(schemas);
979
- function validate$f(v, id, hash, requiredType) {
980
- 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)
981
887
  ? lexicons.validate(`${id}#${hash}`, v)
982
888
  : {
983
889
  success: false,
984
- 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`),
985
891
  };
986
892
  }
987
893
  const ids = {
@@ -993,19 +899,18 @@ const ids = {
993
899
  ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
994
900
  OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',
995
901
  OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',
996
- OrgHypercertsClaimContribution: 'org.hypercerts.claim.contribution',
902
+ OrgHypercertsClaimContributor: 'org.hypercerts.claim.contributor',
997
903
  OrgHypercertsClaimEvaluation: 'org.hypercerts.claim.evaluation',
998
904
  OrgHypercertsClaimEvidence: 'org.hypercerts.claim.evidence',
999
905
  OrgHypercertsClaimMeasurement: 'org.hypercerts.claim.measurement',
1000
- OrgHypercertsClaimProject: 'org.hypercerts.claim.project',
1001
906
  OrgHypercertsClaimRights: 'org.hypercerts.claim.rights',
1002
907
  OrgHypercertsDefs: 'org.hypercerts.defs',
1003
908
  OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',
1004
909
  };
1005
910
 
1006
- var lexicon$f = 1;
1007
- var id$u = "app.certified.badge.award";
1008
- var defs$h = {
911
+ var lexicon$e = 1;
912
+ var id$s = "app.certified.badge.award";
913
+ var defs$g = {
1009
914
  main: {
1010
915
  type: "record",
1011
916
  description: "Records a badge award to a user, project, or activity claim.",
@@ -1045,14 +950,14 @@ var defs$h = {
1045
950
  }
1046
951
  };
1047
952
  var BADGE_AWARD_LEXICON_JSON = {
1048
- lexicon: lexicon$f,
1049
- id: id$u,
1050
- defs: defs$h
953
+ lexicon: lexicon$e,
954
+ id: id$s,
955
+ defs: defs$g
1051
956
  };
1052
957
 
1053
- var lexicon$e = 1;
1054
- var id$t = "app.certified.badge.definition";
1055
- var defs$g = {
958
+ var lexicon$d = 1;
959
+ var id$r = "app.certified.badge.definition";
960
+ var defs$f = {
1056
961
  main: {
1057
962
  type: "record",
1058
963
  description: "Defines a badge that can be awarded via badge award records to users, projects, or activity claims.",
@@ -1107,14 +1012,14 @@ var defs$g = {
1107
1012
  }
1108
1013
  };
1109
1014
  var BADGE_DEFINITION_LEXICON_JSON = {
1110
- lexicon: lexicon$e,
1111
- id: id$t,
1112
- defs: defs$g
1015
+ lexicon: lexicon$d,
1016
+ id: id$r,
1017
+ defs: defs$f
1113
1018
  };
1114
1019
 
1115
- var lexicon$d = 1;
1116
- var id$s = "app.certified.badge.response";
1117
- var defs$f = {
1020
+ var lexicon$c = 1;
1021
+ var id$q = "app.certified.badge.response";
1022
+ var defs$e = {
1118
1023
  main: {
1119
1024
  type: "record",
1120
1025
  description: "Recipient response to a badge award.",
@@ -1154,15 +1059,15 @@ var defs$f = {
1154
1059
  }
1155
1060
  };
1156
1061
  var BADGE_RESPONSE_LEXICON_JSON = {
1157
- lexicon: lexicon$d,
1158
- id: id$s,
1159
- defs: defs$f
1062
+ lexicon: lexicon$c,
1063
+ id: id$q,
1064
+ defs: defs$e
1160
1065
  };
1161
1066
 
1162
- var lexicon$c = 1;
1163
- var id$r = "app.certified.defs";
1067
+ var lexicon$b = 1;
1068
+ var id$p = "app.certified.defs";
1164
1069
  var description$1 = "Common type definitions used across certified protocols.";
1165
- var defs$e = {
1070
+ var defs$d = {
1166
1071
  did: {
1167
1072
  type: "string",
1168
1073
  format: "did",
@@ -1170,15 +1075,15 @@ var defs$e = {
1170
1075
  }
1171
1076
  };
1172
1077
  var CERTIFIED_DEFS_LEXICON_JSON = {
1173
- lexicon: lexicon$c,
1174
- id: id$r,
1078
+ lexicon: lexicon$b,
1079
+ id: id$p,
1175
1080
  description: description$1,
1176
- defs: defs$e
1081
+ defs: defs$d
1177
1082
  };
1178
1083
 
1179
- var lexicon$b = 1;
1180
- var id$q = "app.certified.location";
1181
- var defs$d = {
1084
+ var lexicon$a = 1;
1085
+ var id$o = "app.certified.location";
1086
+ var defs$c = {
1182
1087
  main: {
1183
1088
  type: "record",
1184
1089
  description: "A location reference",
@@ -1243,15 +1148,15 @@ var defs$d = {
1243
1148
  }
1244
1149
  };
1245
1150
  var LOCATION_LEXICON_JSON = {
1246
- lexicon: lexicon$b,
1247
- id: id$q,
1248
- defs: defs$d
1151
+ lexicon: lexicon$a,
1152
+ id: id$o,
1153
+ defs: defs$c
1249
1154
  };
1250
1155
 
1251
- var lexicon$a = 1;
1252
- var id$p = "com.atproto.repo.strongRef";
1156
+ var lexicon$9 = 1;
1157
+ var id$n = "com.atproto.repo.strongRef";
1253
1158
  var description = "A URI with a content-hash fingerprint.";
1254
- var defs$c = {
1159
+ var defs$b = {
1255
1160
  main: {
1256
1161
  type: "object",
1257
1162
  required: [
@@ -1271,15 +1176,15 @@ var defs$c = {
1271
1176
  }
1272
1177
  };
1273
1178
  var STRONGREF_LEXICON_JSON = {
1274
- lexicon: lexicon$a,
1275
- id: id$p,
1179
+ lexicon: lexicon$9,
1180
+ id: id$n,
1276
1181
  description: description,
1277
- defs: defs$c
1182
+ defs: defs$b
1278
1183
  };
1279
1184
 
1280
- var lexicon$9 = 1;
1281
- var id$o = "org.hypercerts.claim.activity";
1282
- var defs$b = {
1185
+ var lexicon$8 = 1;
1186
+ var id$m = "org.hypercerts.claim.activity";
1187
+ var defs$a = {
1283
1188
  main: {
1284
1189
  type: "record",
1285
1190
  description: "A hypercert record tracking impact work.",
@@ -1289,9 +1194,7 @@ var defs$b = {
1289
1194
  required: [
1290
1195
  "title",
1291
1196
  "shortDescription",
1292
- "createdAt",
1293
- "startDate",
1294
- "endDate"
1197
+ "createdAt"
1295
1198
  ],
1296
1199
  properties: {
1297
1200
  title: {
@@ -1321,7 +1224,8 @@ var defs$b = {
1321
1224
  },
1322
1225
  workScope: {
1323
1226
  type: "ref",
1324
- 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."
1325
1229
  },
1326
1230
  startDate: {
1327
1231
  type: "string",
@@ -1335,7 +1239,7 @@ var defs$b = {
1335
1239
  },
1336
1240
  contributions: {
1337
1241
  type: "array",
1338
- 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.",
1339
1243
  items: {
1340
1244
  type: "ref",
1341
1245
  ref: "com.atproto.repo.strongRef"
@@ -1346,15 +1250,13 @@ var defs$b = {
1346
1250
  ref: "com.atproto.repo.strongRef",
1347
1251
  description: "A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights."
1348
1252
  },
1349
- location: {
1350
- type: "ref",
1351
- ref: "com.atproto.repo.strongRef",
1352
- description: "A strong reference to the location where the activity was performed. The record referenced must conform with the lexicon app.certified.location."
1353
- },
1354
- project: {
1355
- type: "string",
1356
- format: "at-uri",
1357
- 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."
1253
+ locations: {
1254
+ type: "array",
1255
+ description: "An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location.",
1256
+ items: {
1257
+ type: "ref",
1258
+ ref: "com.atproto.repo.strongRef"
1259
+ }
1358
1260
  },
1359
1261
  createdAt: {
1360
1262
  type: "string",
@@ -1364,36 +1266,6 @@ var defs$b = {
1364
1266
  }
1365
1267
  }
1366
1268
  },
1367
- workScope: {
1368
- type: "object",
1369
- 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.",
1370
- properties: {
1371
- withinAllOf: {
1372
- type: "array",
1373
- description: "Labels that MUST all hold for the scope to apply.",
1374
- items: {
1375
- type: "string"
1376
- },
1377
- maxLength: 100
1378
- },
1379
- withinAnyOf: {
1380
- type: "array",
1381
- description: "Labels of which AT LEAST ONE must hold (optional). If omitted or empty, imposes no additional condition.",
1382
- items: {
1383
- type: "string"
1384
- },
1385
- maxLength: 100
1386
- },
1387
- withinNoneOf: {
1388
- type: "array",
1389
- description: "Labels that MUST NOT hold for the scope to apply.",
1390
- items: {
1391
- type: "string"
1392
- },
1393
- maxLength: 100
1394
- }
1395
- }
1396
- },
1397
1269
  activityWeight: {
1398
1270
  type: "object",
1399
1271
  required: [
@@ -1414,26 +1286,30 @@ var defs$b = {
1414
1286
  }
1415
1287
  };
1416
1288
  var ACTIVITY_LEXICON_JSON = {
1417
- lexicon: lexicon$9,
1418
- id: id$o,
1419
- defs: defs$b
1289
+ lexicon: lexicon$8,
1290
+ id: id$m,
1291
+ defs: defs$a
1420
1292
  };
1421
1293
 
1422
- var lexicon$8 = 1;
1423
- var id$n = "org.hypercerts.claim.collection";
1424
- var defs$a = {
1294
+ var lexicon$7 = 1;
1295
+ var id$l = "org.hypercerts.claim.collection";
1296
+ var defs$9 = {
1425
1297
  main: {
1426
1298
  type: "record",
1427
- 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.",
1428
1300
  key: "tid",
1429
1301
  record: {
1430
1302
  type: "object",
1431
1303
  required: [
1432
1304
  "title",
1433
- "activities",
1305
+ "items",
1434
1306
  "createdAt"
1435
1307
  ],
1436
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
+ },
1437
1313
  title: {
1438
1314
  type: "string",
1439
1315
  description: "The title of this collection",
@@ -1444,32 +1320,19 @@ var defs$a = {
1444
1320
  type: "string",
1445
1321
  maxLength: 3000,
1446
1322
  maxGraphemes: 300,
1447
- description: "A short description of this collection"
1323
+ description: "Short summary of this collection, suitable for previews and list views"
1448
1324
  },
1449
- avatar: {
1450
- type: "blob",
1451
- description: "Primary avatar image representing this collection across apps and views; typically a square image.",
1452
- accept: [
1453
- "image/png",
1454
- "image/jpeg"
1455
- ],
1456
- maxSize: 1000000
1457
- },
1458
- coverPhoto: {
1459
- type: "blob",
1460
- description: "The cover photo of this collection.",
1461
- accept: [
1462
- "image/png",
1463
- "image/jpeg"
1464
- ],
1465
- 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."
1466
1329
  },
1467
- activities: {
1330
+ items: {
1468
1331
  type: "array",
1469
- 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).",
1470
1333
  items: {
1471
1334
  type: "ref",
1472
- ref: "org.hypercerts.claim.activity#activityWeight"
1335
+ ref: "com.atproto.repo.strongRef"
1473
1336
  }
1474
1337
  },
1475
1338
  createdAt: {
@@ -1482,14 +1345,14 @@ var defs$a = {
1482
1345
  }
1483
1346
  };
1484
1347
  var COLLECTION_LEXICON_JSON = {
1485
- lexicon: lexicon$8,
1486
- id: id$n,
1487
- defs: defs$a
1348
+ lexicon: lexicon$7,
1349
+ id: id$l,
1350
+ defs: defs$9
1488
1351
  };
1489
1352
 
1490
- var lexicon$7 = 1;
1491
- var id$m = "org.hypercerts.claim.contribution";
1492
- var defs$9 = {
1353
+ var lexicon$6 = 1;
1354
+ var id$k = "org.hypercerts.claim.contributor";
1355
+ var defs$8 = {
1493
1356
  main: {
1494
1357
  type: "record",
1495
1358
  description: "A contribution made toward a hypercert's impact.",
@@ -1497,25 +1360,34 @@ var defs$9 = {
1497
1360
  record: {
1498
1361
  type: "object",
1499
1362
  required: [
1500
- "contributors",
1501
1363
  "createdAt"
1502
1364
  ],
1503
1365
  properties: {
1504
- role: {
1366
+ identifier: {
1505
1367
  type: "string",
1506
- description: "Role or title of the contributor(s).",
1368
+ description: "DID or a URI to a social profile of the contributor."
1369
+ },
1370
+ displayName: {
1371
+ type: "string",
1372
+ description: "Display name of the contributor.",
1507
1373
  maxLength: 100
1508
1374
  },
1509
- contributors: {
1510
- type: "array",
1511
- 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.",
1512
- items: {
1513
- type: "string"
1514
- }
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."
1515
1382
  },
1516
- description: {
1383
+ role: {
1517
1384
  type: "string",
1518
- description: "What the contribution concretely achieved",
1385
+ description: "Role or title of the contributor.",
1386
+ maxLength: 100
1387
+ },
1388
+ contributionDescription: {
1389
+ type: "string",
1390
+ description: "What the contribution concretely achieved.",
1519
1391
  maxLength: 2000,
1520
1392
  maxGraphemes: 500
1521
1393
  },
@@ -1527,26 +1399,26 @@ var defs$9 = {
1527
1399
  endDate: {
1528
1400
  type: "string",
1529
1401
  format: "datetime",
1530
- 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."
1531
1403
  },
1532
1404
  createdAt: {
1533
1405
  type: "string",
1534
1406
  format: "datetime",
1535
- description: "Client-declared timestamp when this record was originally created"
1407
+ description: "Client-declared timestamp when this record was originally created."
1536
1408
  }
1537
1409
  }
1538
1410
  }
1539
1411
  }
1540
1412
  };
1541
- var CONTRIBUTION_LEXICON_JSON = {
1542
- lexicon: lexicon$7,
1543
- id: id$m,
1544
- defs: defs$9
1413
+ var CONTRIBUTOR_LEXICON_JSON = {
1414
+ lexicon: lexicon$6,
1415
+ id: id$k,
1416
+ defs: defs$8
1545
1417
  };
1546
1418
 
1547
- var lexicon$6 = 1;
1548
- var id$l = "org.hypercerts.claim.evaluation";
1549
- var defs$8 = {
1419
+ var lexicon$5 = 1;
1420
+ var id$j = "org.hypercerts.claim.evaluation";
1421
+ var defs$7 = {
1550
1422
  score: {
1551
1423
  type: "object",
1552
1424
  description: "Overall score for an evaluation on a numeric scale.",
@@ -1610,7 +1482,7 @@ var defs$8 = {
1610
1482
  },
1611
1483
  measurements: {
1612
1484
  type: "array",
1613
- 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",
1614
1486
  items: {
1615
1487
  type: "ref",
1616
1488
  ref: "com.atproto.repo.strongRef"
@@ -1643,14 +1515,14 @@ var defs$8 = {
1643
1515
  }
1644
1516
  };
1645
1517
  var EVALUATION_LEXICON_JSON = {
1646
- lexicon: lexicon$6,
1647
- id: id$l,
1648
- defs: defs$8
1518
+ lexicon: lexicon$5,
1519
+ id: id$j,
1520
+ defs: defs$7
1649
1521
  };
1650
1522
 
1651
- var lexicon$5 = 1;
1652
- var id$k = "org.hypercerts.claim.evidence";
1653
- var defs$7 = {
1523
+ var lexicon$4 = 1;
1524
+ var id$i = "org.hypercerts.claim.evidence";
1525
+ var defs$6 = {
1654
1526
  main: {
1655
1527
  type: "record",
1656
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.",
@@ -1712,14 +1584,14 @@ var defs$7 = {
1712
1584
  }
1713
1585
  };
1714
1586
  var EVIDENCE_LEXICON_JSON = {
1715
- lexicon: lexicon$5,
1716
- id: id$k,
1717
- defs: defs$7
1587
+ lexicon: lexicon$4,
1588
+ id: id$i,
1589
+ defs: defs$6
1718
1590
  };
1719
1591
 
1720
- var lexicon$4 = 1;
1721
- var id$j = "org.hypercerts.claim.measurement";
1722
- var defs$6 = {
1592
+ var lexicon$3 = 1;
1593
+ var id$h = "org.hypercerts.claim.measurement";
1594
+ var defs$5 = {
1723
1595
  main: {
1724
1596
  type: "record",
1725
1597
  description: "Measurement data related to a hypercert record (e.g. an activity and its impact).",
@@ -1791,91 +1663,13 @@ var defs$6 = {
1791
1663
  }
1792
1664
  };
1793
1665
  var MEASUREMENT_LEXICON_JSON = {
1794
- lexicon: lexicon$4,
1795
- id: id$j,
1796
- defs: defs$6
1797
- };
1798
-
1799
- var lexicon$3 = 1;
1800
- var id$i = "org.hypercerts.claim.project";
1801
- var defs$5 = {
1802
- main: {
1803
- type: "record",
1804
- description: "A project that can include multiple activities, each of which may be linked to at most one project.",
1805
- key: "tid",
1806
- record: {
1807
- type: "object",
1808
- required: [
1809
- "title",
1810
- "shortDescription",
1811
- "createdAt"
1812
- ],
1813
- properties: {
1814
- title: {
1815
- type: "string",
1816
- description: "Title of this project",
1817
- maxLength: 800,
1818
- maxGraphemes: 80
1819
- },
1820
- shortDescription: {
1821
- type: "string",
1822
- maxLength: 3000,
1823
- maxGraphemes: 300,
1824
- description: "Short summary of this project, suitable for previews and list views."
1825
- },
1826
- description: {
1827
- type: "ref",
1828
- ref: "pub.leaflet.pages.linearDocument#main",
1829
- description: "Rich-text description of this project, represented as a Leaflet linear document."
1830
- },
1831
- avatar: {
1832
- type: "blob",
1833
- description: "Primary avatar image representing this project across apps and views; typically a square logo or project identity image.",
1834
- accept: [
1835
- "image/png",
1836
- "image/jpeg"
1837
- ],
1838
- maxSize: 1000000
1839
- },
1840
- coverPhoto: {
1841
- type: "blob",
1842
- description: "The cover photo of this project.",
1843
- accept: [
1844
- "image/png",
1845
- "image/jpeg"
1846
- ],
1847
- maxSize: 1000000
1848
- },
1849
- activities: {
1850
- type: "array",
1851
- description: "Array of activities with their associated weights in this project",
1852
- items: {
1853
- type: "ref",
1854
- ref: "org.hypercerts.claim.activity#activityWeight"
1855
- }
1856
- },
1857
- location: {
1858
- type: "ref",
1859
- ref: "com.atproto.repo.strongRef",
1860
- 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."
1861
- },
1862
- createdAt: {
1863
- type: "string",
1864
- format: "datetime",
1865
- description: "Client-declared timestamp when this record was originally created"
1866
- }
1867
- }
1868
- }
1869
- }
1870
- };
1871
- var PROJECT_LEXICON_JSON = {
1872
1666
  lexicon: lexicon$3,
1873
- id: id$i,
1667
+ id: id$h,
1874
1668
  defs: defs$5
1875
1669
  };
1876
1670
 
1877
1671
  var lexicon$2 = 1;
1878
- var id$h = "org.hypercerts.claim.rights";
1672
+ var id$g = "org.hypercerts.claim.rights";
1879
1673
  var defs$4 = {
1880
1674
  main: {
1881
1675
  type: "record",
@@ -1923,12 +1717,12 @@ var defs$4 = {
1923
1717
  };
1924
1718
  var RIGHTS_LEXICON_JSON = {
1925
1719
  lexicon: lexicon$2,
1926
- id: id$h,
1720
+ id: id$g,
1927
1721
  defs: defs$4
1928
1722
  };
1929
1723
 
1930
1724
  var lexicon$1 = 1;
1931
- var id$g = "org.hypercerts.defs";
1725
+ var id$f = "org.hypercerts.defs";
1932
1726
  var defs$3 = {
1933
1727
  uri: {
1934
1728
  type: "object",
@@ -2022,12 +1816,12 @@ var defs$3 = {
2022
1816
  };
2023
1817
  var HYPERCERTS_DEFS_LEXICON_JSON = {
2024
1818
  lexicon: lexicon$1,
2025
- id: id$g,
1819
+ id: id$f,
2026
1820
  defs: defs$3
2027
1821
  };
2028
1822
 
2029
1823
  var lexicon = 1;
2030
- var id$f = "org.hypercerts.funding.receipt";
1824
+ var id$e = "org.hypercerts.funding.receipt";
2031
1825
  var defs$2 = {
2032
1826
  main: {
2033
1827
  type: "record",
@@ -2098,30 +1892,12 @@ var defs$2 = {
2098
1892
  };
2099
1893
  var FUNDING_RECEIPT_LEXICON_JSON = {
2100
1894
  lexicon: lexicon,
2101
- id: id$f,
1895
+ id: id$e,
2102
1896
  defs: defs$2
2103
1897
  };
2104
1898
 
2105
- const is$typed$e = is$typed$f, validate$e = validate$f;
2106
- const id$e = 'app.certified.badge.award';
2107
- const hashMain$d = 'main';
2108
- function isMain$d(v) {
2109
- return is$typed$e(v, id$e, hashMain$d);
2110
- }
2111
- function validateMain$d(v) {
2112
- return validate$e(v, id$e, hashMain$d, true);
2113
- }
2114
-
2115
- var award = /*#__PURE__*/Object.freeze({
2116
- __proto__: null,
2117
- isMain: isMain$d,
2118
- isRecord: isMain$d,
2119
- validateMain: validateMain$d,
2120
- validateRecord: validateMain$d
2121
- });
2122
-
2123
- const is$typed$d = is$typed$f, validate$d = validate$f;
2124
- 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';
2125
1901
  const hashMain$c = 'main';
2126
1902
  function isMain$c(v) {
2127
1903
  return is$typed$d(v, id$d, hashMain$c);
@@ -2130,7 +1906,7 @@ function validateMain$c(v) {
2130
1906
  return validate$d(v, id$d, hashMain$c, true);
2131
1907
  }
2132
1908
 
2133
- var definition = /*#__PURE__*/Object.freeze({
1909
+ var award = /*#__PURE__*/Object.freeze({
2134
1910
  __proto__: null,
2135
1911
  isMain: isMain$c,
2136
1912
  isRecord: isMain$c,
@@ -2138,8 +1914,8 @@ var definition = /*#__PURE__*/Object.freeze({
2138
1914
  validateRecord: validateMain$c
2139
1915
  });
2140
1916
 
2141
- const is$typed$c = is$typed$f, validate$c = validate$f;
2142
- 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';
2143
1919
  const hashMain$b = 'main';
2144
1920
  function isMain$b(v) {
2145
1921
  return is$typed$c(v, id$c, hashMain$b);
@@ -2148,7 +1924,7 @@ function validateMain$b(v) {
2148
1924
  return validate$c(v, id$c, hashMain$b, true);
2149
1925
  }
2150
1926
 
2151
- var response = /*#__PURE__*/Object.freeze({
1927
+ var definition = /*#__PURE__*/Object.freeze({
2152
1928
  __proto__: null,
2153
1929
  isMain: isMain$b,
2154
1930
  isRecord: isMain$b,
@@ -2156,12 +1932,8 @@ var response = /*#__PURE__*/Object.freeze({
2156
1932
  validateRecord: validateMain$b
2157
1933
  });
2158
1934
 
2159
- var defs$1 = /*#__PURE__*/Object.freeze({
2160
- __proto__: null
2161
- });
2162
-
2163
- const is$typed$b = is$typed$f, validate$b = validate$f;
2164
- 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';
2165
1937
  const hashMain$a = 'main';
2166
1938
  function isMain$a(v) {
2167
1939
  return is$typed$b(v, id$b, hashMain$a);
@@ -2170,7 +1942,7 @@ function validateMain$a(v) {
2170
1942
  return validate$b(v, id$b, hashMain$a, true);
2171
1943
  }
2172
1944
 
2173
- var location = /*#__PURE__*/Object.freeze({
1945
+ var response = /*#__PURE__*/Object.freeze({
2174
1946
  __proto__: null,
2175
1947
  isMain: isMain$a,
2176
1948
  isRecord: isMain$a,
@@ -2178,60 +1950,46 @@ var location = /*#__PURE__*/Object.freeze({
2178
1950
  validateRecord: validateMain$a
2179
1951
  });
2180
1952
 
2181
- const is$typed$a = is$typed$f, validate$a = validate$f;
2182
- 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';
2183
1959
  const hashMain$9 = 'main';
2184
1960
  function isMain$9(v) {
2185
1961
  return is$typed$a(v, id$a, hashMain$9);
2186
1962
  }
2187
1963
  function validateMain$9(v) {
2188
- return validate$a(v, id$a, hashMain$9);
1964
+ return validate$a(v, id$a, hashMain$9, true);
2189
1965
  }
2190
1966
 
2191
- var strongRef = /*#__PURE__*/Object.freeze({
1967
+ var location = /*#__PURE__*/Object.freeze({
2192
1968
  __proto__: null,
2193
1969
  isMain: isMain$9,
2194
- validateMain: validateMain$9
1970
+ isRecord: isMain$9,
1971
+ validateMain: validateMain$9,
1972
+ validateRecord: validateMain$9
2195
1973
  });
2196
1974
 
2197
- const is$typed$9 = is$typed$f, validate$9 = validate$f;
2198
- 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';
2199
1977
  const hashMain$8 = 'main';
2200
1978
  function isMain$8(v) {
2201
1979
  return is$typed$9(v, id$9, hashMain$8);
2202
1980
  }
2203
1981
  function validateMain$8(v) {
2204
- return validate$9(v, id$9, hashMain$8, true);
2205
- }
2206
- const hashWorkScope = 'workScope';
2207
- function isWorkScope(v) {
2208
- return is$typed$9(v, id$9, hashWorkScope);
2209
- }
2210
- function validateWorkScope(v) {
2211
- return validate$9(v, id$9, hashWorkScope);
2212
- }
2213
- const hashActivityWeight = 'activityWeight';
2214
- function isActivityWeight(v) {
2215
- return is$typed$9(v, id$9, hashActivityWeight);
2216
- }
2217
- function validateActivityWeight(v) {
2218
- return validate$9(v, id$9, hashActivityWeight);
1982
+ return validate$9(v, id$9, hashMain$8);
2219
1983
  }
2220
1984
 
2221
- var activity = /*#__PURE__*/Object.freeze({
1985
+ var strongRef = /*#__PURE__*/Object.freeze({
2222
1986
  __proto__: null,
2223
- isActivityWeight: isActivityWeight,
2224
1987
  isMain: isMain$8,
2225
- isRecord: isMain$8,
2226
- isWorkScope: isWorkScope,
2227
- validateActivityWeight: validateActivityWeight,
2228
- validateMain: validateMain$8,
2229
- validateRecord: validateMain$8,
2230
- validateWorkScope: validateWorkScope
1988
+ validateMain: validateMain$8
2231
1989
  });
2232
1990
 
2233
- const is$typed$8 = is$typed$f, validate$8 = validate$f;
2234
- 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';
2235
1993
  const hashMain$7 = 'main';
2236
1994
  function isMain$7(v) {
2237
1995
  return is$typed$8(v, id$8, hashMain$7);
@@ -2239,17 +1997,26 @@ function isMain$7(v) {
2239
1997
  function validateMain$7(v) {
2240
1998
  return validate$8(v, id$8, hashMain$7, true);
2241
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
+ }
2242
2007
 
2243
- var collection = /*#__PURE__*/Object.freeze({
2008
+ var activity = /*#__PURE__*/Object.freeze({
2244
2009
  __proto__: null,
2010
+ isActivityWeight: isActivityWeight,
2245
2011
  isMain: isMain$7,
2246
2012
  isRecord: isMain$7,
2013
+ validateActivityWeight: validateActivityWeight,
2247
2014
  validateMain: validateMain$7,
2248
2015
  validateRecord: validateMain$7
2249
2016
  });
2250
2017
 
2251
- const is$typed$7 = is$typed$f, validate$7 = validate$f;
2252
- 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';
2253
2020
  const hashMain$6 = 'main';
2254
2021
  function isMain$6(v) {
2255
2022
  return is$typed$7(v, id$7, hashMain$6);
@@ -2258,7 +2025,7 @@ function validateMain$6(v) {
2258
2025
  return validate$7(v, id$7, hashMain$6, true);
2259
2026
  }
2260
2027
 
2261
- var contribution = /*#__PURE__*/Object.freeze({
2028
+ var collection = /*#__PURE__*/Object.freeze({
2262
2029
  __proto__: null,
2263
2030
  isMain: isMain$6,
2264
2031
  isRecord: isMain$6,
@@ -2266,15 +2033,8 @@ var contribution = /*#__PURE__*/Object.freeze({
2266
2033
  validateRecord: validateMain$6
2267
2034
  });
2268
2035
 
2269
- const is$typed$6 = is$typed$f, validate$6 = validate$f;
2270
- const id$6 = 'org.hypercerts.claim.evaluation';
2271
- const hashScore = 'score';
2272
- function isScore(v) {
2273
- return is$typed$6(v, id$6, hashScore);
2274
- }
2275
- function validateScore(v) {
2276
- return validate$6(v, id$6, hashScore);
2277
- }
2036
+ const is$typed$6 = is$typed$e, validate$6 = validate$e;
2037
+ const id$6 = 'org.hypercerts.claim.contributor';
2278
2038
  const hashMain$5 = 'main';
2279
2039
  function isMain$5(v) {
2280
2040
  return is$typed$6(v, id$6, hashMain$5);
@@ -2283,18 +2043,23 @@ function validateMain$5(v) {
2283
2043
  return validate$6(v, id$6, hashMain$5, true);
2284
2044
  }
2285
2045
 
2286
- var evaluation = /*#__PURE__*/Object.freeze({
2046
+ var contributor = /*#__PURE__*/Object.freeze({
2287
2047
  __proto__: null,
2288
2048
  isMain: isMain$5,
2289
2049
  isRecord: isMain$5,
2290
- isScore: isScore,
2291
2050
  validateMain: validateMain$5,
2292
- validateRecord: validateMain$5,
2293
- validateScore: validateScore
2051
+ validateRecord: validateMain$5
2294
2052
  });
2295
2053
 
2296
- const is$typed$5 = is$typed$f, validate$5 = validate$f;
2297
- 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
+ }
2298
2063
  const hashMain$4 = 'main';
2299
2064
  function isMain$4(v) {
2300
2065
  return is$typed$5(v, id$5, hashMain$4);
@@ -2303,16 +2068,18 @@ function validateMain$4(v) {
2303
2068
  return validate$5(v, id$5, hashMain$4, true);
2304
2069
  }
2305
2070
 
2306
- var evidence = /*#__PURE__*/Object.freeze({
2071
+ var evaluation = /*#__PURE__*/Object.freeze({
2307
2072
  __proto__: null,
2308
2073
  isMain: isMain$4,
2309
2074
  isRecord: isMain$4,
2075
+ isScore: isScore,
2310
2076
  validateMain: validateMain$4,
2311
- validateRecord: validateMain$4
2077
+ validateRecord: validateMain$4,
2078
+ validateScore: validateScore
2312
2079
  });
2313
2080
 
2314
- const is$typed$4 = is$typed$f, validate$4 = validate$f;
2315
- 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';
2316
2083
  const hashMain$3 = 'main';
2317
2084
  function isMain$3(v) {
2318
2085
  return is$typed$4(v, id$4, hashMain$3);
@@ -2321,7 +2088,7 @@ function validateMain$3(v) {
2321
2088
  return validate$4(v, id$4, hashMain$3, true);
2322
2089
  }
2323
2090
 
2324
- var measurement = /*#__PURE__*/Object.freeze({
2091
+ var evidence = /*#__PURE__*/Object.freeze({
2325
2092
  __proto__: null,
2326
2093
  isMain: isMain$3,
2327
2094
  isRecord: isMain$3,
@@ -2329,8 +2096,8 @@ var measurement = /*#__PURE__*/Object.freeze({
2329
2096
  validateRecord: validateMain$3
2330
2097
  });
2331
2098
 
2332
- const is$typed$3 = is$typed$f, validate$3 = validate$f;
2333
- 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';
2334
2101
  const hashMain$2 = 'main';
2335
2102
  function isMain$2(v) {
2336
2103
  return is$typed$3(v, id$3, hashMain$2);
@@ -2339,7 +2106,7 @@ function validateMain$2(v) {
2339
2106
  return validate$3(v, id$3, hashMain$2, true);
2340
2107
  }
2341
2108
 
2342
- var project = /*#__PURE__*/Object.freeze({
2109
+ var measurement = /*#__PURE__*/Object.freeze({
2343
2110
  __proto__: null,
2344
2111
  isMain: isMain$2,
2345
2112
  isRecord: isMain$2,
@@ -2347,7 +2114,7 @@ var project = /*#__PURE__*/Object.freeze({
2347
2114
  validateRecord: validateMain$2
2348
2115
  });
2349
2116
 
2350
- const is$typed$2 = is$typed$f, validate$2 = validate$f;
2117
+ const is$typed$2 = is$typed$e, validate$2 = validate$e;
2351
2118
  const id$2 = 'org.hypercerts.claim.rights';
2352
2119
  const hashMain$1 = 'main';
2353
2120
  function isMain$1(v) {
@@ -2365,7 +2132,7 @@ var rights = /*#__PURE__*/Object.freeze({
2365
2132
  validateRecord: validateMain$1
2366
2133
  });
2367
2134
 
2368
- const is$typed$1 = is$typed$f, validate$1 = validate$f;
2135
+ const is$typed$1 = is$typed$e, validate$1 = validate$e;
2369
2136
  const id$1 = 'org.hypercerts.defs';
2370
2137
  const hashUri = 'uri';
2371
2138
  function isUri(v) {
@@ -2417,7 +2184,7 @@ var defs = /*#__PURE__*/Object.freeze({
2417
2184
  validateUri: validateUri
2418
2185
  });
2419
2186
 
2420
- const is$typed = is$typed$f, validate = validate$f;
2187
+ const is$typed = is$typed$e, validate = validate$e;
2421
2188
  const id = 'org.hypercerts.funding.receipt';
2422
2189
  const hashMain = 'main';
2423
2190
  function isMain(v) {
@@ -2441,7 +2208,7 @@ var receipt = /*#__PURE__*/Object.freeze({
2441
2208
  * ⚠️ DO NOT EDIT THIS FILE MANUALLY ⚠️
2442
2209
  *
2443
2210
  * This file is automatically generated by scripts/generate-exports.js
2444
- * Generated: 2026-01-04T01:24:32.988Z
2211
+ * Generated: 2026-01-21T06:36:03.155Z
2445
2212
  *
2446
2213
  * To regenerate this file, run:
2447
2214
  * npm run gen-api
@@ -2466,11 +2233,10 @@ const LOCATION_NSID = "app.certified.location";
2466
2233
  const STRONGREF_NSID = "com.atproto.repo.strongRef";
2467
2234
  const ACTIVITY_NSID = "org.hypercerts.claim.activity";
2468
2235
  const COLLECTION_NSID = "org.hypercerts.claim.collection";
2469
- const CONTRIBUTION_NSID = "org.hypercerts.claim.contribution";
2236
+ const CONTRIBUTOR_NSID = "org.hypercerts.claim.contributor";
2470
2237
  const EVALUATION_NSID = "org.hypercerts.claim.evaluation";
2471
2238
  const EVIDENCE_NSID = "org.hypercerts.claim.evidence";
2472
2239
  const MEASUREMENT_NSID = "org.hypercerts.claim.measurement";
2473
- const PROJECT_NSID = "org.hypercerts.claim.project";
2474
2240
  const RIGHTS_NSID = "org.hypercerts.claim.rights";
2475
2241
  const HYPERCERTS_DEFS_NSID = "org.hypercerts.defs";
2476
2242
  const FUNDING_RECEIPT_NSID = "org.hypercerts.funding.receipt";
@@ -2489,11 +2255,10 @@ const HYPERCERTS_NSIDS = {
2489
2255
  STRONGREF: STRONGREF_NSID,
2490
2256
  ACTIVITY: ACTIVITY_NSID,
2491
2257
  COLLECTION: COLLECTION_NSID,
2492
- CONTRIBUTION: CONTRIBUTION_NSID,
2258
+ CONTRIBUTOR: CONTRIBUTOR_NSID,
2493
2259
  EVALUATION: EVALUATION_NSID,
2494
2260
  EVIDENCE: EVIDENCE_NSID,
2495
2261
  MEASUREMENT: MEASUREMENT_NSID,
2496
- PROJECT: PROJECT_NSID,
2497
2262
  RIGHTS: RIGHTS_NSID,
2498
2263
  HYPERCERTS_DEFS: HYPERCERTS_DEFS_NSID,
2499
2264
  FUNDING_RECEIPT: FUNDING_RECEIPT_NSID,
@@ -2510,11 +2275,10 @@ const HYPERCERTS_LEXICON_JSON = {
2510
2275
  STRONGREF: STRONGREF_LEXICON_JSON,
2511
2276
  ACTIVITY: ACTIVITY_LEXICON_JSON,
2512
2277
  COLLECTION: COLLECTION_LEXICON_JSON,
2513
- CONTRIBUTION: CONTRIBUTION_LEXICON_JSON,
2278
+ CONTRIBUTOR: CONTRIBUTOR_LEXICON_JSON,
2514
2279
  EVALUATION: EVALUATION_LEXICON_JSON,
2515
2280
  EVIDENCE: EVIDENCE_LEXICON_JSON,
2516
2281
  MEASUREMENT: MEASUREMENT_LEXICON_JSON,
2517
- PROJECT: PROJECT_LEXICON_JSON,
2518
2282
  RIGHTS: RIGHTS_LEXICON_JSON,
2519
2283
  HYPERCERTS_DEFS: HYPERCERTS_DEFS_LEXICON_JSON,
2520
2284
  FUNDING_RECEIPT: FUNDING_RECEIPT_LEXICON_JSON,
@@ -2528,11 +2292,10 @@ const LOCATION_LEXICON_DOC = lexicons.get(LOCATION_NSID);
2528
2292
  const STRONGREF_LEXICON_DOC = lexicons.get(STRONGREF_NSID);
2529
2293
  const ACTIVITY_LEXICON_DOC = lexicons.get(ACTIVITY_NSID);
2530
2294
  const COLLECTION_LEXICON_DOC = lexicons.get(COLLECTION_NSID);
2531
- const CONTRIBUTION_LEXICON_DOC = lexicons.get(CONTRIBUTION_NSID);
2295
+ const CONTRIBUTOR_LEXICON_DOC = lexicons.get(CONTRIBUTOR_NSID);
2532
2296
  const EVALUATION_LEXICON_DOC = lexicons.get(EVALUATION_NSID);
2533
2297
  const EVIDENCE_LEXICON_DOC = lexicons.get(EVIDENCE_NSID);
2534
2298
  const MEASUREMENT_LEXICON_DOC = lexicons.get(MEASUREMENT_NSID);
2535
- const PROJECT_LEXICON_DOC = lexicons.get(PROJECT_NSID);
2536
2299
  const RIGHTS_LEXICON_DOC = lexicons.get(RIGHTS_NSID);
2537
2300
  const HYPERCERTS_DEFS_LEXICON_DOC = lexicons.get(HYPERCERTS_DEFS_NSID);
2538
2301
  const FUNDING_RECEIPT_LEXICON_DOC = lexicons.get(FUNDING_RECEIPT_NSID);
@@ -2548,11 +2311,10 @@ const HYPERCERTS_LEXICON_DOC = {
2548
2311
  STRONGREF: STRONGREF_LEXICON_DOC,
2549
2312
  ACTIVITY: ACTIVITY_LEXICON_DOC,
2550
2313
  COLLECTION: COLLECTION_LEXICON_DOC,
2551
- CONTRIBUTION: CONTRIBUTION_LEXICON_DOC,
2314
+ CONTRIBUTOR: CONTRIBUTOR_LEXICON_DOC,
2552
2315
  EVALUATION: EVALUATION_LEXICON_DOC,
2553
2316
  EVIDENCE: EVIDENCE_LEXICON_DOC,
2554
2317
  MEASUREMENT: MEASUREMENT_LEXICON_DOC,
2555
- PROJECT: PROJECT_LEXICON_DOC,
2556
2318
  RIGHTS: RIGHTS_LEXICON_DOC,
2557
2319
  HYPERCERTS_DEFS: HYPERCERTS_DEFS_LEXICON_DOC,
2558
2320
  FUNDING_RECEIPT: FUNDING_RECEIPT_LEXICON_DOC,
@@ -2581,9 +2343,9 @@ exports.CERTIFIED_DEFS_NSID = CERTIFIED_DEFS_NSID;
2581
2343
  exports.COLLECTION_LEXICON_DOC = COLLECTION_LEXICON_DOC;
2582
2344
  exports.COLLECTION_LEXICON_JSON = COLLECTION_LEXICON_JSON;
2583
2345
  exports.COLLECTION_NSID = COLLECTION_NSID;
2584
- exports.CONTRIBUTION_LEXICON_DOC = CONTRIBUTION_LEXICON_DOC;
2585
- exports.CONTRIBUTION_LEXICON_JSON = CONTRIBUTION_LEXICON_JSON;
2586
- 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;
2587
2349
  exports.ComAtprotoRepoStrongRef = strongRef;
2588
2350
  exports.EVALUATION_LEXICON_DOC = EVALUATION_LEXICON_DOC;
2589
2351
  exports.EVALUATION_LEXICON_JSON = EVALUATION_LEXICON_JSON;
@@ -2611,17 +2373,13 @@ exports.MEASUREMENT_LEXICON_JSON = MEASUREMENT_LEXICON_JSON;
2611
2373
  exports.MEASUREMENT_NSID = MEASUREMENT_NSID;
2612
2374
  exports.OrgHypercertsClaimActivity = activity;
2613
2375
  exports.OrgHypercertsClaimCollection = collection;
2614
- exports.OrgHypercertsClaimContribution = contribution;
2376
+ exports.OrgHypercertsClaimContributor = contributor;
2615
2377
  exports.OrgHypercertsClaimEvaluation = evaluation;
2616
2378
  exports.OrgHypercertsClaimEvidence = evidence;
2617
2379
  exports.OrgHypercertsClaimMeasurement = measurement;
2618
- exports.OrgHypercertsClaimProject = project;
2619
2380
  exports.OrgHypercertsClaimRights = rights;
2620
2381
  exports.OrgHypercertsDefs = defs;
2621
2382
  exports.OrgHypercertsFundingReceipt = receipt;
2622
- exports.PROJECT_LEXICON_DOC = PROJECT_LEXICON_DOC;
2623
- exports.PROJECT_LEXICON_JSON = PROJECT_LEXICON_JSON;
2624
- exports.PROJECT_NSID = PROJECT_NSID;
2625
2383
  exports.RIGHTS_LEXICON_DOC = RIGHTS_LEXICON_DOC;
2626
2384
  exports.RIGHTS_LEXICON_JSON = RIGHTS_LEXICON_JSON;
2627
2385
  exports.RIGHTS_NSID = RIGHTS_NSID;
@@ -2629,8 +2387,8 @@ exports.STRONGREF_LEXICON_DOC = STRONGREF_LEXICON_DOC;
2629
2387
  exports.STRONGREF_LEXICON_JSON = STRONGREF_LEXICON_JSON;
2630
2388
  exports.STRONGREF_NSID = STRONGREF_NSID;
2631
2389
  exports.asPredicate = asPredicate;
2632
- exports.is$typed = is$typed$f;
2390
+ exports.is$typed = is$typed$e;
2633
2391
  exports.lexicons = lexicons;
2634
2392
  exports.maybe$typed = maybe$typed;
2635
- exports.validate = validate$f;
2393
+ exports.validate = validate$e;
2636
2394
  //# sourceMappingURL=index.cjs.map