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