@hypercerts-org/lexicon 0.10.0-beta.13 → 0.10.0-beta.14

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 +43 -0
  2. package/SCHEMAS.md +46 -0
  3. package/dist/exports.d.ts +94 -7
  4. package/dist/exports.d.ts.map +1 -1
  5. package/dist/generated/exports.d.ts +94 -7
  6. package/dist/generated/exports.d.ts.map +1 -1
  7. package/dist/generated/lexicons.d.ts +182 -18
  8. package/dist/generated/lexicons.d.ts.map +1 -1
  9. package/dist/generated/types/app/certified/actor/profile.d.ts +27 -0
  10. package/dist/generated/types/app/certified/actor/profile.d.ts.map +1 -0
  11. package/dist/generated/types/app/certified/defs.d.ts +11 -1
  12. package/dist/generated/types/app/certified/defs.d.ts.map +1 -1
  13. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +21 -3
  14. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  15. package/dist/index.cjs +345 -90
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.mjs +337 -86
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/lexicons.cjs +98 -9
  20. package/dist/lexicons.cjs.map +1 -1
  21. package/dist/lexicons.d.ts +182 -18
  22. package/dist/lexicons.d.ts.map +1 -1
  23. package/dist/lexicons.mjs +98 -9
  24. package/dist/lexicons.mjs.map +1 -1
  25. package/dist/types/app/certified/actor/profile.d.ts +27 -0
  26. package/dist/types/app/certified/actor/profile.d.ts.map +1 -0
  27. package/dist/types/app/certified/defs.d.ts +11 -1
  28. package/dist/types/app/certified/defs.d.ts.map +1 -1
  29. package/dist/types/org/hypercerts/claim/activity.d.ts +21 -3
  30. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  31. package/lexicons/app/certified/actor/profile.json +51 -0
  32. package/lexicons/app/certified/defs.json +11 -3
  33. package/lexicons/org/hypercerts/claim/activity.json +31 -8
  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$g(v, id, hash) {
19
+ function is$typed$i(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) {
@@ -37,6 +37,63 @@ function asPredicate(validate) {
37
37
  * GENERATED CODE - DO NOT MODIFY
38
38
  */
39
39
  const schemaDict = {
40
+ AppCertifiedActorProfile: {
41
+ lexicon: 1,
42
+ id: 'app.certified.actor.profile',
43
+ defs: {
44
+ main: {
45
+ type: 'record',
46
+ description: 'A declaration of a Hypercert account profile.',
47
+ key: 'literal:self',
48
+ record: {
49
+ type: 'object',
50
+ properties: {
51
+ displayName: {
52
+ type: 'string',
53
+ maxGraphemes: 64,
54
+ maxLength: 640,
55
+ },
56
+ description: {
57
+ type: 'string',
58
+ description: 'Free-form profile description text.',
59
+ maxGraphemes: 256,
60
+ maxLength: 2560,
61
+ },
62
+ pronouns: {
63
+ type: 'string',
64
+ description: 'Free-form pronouns text.',
65
+ maxGraphemes: 20,
66
+ maxLength: 200,
67
+ },
68
+ website: {
69
+ type: 'string',
70
+ format: 'uri',
71
+ },
72
+ avatar: {
73
+ type: 'union',
74
+ refs: [
75
+ 'lex:org.hypercerts.defs#uri',
76
+ 'lex:org.hypercerts.defs#smallImage',
77
+ ],
78
+ description: "Small image to be displayed next to posts from account. AKA, 'profile picture'",
79
+ },
80
+ banner: {
81
+ type: 'union',
82
+ refs: [
83
+ 'lex:org.hypercerts.defs#uri',
84
+ 'lex:org.hypercerts.defs#largeImage',
85
+ ],
86
+ description: 'Larger horizontal image to display behind profile view.',
87
+ },
88
+ createdAt: {
89
+ type: 'string',
90
+ format: 'datetime',
91
+ },
92
+ },
93
+ },
94
+ },
95
+ },
96
+ },
40
97
  AppCertifiedBadgeAward: {
41
98
  lexicon: 1,
42
99
  id: 'app.certified.badge.award',
@@ -171,9 +228,17 @@ const schemaDict = {
171
228
  description: 'Common type definitions used across certified protocols.',
172
229
  defs: {
173
230
  did: {
174
- type: 'string',
175
- format: 'did',
231
+ type: 'object',
176
232
  description: 'A Decentralized Identifier (DID) string.',
233
+ required: ['did'],
234
+ properties: {
235
+ did: {
236
+ type: 'string',
237
+ format: 'did',
238
+ description: 'The DID string value.',
239
+ maxLength: 256,
240
+ },
241
+ },
177
242
  },
178
243
  },
179
244
  },
@@ -404,20 +469,43 @@ const schemaDict = {
404
469
  },
405
470
  },
406
471
  contributorIdentity: {
407
- type: 'string',
472
+ type: 'object',
408
473
  description: 'Contributor information as a string (DID or identifier).',
474
+ required: ['identity'],
475
+ properties: {
476
+ identity: {
477
+ type: 'string',
478
+ description: 'The contributor identity string (DID or identifier).',
479
+ maxLength: 1000,
480
+ maxGraphemes: 100,
481
+ },
482
+ },
409
483
  },
410
484
  contributorRole: {
411
- type: 'string',
485
+ type: 'object',
412
486
  description: 'Contribution details as a string.',
413
- maxLength: 10000,
414
- maxGraphemes: 1000,
487
+ required: ['role'],
488
+ properties: {
489
+ role: {
490
+ type: 'string',
491
+ description: 'The contribution role or details.',
492
+ maxLength: 1000,
493
+ maxGraphemes: 100,
494
+ },
495
+ },
415
496
  },
416
497
  workScopeString: {
417
- type: 'string',
498
+ type: 'object',
418
499
  description: 'A free-form string describing the work scope for simple or legacy scopes.',
419
- maxLength: 10000,
420
- maxGraphemes: 1000,
500
+ required: ['scope'],
501
+ properties: {
502
+ scope: {
503
+ type: 'string',
504
+ description: 'The work scope description string.',
505
+ maxLength: 1000,
506
+ maxGraphemes: 100,
507
+ },
508
+ },
421
509
  },
422
510
  },
423
511
  },
@@ -1125,8 +1213,8 @@ const schemaDict = {
1125
1213
  };
1126
1214
  const schemas = Object.values(schemaDict);
1127
1215
  const lexicons = new Lexicons(schemas);
1128
- function validate$g(v, id, hash, requiredType) {
1129
- return (requiredType ? is$typed$g : maybe$typed)(v, id, hash)
1216
+ function validate$i(v, id, hash, requiredType) {
1217
+ return (requiredType ? is$typed$i : maybe$typed)(v, id, hash)
1130
1218
  ? lexicons.validate(`${id}#${hash}`, v)
1131
1219
  : {
1132
1220
  success: false,
@@ -1134,6 +1222,7 @@ function validate$g(v, id, hash, requiredType) {
1134
1222
  };
1135
1223
  }
1136
1224
  const ids = {
1225
+ AppCertifiedActorProfile: 'app.certified.actor.profile',
1137
1226
  AppCertifiedBadgeAward: 'app.certified.badge.award',
1138
1227
  AppCertifiedBadgeDefinition: 'app.certified.badge.definition',
1139
1228
  AppCertifiedBadgeResponse: 'app.certified.badge.response',
@@ -1153,8 +1242,69 @@ const ids = {
1153
1242
  OrgHypercertsHelperWorkScopeTag: 'org.hypercerts.helper.workScopeTag',
1154
1243
  };
1155
1244
 
1245
+ var lexicon$h = 1;
1246
+ var id$z = "app.certified.actor.profile";
1247
+ var defs$j = {
1248
+ main: {
1249
+ type: "record",
1250
+ description: "A declaration of a Hypercert account profile.",
1251
+ key: "literal:self",
1252
+ record: {
1253
+ type: "object",
1254
+ properties: {
1255
+ displayName: {
1256
+ type: "string",
1257
+ maxGraphemes: 64,
1258
+ maxLength: 640
1259
+ },
1260
+ description: {
1261
+ type: "string",
1262
+ description: "Free-form profile description text.",
1263
+ maxGraphemes: 256,
1264
+ maxLength: 2560
1265
+ },
1266
+ pronouns: {
1267
+ type: "string",
1268
+ description: "Free-form pronouns text.",
1269
+ maxGraphemes: 20,
1270
+ maxLength: 200
1271
+ },
1272
+ website: {
1273
+ type: "string",
1274
+ format: "uri"
1275
+ },
1276
+ avatar: {
1277
+ type: "union",
1278
+ refs: [
1279
+ "org.hypercerts.defs#uri",
1280
+ "org.hypercerts.defs#smallImage"
1281
+ ],
1282
+ description: "Small image to be displayed next to posts from account. AKA, 'profile picture'"
1283
+ },
1284
+ banner: {
1285
+ type: "union",
1286
+ refs: [
1287
+ "org.hypercerts.defs#uri",
1288
+ "org.hypercerts.defs#largeImage"
1289
+ ],
1290
+ description: "Larger horizontal image to display behind profile view."
1291
+ },
1292
+ createdAt: {
1293
+ type: "string",
1294
+ format: "datetime"
1295
+ }
1296
+ }
1297
+ }
1298
+ }
1299
+ };
1300
+ var ACTOR_PROFILE_LEXICON_JSON = {
1301
+ lexicon: lexicon$h,
1302
+ id: id$z,
1303
+ defs: defs$j
1304
+ };
1305
+
1156
1306
  var lexicon$g = 1;
1157
- var id$w = "app.certified.badge.award";
1307
+ var id$y = "app.certified.badge.award";
1158
1308
  var defs$i = {
1159
1309
  main: {
1160
1310
  type: "record",
@@ -1196,12 +1346,12 @@ var defs$i = {
1196
1346
  };
1197
1347
  var BADGE_AWARD_LEXICON_JSON = {
1198
1348
  lexicon: lexicon$g,
1199
- id: id$w,
1349
+ id: id$y,
1200
1350
  defs: defs$i
1201
1351
  };
1202
1352
 
1203
1353
  var lexicon$f = 1;
1204
- var id$v = "app.certified.badge.definition";
1354
+ var id$x = "app.certified.badge.definition";
1205
1355
  var defs$h = {
1206
1356
  main: {
1207
1357
  type: "record",
@@ -1258,12 +1408,12 @@ var defs$h = {
1258
1408
  };
1259
1409
  var BADGE_DEFINITION_LEXICON_JSON = {
1260
1410
  lexicon: lexicon$f,
1261
- id: id$v,
1411
+ id: id$x,
1262
1412
  defs: defs$h
1263
1413
  };
1264
1414
 
1265
1415
  var lexicon$e = 1;
1266
- var id$u = "app.certified.badge.response";
1416
+ var id$w = "app.certified.badge.response";
1267
1417
  var defs$g = {
1268
1418
  main: {
1269
1419
  type: "record",
@@ -1305,29 +1455,39 @@ var defs$g = {
1305
1455
  };
1306
1456
  var BADGE_RESPONSE_LEXICON_JSON = {
1307
1457
  lexicon: lexicon$e,
1308
- id: id$u,
1458
+ id: id$w,
1309
1459
  defs: defs$g
1310
1460
  };
1311
1461
 
1312
1462
  var lexicon$d = 1;
1313
- var id$t = "app.certified.defs";
1463
+ var id$v = "app.certified.defs";
1314
1464
  var description$1 = "Common type definitions used across certified protocols.";
1315
1465
  var defs$f = {
1316
1466
  did: {
1317
- type: "string",
1318
- format: "did",
1319
- description: "A Decentralized Identifier (DID) string."
1467
+ type: "object",
1468
+ description: "A Decentralized Identifier (DID) string.",
1469
+ required: [
1470
+ "did"
1471
+ ],
1472
+ properties: {
1473
+ did: {
1474
+ type: "string",
1475
+ format: "did",
1476
+ description: "The DID string value.",
1477
+ maxLength: 256
1478
+ }
1479
+ }
1320
1480
  }
1321
1481
  };
1322
1482
  var CERTIFIED_DEFS_LEXICON_JSON = {
1323
1483
  lexicon: lexicon$d,
1324
- id: id$t,
1484
+ id: id$v,
1325
1485
  description: description$1,
1326
1486
  defs: defs$f
1327
1487
  };
1328
1488
 
1329
1489
  var lexicon$c = 1;
1330
- var id$s = "app.certified.location";
1490
+ var id$u = "app.certified.location";
1331
1491
  var defs$e = {
1332
1492
  main: {
1333
1493
  type: "record",
@@ -1410,12 +1570,12 @@ var defs$e = {
1410
1570
  };
1411
1571
  var LOCATION_LEXICON_JSON = {
1412
1572
  lexicon: lexicon$c,
1413
- id: id$s,
1573
+ id: id$u,
1414
1574
  defs: defs$e
1415
1575
  };
1416
1576
 
1417
1577
  var lexicon$b = 1;
1418
- var id$r = "com.atproto.repo.strongRef";
1578
+ var id$t = "com.atproto.repo.strongRef";
1419
1579
  var description = "A URI with a content-hash fingerprint.";
1420
1580
  var defs$d = {
1421
1581
  main: {
@@ -1438,13 +1598,13 @@ var defs$d = {
1438
1598
  };
1439
1599
  var STRONG_REF_LEXICON_JSON = {
1440
1600
  lexicon: lexicon$b,
1441
- id: id$r,
1601
+ id: id$t,
1442
1602
  description: description,
1443
1603
  defs: defs$d
1444
1604
  };
1445
1605
 
1446
1606
  var lexicon$a = 1;
1447
- var id$q = "org.hypercerts.claim.activity";
1607
+ var id$s = "org.hypercerts.claim.activity";
1448
1608
  var defs$c = {
1449
1609
  main: {
1450
1610
  type: "record",
@@ -1575,30 +1735,59 @@ var defs$c = {
1575
1735
  }
1576
1736
  },
1577
1737
  contributorIdentity: {
1578
- type: "string",
1579
- description: "Contributor information as a string (DID or identifier)."
1738
+ type: "object",
1739
+ description: "Contributor information as a string (DID or identifier).",
1740
+ required: [
1741
+ "identity"
1742
+ ],
1743
+ properties: {
1744
+ identity: {
1745
+ type: "string",
1746
+ description: "The contributor identity string (DID or identifier).",
1747
+ maxLength: 1000,
1748
+ maxGraphemes: 100
1749
+ }
1750
+ }
1580
1751
  },
1581
1752
  contributorRole: {
1582
- type: "string",
1753
+ type: "object",
1583
1754
  description: "Contribution details as a string.",
1584
- maxLength: 10000,
1585
- maxGraphemes: 1000
1755
+ required: [
1756
+ "role"
1757
+ ],
1758
+ properties: {
1759
+ role: {
1760
+ type: "string",
1761
+ description: "The contribution role or details.",
1762
+ maxLength: 1000,
1763
+ maxGraphemes: 100
1764
+ }
1765
+ }
1586
1766
  },
1587
1767
  workScopeString: {
1588
- type: "string",
1768
+ type: "object",
1589
1769
  description: "A free-form string describing the work scope for simple or legacy scopes.",
1590
- maxLength: 10000,
1591
- maxGraphemes: 1000
1770
+ required: [
1771
+ "scope"
1772
+ ],
1773
+ properties: {
1774
+ scope: {
1775
+ type: "string",
1776
+ description: "The work scope description string.",
1777
+ maxLength: 1000,
1778
+ maxGraphemes: 100
1779
+ }
1780
+ }
1592
1781
  }
1593
1782
  };
1594
1783
  var ACTIVITY_LEXICON_JSON = {
1595
1784
  lexicon: lexicon$a,
1596
- id: id$q,
1785
+ id: id$s,
1597
1786
  defs: defs$c
1598
1787
  };
1599
1788
 
1600
1789
  var lexicon$9 = 1;
1601
- var id$p = "org.hypercerts.claim.attachment";
1790
+ var id$r = "org.hypercerts.claim.attachment";
1602
1791
  var defs$b = {
1603
1792
  main: {
1604
1793
  type: "record",
@@ -1687,12 +1876,12 @@ var defs$b = {
1687
1876
  };
1688
1877
  var ATTACHMENT_LEXICON_JSON = {
1689
1878
  lexicon: lexicon$9,
1690
- id: id$p,
1879
+ id: id$r,
1691
1880
  defs: defs$b
1692
1881
  };
1693
1882
 
1694
1883
  var lexicon$8 = 1;
1695
- var id$o = "org.hypercerts.claim.collection";
1884
+ var id$q = "org.hypercerts.claim.collection";
1696
1885
  var defs$a = {
1697
1886
  main: {
1698
1887
  type: "record",
@@ -1784,12 +1973,12 @@ var defs$a = {
1784
1973
  };
1785
1974
  var COLLECTION_LEXICON_JSON = {
1786
1975
  lexicon: lexicon$8,
1787
- id: id$o,
1976
+ id: id$q,
1788
1977
  defs: defs$a
1789
1978
  };
1790
1979
 
1791
1980
  var lexicon$7 = 1;
1792
- var id$n = "org.hypercerts.claim.contributionDetails";
1981
+ var id$p = "org.hypercerts.claim.contributionDetails";
1793
1982
  var defs$9 = {
1794
1983
  main: {
1795
1984
  type: "record",
@@ -1833,12 +2022,12 @@ var defs$9 = {
1833
2022
  };
1834
2023
  var CONTRIBUTION_DETAILS_LEXICON_JSON = {
1835
2024
  lexicon: lexicon$7,
1836
- id: id$n,
2025
+ id: id$p,
1837
2026
  defs: defs$9
1838
2027
  };
1839
2028
 
1840
2029
  var lexicon$6 = 1;
1841
- var id$m = "org.hypercerts.claim.contributorInformation";
2030
+ var id$o = "org.hypercerts.claim.contributorInformation";
1842
2031
  var defs$8 = {
1843
2032
  main: {
1844
2033
  type: "record",
@@ -1878,12 +2067,12 @@ var defs$8 = {
1878
2067
  };
1879
2068
  var CONTRIBUTOR_INFORMATION_LEXICON_JSON = {
1880
2069
  lexicon: lexicon$6,
1881
- id: id$m,
2070
+ id: id$o,
1882
2071
  defs: defs$8
1883
2072
  };
1884
2073
 
1885
2074
  var lexicon$5 = 1;
1886
- var id$l = "org.hypercerts.claim.evaluation";
2075
+ var id$n = "org.hypercerts.claim.evaluation";
1887
2076
  var defs$7 = {
1888
2077
  score: {
1889
2078
  type: "object",
@@ -1982,12 +2171,12 @@ var defs$7 = {
1982
2171
  };
1983
2172
  var EVALUATION_LEXICON_JSON = {
1984
2173
  lexicon: lexicon$5,
1985
- id: id$l,
2174
+ id: id$n,
1986
2175
  defs: defs$7
1987
2176
  };
1988
2177
 
1989
2178
  var lexicon$4 = 1;
1990
- var id$k = "org.hypercerts.claim.measurement";
2179
+ var id$m = "org.hypercerts.claim.measurement";
1991
2180
  var defs$6 = {
1992
2181
  main: {
1993
2182
  type: "record",
@@ -2094,12 +2283,12 @@ var defs$6 = {
2094
2283
  };
2095
2284
  var MEASUREMENT_LEXICON_JSON = {
2096
2285
  lexicon: lexicon$4,
2097
- id: id$k,
2286
+ id: id$m,
2098
2287
  defs: defs$6
2099
2288
  };
2100
2289
 
2101
2290
  var lexicon$3 = 1;
2102
- var id$j = "org.hypercerts.claim.rights";
2291
+ var id$l = "org.hypercerts.claim.rights";
2103
2292
  var defs$5 = {
2104
2293
  main: {
2105
2294
  type: "record",
@@ -2147,12 +2336,12 @@ var defs$5 = {
2147
2336
  };
2148
2337
  var RIGHTS_LEXICON_JSON = {
2149
2338
  lexicon: lexicon$3,
2150
- id: id$j,
2339
+ id: id$l,
2151
2340
  defs: defs$5
2152
2341
  };
2153
2342
 
2154
2343
  var lexicon$2 = 1;
2155
- var id$i = "org.hypercerts.defs";
2344
+ var id$k = "org.hypercerts.defs";
2156
2345
  var defs$4 = {
2157
2346
  uri: {
2158
2347
  type: "object",
@@ -2246,12 +2435,12 @@ var defs$4 = {
2246
2435
  };
2247
2436
  var HYPERCERTS_DEFS_LEXICON_JSON = {
2248
2437
  lexicon: lexicon$2,
2249
- id: id$i,
2438
+ id: id$k,
2250
2439
  defs: defs$4
2251
2440
  };
2252
2441
 
2253
2442
  var lexicon$1 = 1;
2254
- var id$h = "org.hypercerts.funding.receipt";
2443
+ var id$j = "org.hypercerts.funding.receipt";
2255
2444
  var defs$3 = {
2256
2445
  main: {
2257
2446
  type: "record",
@@ -2322,12 +2511,12 @@ var defs$3 = {
2322
2511
  };
2323
2512
  var FUNDING_RECEIPT_LEXICON_JSON = {
2324
2513
  lexicon: lexicon$1,
2325
- id: id$h,
2514
+ id: id$j,
2326
2515
  defs: defs$3
2327
2516
  };
2328
2517
 
2329
2518
  var lexicon = 1;
2330
- var id$g = "org.hypercerts.helper.workScopeTag";
2519
+ var id$i = "org.hypercerts.helper.workScopeTag";
2331
2520
  var defs$2 = {
2332
2521
  main: {
2333
2522
  type: "record",
@@ -2395,18 +2584,36 @@ var defs$2 = {
2395
2584
  };
2396
2585
  var WORK_SCOPE_TAG_LEXICON_JSON = {
2397
2586
  lexicon: lexicon,
2398
- id: id$g,
2587
+ id: id$i,
2399
2588
  defs: defs$2
2400
2589
  };
2401
2590
 
2402
- const is$typed$f = is$typed$g, validate$f = validate$g;
2403
- const id$f = 'app.certified.badge.award';
2591
+ const is$typed$h = is$typed$i, validate$h = validate$i;
2592
+ const id$h = 'app.certified.actor.profile';
2593
+ const hashMain$f = 'main';
2594
+ function isMain$f(v) {
2595
+ return is$typed$h(v, id$h, hashMain$f);
2596
+ }
2597
+ function validateMain$f(v) {
2598
+ return validate$h(v, id$h, hashMain$f, true);
2599
+ }
2600
+
2601
+ var profile = /*#__PURE__*/Object.freeze({
2602
+ __proto__: null,
2603
+ isMain: isMain$f,
2604
+ isRecord: isMain$f,
2605
+ validateMain: validateMain$f,
2606
+ validateRecord: validateMain$f
2607
+ });
2608
+
2609
+ const is$typed$g = is$typed$i, validate$g = validate$i;
2610
+ const id$g = 'app.certified.badge.award';
2404
2611
  const hashMain$e = 'main';
2405
2612
  function isMain$e(v) {
2406
- return is$typed$f(v, id$f, hashMain$e);
2613
+ return is$typed$g(v, id$g, hashMain$e);
2407
2614
  }
2408
2615
  function validateMain$e(v) {
2409
- return validate$f(v, id$f, hashMain$e, true);
2616
+ return validate$g(v, id$g, hashMain$e, true);
2410
2617
  }
2411
2618
 
2412
2619
  var award = /*#__PURE__*/Object.freeze({
@@ -2417,14 +2624,14 @@ var award = /*#__PURE__*/Object.freeze({
2417
2624
  validateRecord: validateMain$e
2418
2625
  });
2419
2626
 
2420
- const is$typed$e = is$typed$g, validate$e = validate$g;
2421
- const id$e = 'app.certified.badge.definition';
2627
+ const is$typed$f = is$typed$i, validate$f = validate$i;
2628
+ const id$f = 'app.certified.badge.definition';
2422
2629
  const hashMain$d = 'main';
2423
2630
  function isMain$d(v) {
2424
- return is$typed$e(v, id$e, hashMain$d);
2631
+ return is$typed$f(v, id$f, hashMain$d);
2425
2632
  }
2426
2633
  function validateMain$d(v) {
2427
- return validate$e(v, id$e, hashMain$d, true);
2634
+ return validate$f(v, id$f, hashMain$d, true);
2428
2635
  }
2429
2636
 
2430
2637
  var definition = /*#__PURE__*/Object.freeze({
@@ -2435,14 +2642,14 @@ var definition = /*#__PURE__*/Object.freeze({
2435
2642
  validateRecord: validateMain$d
2436
2643
  });
2437
2644
 
2438
- const is$typed$d = is$typed$g, validate$d = validate$g;
2439
- const id$d = 'app.certified.badge.response';
2645
+ const is$typed$e = is$typed$i, validate$e = validate$i;
2646
+ const id$e = 'app.certified.badge.response';
2440
2647
  const hashMain$c = 'main';
2441
2648
  function isMain$c(v) {
2442
- return is$typed$d(v, id$d, hashMain$c);
2649
+ return is$typed$e(v, id$e, hashMain$c);
2443
2650
  }
2444
2651
  function validateMain$c(v) {
2445
- return validate$d(v, id$d, hashMain$c, true);
2652
+ return validate$e(v, id$e, hashMain$c, true);
2446
2653
  }
2447
2654
 
2448
2655
  var response = /*#__PURE__*/Object.freeze({
@@ -2453,11 +2660,23 @@ var response = /*#__PURE__*/Object.freeze({
2453
2660
  validateRecord: validateMain$c
2454
2661
  });
2455
2662
 
2663
+ const is$typed$d = is$typed$i, validate$d = validate$i;
2664
+ const id$d = 'app.certified.defs';
2665
+ const hashDid = 'did';
2666
+ function isDid(v) {
2667
+ return is$typed$d(v, id$d, hashDid);
2668
+ }
2669
+ function validateDid(v) {
2670
+ return validate$d(v, id$d, hashDid);
2671
+ }
2672
+
2456
2673
  var defs$1 = /*#__PURE__*/Object.freeze({
2457
- __proto__: null
2674
+ __proto__: null,
2675
+ isDid: isDid,
2676
+ validateDid: validateDid
2458
2677
  });
2459
2678
 
2460
- const is$typed$c = is$typed$g, validate$c = validate$g;
2679
+ const is$typed$c = is$typed$i, validate$c = validate$i;
2461
2680
  const id$c = 'app.certified.location';
2462
2681
  const hashMain$b = 'main';
2463
2682
  function isMain$b(v) {
@@ -2484,7 +2703,7 @@ var location = /*#__PURE__*/Object.freeze({
2484
2703
  validateString: validateString
2485
2704
  });
2486
2705
 
2487
- const is$typed$b = is$typed$g, validate$b = validate$g;
2706
+ const is$typed$b = is$typed$i, validate$b = validate$i;
2488
2707
  const id$b = 'com.atproto.repo.strongRef';
2489
2708
  const hashMain$a = 'main';
2490
2709
  function isMain$a(v) {
@@ -2500,7 +2719,7 @@ var strongRef = /*#__PURE__*/Object.freeze({
2500
2719
  validateMain: validateMain$a
2501
2720
  });
2502
2721
 
2503
- const is$typed$a = is$typed$g, validate$a = validate$g;
2722
+ const is$typed$a = is$typed$i, validate$a = validate$i;
2504
2723
  const id$a = 'org.hypercerts.claim.activity';
2505
2724
  const hashMain$9 = 'main';
2506
2725
  function isMain$9(v) {
@@ -2516,18 +2735,45 @@ function isContributor(v) {
2516
2735
  function validateContributor(v) {
2517
2736
  return validate$a(v, id$a, hashContributor);
2518
2737
  }
2738
+ const hashContributorIdentity = 'contributorIdentity';
2739
+ function isContributorIdentity(v) {
2740
+ return is$typed$a(v, id$a, hashContributorIdentity);
2741
+ }
2742
+ function validateContributorIdentity(v) {
2743
+ return validate$a(v, id$a, hashContributorIdentity);
2744
+ }
2745
+ const hashContributorRole = 'contributorRole';
2746
+ function isContributorRole(v) {
2747
+ return is$typed$a(v, id$a, hashContributorRole);
2748
+ }
2749
+ function validateContributorRole(v) {
2750
+ return validate$a(v, id$a, hashContributorRole);
2751
+ }
2752
+ const hashWorkScopeString = 'workScopeString';
2753
+ function isWorkScopeString(v) {
2754
+ return is$typed$a(v, id$a, hashWorkScopeString);
2755
+ }
2756
+ function validateWorkScopeString(v) {
2757
+ return validate$a(v, id$a, hashWorkScopeString);
2758
+ }
2519
2759
 
2520
2760
  var activity = /*#__PURE__*/Object.freeze({
2521
2761
  __proto__: null,
2522
2762
  isContributor: isContributor,
2763
+ isContributorIdentity: isContributorIdentity,
2764
+ isContributorRole: isContributorRole,
2523
2765
  isMain: isMain$9,
2524
2766
  isRecord: isMain$9,
2767
+ isWorkScopeString: isWorkScopeString,
2525
2768
  validateContributor: validateContributor,
2769
+ validateContributorIdentity: validateContributorIdentity,
2770
+ validateContributorRole: validateContributorRole,
2526
2771
  validateMain: validateMain$9,
2527
- validateRecord: validateMain$9
2772
+ validateRecord: validateMain$9,
2773
+ validateWorkScopeString: validateWorkScopeString
2528
2774
  });
2529
2775
 
2530
- const is$typed$9 = is$typed$g, validate$9 = validate$g;
2776
+ const is$typed$9 = is$typed$i, validate$9 = validate$i;
2531
2777
  const id$9 = 'org.hypercerts.claim.attachment';
2532
2778
  const hashMain$8 = 'main';
2533
2779
  function isMain$8(v) {
@@ -2545,7 +2791,7 @@ var attachment = /*#__PURE__*/Object.freeze({
2545
2791
  validateRecord: validateMain$8
2546
2792
  });
2547
2793
 
2548
- const is$typed$8 = is$typed$g, validate$8 = validate$g;
2794
+ const is$typed$8 = is$typed$i, validate$8 = validate$i;
2549
2795
  const id$8 = 'org.hypercerts.claim.collection';
2550
2796
  const hashMain$7 = 'main';
2551
2797
  function isMain$7(v) {
@@ -2572,7 +2818,7 @@ var collection = /*#__PURE__*/Object.freeze({
2572
2818
  validateRecord: validateMain$7
2573
2819
  });
2574
2820
 
2575
- const is$typed$7 = is$typed$g, validate$7 = validate$g;
2821
+ const is$typed$7 = is$typed$i, validate$7 = validate$i;
2576
2822
  const id$7 = 'org.hypercerts.claim.contributionDetails';
2577
2823
  const hashMain$6 = 'main';
2578
2824
  function isMain$6(v) {
@@ -2590,7 +2836,7 @@ var contributionDetails = /*#__PURE__*/Object.freeze({
2590
2836
  validateRecord: validateMain$6
2591
2837
  });
2592
2838
 
2593
- const is$typed$6 = is$typed$g, validate$6 = validate$g;
2839
+ const is$typed$6 = is$typed$i, validate$6 = validate$i;
2594
2840
  const id$6 = 'org.hypercerts.claim.contributorInformation';
2595
2841
  const hashMain$5 = 'main';
2596
2842
  function isMain$5(v) {
@@ -2608,7 +2854,7 @@ var contributorInformation = /*#__PURE__*/Object.freeze({
2608
2854
  validateRecord: validateMain$5
2609
2855
  });
2610
2856
 
2611
- const is$typed$5 = is$typed$g, validate$5 = validate$g;
2857
+ const is$typed$5 = is$typed$i, validate$5 = validate$i;
2612
2858
  const id$5 = 'org.hypercerts.claim.evaluation';
2613
2859
  const hashScore = 'score';
2614
2860
  function isScore(v) {
@@ -2635,7 +2881,7 @@ var evaluation = /*#__PURE__*/Object.freeze({
2635
2881
  validateScore: validateScore
2636
2882
  });
2637
2883
 
2638
- const is$typed$4 = is$typed$g, validate$4 = validate$g;
2884
+ const is$typed$4 = is$typed$i, validate$4 = validate$i;
2639
2885
  const id$4 = 'org.hypercerts.claim.measurement';
2640
2886
  const hashMain$3 = 'main';
2641
2887
  function isMain$3(v) {
@@ -2653,7 +2899,7 @@ var measurement = /*#__PURE__*/Object.freeze({
2653
2899
  validateRecord: validateMain$3
2654
2900
  });
2655
2901
 
2656
- const is$typed$3 = is$typed$g, validate$3 = validate$g;
2902
+ const is$typed$3 = is$typed$i, validate$3 = validate$i;
2657
2903
  const id$3 = 'org.hypercerts.claim.rights';
2658
2904
  const hashMain$2 = 'main';
2659
2905
  function isMain$2(v) {
@@ -2671,7 +2917,7 @@ var rights = /*#__PURE__*/Object.freeze({
2671
2917
  validateRecord: validateMain$2
2672
2918
  });
2673
2919
 
2674
- const is$typed$2 = is$typed$g, validate$2 = validate$g;
2920
+ const is$typed$2 = is$typed$i, validate$2 = validate$i;
2675
2921
  const id$2 = 'org.hypercerts.defs';
2676
2922
  const hashUri = 'uri';
2677
2923
  function isUri(v) {
@@ -2723,7 +2969,7 @@ var defs = /*#__PURE__*/Object.freeze({
2723
2969
  validateUri: validateUri
2724
2970
  });
2725
2971
 
2726
- const is$typed$1 = is$typed$g, validate$1 = validate$g;
2972
+ const is$typed$1 = is$typed$i, validate$1 = validate$i;
2727
2973
  const id$1 = 'org.hypercerts.funding.receipt';
2728
2974
  const hashMain$1 = 'main';
2729
2975
  function isMain$1(v) {
@@ -2741,7 +2987,7 @@ var receipt = /*#__PURE__*/Object.freeze({
2741
2987
  validateRecord: validateMain$1
2742
2988
  });
2743
2989
 
2744
- const is$typed = is$typed$g, validate = validate$g;
2990
+ const is$typed = is$typed$i, validate = validate$i;
2745
2991
  const id = 'org.hypercerts.helper.workScopeTag';
2746
2992
  const hashMain = 'main';
2747
2993
  function isMain(v) {
@@ -2765,7 +3011,7 @@ var workScopeTag = /*#__PURE__*/Object.freeze({
2765
3011
  * ⚠️ DO NOT EDIT THIS FILE MANUALLY ⚠️
2766
3012
  *
2767
3013
  * This file is automatically generated by scripts/generate-exports.js
2768
- * Generated: 2026-01-25T04:32:42.985Z
3014
+ * Generated: 2026-02-10T10:47:30.525Z
2769
3015
  *
2770
3016
  * To regenerate this file, run:
2771
3017
  * npm run gen-api
@@ -2782,6 +3028,7 @@ var workScopeTag = /*#__PURE__*/Object.freeze({
2782
3028
  * @packageDocumentation
2783
3029
  */
2784
3030
  // Individual NSID constants
3031
+ const ACTOR_PROFILE_NSID = "app.certified.actor.profile";
2785
3032
  const BADGE_AWARD_NSID = "app.certified.badge.award";
2786
3033
  const BADGE_DEFINITION_NSID = "app.certified.badge.definition";
2787
3034
  const BADGE_RESPONSE_NSID = "app.certified.badge.response";
@@ -2806,6 +3053,7 @@ const WORK_SCOPE_TAG_NSID = "org.hypercerts.helper.workScopeTag";
2806
3053
  * correct collection names.
2807
3054
  */
2808
3055
  const HYPERCERTS_NSIDS = {
3056
+ ACTOR_PROFILE: ACTOR_PROFILE_NSID,
2809
3057
  BADGE_AWARD: BADGE_AWARD_NSID,
2810
3058
  BADGE_DEFINITION: BADGE_DEFINITION_NSID,
2811
3059
  BADGE_RESPONSE: BADGE_RESPONSE_NSID,
@@ -2828,6 +3076,7 @@ const HYPERCERTS_NSIDS = {
2828
3076
  * Lexicon JSON objects organized by semantic record type.
2829
3077
  */
2830
3078
  const HYPERCERTS_LEXICON_JSON = {
3079
+ ACTOR_PROFILE: ACTOR_PROFILE_LEXICON_JSON,
2831
3080
  BADGE_AWARD: BADGE_AWARD_LEXICON_JSON,
2832
3081
  BADGE_DEFINITION: BADGE_DEFINITION_LEXICON_JSON,
2833
3082
  BADGE_RESPONSE: BADGE_RESPONSE_LEXICON_JSON,
@@ -2847,6 +3096,7 @@ const HYPERCERTS_LEXICON_JSON = {
2847
3096
  WORK_SCOPE_TAG: WORK_SCOPE_TAG_LEXICON_JSON,
2848
3097
  };
2849
3098
  // Individual lexicon objects (from lexicons.get())
3099
+ const ACTOR_PROFILE_LEXICON_DOC = lexicons.get(ACTOR_PROFILE_NSID);
2850
3100
  const BADGE_AWARD_LEXICON_DOC = lexicons.get(BADGE_AWARD_NSID);
2851
3101
  const BADGE_DEFINITION_LEXICON_DOC = lexicons.get(BADGE_DEFINITION_NSID);
2852
3102
  const BADGE_RESPONSE_LEXICON_DOC = lexicons.get(BADGE_RESPONSE_NSID);
@@ -2868,6 +3118,7 @@ const WORK_SCOPE_TAG_LEXICON_DOC = lexicons.get(WORK_SCOPE_TAG_NSID);
2868
3118
  * Lexicon document objects organized by semantic record type.
2869
3119
  */
2870
3120
  const HYPERCERTS_LEXICON_DOC = {
3121
+ ACTOR_PROFILE: ACTOR_PROFILE_LEXICON_DOC,
2871
3122
  BADGE_AWARD: BADGE_AWARD_LEXICON_DOC,
2872
3123
  BADGE_DEFINITION: BADGE_DEFINITION_LEXICON_DOC,
2873
3124
  BADGE_RESPONSE: BADGE_RESPONSE_LEXICON_DOC,
@@ -2887,5 +3138,5 @@ const HYPERCERTS_LEXICON_DOC = {
2887
3138
  WORK_SCOPE_TAG: WORK_SCOPE_TAG_LEXICON_DOC,
2888
3139
  };
2889
3140
 
2890
- export { ACTIVITY_LEXICON_DOC, ACTIVITY_LEXICON_JSON, ACTIVITY_NSID, ATTACHMENT_LEXICON_DOC, ATTACHMENT_LEXICON_JSON, ATTACHMENT_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_DETAILS_LEXICON_DOC, CONTRIBUTION_DETAILS_LEXICON_JSON, CONTRIBUTION_DETAILS_NSID, CONTRIBUTOR_INFORMATION_LEXICON_DOC, CONTRIBUTOR_INFORMATION_LEXICON_JSON, CONTRIBUTOR_INFORMATION_NSID, strongRef as ComAtprotoRepoStrongRef, EVALUATION_LEXICON_DOC, EVALUATION_LEXICON_JSON, EVALUATION_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, attachment as OrgHypercertsClaimAttachment, collection as OrgHypercertsClaimCollection, contributionDetails as OrgHypercertsClaimContributionDetails, contributorInformation as OrgHypercertsClaimContributorInformation, evaluation as OrgHypercertsClaimEvaluation, measurement as OrgHypercertsClaimMeasurement, rights as OrgHypercertsClaimRights, defs as OrgHypercertsDefs, receipt as OrgHypercertsFundingReceipt, workScopeTag as OrgHypercertsHelperWorkScopeTag, RIGHTS_LEXICON_DOC, RIGHTS_LEXICON_JSON, RIGHTS_NSID, STRONG_REF_LEXICON_DOC, STRONG_REF_LEXICON_JSON, STRONG_REF_NSID, WORK_SCOPE_TAG_LEXICON_DOC, WORK_SCOPE_TAG_LEXICON_JSON, WORK_SCOPE_TAG_NSID, asPredicate, is$typed$g as is$typed, lexicons, maybe$typed, validate$g as validate };
3141
+ export { ACTIVITY_LEXICON_DOC, ACTIVITY_LEXICON_JSON, ACTIVITY_NSID, ACTOR_PROFILE_LEXICON_DOC, ACTOR_PROFILE_LEXICON_JSON, ACTOR_PROFILE_NSID, ATTACHMENT_LEXICON_DOC, ATTACHMENT_LEXICON_JSON, ATTACHMENT_NSID, profile as AppCertifiedActorProfile, 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_DETAILS_LEXICON_DOC, CONTRIBUTION_DETAILS_LEXICON_JSON, CONTRIBUTION_DETAILS_NSID, CONTRIBUTOR_INFORMATION_LEXICON_DOC, CONTRIBUTOR_INFORMATION_LEXICON_JSON, CONTRIBUTOR_INFORMATION_NSID, strongRef as ComAtprotoRepoStrongRef, EVALUATION_LEXICON_DOC, EVALUATION_LEXICON_JSON, EVALUATION_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, attachment as OrgHypercertsClaimAttachment, collection as OrgHypercertsClaimCollection, contributionDetails as OrgHypercertsClaimContributionDetails, contributorInformation as OrgHypercertsClaimContributorInformation, evaluation as OrgHypercertsClaimEvaluation, measurement as OrgHypercertsClaimMeasurement, rights as OrgHypercertsClaimRights, defs as OrgHypercertsDefs, receipt as OrgHypercertsFundingReceipt, workScopeTag as OrgHypercertsHelperWorkScopeTag, RIGHTS_LEXICON_DOC, RIGHTS_LEXICON_JSON, RIGHTS_NSID, STRONG_REF_LEXICON_DOC, STRONG_REF_LEXICON_JSON, STRONG_REF_NSID, WORK_SCOPE_TAG_LEXICON_DOC, WORK_SCOPE_TAG_LEXICON_JSON, WORK_SCOPE_TAG_NSID, asPredicate, is$typed$i as is$typed, lexicons, maybe$typed, validate$i as validate };
2891
3142
  //# sourceMappingURL=index.mjs.map