@hypercerts-org/lexicon 0.10.0-beta.5 → 0.10.0-beta.6

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 (36) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/SCHEMAS.md +21 -13
  3. package/dist/exports.d.ts +79 -22
  4. package/dist/exports.d.ts.map +1 -1
  5. package/dist/generated/exports.d.ts +79 -22
  6. package/dist/generated/exports.d.ts.map +1 -1
  7. package/dist/generated/lexicons.d.ts +150 -46
  8. package/dist/generated/lexicons.d.ts.map +1 -1
  9. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +19 -2
  10. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  11. package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts +22 -0
  12. package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  13. package/dist/generated/types/org/hypercerts/claim/{contributor.d.ts → contributorInformation.d.ts} +3 -11
  14. package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  15. package/dist/index.cjs +341 -180
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.mjs +329 -172
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/lexicons.cjs +86 -27
  20. package/dist/lexicons.cjs.map +1 -1
  21. package/dist/lexicons.d.ts +150 -46
  22. package/dist/lexicons.d.ts.map +1 -1
  23. package/dist/lexicons.mjs +86 -27
  24. package/dist/lexicons.mjs.map +1 -1
  25. package/dist/types/org/hypercerts/claim/activity.d.ts +19 -2
  26. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
  27. package/dist/types/org/hypercerts/claim/contributionDetails.d.ts +22 -0
  28. package/dist/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
  29. package/dist/types/org/hypercerts/claim/{contributor.d.ts → contributorInformation.d.ts} +3 -11
  30. package/dist/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
  31. package/lexicons/org/hypercerts/claim/activity.json +33 -3
  32. package/lexicons/org/hypercerts/claim/{contributor.json → contributionDetails.json} +5 -22
  33. package/lexicons/org/hypercerts/claim/contributorInformation.json +39 -0
  34. package/package.json +2 -2
  35. package/dist/generated/types/org/hypercerts/claim/contributor.d.ts.map +0 -1
  36. package/dist/types/org/hypercerts/claim/contributor.d.ts.map +0 -1
@@ -261,12 +261,12 @@ export declare const schemaDict: {
261
261
  readonly format: "datetime";
262
262
  readonly description: "When the work ended";
263
263
  };
264
- readonly contributions: {
264
+ readonly contributors: {
265
265
  readonly type: "array";
266
- readonly 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.";
266
+ readonly description: "An array of contributor objects, each containing contributor information, weight, and contribution details.";
267
267
  readonly items: {
268
268
  readonly type: "ref";
269
- readonly ref: "lex:com.atproto.repo.strongRef";
269
+ readonly ref: "lex:org.hypercerts.claim.activity#contributor";
270
270
  };
271
271
  };
272
272
  readonly rights: {
@@ -290,6 +290,36 @@ export declare const schemaDict: {
290
290
  };
291
291
  };
292
292
  };
293
+ readonly contributor: {
294
+ readonly type: "object";
295
+ readonly required: ["contributorInformation"];
296
+ readonly properties: {
297
+ readonly contributorInformation: {
298
+ readonly type: "union";
299
+ readonly refs: ["lex:org.hypercerts.claim.activity#contributorIdentity", "lex:com.atproto.repo.strongRef"];
300
+ readonly description: "Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main.";
301
+ };
302
+ readonly weight: {
303
+ readonly type: "string";
304
+ readonly description: "The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.";
305
+ };
306
+ readonly contributionDetails: {
307
+ readonly type: "union";
308
+ readonly refs: ["lex:org.hypercerts.claim.activity#contributorRole", "lex:com.atproto.repo.strongRef"];
309
+ readonly description: "Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main.";
310
+ };
311
+ };
312
+ };
313
+ readonly contributorIdentity: {
314
+ readonly type: "string";
315
+ readonly description: "Contributor information as a string (DID or identifier).";
316
+ };
317
+ readonly contributorRole: {
318
+ readonly type: "string";
319
+ readonly description: "Contribution details as a string.";
320
+ readonly maxLength: 10000;
321
+ readonly maxGraphemes: 1000;
322
+ };
293
323
  readonly activityWeight: {
294
324
  readonly type: "object";
295
325
  readonly required: ["activity", "weight"];
@@ -358,32 +388,18 @@ export declare const schemaDict: {
358
388
  };
359
389
  };
360
390
  };
361
- readonly OrgHypercertsClaimContributor: {
391
+ readonly OrgHypercertsClaimContributionDetails: {
362
392
  readonly lexicon: 1;
363
- readonly id: "org.hypercerts.claim.contributor";
393
+ readonly id: "org.hypercerts.claim.contributionDetails";
364
394
  readonly defs: {
365
395
  readonly main: {
366
396
  readonly type: "record";
367
- readonly description: "A contribution made toward a hypercert's impact.";
397
+ readonly description: "Details about a specific contribution including role, description, and timeframe.";
368
398
  readonly key: "tid";
369
399
  readonly record: {
370
400
  readonly type: "object";
371
401
  readonly required: ["createdAt"];
372
402
  readonly properties: {
373
- readonly identifier: {
374
- readonly type: "string";
375
- readonly description: "DID or a URI to a social profile of the contributor.";
376
- };
377
- readonly displayName: {
378
- readonly type: "string";
379
- readonly description: "Display name of the contributor.";
380
- readonly maxLength: 100;
381
- };
382
- readonly image: {
383
- readonly type: "union";
384
- readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
385
- readonly description: "The contributor visual representation as a URI or image blob.";
386
- };
387
403
  readonly role: {
388
404
  readonly type: "string";
389
405
  readonly description: "Role or title of the contributor.";
@@ -391,9 +407,9 @@ export declare const schemaDict: {
391
407
  };
392
408
  readonly contributionDescription: {
393
409
  readonly type: "string";
394
- readonly description: "What the contribution concretely achieved.";
395
- readonly maxLength: 2000;
396
- readonly maxGraphemes: 500;
410
+ readonly description: "What the contribution concretely was.";
411
+ readonly maxLength: 10000;
412
+ readonly maxGraphemes: 1000;
397
413
  };
398
414
  readonly startDate: {
399
415
  readonly type: "string";
@@ -415,6 +431,42 @@ export declare const schemaDict: {
415
431
  };
416
432
  };
417
433
  };
434
+ readonly OrgHypercertsClaimContributorInformation: {
435
+ readonly lexicon: 1;
436
+ readonly id: "org.hypercerts.claim.contributorInformation";
437
+ readonly defs: {
438
+ readonly main: {
439
+ readonly type: "record";
440
+ readonly description: "Contributor information including identifier, display name, and image.";
441
+ readonly key: "tid";
442
+ readonly record: {
443
+ readonly type: "object";
444
+ readonly required: ["createdAt"];
445
+ readonly properties: {
446
+ readonly identifier: {
447
+ readonly type: "string";
448
+ readonly description: "DID or a URI to a social profile of the contributor.";
449
+ };
450
+ readonly displayName: {
451
+ readonly type: "string";
452
+ readonly description: "Display name of the contributor.";
453
+ readonly maxLength: 100;
454
+ };
455
+ readonly image: {
456
+ readonly type: "union";
457
+ readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
458
+ readonly description: "The contributor visual representation as a URI or image blob.";
459
+ };
460
+ readonly createdAt: {
461
+ readonly type: "string";
462
+ readonly format: "datetime";
463
+ readonly description: "Client-declared timestamp when this record was originally created.";
464
+ };
465
+ };
466
+ };
467
+ };
468
+ };
469
+ };
418
470
  readonly OrgHypercertsClaimEvaluation: {
419
471
  readonly lexicon: 1;
420
472
  readonly id: "org.hypercerts.claim.evaluation";
@@ -1059,12 +1111,12 @@ export declare const schemas: ({
1059
1111
  readonly format: "datetime";
1060
1112
  readonly description: "When the work ended";
1061
1113
  };
1062
- readonly contributions: {
1114
+ readonly contributors: {
1063
1115
  readonly type: "array";
1064
- readonly 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.";
1116
+ readonly description: "An array of contributor objects, each containing contributor information, weight, and contribution details.";
1065
1117
  readonly items: {
1066
1118
  readonly type: "ref";
1067
- readonly ref: "lex:com.atproto.repo.strongRef";
1119
+ readonly ref: "lex:org.hypercerts.claim.activity#contributor";
1068
1120
  };
1069
1121
  };
1070
1122
  readonly rights: {
@@ -1088,6 +1140,36 @@ export declare const schemas: ({
1088
1140
  };
1089
1141
  };
1090
1142
  };
1143
+ readonly contributor: {
1144
+ readonly type: "object";
1145
+ readonly required: ["contributorInformation"];
1146
+ readonly properties: {
1147
+ readonly contributorInformation: {
1148
+ readonly type: "union";
1149
+ readonly refs: ["lex:org.hypercerts.claim.activity#contributorIdentity", "lex:com.atproto.repo.strongRef"];
1150
+ readonly description: "Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main.";
1151
+ };
1152
+ readonly weight: {
1153
+ readonly type: "string";
1154
+ readonly description: "The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.";
1155
+ };
1156
+ readonly contributionDetails: {
1157
+ readonly type: "union";
1158
+ readonly refs: ["lex:org.hypercerts.claim.activity#contributorRole", "lex:com.atproto.repo.strongRef"];
1159
+ readonly description: "Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main.";
1160
+ };
1161
+ };
1162
+ };
1163
+ readonly contributorIdentity: {
1164
+ readonly type: "string";
1165
+ readonly description: "Contributor information as a string (DID or identifier).";
1166
+ };
1167
+ readonly contributorRole: {
1168
+ readonly type: "string";
1169
+ readonly description: "Contribution details as a string.";
1170
+ readonly maxLength: 10000;
1171
+ readonly maxGraphemes: 1000;
1172
+ };
1091
1173
  readonly activityWeight: {
1092
1174
  readonly type: "object";
1093
1175
  readonly required: ["activity", "weight"];
@@ -1156,30 +1238,16 @@ export declare const schemas: ({
1156
1238
  };
1157
1239
  } | {
1158
1240
  readonly lexicon: 1;
1159
- readonly id: "org.hypercerts.claim.contributor";
1241
+ readonly id: "org.hypercerts.claim.contributionDetails";
1160
1242
  readonly defs: {
1161
1243
  readonly main: {
1162
1244
  readonly type: "record";
1163
- readonly description: "A contribution made toward a hypercert's impact.";
1245
+ readonly description: "Details about a specific contribution including role, description, and timeframe.";
1164
1246
  readonly key: "tid";
1165
1247
  readonly record: {
1166
1248
  readonly type: "object";
1167
1249
  readonly required: ["createdAt"];
1168
1250
  readonly properties: {
1169
- readonly identifier: {
1170
- readonly type: "string";
1171
- readonly description: "DID or a URI to a social profile of the contributor.";
1172
- };
1173
- readonly displayName: {
1174
- readonly type: "string";
1175
- readonly description: "Display name of the contributor.";
1176
- readonly maxLength: 100;
1177
- };
1178
- readonly image: {
1179
- readonly type: "union";
1180
- readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
1181
- readonly description: "The contributor visual representation as a URI or image blob.";
1182
- };
1183
1251
  readonly role: {
1184
1252
  readonly type: "string";
1185
1253
  readonly description: "Role or title of the contributor.";
@@ -1187,9 +1255,9 @@ export declare const schemas: ({
1187
1255
  };
1188
1256
  readonly contributionDescription: {
1189
1257
  readonly type: "string";
1190
- readonly description: "What the contribution concretely achieved.";
1191
- readonly maxLength: 2000;
1192
- readonly maxGraphemes: 500;
1258
+ readonly description: "What the contribution concretely was.";
1259
+ readonly maxLength: 10000;
1260
+ readonly maxGraphemes: 1000;
1193
1261
  };
1194
1262
  readonly startDate: {
1195
1263
  readonly type: "string";
@@ -1210,6 +1278,41 @@ export declare const schemas: ({
1210
1278
  };
1211
1279
  };
1212
1280
  };
1281
+ } | {
1282
+ readonly lexicon: 1;
1283
+ readonly id: "org.hypercerts.claim.contributorInformation";
1284
+ readonly defs: {
1285
+ readonly main: {
1286
+ readonly type: "record";
1287
+ readonly description: "Contributor information including identifier, display name, and image.";
1288
+ readonly key: "tid";
1289
+ readonly record: {
1290
+ readonly type: "object";
1291
+ readonly required: ["createdAt"];
1292
+ readonly properties: {
1293
+ readonly identifier: {
1294
+ readonly type: "string";
1295
+ readonly description: "DID or a URI to a social profile of the contributor.";
1296
+ };
1297
+ readonly displayName: {
1298
+ readonly type: "string";
1299
+ readonly description: "Display name of the contributor.";
1300
+ readonly maxLength: 100;
1301
+ };
1302
+ readonly image: {
1303
+ readonly type: "union";
1304
+ readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
1305
+ readonly description: "The contributor visual representation as a URI or image blob.";
1306
+ };
1307
+ readonly createdAt: {
1308
+ readonly type: "string";
1309
+ readonly format: "datetime";
1310
+ readonly description: "Client-declared timestamp when this record was originally created.";
1311
+ };
1312
+ };
1313
+ };
1314
+ };
1315
+ };
1213
1316
  } | {
1214
1317
  readonly lexicon: 1;
1215
1318
  readonly id: "org.hypercerts.claim.evaluation";
@@ -1612,7 +1715,8 @@ export declare const ids: {
1612
1715
  readonly ComAtprotoRepoStrongRef: "com.atproto.repo.strongRef";
1613
1716
  readonly OrgHypercertsClaimActivity: "org.hypercerts.claim.activity";
1614
1717
  readonly OrgHypercertsClaimCollection: "org.hypercerts.claim.collection";
1615
- readonly OrgHypercertsClaimContributor: "org.hypercerts.claim.contributor";
1718
+ readonly OrgHypercertsClaimContributionDetails: "org.hypercerts.claim.contributionDetails";
1719
+ readonly OrgHypercertsClaimContributorInformation: "org.hypercerts.claim.contributorInformation";
1616
1720
  readonly OrgHypercertsClaimEvaluation: "org.hypercerts.claim.evaluation";
1617
1721
  readonly OrgHypercertsClaimEvidence: "org.hypercerts.claim.evidence";
1618
1722
  readonly OrgHypercertsClaimMeasurement: "org.hypercerts.claim.measurement";
@@ -1 +1 @@
1
- {"version":3,"file":"lexicons.d.ts","sourceRoot":"","sources":["../generated/lexicons.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,QAAQ,EAER,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAA;AAGzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,KAAK,GACnB,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAiBtB,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;CAmBN,CAAA"}
package/dist/lexicons.mjs CHANGED
@@ -306,12 +306,12 @@ const schemaDict = {
306
306
  format: 'datetime',
307
307
  description: 'When the work ended',
308
308
  },
309
- contributions: {
309
+ contributors: {
310
310
  type: 'array',
311
- 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.',
311
+ description: 'An array of contributor objects, each containing contributor information, weight, and contribution details.',
312
312
  items: {
313
313
  type: 'ref',
314
- ref: 'lex:com.atproto.repo.strongRef',
314
+ ref: 'lex:org.hypercerts.claim.activity#contributor',
315
315
  },
316
316
  },
317
317
  rights: {
@@ -335,6 +335,42 @@ const schemaDict = {
335
335
  },
336
336
  },
337
337
  },
338
+ contributor: {
339
+ type: 'object',
340
+ required: ['contributorInformation'],
341
+ properties: {
342
+ contributorInformation: {
343
+ type: 'union',
344
+ refs: [
345
+ 'lex:org.hypercerts.claim.activity#contributorIdentity',
346
+ 'lex:com.atproto.repo.strongRef',
347
+ ],
348
+ description: 'Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main.',
349
+ },
350
+ weight: {
351
+ type: 'string',
352
+ description: 'The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.',
353
+ },
354
+ contributionDetails: {
355
+ type: 'union',
356
+ refs: [
357
+ 'lex:org.hypercerts.claim.activity#contributorRole',
358
+ 'lex:com.atproto.repo.strongRef',
359
+ ],
360
+ description: 'Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main.',
361
+ },
362
+ },
363
+ },
364
+ contributorIdentity: {
365
+ type: 'string',
366
+ description: 'Contributor information as a string (DID or identifier).',
367
+ },
368
+ contributorRole: {
369
+ type: 'string',
370
+ description: 'Contribution details as a string.',
371
+ maxLength: 10000,
372
+ maxGraphemes: 1000,
373
+ },
338
374
  activityWeight: {
339
375
  type: 'object',
340
376
  required: ['activity', 'weight'],
@@ -403,35 +439,18 @@ const schemaDict = {
403
439
  },
404
440
  },
405
441
  },
406
- OrgHypercertsClaimContributor: {
442
+ OrgHypercertsClaimContributionDetails: {
407
443
  lexicon: 1,
408
- id: 'org.hypercerts.claim.contributor',
444
+ id: 'org.hypercerts.claim.contributionDetails',
409
445
  defs: {
410
446
  main: {
411
447
  type: 'record',
412
- description: "A contribution made toward a hypercert's impact.",
448
+ description: 'Details about a specific contribution including role, description, and timeframe.',
413
449
  key: 'tid',
414
450
  record: {
415
451
  type: 'object',
416
452
  required: ['createdAt'],
417
453
  properties: {
418
- identifier: {
419
- type: 'string',
420
- description: 'DID or a URI to a social profile of the contributor.',
421
- },
422
- displayName: {
423
- type: 'string',
424
- description: 'Display name of the contributor.',
425
- maxLength: 100,
426
- },
427
- image: {
428
- type: 'union',
429
- refs: [
430
- 'lex:org.hypercerts.defs#uri',
431
- 'lex:org.hypercerts.defs#smallImage',
432
- ],
433
- description: 'The contributor visual representation as a URI or image blob.',
434
- },
435
454
  role: {
436
455
  type: 'string',
437
456
  description: 'Role or title of the contributor.',
@@ -439,9 +458,9 @@ const schemaDict = {
439
458
  },
440
459
  contributionDescription: {
441
460
  type: 'string',
442
- description: 'What the contribution concretely achieved.',
443
- maxLength: 2000,
444
- maxGraphemes: 500,
461
+ description: 'What the contribution concretely was.',
462
+ maxLength: 10000,
463
+ maxGraphemes: 1000,
445
464
  },
446
465
  startDate: {
447
466
  type: 'string',
@@ -463,6 +482,45 @@ const schemaDict = {
463
482
  },
464
483
  },
465
484
  },
485
+ OrgHypercertsClaimContributorInformation: {
486
+ lexicon: 1,
487
+ id: 'org.hypercerts.claim.contributorInformation',
488
+ defs: {
489
+ main: {
490
+ type: 'record',
491
+ description: 'Contributor information including identifier, display name, and image.',
492
+ key: 'tid',
493
+ record: {
494
+ type: 'object',
495
+ required: ['createdAt'],
496
+ properties: {
497
+ identifier: {
498
+ type: 'string',
499
+ description: 'DID or a URI to a social profile of the contributor.',
500
+ },
501
+ displayName: {
502
+ type: 'string',
503
+ description: 'Display name of the contributor.',
504
+ maxLength: 100,
505
+ },
506
+ image: {
507
+ type: 'union',
508
+ refs: [
509
+ 'lex:org.hypercerts.defs#uri',
510
+ 'lex:org.hypercerts.defs#smallImage',
511
+ ],
512
+ description: 'The contributor visual representation as a URI or image blob.',
513
+ },
514
+ createdAt: {
515
+ type: 'string',
516
+ format: 'datetime',
517
+ description: 'Client-declared timestamp when this record was originally created.',
518
+ },
519
+ },
520
+ },
521
+ },
522
+ },
523
+ },
466
524
  OrgHypercertsClaimEvaluation: {
467
525
  lexicon: 1,
468
526
  id: 'org.hypercerts.claim.evaluation',
@@ -888,7 +946,8 @@ const ids = {
888
946
  ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
889
947
  OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',
890
948
  OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',
891
- OrgHypercertsClaimContributor: 'org.hypercerts.claim.contributor',
949
+ OrgHypercertsClaimContributionDetails: 'org.hypercerts.claim.contributionDetails',
950
+ OrgHypercertsClaimContributorInformation: 'org.hypercerts.claim.contributorInformation',
892
951
  OrgHypercertsClaimEvaluation: 'org.hypercerts.claim.evaluation',
893
952
  OrgHypercertsClaimEvidence: 'org.hypercerts.claim.evidence',
894
953
  OrgHypercertsClaimMeasurement: 'org.hypercerts.claim.measurement',