@hypercerts-org/lexicon 0.10.0-beta.7 → 0.10.0-beta.8

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 (34) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/SCHEMAS.md +12 -8
  3. package/dist/exports.d.ts +143 -3
  4. package/dist/exports.d.ts.map +1 -1
  5. package/dist/generated/exports.d.ts +143 -3
  6. package/dist/generated/exports.d.ts.map +1 -1
  7. package/dist/generated/lexicons.d.ts +276 -6
  8. package/dist/generated/lexicons.d.ts.map +1 -1
  9. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +3 -1
  10. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  11. package/dist/generated/types/org/hypercerts/defs.d.ts +44 -0
  12. package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -1
  13. package/dist/generated/types/org/hypercerts/helper/workScopeTag.d.ts +31 -0
  14. package/dist/generated/types/org/hypercerts/helper/workScopeTag.d.ts.map +1 -0
  15. package/dist/index.cjs +615 -216
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.mjs +607 -212
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/lexicons.cjs +162 -3
  20. package/dist/lexicons.cjs.map +1 -1
  21. package/dist/lexicons.d.ts +276 -6
  22. package/dist/lexicons.d.ts.map +1 -1
  23. package/dist/lexicons.mjs +162 -3
  24. package/dist/lexicons.mjs.map +1 -1
  25. package/dist/types/org/hypercerts/claim/activity.d.ts +3 -1
  26. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  27. package/dist/types/org/hypercerts/defs.d.ts +44 -0
  28. package/dist/types/org/hypercerts/defs.d.ts.map +1 -1
  29. package/dist/types/org/hypercerts/helper/workScopeTag.d.ts +31 -0
  30. package/dist/types/org/hypercerts/helper/workScopeTag.d.ts.map +1 -0
  31. package/lexicons/org/hypercerts/claim/activity.json +8 -3
  32. package/lexicons/org/hypercerts/defs.json +88 -0
  33. package/lexicons/org/hypercerts/helper/workScopeTag.json +65 -0
  34. package/package.json +1 -1
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$g(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) {
@@ -317,9 +317,14 @@ const schemaDict = {
317
317
  description: 'The hypercert visual representation as a URI or image blob.',
318
318
  },
319
319
  workScope: {
320
- type: 'ref',
321
- ref: 'lex:com.atproto.repo.strongRef',
322
- description: 'A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions.',
320
+ type: 'union',
321
+ refs: [
322
+ 'lex:org.hypercerts.defs#workScopeAll',
323
+ 'lex:org.hypercerts.defs#workScopeAny',
324
+ 'lex:org.hypercerts.defs#workScopeNot',
325
+ 'lex:org.hypercerts.defs#workScopeAtom',
326
+ ],
327
+ description: 'Work scope logic expression using boolean operators (all/any/not) and atomic scope references.',
323
328
  },
324
329
  startDate: {
325
330
  type: 'string',
@@ -899,6 +904,94 @@ const schemaDict = {
899
904
  },
900
905
  },
901
906
  },
907
+ workScopeAll: {
908
+ type: 'object',
909
+ required: ['op', 'args'],
910
+ description: 'Logical AND operation: all arguments must be satisfied.',
911
+ properties: {
912
+ op: {
913
+ type: 'string',
914
+ const: 'all',
915
+ description: "Operator type: 'all' (logical AND)",
916
+ },
917
+ args: {
918
+ type: 'array',
919
+ items: {
920
+ type: 'union',
921
+ refs: [
922
+ 'lex:org.hypercerts.defs#workScopeAll',
923
+ 'lex:org.hypercerts.defs#workScopeAny',
924
+ 'lex:org.hypercerts.defs#workScopeNot',
925
+ 'lex:org.hypercerts.defs#workScopeAtom',
926
+ ],
927
+ },
928
+ minLength: 1,
929
+ maxLength: 100,
930
+ description: 'Array of work scope expressions that must all be satisfied',
931
+ },
932
+ },
933
+ },
934
+ workScopeAny: {
935
+ type: 'object',
936
+ required: ['op', 'args'],
937
+ description: 'Logical OR operation: at least one argument must be satisfied.',
938
+ properties: {
939
+ op: {
940
+ type: 'string',
941
+ const: 'any',
942
+ description: "Operator type: 'any' (logical OR)",
943
+ },
944
+ args: {
945
+ type: 'array',
946
+ items: {
947
+ type: 'union',
948
+ refs: [
949
+ 'lex:org.hypercerts.defs#workScopeAll',
950
+ 'lex:org.hypercerts.defs#workScopeAny',
951
+ 'lex:org.hypercerts.defs#workScopeNot',
952
+ 'lex:org.hypercerts.defs#workScopeAtom',
953
+ ],
954
+ },
955
+ minLength: 1,
956
+ maxLength: 100,
957
+ description: 'Array of work scope expressions, at least one of which must be satisfied',
958
+ },
959
+ },
960
+ },
961
+ workScopeNot: {
962
+ type: 'object',
963
+ required: ['op', 'arg'],
964
+ description: 'Logical NOT operation: the argument must not be satisfied.',
965
+ properties: {
966
+ op: {
967
+ type: 'string',
968
+ const: 'not',
969
+ description: "Operator type: 'not' (logical NOT)",
970
+ },
971
+ arg: {
972
+ type: 'union',
973
+ refs: [
974
+ 'lex:org.hypercerts.defs#workScopeAll',
975
+ 'lex:org.hypercerts.defs#workScopeAny',
976
+ 'lex:org.hypercerts.defs#workScopeNot',
977
+ 'lex:org.hypercerts.defs#workScopeAtom',
978
+ ],
979
+ description: 'Work scope expression that must not be satisfied',
980
+ },
981
+ },
982
+ },
983
+ workScopeAtom: {
984
+ type: 'object',
985
+ required: ['atom'],
986
+ description: 'Atomic scope reference: a strong reference to a scope record.',
987
+ properties: {
988
+ atom: {
989
+ type: 'ref',
990
+ ref: 'lex:com.atproto.repo.strongRef',
991
+ description: 'Strong reference to an org.hypercerts.helper.workScopeTag record',
992
+ },
993
+ },
994
+ },
902
995
  },
903
996
  },
904
997
  OrgHypercertsFundingReceipt: {
@@ -967,11 +1060,76 @@ const schemaDict = {
967
1060
  },
968
1061
  },
969
1062
  },
1063
+ OrgHypercertsHelperWorkScopeTag: {
1064
+ lexicon: 1,
1065
+ id: 'org.hypercerts.helper.workScopeTag',
1066
+ defs: {
1067
+ main: {
1068
+ type: 'record',
1069
+ description: 'A reusable scope atom for work scope logic expressions. Scopes can represent topics, languages, domains, deliverables, methods, regions, tags, or other categorical labels.',
1070
+ key: 'tid',
1071
+ record: {
1072
+ type: 'object',
1073
+ required: ['createdAt', 'key', 'label'],
1074
+ properties: {
1075
+ createdAt: {
1076
+ type: 'string',
1077
+ format: 'datetime',
1078
+ description: 'Client-declared timestamp when this record was originally created',
1079
+ },
1080
+ key: {
1081
+ type: 'string',
1082
+ description: "Lowercase, hyphenated machine-readable key for this scope (e.g., 'ipfs', 'go-lang', 'filecoin').",
1083
+ maxLength: 120,
1084
+ },
1085
+ label: {
1086
+ type: 'string',
1087
+ description: 'Human-readable label for this scope.',
1088
+ maxLength: 200,
1089
+ },
1090
+ kind: {
1091
+ type: 'string',
1092
+ description: 'Category type of this scope. Recommended values: topic, language, domain, method, tag.',
1093
+ maxLength: 50,
1094
+ },
1095
+ description: {
1096
+ type: 'string',
1097
+ description: 'Optional longer description of this scope.',
1098
+ maxLength: 10000,
1099
+ maxGraphemes: 1000,
1100
+ },
1101
+ parent: {
1102
+ type: 'ref',
1103
+ ref: 'lex:com.atproto.repo.strongRef',
1104
+ description: 'Optional strong reference to a parent scope record for taxonomy/hierarchy support.',
1105
+ },
1106
+ aliases: {
1107
+ type: 'array',
1108
+ items: {
1109
+ type: 'string',
1110
+ maxLength: 200,
1111
+ },
1112
+ maxLength: 50,
1113
+ description: 'Optional array of alternative names or identifiers for this scope.',
1114
+ },
1115
+ externalReference: {
1116
+ type: 'union',
1117
+ refs: [
1118
+ 'lex:org.hypercerts.defs#uri',
1119
+ 'lex:org.hypercerts.defs#smallBlob',
1120
+ ],
1121
+ description: 'Optional external reference for this scope as a URI or blob.',
1122
+ },
1123
+ },
1124
+ },
1125
+ },
1126
+ },
1127
+ },
970
1128
  };
971
1129
  const schemas = Object.values(schemaDict);
972
1130
  const lexicons = new Lexicons(schemas);
973
- function validate$f(v, id, hash, requiredType) {
974
- return (requiredType ? is$typed$f : maybe$typed)(v, id, hash)
1131
+ function validate$g(v, id, hash, requiredType) {
1132
+ return (requiredType ? is$typed$g : maybe$typed)(v, id, hash)
975
1133
  ? lexicons.validate(`${id}#${hash}`, v)
976
1134
  : {
977
1135
  success: false,
@@ -995,11 +1153,12 @@ const ids = {
995
1153
  OrgHypercertsClaimRights: 'org.hypercerts.claim.rights',
996
1154
  OrgHypercertsDefs: 'org.hypercerts.defs',
997
1155
  OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',
1156
+ OrgHypercertsHelperWorkScopeTag: 'org.hypercerts.helper.workScopeTag',
998
1157
  };
999
1158
 
1000
- var lexicon$f = 1;
1001
- var id$u = "app.certified.badge.award";
1002
- var defs$h = {
1159
+ var lexicon$g = 1;
1160
+ var id$w = "app.certified.badge.award";
1161
+ var defs$i = {
1003
1162
  main: {
1004
1163
  type: "record",
1005
1164
  description: "Records a badge award to a user, project, or activity claim.",
@@ -1039,14 +1198,14 @@ var defs$h = {
1039
1198
  }
1040
1199
  };
1041
1200
  var BADGE_AWARD_LEXICON_JSON = {
1042
- lexicon: lexicon$f,
1043
- id: id$u,
1044
- defs: defs$h
1201
+ lexicon: lexicon$g,
1202
+ id: id$w,
1203
+ defs: defs$i
1045
1204
  };
1046
1205
 
1047
- var lexicon$e = 1;
1048
- var id$t = "app.certified.badge.definition";
1049
- var defs$g = {
1206
+ var lexicon$f = 1;
1207
+ var id$v = "app.certified.badge.definition";
1208
+ var defs$h = {
1050
1209
  main: {
1051
1210
  type: "record",
1052
1211
  description: "Defines a badge that can be awarded via badge award records to users, projects, or activity claims.",
@@ -1101,14 +1260,14 @@ var defs$g = {
1101
1260
  }
1102
1261
  };
1103
1262
  var BADGE_DEFINITION_LEXICON_JSON = {
1104
- lexicon: lexicon$e,
1105
- id: id$t,
1106
- defs: defs$g
1263
+ lexicon: lexicon$f,
1264
+ id: id$v,
1265
+ defs: defs$h
1107
1266
  };
1108
1267
 
1109
- var lexicon$d = 1;
1110
- var id$s = "app.certified.badge.response";
1111
- var defs$f = {
1268
+ var lexicon$e = 1;
1269
+ var id$u = "app.certified.badge.response";
1270
+ var defs$g = {
1112
1271
  main: {
1113
1272
  type: "record",
1114
1273
  description: "Recipient response to a badge award.",
@@ -1148,15 +1307,15 @@ var defs$f = {
1148
1307
  }
1149
1308
  };
1150
1309
  var BADGE_RESPONSE_LEXICON_JSON = {
1151
- lexicon: lexicon$d,
1152
- id: id$s,
1153
- defs: defs$f
1310
+ lexicon: lexicon$e,
1311
+ id: id$u,
1312
+ defs: defs$g
1154
1313
  };
1155
1314
 
1156
- var lexicon$c = 1;
1157
- var id$r = "app.certified.defs";
1315
+ var lexicon$d = 1;
1316
+ var id$t = "app.certified.defs";
1158
1317
  var description$1 = "Common type definitions used across certified protocols.";
1159
- var defs$e = {
1318
+ var defs$f = {
1160
1319
  did: {
1161
1320
  type: "string",
1162
1321
  format: "did",
@@ -1164,15 +1323,15 @@ var defs$e = {
1164
1323
  }
1165
1324
  };
1166
1325
  var CERTIFIED_DEFS_LEXICON_JSON = {
1167
- lexicon: lexicon$c,
1168
- id: id$r,
1326
+ lexicon: lexicon$d,
1327
+ id: id$t,
1169
1328
  description: description$1,
1170
- defs: defs$e
1329
+ defs: defs$f
1171
1330
  };
1172
1331
 
1173
- var lexicon$b = 1;
1174
- var id$q = "app.certified.location";
1175
- var defs$d = {
1332
+ var lexicon$c = 1;
1333
+ var id$s = "app.certified.location";
1334
+ var defs$e = {
1176
1335
  main: {
1177
1336
  type: "record",
1178
1337
  description: "A location reference",
@@ -1237,15 +1396,15 @@ var defs$d = {
1237
1396
  }
1238
1397
  };
1239
1398
  var LOCATION_LEXICON_JSON = {
1240
- lexicon: lexicon$b,
1241
- id: id$q,
1242
- defs: defs$d
1399
+ lexicon: lexicon$c,
1400
+ id: id$s,
1401
+ defs: defs$e
1243
1402
  };
1244
1403
 
1245
- var lexicon$a = 1;
1246
- var id$p = "com.atproto.repo.strongRef";
1404
+ var lexicon$b = 1;
1405
+ var id$r = "com.atproto.repo.strongRef";
1247
1406
  var description = "A URI with a content-hash fingerprint.";
1248
- var defs$c = {
1407
+ var defs$d = {
1249
1408
  main: {
1250
1409
  type: "object",
1251
1410
  required: [
@@ -1265,15 +1424,15 @@ var defs$c = {
1265
1424
  }
1266
1425
  };
1267
1426
  var STRONGREF_LEXICON_JSON = {
1268
- lexicon: lexicon$a,
1269
- id: id$p,
1427
+ lexicon: lexicon$b,
1428
+ id: id$r,
1270
1429
  description: description,
1271
- defs: defs$c
1430
+ defs: defs$d
1272
1431
  };
1273
1432
 
1274
- var lexicon$9 = 1;
1275
- var id$o = "org.hypercerts.claim.activity";
1276
- var defs$b = {
1433
+ var lexicon$a = 1;
1434
+ var id$q = "org.hypercerts.claim.activity";
1435
+ var defs$c = {
1277
1436
  main: {
1278
1437
  type: "record",
1279
1438
  description: "A hypercert record tracking impact work.",
@@ -1328,9 +1487,14 @@ var defs$b = {
1328
1487
  description: "The hypercert visual representation as a URI or image blob."
1329
1488
  },
1330
1489
  workScope: {
1331
- type: "ref",
1332
- ref: "com.atproto.repo.strongRef",
1333
- description: "A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions."
1490
+ type: "union",
1491
+ refs: [
1492
+ "org.hypercerts.defs#workScopeAll",
1493
+ "org.hypercerts.defs#workScopeAny",
1494
+ "org.hypercerts.defs#workScopeNot",
1495
+ "org.hypercerts.defs#workScopeAtom"
1496
+ ],
1497
+ description: "Work scope logic expression using boolean operators (all/any/not) and atomic scope references."
1334
1498
  },
1335
1499
  startDate: {
1336
1500
  type: "string",
@@ -1411,14 +1575,14 @@ var defs$b = {
1411
1575
  }
1412
1576
  };
1413
1577
  var ACTIVITY_LEXICON_JSON = {
1414
- lexicon: lexicon$9,
1415
- id: id$o,
1416
- defs: defs$b
1578
+ lexicon: lexicon$a,
1579
+ id: id$q,
1580
+ defs: defs$c
1417
1581
  };
1418
1582
 
1419
- var lexicon$8 = 1;
1420
- var id$n = "org.hypercerts.claim.collection";
1421
- var defs$a = {
1583
+ var lexicon$9 = 1;
1584
+ var id$p = "org.hypercerts.claim.collection";
1585
+ var defs$b = {
1422
1586
  main: {
1423
1587
  type: "record",
1424
1588
  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.",
@@ -1503,14 +1667,14 @@ var defs$a = {
1503
1667
  }
1504
1668
  };
1505
1669
  var COLLECTION_LEXICON_JSON = {
1506
- lexicon: lexicon$8,
1507
- id: id$n,
1508
- defs: defs$a
1670
+ lexicon: lexicon$9,
1671
+ id: id$p,
1672
+ defs: defs$b
1509
1673
  };
1510
1674
 
1511
- var lexicon$7 = 1;
1512
- var id$m = "org.hypercerts.claim.contributionDetails";
1513
- var defs$9 = {
1675
+ var lexicon$8 = 1;
1676
+ var id$o = "org.hypercerts.claim.contributionDetails";
1677
+ var defs$a = {
1514
1678
  main: {
1515
1679
  type: "record",
1516
1680
  description: "Details about a specific contribution including role, description, and timeframe.",
@@ -1552,14 +1716,14 @@ var defs$9 = {
1552
1716
  }
1553
1717
  };
1554
1718
  var CONTRIBUTIONDETAILS_LEXICON_JSON = {
1555
- lexicon: lexicon$7,
1556
- id: id$m,
1557
- defs: defs$9
1719
+ lexicon: lexicon$8,
1720
+ id: id$o,
1721
+ defs: defs$a
1558
1722
  };
1559
1723
 
1560
- var lexicon$6 = 1;
1561
- var id$l = "org.hypercerts.claim.contributorInformation";
1562
- var defs$8 = {
1724
+ var lexicon$7 = 1;
1725
+ var id$n = "org.hypercerts.claim.contributorInformation";
1726
+ var defs$9 = {
1563
1727
  main: {
1564
1728
  type: "record",
1565
1729
  description: "Contributor information including identifier, display name, and image.",
@@ -1597,14 +1761,14 @@ var defs$8 = {
1597
1761
  }
1598
1762
  };
1599
1763
  var CONTRIBUTORINFORMATION_LEXICON_JSON = {
1600
- lexicon: lexicon$6,
1601
- id: id$l,
1602
- defs: defs$8
1764
+ lexicon: lexicon$7,
1765
+ id: id$n,
1766
+ defs: defs$9
1603
1767
  };
1604
1768
 
1605
- var lexicon$5 = 1;
1606
- var id$k = "org.hypercerts.claim.evaluation";
1607
- var defs$7 = {
1769
+ var lexicon$6 = 1;
1770
+ var id$m = "org.hypercerts.claim.evaluation";
1771
+ var defs$8 = {
1608
1772
  score: {
1609
1773
  type: "object",
1610
1774
  description: "Overall score for an evaluation on a numeric scale.",
@@ -1701,14 +1865,14 @@ var defs$7 = {
1701
1865
  }
1702
1866
  };
1703
1867
  var EVALUATION_LEXICON_JSON = {
1704
- lexicon: lexicon$5,
1705
- id: id$k,
1706
- defs: defs$7
1868
+ lexicon: lexicon$6,
1869
+ id: id$m,
1870
+ defs: defs$8
1707
1871
  };
1708
1872
 
1709
- var lexicon$4 = 1;
1710
- var id$j = "org.hypercerts.claim.evidence";
1711
- var defs$6 = {
1873
+ var lexicon$5 = 1;
1874
+ var id$l = "org.hypercerts.claim.evidence";
1875
+ var defs$7 = {
1712
1876
  main: {
1713
1877
  type: "record",
1714
1878
  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.",
@@ -1770,14 +1934,14 @@ var defs$6 = {
1770
1934
  }
1771
1935
  };
1772
1936
  var EVIDENCE_LEXICON_JSON = {
1773
- lexicon: lexicon$4,
1774
- id: id$j,
1775
- defs: defs$6
1937
+ lexicon: lexicon$5,
1938
+ id: id$l,
1939
+ defs: defs$7
1776
1940
  };
1777
1941
 
1778
- var lexicon$3 = 1;
1779
- var id$i = "org.hypercerts.claim.measurement";
1780
- var defs$5 = {
1942
+ var lexicon$4 = 1;
1943
+ var id$k = "org.hypercerts.claim.measurement";
1944
+ var defs$6 = {
1781
1945
  main: {
1782
1946
  type: "record",
1783
1947
  description: "Measurement data related to a hypercert record (e.g. an activity and its impact).",
@@ -1849,14 +2013,14 @@ var defs$5 = {
1849
2013
  }
1850
2014
  };
1851
2015
  var MEASUREMENT_LEXICON_JSON = {
1852
- lexicon: lexicon$3,
1853
- id: id$i,
1854
- defs: defs$5
2016
+ lexicon: lexicon$4,
2017
+ id: id$k,
2018
+ defs: defs$6
1855
2019
  };
1856
2020
 
1857
- var lexicon$2 = 1;
1858
- var id$h = "org.hypercerts.claim.rights";
1859
- var defs$4 = {
2021
+ var lexicon$3 = 1;
2022
+ var id$j = "org.hypercerts.claim.rights";
2023
+ var defs$5 = {
1860
2024
  main: {
1861
2025
  type: "record",
1862
2026
  description: "Describes the rights that a contributor and/or an owner has, such as whether the hypercert can be sold, transferred, and under what conditions.",
@@ -1902,14 +2066,14 @@ var defs$4 = {
1902
2066
  }
1903
2067
  };
1904
2068
  var RIGHTS_LEXICON_JSON = {
1905
- lexicon: lexicon$2,
1906
- id: id$h,
1907
- defs: defs$4
2069
+ lexicon: lexicon$3,
2070
+ id: id$j,
2071
+ defs: defs$5
1908
2072
  };
1909
2073
 
1910
- var lexicon$1 = 1;
1911
- var id$g = "org.hypercerts.defs";
1912
- var defs$3 = {
2074
+ var lexicon$2 = 1;
2075
+ var id$i = "org.hypercerts.defs";
2076
+ var defs$4 = {
1913
2077
  uri: {
1914
2078
  type: "object",
1915
2079
  required: [
@@ -1998,17 +2162,116 @@ var defs$3 = {
1998
2162
  description: "Image (up to 10MB)"
1999
2163
  }
2000
2164
  }
2165
+ },
2166
+ workScopeAll: {
2167
+ type: "object",
2168
+ required: [
2169
+ "op",
2170
+ "args"
2171
+ ],
2172
+ description: "Logical AND operation: all arguments must be satisfied.",
2173
+ properties: {
2174
+ op: {
2175
+ type: "string",
2176
+ "const": "all",
2177
+ description: "Operator type: 'all' (logical AND)"
2178
+ },
2179
+ args: {
2180
+ type: "array",
2181
+ items: {
2182
+ type: "union",
2183
+ refs: [
2184
+ "#workScopeAll",
2185
+ "#workScopeAny",
2186
+ "#workScopeNot",
2187
+ "#workScopeAtom"
2188
+ ]
2189
+ },
2190
+ minLength: 1,
2191
+ maxLength: 100,
2192
+ description: "Array of work scope expressions that must all be satisfied"
2193
+ }
2194
+ }
2195
+ },
2196
+ workScopeAny: {
2197
+ type: "object",
2198
+ required: [
2199
+ "op",
2200
+ "args"
2201
+ ],
2202
+ description: "Logical OR operation: at least one argument must be satisfied.",
2203
+ properties: {
2204
+ op: {
2205
+ type: "string",
2206
+ "const": "any",
2207
+ description: "Operator type: 'any' (logical OR)"
2208
+ },
2209
+ args: {
2210
+ type: "array",
2211
+ items: {
2212
+ type: "union",
2213
+ refs: [
2214
+ "#workScopeAll",
2215
+ "#workScopeAny",
2216
+ "#workScopeNot",
2217
+ "#workScopeAtom"
2218
+ ]
2219
+ },
2220
+ minLength: 1,
2221
+ maxLength: 100,
2222
+ description: "Array of work scope expressions, at least one of which must be satisfied"
2223
+ }
2224
+ }
2225
+ },
2226
+ workScopeNot: {
2227
+ type: "object",
2228
+ required: [
2229
+ "op",
2230
+ "arg"
2231
+ ],
2232
+ description: "Logical NOT operation: the argument must not be satisfied.",
2233
+ properties: {
2234
+ op: {
2235
+ type: "string",
2236
+ "const": "not",
2237
+ description: "Operator type: 'not' (logical NOT)"
2238
+ },
2239
+ arg: {
2240
+ type: "union",
2241
+ refs: [
2242
+ "#workScopeAll",
2243
+ "#workScopeAny",
2244
+ "#workScopeNot",
2245
+ "#workScopeAtom"
2246
+ ],
2247
+ description: "Work scope expression that must not be satisfied"
2248
+ }
2249
+ }
2250
+ },
2251
+ workScopeAtom: {
2252
+ type: "object",
2253
+ required: [
2254
+ "atom"
2255
+ ],
2256
+ description: "Atomic scope reference: a strong reference to a scope record.",
2257
+ properties: {
2258
+ atom: {
2259
+ type: "ref",
2260
+ ref: "com.atproto.repo.strongRef",
2261
+ description: "Strong reference to an org.hypercerts.helper.workScopeTag record"
2262
+ }
2263
+ }
2001
2264
  }
2002
2265
  };
2003
2266
  var HYPERCERTS_DEFS_LEXICON_JSON = {
2004
- lexicon: lexicon$1,
2005
- id: id$g,
2006
- defs: defs$3
2267
+ lexicon: lexicon$2,
2268
+ id: id$i,
2269
+ defs: defs$4
2007
2270
  };
2008
2271
 
2009
- var lexicon = 1;
2010
- var id$f = "org.hypercerts.funding.receipt";
2011
- var defs$2 = {
2272
+ var lexicon$1 = 1;
2273
+ var id$h = "org.hypercerts.funding.receipt";
2274
+ var defs$3 = {
2012
2275
  main: {
2013
2276
  type: "record",
2014
2277
  description: "Records a funding receipt for a payment from one user to another user. It may be recorded by the recipient, by the sender, or by a third party. The sender may remain anonymous.",
@@ -2077,13 +2340,104 @@ var defs$2 = {
2077
2340
  }
2078
2341
  };
2079
2342
  var FUNDING_RECEIPT_LEXICON_JSON = {
2343
+ lexicon: lexicon$1,
2344
+ id: id$h,
2345
+ defs: defs$3
2346
+ };
2347
+
2348
+ var lexicon = 1;
2349
+ var id$g = "org.hypercerts.helper.workScopeTag";
2350
+ var defs$2 = {
2351
+ main: {
2352
+ type: "record",
2353
+ description: "A reusable scope atom for work scope logic expressions. Scopes can represent topics, languages, domains, deliverables, methods, regions, tags, or other categorical labels.",
2354
+ key: "tid",
2355
+ record: {
2356
+ type: "object",
2357
+ required: [
2358
+ "createdAt",
2359
+ "key",
2360
+ "label"
2361
+ ],
2362
+ properties: {
2363
+ createdAt: {
2364
+ type: "string",
2365
+ format: "datetime",
2366
+ description: "Client-declared timestamp when this record was originally created"
2367
+ },
2368
+ key: {
2369
+ type: "string",
2370
+ description: "Lowercase, hyphenated machine-readable key for this scope (e.g., 'ipfs', 'go-lang', 'filecoin').",
2371
+ maxLength: 120
2372
+ },
2373
+ label: {
2374
+ type: "string",
2375
+ description: "Human-readable label for this scope.",
2376
+ maxLength: 200
2377
+ },
2378
+ kind: {
2379
+ type: "string",
2380
+ description: "Category type of this scope. Recommended values: topic, language, domain, method, tag.",
2381
+ maxLength: 50
2382
+ },
2383
+ description: {
2384
+ type: "string",
2385
+ description: "Optional longer description of this scope.",
2386
+ maxLength: 10000,
2387
+ maxGraphemes: 1000
2388
+ },
2389
+ parent: {
2390
+ type: "ref",
2391
+ ref: "com.atproto.repo.strongRef",
2392
+ description: "Optional strong reference to a parent scope record for taxonomy/hierarchy support."
2393
+ },
2394
+ aliases: {
2395
+ type: "array",
2396
+ items: {
2397
+ type: "string",
2398
+ maxLength: 200
2399
+ },
2400
+ maxLength: 50,
2401
+ description: "Optional array of alternative names or identifiers for this scope."
2402
+ },
2403
+ externalReference: {
2404
+ type: "union",
2405
+ refs: [
2406
+ "org.hypercerts.defs#uri",
2407
+ "org.hypercerts.defs#smallBlob"
2408
+ ],
2409
+ description: "Optional external reference for this scope as a URI or blob."
2410
+ }
2411
+ }
2412
+ }
2413
+ }
2414
+ };
2415
+ var HELPER_WORKSCOPETAG_LEXICON_JSON = {
2080
2416
  lexicon: lexicon,
2081
- id: id$f,
2417
+ id: id$g,
2082
2418
  defs: defs$2
2083
2419
  };
2084
2420
 
2085
- const is$typed$e = is$typed$f, validate$e = validate$f;
2086
- const id$e = 'app.certified.badge.award';
2421
+ const is$typed$f = is$typed$g, validate$f = validate$g;
2422
+ const id$f = 'app.certified.badge.award';
2423
+ const hashMain$e = 'main';
2424
+ function isMain$e(v) {
2425
+ return is$typed$f(v, id$f, hashMain$e);
2426
+ }
2427
+ function validateMain$e(v) {
2428
+ return validate$f(v, id$f, hashMain$e, true);
2429
+ }
2430
+
2431
+ var award = /*#__PURE__*/Object.freeze({
2432
+ __proto__: null,
2433
+ isMain: isMain$e,
2434
+ isRecord: isMain$e,
2435
+ validateMain: validateMain$e,
2436
+ validateRecord: validateMain$e
2437
+ });
2438
+
2439
+ const is$typed$e = is$typed$g, validate$e = validate$g;
2440
+ const id$e = 'app.certified.badge.definition';
2087
2441
  const hashMain$d = 'main';
2088
2442
  function isMain$d(v) {
2089
2443
  return is$typed$e(v, id$e, hashMain$d);
@@ -2092,7 +2446,7 @@ function validateMain$d(v) {
2092
2446
  return validate$e(v, id$e, hashMain$d, true);
2093
2447
  }
2094
2448
 
2095
- var award = /*#__PURE__*/Object.freeze({
2449
+ var definition = /*#__PURE__*/Object.freeze({
2096
2450
  __proto__: null,
2097
2451
  isMain: isMain$d,
2098
2452
  isRecord: isMain$d,
@@ -2100,8 +2454,8 @@ var award = /*#__PURE__*/Object.freeze({
2100
2454
  validateRecord: validateMain$d
2101
2455
  });
2102
2456
 
2103
- const is$typed$d = is$typed$f, validate$d = validate$f;
2104
- const id$d = 'app.certified.badge.definition';
2457
+ const is$typed$d = is$typed$g, validate$d = validate$g;
2458
+ const id$d = 'app.certified.badge.response';
2105
2459
  const hashMain$c = 'main';
2106
2460
  function isMain$c(v) {
2107
2461
  return is$typed$d(v, id$d, hashMain$c);
@@ -2110,7 +2464,7 @@ function validateMain$c(v) {
2110
2464
  return validate$d(v, id$d, hashMain$c, true);
2111
2465
  }
2112
2466
 
2113
- var definition = /*#__PURE__*/Object.freeze({
2467
+ var response = /*#__PURE__*/Object.freeze({
2114
2468
  __proto__: null,
2115
2469
  isMain: isMain$c,
2116
2470
  isRecord: isMain$c,
@@ -2118,8 +2472,12 @@ var definition = /*#__PURE__*/Object.freeze({
2118
2472
  validateRecord: validateMain$c
2119
2473
  });
2120
2474
 
2121
- const is$typed$c = is$typed$f, validate$c = validate$f;
2122
- const id$c = 'app.certified.badge.response';
2475
+ var defs$1 = /*#__PURE__*/Object.freeze({
2476
+ __proto__: null
2477
+ });
2478
+
2479
+ const is$typed$c = is$typed$g, validate$c = validate$g;
2480
+ const id$c = 'app.certified.location';
2123
2481
  const hashMain$b = 'main';
2124
2482
  function isMain$b(v) {
2125
2483
  return is$typed$c(v, id$c, hashMain$b);
@@ -2128,7 +2486,7 @@ function validateMain$b(v) {
2128
2486
  return validate$c(v, id$c, hashMain$b, true);
2129
2487
  }
2130
2488
 
2131
- var response = /*#__PURE__*/Object.freeze({
2489
+ var location = /*#__PURE__*/Object.freeze({
2132
2490
  __proto__: null,
2133
2491
  isMain: isMain$b,
2134
2492
  isRecord: isMain$b,
@@ -2136,46 +2494,51 @@ var response = /*#__PURE__*/Object.freeze({
2136
2494
  validateRecord: validateMain$b
2137
2495
  });
2138
2496
 
2139
- var defs$1 = /*#__PURE__*/Object.freeze({
2140
- __proto__: null
2141
- });
2142
-
2143
- const is$typed$b = is$typed$f, validate$b = validate$f;
2144
- const id$b = 'app.certified.location';
2497
+ const is$typed$b = is$typed$g, validate$b = validate$g;
2498
+ const id$b = 'com.atproto.repo.strongRef';
2145
2499
  const hashMain$a = 'main';
2146
2500
  function isMain$a(v) {
2147
2501
  return is$typed$b(v, id$b, hashMain$a);
2148
2502
  }
2149
2503
  function validateMain$a(v) {
2150
- return validate$b(v, id$b, hashMain$a, true);
2504
+ return validate$b(v, id$b, hashMain$a);
2151
2505
  }
2152
2506
 
2153
- var location = /*#__PURE__*/Object.freeze({
2507
+ var strongRef = /*#__PURE__*/Object.freeze({
2154
2508
  __proto__: null,
2155
2509
  isMain: isMain$a,
2156
- isRecord: isMain$a,
2157
- validateMain: validateMain$a,
2158
- validateRecord: validateMain$a
2510
+ validateMain: validateMain$a
2159
2511
  });
2160
2512
 
2161
- const is$typed$a = is$typed$f, validate$a = validate$f;
2162
- const id$a = 'com.atproto.repo.strongRef';
2513
+ const is$typed$a = is$typed$g, validate$a = validate$g;
2514
+ const id$a = 'org.hypercerts.claim.activity';
2163
2515
  const hashMain$9 = 'main';
2164
2516
  function isMain$9(v) {
2165
2517
  return is$typed$a(v, id$a, hashMain$9);
2166
2518
  }
2167
2519
  function validateMain$9(v) {
2168
- return validate$a(v, id$a, hashMain$9);
2520
+ return validate$a(v, id$a, hashMain$9, true);
2521
+ }
2522
+ const hashContributor = 'contributor';
2523
+ function isContributor(v) {
2524
+ return is$typed$a(v, id$a, hashContributor);
2525
+ }
2526
+ function validateContributor(v) {
2527
+ return validate$a(v, id$a, hashContributor);
2169
2528
  }
2170
2529
 
2171
- var strongRef = /*#__PURE__*/Object.freeze({
2530
+ var activity = /*#__PURE__*/Object.freeze({
2172
2531
  __proto__: null,
2532
+ isContributor: isContributor,
2173
2533
  isMain: isMain$9,
2174
- validateMain: validateMain$9
2534
+ isRecord: isMain$9,
2535
+ validateContributor: validateContributor,
2536
+ validateMain: validateMain$9,
2537
+ validateRecord: validateMain$9
2175
2538
  });
2176
2539
 
2177
- const is$typed$9 = is$typed$f, validate$9 = validate$f;
2178
- const id$9 = 'org.hypercerts.claim.activity';
2540
+ const is$typed$9 = is$typed$g, validate$9 = validate$g;
2541
+ const id$9 = 'org.hypercerts.claim.collection';
2179
2542
  const hashMain$8 = 'main';
2180
2543
  function isMain$8(v) {
2181
2544
  return is$typed$9(v, id$9, hashMain$8);
@@ -2183,26 +2546,26 @@ function isMain$8(v) {
2183
2546
  function validateMain$8(v) {
2184
2547
  return validate$9(v, id$9, hashMain$8, true);
2185
2548
  }
2186
- const hashContributor = 'contributor';
2187
- function isContributor(v) {
2188
- return is$typed$9(v, id$9, hashContributor);
2549
+ const hashItem = 'item';
2550
+ function isItem(v) {
2551
+ return is$typed$9(v, id$9, hashItem);
2189
2552
  }
2190
- function validateContributor(v) {
2191
- return validate$9(v, id$9, hashContributor);
2553
+ function validateItem(v) {
2554
+ return validate$9(v, id$9, hashItem);
2192
2555
  }
2193
2556
 
2194
- var activity = /*#__PURE__*/Object.freeze({
2557
+ var collection = /*#__PURE__*/Object.freeze({
2195
2558
  __proto__: null,
2196
- isContributor: isContributor,
2559
+ isItem: isItem,
2197
2560
  isMain: isMain$8,
2198
2561
  isRecord: isMain$8,
2199
- validateContributor: validateContributor,
2562
+ validateItem: validateItem,
2200
2563
  validateMain: validateMain$8,
2201
2564
  validateRecord: validateMain$8
2202
2565
  });
2203
2566
 
2204
- const is$typed$8 = is$typed$f, validate$8 = validate$f;
2205
- const id$8 = 'org.hypercerts.claim.collection';
2567
+ const is$typed$8 = is$typed$g, validate$8 = validate$g;
2568
+ const id$8 = 'org.hypercerts.claim.contributionDetails';
2206
2569
  const hashMain$7 = 'main';
2207
2570
  function isMain$7(v) {
2208
2571
  return is$typed$8(v, id$8, hashMain$7);
@@ -2210,26 +2573,17 @@ function isMain$7(v) {
2210
2573
  function validateMain$7(v) {
2211
2574
  return validate$8(v, id$8, hashMain$7, true);
2212
2575
  }
2213
- const hashItem = 'item';
2214
- function isItem(v) {
2215
- return is$typed$8(v, id$8, hashItem);
2216
- }
2217
- function validateItem(v) {
2218
- return validate$8(v, id$8, hashItem);
2219
- }
2220
2576
 
2221
- var collection = /*#__PURE__*/Object.freeze({
2577
+ var contributionDetails = /*#__PURE__*/Object.freeze({
2222
2578
  __proto__: null,
2223
- isItem: isItem,
2224
2579
  isMain: isMain$7,
2225
2580
  isRecord: isMain$7,
2226
- validateItem: validateItem,
2227
2581
  validateMain: validateMain$7,
2228
2582
  validateRecord: validateMain$7
2229
2583
  });
2230
2584
 
2231
- const is$typed$7 = is$typed$f, validate$7 = validate$f;
2232
- const id$7 = 'org.hypercerts.claim.contributionDetails';
2585
+ const is$typed$7 = is$typed$g, validate$7 = validate$g;
2586
+ const id$7 = 'org.hypercerts.claim.contributorInformation';
2233
2587
  const hashMain$6 = 'main';
2234
2588
  function isMain$6(v) {
2235
2589
  return is$typed$7(v, id$7, hashMain$6);
@@ -2238,7 +2592,7 @@ function validateMain$6(v) {
2238
2592
  return validate$7(v, id$7, hashMain$6, true);
2239
2593
  }
2240
2594
 
2241
- var contributionDetails = /*#__PURE__*/Object.freeze({
2595
+ var contributorInformation = /*#__PURE__*/Object.freeze({
2242
2596
  __proto__: null,
2243
2597
  isMain: isMain$6,
2244
2598
  isRecord: isMain$6,
@@ -2246,8 +2600,15 @@ var contributionDetails = /*#__PURE__*/Object.freeze({
2246
2600
  validateRecord: validateMain$6
2247
2601
  });
2248
2602
 
2249
- const is$typed$6 = is$typed$f, validate$6 = validate$f;
2250
- const id$6 = 'org.hypercerts.claim.contributorInformation';
2603
+ const is$typed$6 = is$typed$g, validate$6 = validate$g;
2604
+ const id$6 = 'org.hypercerts.claim.evaluation';
2605
+ const hashScore = 'score';
2606
+ function isScore(v) {
2607
+ return is$typed$6(v, id$6, hashScore);
2608
+ }
2609
+ function validateScore(v) {
2610
+ return validate$6(v, id$6, hashScore);
2611
+ }
2251
2612
  const hashMain$5 = 'main';
2252
2613
  function isMain$5(v) {
2253
2614
  return is$typed$6(v, id$6, hashMain$5);
@@ -2256,23 +2617,18 @@ function validateMain$5(v) {
2256
2617
  return validate$6(v, id$6, hashMain$5, true);
2257
2618
  }
2258
2619
 
2259
- var contributorInformation = /*#__PURE__*/Object.freeze({
2620
+ var evaluation = /*#__PURE__*/Object.freeze({
2260
2621
  __proto__: null,
2261
2622
  isMain: isMain$5,
2262
2623
  isRecord: isMain$5,
2624
+ isScore: isScore,
2263
2625
  validateMain: validateMain$5,
2264
- validateRecord: validateMain$5
2626
+ validateRecord: validateMain$5,
2627
+ validateScore: validateScore
2265
2628
  });
2266
2629
 
2267
- const is$typed$5 = is$typed$f, validate$5 = validate$f;
2268
- const id$5 = 'org.hypercerts.claim.evaluation';
2269
- const hashScore = 'score';
2270
- function isScore(v) {
2271
- return is$typed$5(v, id$5, hashScore);
2272
- }
2273
- function validateScore(v) {
2274
- return validate$5(v, id$5, hashScore);
2275
- }
2630
+ const is$typed$5 = is$typed$g, validate$5 = validate$g;
2631
+ const id$5 = 'org.hypercerts.claim.evidence';
2276
2632
  const hashMain$4 = 'main';
2277
2633
  function isMain$4(v) {
2278
2634
  return is$typed$5(v, id$5, hashMain$4);
@@ -2281,18 +2637,16 @@ function validateMain$4(v) {
2281
2637
  return validate$5(v, id$5, hashMain$4, true);
2282
2638
  }
2283
2639
 
2284
- var evaluation = /*#__PURE__*/Object.freeze({
2640
+ var evidence = /*#__PURE__*/Object.freeze({
2285
2641
  __proto__: null,
2286
2642
  isMain: isMain$4,
2287
2643
  isRecord: isMain$4,
2288
- isScore: isScore,
2289
2644
  validateMain: validateMain$4,
2290
- validateRecord: validateMain$4,
2291
- validateScore: validateScore
2645
+ validateRecord: validateMain$4
2292
2646
  });
2293
2647
 
2294
- const is$typed$4 = is$typed$f, validate$4 = validate$f;
2295
- const id$4 = 'org.hypercerts.claim.evidence';
2648
+ const is$typed$4 = is$typed$g, validate$4 = validate$g;
2649
+ const id$4 = 'org.hypercerts.claim.measurement';
2296
2650
  const hashMain$3 = 'main';
2297
2651
  function isMain$3(v) {
2298
2652
  return is$typed$4(v, id$4, hashMain$3);
@@ -2301,7 +2655,7 @@ function validateMain$3(v) {
2301
2655
  return validate$4(v, id$4, hashMain$3, true);
2302
2656
  }
2303
2657
 
2304
- var evidence = /*#__PURE__*/Object.freeze({
2658
+ var measurement = /*#__PURE__*/Object.freeze({
2305
2659
  __proto__: null,
2306
2660
  isMain: isMain$3,
2307
2661
  isRecord: isMain$3,
@@ -2309,8 +2663,8 @@ var evidence = /*#__PURE__*/Object.freeze({
2309
2663
  validateRecord: validateMain$3
2310
2664
  });
2311
2665
 
2312
- const is$typed$3 = is$typed$f, validate$3 = validate$f;
2313
- const id$3 = 'org.hypercerts.claim.measurement';
2666
+ const is$typed$3 = is$typed$g, validate$3 = validate$g;
2667
+ const id$3 = 'org.hypercerts.claim.rights';
2314
2668
  const hashMain$2 = 'main';
2315
2669
  function isMain$2(v) {
2316
2670
  return is$typed$3(v, id$3, hashMain$2);
@@ -2319,7 +2673,7 @@ function validateMain$2(v) {
2319
2673
  return validate$3(v, id$3, hashMain$2, true);
2320
2674
  }
2321
2675
 
2322
- var measurement = /*#__PURE__*/Object.freeze({
2676
+ var rights = /*#__PURE__*/Object.freeze({
2323
2677
  __proto__: null,
2324
2678
  isMain: isMain$2,
2325
2679
  isRecord: isMain$2,
@@ -2327,60 +2681,70 @@ var measurement = /*#__PURE__*/Object.freeze({
2327
2681
  validateRecord: validateMain$2
2328
2682
  });
2329
2683
 
2330
- const is$typed$2 = is$typed$f, validate$2 = validate$f;
2331
- const id$2 = 'org.hypercerts.claim.rights';
2332
- const hashMain$1 = 'main';
2333
- function isMain$1(v) {
2334
- return is$typed$2(v, id$2, hashMain$1);
2335
- }
2336
- function validateMain$1(v) {
2337
- return validate$2(v, id$2, hashMain$1, true);
2338
- }
2339
-
2340
- var rights = /*#__PURE__*/Object.freeze({
2341
- __proto__: null,
2342
- isMain: isMain$1,
2343
- isRecord: isMain$1,
2344
- validateMain: validateMain$1,
2345
- validateRecord: validateMain$1
2346
- });
2347
-
2348
- const is$typed$1 = is$typed$f, validate$1 = validate$f;
2349
- const id$1 = 'org.hypercerts.defs';
2684
+ const is$typed$2 = is$typed$g, validate$2 = validate$g;
2685
+ const id$2 = 'org.hypercerts.defs';
2350
2686
  const hashUri = 'uri';
2351
2687
  function isUri(v) {
2352
- return is$typed$1(v, id$1, hashUri);
2688
+ return is$typed$2(v, id$2, hashUri);
2353
2689
  }
2354
2690
  function validateUri(v) {
2355
- return validate$1(v, id$1, hashUri);
2691
+ return validate$2(v, id$2, hashUri);
2356
2692
  }
2357
2693
  const hashSmallBlob = 'smallBlob';
2358
2694
  function isSmallBlob(v) {
2359
- return is$typed$1(v, id$1, hashSmallBlob);
2695
+ return is$typed$2(v, id$2, hashSmallBlob);
2360
2696
  }
2361
2697
  function validateSmallBlob(v) {
2362
- return validate$1(v, id$1, hashSmallBlob);
2698
+ return validate$2(v, id$2, hashSmallBlob);
2363
2699
  }
2364
2700
  const hashLargeBlob = 'largeBlob';
2365
2701
  function isLargeBlob(v) {
2366
- return is$typed$1(v, id$1, hashLargeBlob);
2702
+ return is$typed$2(v, id$2, hashLargeBlob);
2367
2703
  }
2368
2704
  function validateLargeBlob(v) {
2369
- return validate$1(v, id$1, hashLargeBlob);
2705
+ return validate$2(v, id$2, hashLargeBlob);
2370
2706
  }
2371
2707
  const hashSmallImage = 'smallImage';
2372
2708
  function isSmallImage(v) {
2373
- return is$typed$1(v, id$1, hashSmallImage);
2709
+ return is$typed$2(v, id$2, hashSmallImage);
2374
2710
  }
2375
2711
  function validateSmallImage(v) {
2376
- return validate$1(v, id$1, hashSmallImage);
2712
+ return validate$2(v, id$2, hashSmallImage);
2377
2713
  }
2378
2714
  const hashLargeImage = 'largeImage';
2379
2715
  function isLargeImage(v) {
2380
- return is$typed$1(v, id$1, hashLargeImage);
2716
+ return is$typed$2(v, id$2, hashLargeImage);
2381
2717
  }
2382
2718
  function validateLargeImage(v) {
2383
- return validate$1(v, id$1, hashLargeImage);
2719
+ return validate$2(v, id$2, hashLargeImage);
2720
+ }
2721
+ const hashWorkScopeAll = 'workScopeAll';
2722
+ function isWorkScopeAll(v) {
2723
+ return is$typed$2(v, id$2, hashWorkScopeAll);
2724
+ }
2725
+ function validateWorkScopeAll(v) {
2726
+ return validate$2(v, id$2, hashWorkScopeAll);
2727
+ }
2728
+ const hashWorkScopeAny = 'workScopeAny';
2729
+ function isWorkScopeAny(v) {
2730
+ return is$typed$2(v, id$2, hashWorkScopeAny);
2731
+ }
2732
+ function validateWorkScopeAny(v) {
2733
+ return validate$2(v, id$2, hashWorkScopeAny);
2734
+ }
2735
+ const hashWorkScopeNot = 'workScopeNot';
2736
+ function isWorkScopeNot(v) {
2737
+ return is$typed$2(v, id$2, hashWorkScopeNot);
2738
+ }
2739
+ function validateWorkScopeNot(v) {
2740
+ return validate$2(v, id$2, hashWorkScopeNot);
2741
+ }
2742
+ const hashWorkScopeAtom = 'workScopeAtom';
2743
+ function isWorkScopeAtom(v) {
2744
+ return is$typed$2(v, id$2, hashWorkScopeAtom);
2745
+ }
2746
+ function validateWorkScopeAtom(v) {
2747
+ return validate$2(v, id$2, hashWorkScopeAtom);
2384
2748
  }
2385
2749
 
2386
2750
  var defs = /*#__PURE__*/Object.freeze({
@@ -2390,15 +2754,41 @@ var defs = /*#__PURE__*/Object.freeze({
2390
2754
  isSmallBlob: isSmallBlob,
2391
2755
  isSmallImage: isSmallImage,
2392
2756
  isUri: isUri,
2757
+ isWorkScopeAll: isWorkScopeAll,
2758
+ isWorkScopeAny: isWorkScopeAny,
2759
+ isWorkScopeAtom: isWorkScopeAtom,
2760
+ isWorkScopeNot: isWorkScopeNot,
2393
2761
  validateLargeBlob: validateLargeBlob,
2394
2762
  validateLargeImage: validateLargeImage,
2395
2763
  validateSmallBlob: validateSmallBlob,
2396
2764
  validateSmallImage: validateSmallImage,
2397
- validateUri: validateUri
2765
+ validateUri: validateUri,
2766
+ validateWorkScopeAll: validateWorkScopeAll,
2767
+ validateWorkScopeAny: validateWorkScopeAny,
2768
+ validateWorkScopeAtom: validateWorkScopeAtom,
2769
+ validateWorkScopeNot: validateWorkScopeNot
2770
+ });
2771
+
2772
+ const is$typed$1 = is$typed$g, validate$1 = validate$g;
2773
+ const id$1 = 'org.hypercerts.funding.receipt';
2774
+ const hashMain$1 = 'main';
2775
+ function isMain$1(v) {
2776
+ return is$typed$1(v, id$1, hashMain$1);
2777
+ }
2778
+ function validateMain$1(v) {
2779
+ return validate$1(v, id$1, hashMain$1, true);
2780
+ }
2781
+
2782
+ var receipt = /*#__PURE__*/Object.freeze({
2783
+ __proto__: null,
2784
+ isMain: isMain$1,
2785
+ isRecord: isMain$1,
2786
+ validateMain: validateMain$1,
2787
+ validateRecord: validateMain$1
2398
2788
  });
2399
2789
 
2400
- const is$typed = is$typed$f, validate = validate$f;
2401
- const id = 'org.hypercerts.funding.receipt';
2790
+ const is$typed = is$typed$g, validate = validate$g;
2791
+ const id = 'org.hypercerts.helper.workScopeTag';
2402
2792
  const hashMain = 'main';
2403
2793
  function isMain(v) {
2404
2794
  return is$typed(v, id, hashMain);
@@ -2407,7 +2797,7 @@ function validateMain(v) {
2407
2797
  return validate(v, id, hashMain, true);
2408
2798
  }
2409
2799
 
2410
- var receipt = /*#__PURE__*/Object.freeze({
2800
+ var workScopeTag = /*#__PURE__*/Object.freeze({
2411
2801
  __proto__: null,
2412
2802
  isMain: isMain,
2413
2803
  isRecord: isMain,
@@ -2421,7 +2811,7 @@ var receipt = /*#__PURE__*/Object.freeze({
2421
2811
  * ⚠️ DO NOT EDIT THIS FILE MANUALLY ⚠️
2422
2812
  *
2423
2813
  * This file is automatically generated by scripts/generate-exports.js
2424
- * Generated: 2026-01-21T23:12:40.384Z
2814
+ * Generated: 2026-01-21T23:19:57.583Z
2425
2815
  *
2426
2816
  * To regenerate this file, run:
2427
2817
  * npm run gen-api
@@ -2454,6 +2844,7 @@ const MEASUREMENT_NSID = "org.hypercerts.claim.measurement";
2454
2844
  const RIGHTS_NSID = "org.hypercerts.claim.rights";
2455
2845
  const HYPERCERTS_DEFS_NSID = "org.hypercerts.defs";
2456
2846
  const FUNDING_RECEIPT_NSID = "org.hypercerts.funding.receipt";
2847
+ const HELPER_WORKSCOPETAG_NSID = "org.hypercerts.helper.workScopeTag";
2457
2848
  /**
2458
2849
  * Collection NSIDs organized by semantic record type.
2459
2850
  *
@@ -2477,6 +2868,7 @@ const HYPERCERTS_NSIDS = {
2477
2868
  RIGHTS: RIGHTS_NSID,
2478
2869
  HYPERCERTS_DEFS: HYPERCERTS_DEFS_NSID,
2479
2870
  FUNDING_RECEIPT: FUNDING_RECEIPT_NSID,
2871
+ HELPER_WORKSCOPETAG: HELPER_WORKSCOPETAG_NSID,
2480
2872
  };
2481
2873
  /**
2482
2874
  * Lexicon JSON objects organized by semantic record type.
@@ -2498,6 +2890,7 @@ const HYPERCERTS_LEXICON_JSON = {
2498
2890
  RIGHTS: RIGHTS_LEXICON_JSON,
2499
2891
  HYPERCERTS_DEFS: HYPERCERTS_DEFS_LEXICON_JSON,
2500
2892
  FUNDING_RECEIPT: FUNDING_RECEIPT_LEXICON_JSON,
2893
+ HELPER_WORKSCOPETAG: HELPER_WORKSCOPETAG_LEXICON_JSON,
2501
2894
  };
2502
2895
  // Individual lexicon objects (from lexicons.get())
2503
2896
  const BADGE_AWARD_LEXICON_DOC = lexicons.get(BADGE_AWARD_NSID);
@@ -2516,6 +2909,7 @@ const MEASUREMENT_LEXICON_DOC = lexicons.get(MEASUREMENT_NSID);
2516
2909
  const RIGHTS_LEXICON_DOC = lexicons.get(RIGHTS_NSID);
2517
2910
  const HYPERCERTS_DEFS_LEXICON_DOC = lexicons.get(HYPERCERTS_DEFS_NSID);
2518
2911
  const FUNDING_RECEIPT_LEXICON_DOC = lexicons.get(FUNDING_RECEIPT_NSID);
2912
+ const HELPER_WORKSCOPETAG_LEXICON_DOC = lexicons.get(HELPER_WORKSCOPETAG_NSID);
2519
2913
  /**
2520
2914
  * Lexicon document objects organized by semantic record type.
2521
2915
  */
@@ -2536,7 +2930,8 @@ const HYPERCERTS_LEXICON_DOC = {
2536
2930
  RIGHTS: RIGHTS_LEXICON_DOC,
2537
2931
  HYPERCERTS_DEFS: HYPERCERTS_DEFS_LEXICON_DOC,
2538
2932
  FUNDING_RECEIPT: FUNDING_RECEIPT_LEXICON_DOC,
2933
+ HELPER_WORKSCOPETAG: HELPER_WORKSCOPETAG_LEXICON_DOC,
2539
2934
  };
2540
2935
 
2541
- 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, CONTRIBUTIONDETAILS_LEXICON_DOC, CONTRIBUTIONDETAILS_LEXICON_JSON, CONTRIBUTIONDETAILS_NSID, CONTRIBUTORINFORMATION_LEXICON_DOC, CONTRIBUTORINFORMATION_LEXICON_JSON, CONTRIBUTORINFORMATION_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, contributionDetails as OrgHypercertsClaimContributionDetails, contributorInformation as OrgHypercertsClaimContributorInformation, 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$f as is$typed, lexicons, maybe$typed, validate$f as validate };
2936
+ 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, CONTRIBUTIONDETAILS_LEXICON_DOC, CONTRIBUTIONDETAILS_LEXICON_JSON, CONTRIBUTIONDETAILS_NSID, CONTRIBUTORINFORMATION_LEXICON_DOC, CONTRIBUTORINFORMATION_LEXICON_JSON, CONTRIBUTORINFORMATION_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, HELPER_WORKSCOPETAG_LEXICON_DOC, HELPER_WORKSCOPETAG_LEXICON_JSON, HELPER_WORKSCOPETAG_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, contributionDetails as OrgHypercertsClaimContributionDetails, contributorInformation as OrgHypercertsClaimContributorInformation, evaluation as OrgHypercertsClaimEvaluation, evidence as OrgHypercertsClaimEvidence, measurement as OrgHypercertsClaimMeasurement, rights as OrgHypercertsClaimRights, defs as OrgHypercertsDefs, receipt as OrgHypercertsFundingReceipt, workScopeTag as OrgHypercertsHelperWorkScopeTag, RIGHTS_LEXICON_DOC, RIGHTS_LEXICON_JSON, RIGHTS_NSID, STRONGREF_LEXICON_DOC, STRONGREF_LEXICON_JSON, STRONGREF_NSID, asPredicate, is$typed$g as is$typed, lexicons, maybe$typed, validate$g as validate };
2542
2937
  //# sourceMappingURL=index.mjs.map