@hypercerts-org/lexicon 0.10.0-beta.5 → 0.10.0-beta.7
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.
- package/CHANGELOG.md +75 -0
- package/README.md +46 -0
- package/SCHEMAS.md +104 -90
- package/dist/exports.d.ts +109 -26
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +109 -26
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +226 -70
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/app/bsky/richtext/facet.d.ts +8 -0
- package/dist/generated/types/app/bsky/richtext/facet.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +25 -11
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts +18 -2
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts +22 -0
- package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/{contributor.d.ts → contributorInformation.d.ts} +3 -11
- package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
- package/dist/index.cjs +427 -203
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +415 -195
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +130 -39
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +226 -70
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +130 -39
- package/dist/lexicons.mjs.map +1 -1
- package/dist/types/app/bsky/richtext/facet.d.ts +8 -0
- package/dist/types/app/bsky/richtext/facet.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/activity.d.ts +25 -11
- package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/types/org/hypercerts/claim/collection.d.ts +18 -2
- package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -1
- package/dist/types/org/hypercerts/claim/contributionDetails.d.ts +22 -0
- package/dist/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/{contributor.d.ts → contributorInformation.d.ts} +3 -11
- package/dist/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
- package/lexicons/org/hypercerts/claim/activity.json +44 -13
- package/lexicons/org/hypercerts/claim/collection.json +33 -2
- package/lexicons/org/hypercerts/claim/{contributor.json → contributionDetails.json} +5 -22
- package/lexicons/org/hypercerts/claim/contributorInformation.json +39 -0
- package/package.json +5 -2
- package/dist/generated/types/org/hypercerts/claim/contributor.d.ts.map +0 -1
- package/dist/types/org/hypercerts/claim/contributor.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var lexicon$
|
|
3
|
+
var lexicon$g = require('@atproto/lexicon');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED CODE - DO NOT MODIFY
|
|
@@ -18,7 +18,7 @@ function is$type($type, id, hash) {
|
|
|
18
18
|
$type.startsWith(id) &&
|
|
19
19
|
$type.endsWith(hash);
|
|
20
20
|
}
|
|
21
|
-
function is$typed$
|
|
21
|
+
function is$typed$f(v, id, hash) {
|
|
22
22
|
return isObject(v) && '$type' in v && is$type(v.$type, id, hash);
|
|
23
23
|
}
|
|
24
24
|
function maybe$typed(v, id, hash) {
|
|
@@ -284,16 +284,32 @@ const schemaDict = {
|
|
|
284
284
|
},
|
|
285
285
|
shortDescription: {
|
|
286
286
|
type: 'string',
|
|
287
|
-
description: 'Short
|
|
287
|
+
description: 'Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.',
|
|
288
288
|
maxLength: 3000,
|
|
289
289
|
maxGraphemes: 300,
|
|
290
290
|
},
|
|
291
|
+
shortDescriptionFacets: {
|
|
292
|
+
type: 'array',
|
|
293
|
+
description: 'Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).',
|
|
294
|
+
items: {
|
|
295
|
+
type: 'ref',
|
|
296
|
+
ref: 'lex:app.bsky.richtext.facet',
|
|
297
|
+
},
|
|
298
|
+
},
|
|
291
299
|
description: {
|
|
292
300
|
type: 'string',
|
|
293
|
-
description: 'Optional longer description of
|
|
301
|
+
description: 'Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.',
|
|
294
302
|
maxLength: 30000,
|
|
295
303
|
maxGraphemes: 3000,
|
|
296
304
|
},
|
|
305
|
+
descriptionFacets: {
|
|
306
|
+
type: 'array',
|
|
307
|
+
description: 'Rich text annotations for `description` (mentions, URLs, hashtags, etc).',
|
|
308
|
+
items: {
|
|
309
|
+
type: 'ref',
|
|
310
|
+
ref: 'lex:app.bsky.richtext.facet',
|
|
311
|
+
},
|
|
312
|
+
},
|
|
297
313
|
image: {
|
|
298
314
|
type: 'union',
|
|
299
315
|
refs: [
|
|
@@ -317,12 +333,12 @@ const schemaDict = {
|
|
|
317
333
|
format: 'datetime',
|
|
318
334
|
description: 'When the work ended',
|
|
319
335
|
},
|
|
320
|
-
|
|
336
|
+
contributors: {
|
|
321
337
|
type: 'array',
|
|
322
|
-
description: '
|
|
338
|
+
description: 'An array of contributor objects, each containing contributor information, weight, and contribution details.',
|
|
323
339
|
items: {
|
|
324
340
|
type: 'ref',
|
|
325
|
-
ref: 'lex:
|
|
341
|
+
ref: 'lex:org.hypercerts.claim.activity#contributor',
|
|
326
342
|
},
|
|
327
343
|
},
|
|
328
344
|
rights: {
|
|
@@ -346,21 +362,42 @@ const schemaDict = {
|
|
|
346
362
|
},
|
|
347
363
|
},
|
|
348
364
|
},
|
|
349
|
-
|
|
365
|
+
contributor: {
|
|
350
366
|
type: 'object',
|
|
351
|
-
required: ['
|
|
367
|
+
required: ['contributorIdentity'],
|
|
352
368
|
properties: {
|
|
353
|
-
|
|
354
|
-
type: '
|
|
355
|
-
|
|
356
|
-
|
|
369
|
+
contributorIdentity: {
|
|
370
|
+
type: 'union',
|
|
371
|
+
refs: [
|
|
372
|
+
'lex:org.hypercerts.claim.activity#contributorIdentity',
|
|
373
|
+
'lex:com.atproto.repo.strongRef',
|
|
374
|
+
],
|
|
375
|
+
description: 'Contributor identity as a string (DID or identifier) via org.hypercerts.claim.activity#contributorIdentity, or a strong reference to a contributor information record.',
|
|
357
376
|
},
|
|
358
|
-
|
|
377
|
+
contributionWeight: {
|
|
359
378
|
type: 'string',
|
|
360
|
-
description: 'The relative weight/importance of this
|
|
379
|
+
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.',
|
|
380
|
+
},
|
|
381
|
+
contributionDetails: {
|
|
382
|
+
type: 'union',
|
|
383
|
+
refs: [
|
|
384
|
+
'lex:org.hypercerts.claim.activity#contributorRole',
|
|
385
|
+
'lex:com.atproto.repo.strongRef',
|
|
386
|
+
],
|
|
387
|
+
description: 'Contribution details as a string via org.hypercerts.claim.activity#contributorRole, or a strong reference to a contribution details record.',
|
|
361
388
|
},
|
|
362
389
|
},
|
|
363
390
|
},
|
|
391
|
+
contributorIdentity: {
|
|
392
|
+
type: 'string',
|
|
393
|
+
description: 'Contributor information as a string (DID or identifier).',
|
|
394
|
+
},
|
|
395
|
+
contributorRole: {
|
|
396
|
+
type: 'string',
|
|
397
|
+
description: 'Contribution details as a string.',
|
|
398
|
+
maxLength: 10000,
|
|
399
|
+
maxGraphemes: 1000,
|
|
400
|
+
},
|
|
364
401
|
},
|
|
365
402
|
},
|
|
366
403
|
OrgHypercertsClaimCollection: {
|
|
@@ -396,12 +433,28 @@ const schemaDict = {
|
|
|
396
433
|
ref: 'lex:pub.leaflet.pages.linearDocument#main',
|
|
397
434
|
description: 'Rich-text description, represented as a Leaflet linear document.',
|
|
398
435
|
},
|
|
436
|
+
avatar: {
|
|
437
|
+
type: 'union',
|
|
438
|
+
refs: [
|
|
439
|
+
'lex:org.hypercerts.defs#uri',
|
|
440
|
+
'lex:org.hypercerts.defs#smallImage',
|
|
441
|
+
],
|
|
442
|
+
description: "The collection's avatar/profile image as a URI or image blob.",
|
|
443
|
+
},
|
|
444
|
+
banner: {
|
|
445
|
+
type: 'union',
|
|
446
|
+
refs: [
|
|
447
|
+
'lex:org.hypercerts.defs#uri',
|
|
448
|
+
'lex:org.hypercerts.defs#largeImage',
|
|
449
|
+
],
|
|
450
|
+
description: 'Larger horizontal image to display behind the collection view.',
|
|
451
|
+
},
|
|
399
452
|
items: {
|
|
400
453
|
type: 'array',
|
|
401
|
-
description: 'Array of
|
|
454
|
+
description: 'Array of items in this collection with optional weights.',
|
|
402
455
|
items: {
|
|
403
456
|
type: 'ref',
|
|
404
|
-
ref: 'lex:
|
|
457
|
+
ref: 'lex:org.hypercerts.claim.collection#item',
|
|
405
458
|
},
|
|
406
459
|
},
|
|
407
460
|
createdAt: {
|
|
@@ -412,37 +465,35 @@ const schemaDict = {
|
|
|
412
465
|
},
|
|
413
466
|
},
|
|
414
467
|
},
|
|
468
|
+
item: {
|
|
469
|
+
type: 'object',
|
|
470
|
+
required: ['itemIdentifier'],
|
|
471
|
+
properties: {
|
|
472
|
+
itemIdentifier: {
|
|
473
|
+
type: 'ref',
|
|
474
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
475
|
+
description: 'Strong reference to an item in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection).',
|
|
476
|
+
},
|
|
477
|
+
itemWeight: {
|
|
478
|
+
type: 'string',
|
|
479
|
+
description: 'Optional weight for this item (positive numeric value stored as string). Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.',
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
},
|
|
415
483
|
},
|
|
416
484
|
},
|
|
417
|
-
|
|
485
|
+
OrgHypercertsClaimContributionDetails: {
|
|
418
486
|
lexicon: 1,
|
|
419
|
-
id: 'org.hypercerts.claim.
|
|
487
|
+
id: 'org.hypercerts.claim.contributionDetails',
|
|
420
488
|
defs: {
|
|
421
489
|
main: {
|
|
422
490
|
type: 'record',
|
|
423
|
-
description:
|
|
491
|
+
description: 'Details about a specific contribution including role, description, and timeframe.',
|
|
424
492
|
key: 'tid',
|
|
425
493
|
record: {
|
|
426
494
|
type: 'object',
|
|
427
495
|
required: ['createdAt'],
|
|
428
496
|
properties: {
|
|
429
|
-
identifier: {
|
|
430
|
-
type: 'string',
|
|
431
|
-
description: 'DID or a URI to a social profile of the contributor.',
|
|
432
|
-
},
|
|
433
|
-
displayName: {
|
|
434
|
-
type: 'string',
|
|
435
|
-
description: 'Display name of the contributor.',
|
|
436
|
-
maxLength: 100,
|
|
437
|
-
},
|
|
438
|
-
image: {
|
|
439
|
-
type: 'union',
|
|
440
|
-
refs: [
|
|
441
|
-
'lex:org.hypercerts.defs#uri',
|
|
442
|
-
'lex:org.hypercerts.defs#smallImage',
|
|
443
|
-
],
|
|
444
|
-
description: 'The contributor visual representation as a URI or image blob.',
|
|
445
|
-
},
|
|
446
497
|
role: {
|
|
447
498
|
type: 'string',
|
|
448
499
|
description: 'Role or title of the contributor.',
|
|
@@ -450,9 +501,9 @@ const schemaDict = {
|
|
|
450
501
|
},
|
|
451
502
|
contributionDescription: {
|
|
452
503
|
type: 'string',
|
|
453
|
-
description: 'What the contribution concretely
|
|
454
|
-
maxLength:
|
|
455
|
-
maxGraphemes:
|
|
504
|
+
description: 'What the contribution concretely was.',
|
|
505
|
+
maxLength: 10000,
|
|
506
|
+
maxGraphemes: 1000,
|
|
456
507
|
},
|
|
457
508
|
startDate: {
|
|
458
509
|
type: 'string',
|
|
@@ -474,6 +525,45 @@ const schemaDict = {
|
|
|
474
525
|
},
|
|
475
526
|
},
|
|
476
527
|
},
|
|
528
|
+
OrgHypercertsClaimContributorInformation: {
|
|
529
|
+
lexicon: 1,
|
|
530
|
+
id: 'org.hypercerts.claim.contributorInformation',
|
|
531
|
+
defs: {
|
|
532
|
+
main: {
|
|
533
|
+
type: 'record',
|
|
534
|
+
description: 'Contributor information including identifier, display name, and image.',
|
|
535
|
+
key: 'tid',
|
|
536
|
+
record: {
|
|
537
|
+
type: 'object',
|
|
538
|
+
required: ['createdAt'],
|
|
539
|
+
properties: {
|
|
540
|
+
identifier: {
|
|
541
|
+
type: 'string',
|
|
542
|
+
description: 'DID or a URI to a social profile of the contributor.',
|
|
543
|
+
},
|
|
544
|
+
displayName: {
|
|
545
|
+
type: 'string',
|
|
546
|
+
description: 'Display name of the contributor.',
|
|
547
|
+
maxLength: 100,
|
|
548
|
+
},
|
|
549
|
+
image: {
|
|
550
|
+
type: 'union',
|
|
551
|
+
refs: [
|
|
552
|
+
'lex:org.hypercerts.defs#uri',
|
|
553
|
+
'lex:org.hypercerts.defs#smallImage',
|
|
554
|
+
],
|
|
555
|
+
description: 'The contributor visual representation as a URI or image blob.',
|
|
556
|
+
},
|
|
557
|
+
createdAt: {
|
|
558
|
+
type: 'string',
|
|
559
|
+
format: 'datetime',
|
|
560
|
+
description: 'Client-declared timestamp when this record was originally created.',
|
|
561
|
+
},
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
},
|
|
565
|
+
},
|
|
566
|
+
},
|
|
477
567
|
OrgHypercertsClaimEvaluation: {
|
|
478
568
|
lexicon: 1,
|
|
479
569
|
id: 'org.hypercerts.claim.evaluation',
|
|
@@ -881,13 +971,13 @@ const schemaDict = {
|
|
|
881
971
|
},
|
|
882
972
|
};
|
|
883
973
|
const schemas = Object.values(schemaDict);
|
|
884
|
-
const lexicons = new lexicon$
|
|
885
|
-
function validate$
|
|
886
|
-
return (requiredType ? is$typed$
|
|
974
|
+
const lexicons = new lexicon$g.Lexicons(schemas);
|
|
975
|
+
function validate$f(v, id, hash, requiredType) {
|
|
976
|
+
return (requiredType ? is$typed$f : maybe$typed)(v, id, hash)
|
|
887
977
|
? lexicons.validate(`${id}#${hash}`, v)
|
|
888
978
|
: {
|
|
889
979
|
success: false,
|
|
890
|
-
error: new lexicon$
|
|
980
|
+
error: new lexicon$g.ValidationError(`Must be an object with "${hash === 'main' ? id : `${id}#${hash}`}" $type property`),
|
|
891
981
|
};
|
|
892
982
|
}
|
|
893
983
|
const ids = {
|
|
@@ -899,7 +989,8 @@ const ids = {
|
|
|
899
989
|
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
900
990
|
OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',
|
|
901
991
|
OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',
|
|
902
|
-
|
|
992
|
+
OrgHypercertsClaimContributionDetails: 'org.hypercerts.claim.contributionDetails',
|
|
993
|
+
OrgHypercertsClaimContributorInformation: 'org.hypercerts.claim.contributorInformation',
|
|
903
994
|
OrgHypercertsClaimEvaluation: 'org.hypercerts.claim.evaluation',
|
|
904
995
|
OrgHypercertsClaimEvidence: 'org.hypercerts.claim.evidence',
|
|
905
996
|
OrgHypercertsClaimMeasurement: 'org.hypercerts.claim.measurement',
|
|
@@ -908,9 +999,9 @@ const ids = {
|
|
|
908
999
|
OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',
|
|
909
1000
|
};
|
|
910
1001
|
|
|
911
|
-
var lexicon$
|
|
912
|
-
var id$
|
|
913
|
-
var defs$
|
|
1002
|
+
var lexicon$f = 1;
|
|
1003
|
+
var id$u = "app.certified.badge.award";
|
|
1004
|
+
var defs$h = {
|
|
914
1005
|
main: {
|
|
915
1006
|
type: "record",
|
|
916
1007
|
description: "Records a badge award to a user, project, or activity claim.",
|
|
@@ -950,14 +1041,14 @@ var defs$g = {
|
|
|
950
1041
|
}
|
|
951
1042
|
};
|
|
952
1043
|
var BADGE_AWARD_LEXICON_JSON = {
|
|
953
|
-
lexicon: lexicon$
|
|
954
|
-
id: id$
|
|
955
|
-
defs: defs$
|
|
1044
|
+
lexicon: lexicon$f,
|
|
1045
|
+
id: id$u,
|
|
1046
|
+
defs: defs$h
|
|
956
1047
|
};
|
|
957
1048
|
|
|
958
|
-
var lexicon$
|
|
959
|
-
var id$
|
|
960
|
-
var defs$
|
|
1049
|
+
var lexicon$e = 1;
|
|
1050
|
+
var id$t = "app.certified.badge.definition";
|
|
1051
|
+
var defs$g = {
|
|
961
1052
|
main: {
|
|
962
1053
|
type: "record",
|
|
963
1054
|
description: "Defines a badge that can be awarded via badge award records to users, projects, or activity claims.",
|
|
@@ -1012,14 +1103,14 @@ var defs$f = {
|
|
|
1012
1103
|
}
|
|
1013
1104
|
};
|
|
1014
1105
|
var BADGE_DEFINITION_LEXICON_JSON = {
|
|
1015
|
-
lexicon: lexicon$
|
|
1016
|
-
id: id$
|
|
1017
|
-
defs: defs$
|
|
1106
|
+
lexicon: lexicon$e,
|
|
1107
|
+
id: id$t,
|
|
1108
|
+
defs: defs$g
|
|
1018
1109
|
};
|
|
1019
1110
|
|
|
1020
|
-
var lexicon$
|
|
1021
|
-
var id$
|
|
1022
|
-
var defs$
|
|
1111
|
+
var lexicon$d = 1;
|
|
1112
|
+
var id$s = "app.certified.badge.response";
|
|
1113
|
+
var defs$f = {
|
|
1023
1114
|
main: {
|
|
1024
1115
|
type: "record",
|
|
1025
1116
|
description: "Recipient response to a badge award.",
|
|
@@ -1059,15 +1150,15 @@ var defs$e = {
|
|
|
1059
1150
|
}
|
|
1060
1151
|
};
|
|
1061
1152
|
var BADGE_RESPONSE_LEXICON_JSON = {
|
|
1062
|
-
lexicon: lexicon$
|
|
1063
|
-
id: id$
|
|
1064
|
-
defs: defs$
|
|
1153
|
+
lexicon: lexicon$d,
|
|
1154
|
+
id: id$s,
|
|
1155
|
+
defs: defs$f
|
|
1065
1156
|
};
|
|
1066
1157
|
|
|
1067
|
-
var lexicon$
|
|
1068
|
-
var id$
|
|
1158
|
+
var lexicon$c = 1;
|
|
1159
|
+
var id$r = "app.certified.defs";
|
|
1069
1160
|
var description$1 = "Common type definitions used across certified protocols.";
|
|
1070
|
-
var defs$
|
|
1161
|
+
var defs$e = {
|
|
1071
1162
|
did: {
|
|
1072
1163
|
type: "string",
|
|
1073
1164
|
format: "did",
|
|
@@ -1075,15 +1166,15 @@ var defs$d = {
|
|
|
1075
1166
|
}
|
|
1076
1167
|
};
|
|
1077
1168
|
var CERTIFIED_DEFS_LEXICON_JSON = {
|
|
1078
|
-
lexicon: lexicon$
|
|
1079
|
-
id: id$
|
|
1169
|
+
lexicon: lexicon$c,
|
|
1170
|
+
id: id$r,
|
|
1080
1171
|
description: description$1,
|
|
1081
|
-
defs: defs$
|
|
1172
|
+
defs: defs$e
|
|
1082
1173
|
};
|
|
1083
1174
|
|
|
1084
|
-
var lexicon$
|
|
1085
|
-
var id$
|
|
1086
|
-
var defs$
|
|
1175
|
+
var lexicon$b = 1;
|
|
1176
|
+
var id$q = "app.certified.location";
|
|
1177
|
+
var defs$d = {
|
|
1087
1178
|
main: {
|
|
1088
1179
|
type: "record",
|
|
1089
1180
|
description: "A location reference",
|
|
@@ -1148,15 +1239,15 @@ var defs$c = {
|
|
|
1148
1239
|
}
|
|
1149
1240
|
};
|
|
1150
1241
|
var LOCATION_LEXICON_JSON = {
|
|
1151
|
-
lexicon: lexicon$
|
|
1152
|
-
id: id$
|
|
1153
|
-
defs: defs$
|
|
1242
|
+
lexicon: lexicon$b,
|
|
1243
|
+
id: id$q,
|
|
1244
|
+
defs: defs$d
|
|
1154
1245
|
};
|
|
1155
1246
|
|
|
1156
|
-
var lexicon$
|
|
1157
|
-
var id$
|
|
1247
|
+
var lexicon$a = 1;
|
|
1248
|
+
var id$p = "com.atproto.repo.strongRef";
|
|
1158
1249
|
var description = "A URI with a content-hash fingerprint.";
|
|
1159
|
-
var defs$
|
|
1250
|
+
var defs$c = {
|
|
1160
1251
|
main: {
|
|
1161
1252
|
type: "object",
|
|
1162
1253
|
required: [
|
|
@@ -1176,15 +1267,15 @@ var defs$b = {
|
|
|
1176
1267
|
}
|
|
1177
1268
|
};
|
|
1178
1269
|
var STRONGREF_LEXICON_JSON = {
|
|
1179
|
-
lexicon: lexicon$
|
|
1180
|
-
id: id$
|
|
1270
|
+
lexicon: lexicon$a,
|
|
1271
|
+
id: id$p,
|
|
1181
1272
|
description: description,
|
|
1182
|
-
defs: defs$
|
|
1273
|
+
defs: defs$c
|
|
1183
1274
|
};
|
|
1184
1275
|
|
|
1185
|
-
var lexicon$
|
|
1186
|
-
var id$
|
|
1187
|
-
var defs$
|
|
1276
|
+
var lexicon$9 = 1;
|
|
1277
|
+
var id$o = "org.hypercerts.claim.activity";
|
|
1278
|
+
var defs$b = {
|
|
1188
1279
|
main: {
|
|
1189
1280
|
type: "record",
|
|
1190
1281
|
description: "A hypercert record tracking impact work.",
|
|
@@ -1204,16 +1295,32 @@ var defs$a = {
|
|
|
1204
1295
|
},
|
|
1205
1296
|
shortDescription: {
|
|
1206
1297
|
type: "string",
|
|
1207
|
-
description: "Short
|
|
1298
|
+
description: "Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.",
|
|
1208
1299
|
maxLength: 3000,
|
|
1209
1300
|
maxGraphemes: 300
|
|
1210
1301
|
},
|
|
1302
|
+
shortDescriptionFacets: {
|
|
1303
|
+
type: "array",
|
|
1304
|
+
description: "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).",
|
|
1305
|
+
items: {
|
|
1306
|
+
type: "ref",
|
|
1307
|
+
ref: "app.bsky.richtext.facet"
|
|
1308
|
+
}
|
|
1309
|
+
},
|
|
1211
1310
|
description: {
|
|
1212
1311
|
type: "string",
|
|
1213
|
-
description: "Optional longer description of
|
|
1312
|
+
description: "Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.",
|
|
1214
1313
|
maxLength: 30000,
|
|
1215
1314
|
maxGraphemes: 3000
|
|
1216
1315
|
},
|
|
1316
|
+
descriptionFacets: {
|
|
1317
|
+
type: "array",
|
|
1318
|
+
description: "Rich text annotations for `description` (mentions, URLs, hashtags, etc).",
|
|
1319
|
+
items: {
|
|
1320
|
+
type: "ref",
|
|
1321
|
+
ref: "app.bsky.richtext.facet"
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1217
1324
|
image: {
|
|
1218
1325
|
type: "union",
|
|
1219
1326
|
refs: [
|
|
@@ -1237,12 +1344,12 @@ var defs$a = {
|
|
|
1237
1344
|
format: "datetime",
|
|
1238
1345
|
description: "When the work ended"
|
|
1239
1346
|
},
|
|
1240
|
-
|
|
1347
|
+
contributors: {
|
|
1241
1348
|
type: "array",
|
|
1242
|
-
description: "
|
|
1349
|
+
description: "An array of contributor objects, each containing contributor information, weight, and contribution details.",
|
|
1243
1350
|
items: {
|
|
1244
1351
|
type: "ref",
|
|
1245
|
-
ref: "
|
|
1352
|
+
ref: "#contributor"
|
|
1246
1353
|
}
|
|
1247
1354
|
},
|
|
1248
1355
|
rights: {
|
|
@@ -1266,34 +1373,54 @@ var defs$a = {
|
|
|
1266
1373
|
}
|
|
1267
1374
|
}
|
|
1268
1375
|
},
|
|
1269
|
-
|
|
1376
|
+
contributor: {
|
|
1270
1377
|
type: "object",
|
|
1271
1378
|
required: [
|
|
1272
|
-
"
|
|
1273
|
-
"weight"
|
|
1379
|
+
"contributorIdentity"
|
|
1274
1380
|
],
|
|
1275
1381
|
properties: {
|
|
1276
|
-
|
|
1277
|
-
type: "
|
|
1278
|
-
|
|
1279
|
-
|
|
1382
|
+
contributorIdentity: {
|
|
1383
|
+
type: "union",
|
|
1384
|
+
refs: [
|
|
1385
|
+
"#contributorIdentity",
|
|
1386
|
+
"com.atproto.repo.strongRef"
|
|
1387
|
+
],
|
|
1388
|
+
description: "Contributor identity as a string (DID or identifier) via org.hypercerts.claim.activity#contributorIdentity, or a strong reference to a contributor information record."
|
|
1280
1389
|
},
|
|
1281
|
-
|
|
1390
|
+
contributionWeight: {
|
|
1282
1391
|
type: "string",
|
|
1283
|
-
description: "The relative weight/importance of this
|
|
1392
|
+
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."
|
|
1393
|
+
},
|
|
1394
|
+
contributionDetails: {
|
|
1395
|
+
type: "union",
|
|
1396
|
+
refs: [
|
|
1397
|
+
"#contributorRole",
|
|
1398
|
+
"com.atproto.repo.strongRef"
|
|
1399
|
+
],
|
|
1400
|
+
description: "Contribution details as a string via org.hypercerts.claim.activity#contributorRole, or a strong reference to a contribution details record."
|
|
1284
1401
|
}
|
|
1285
1402
|
}
|
|
1403
|
+
},
|
|
1404
|
+
contributorIdentity: {
|
|
1405
|
+
type: "string",
|
|
1406
|
+
description: "Contributor information as a string (DID or identifier)."
|
|
1407
|
+
},
|
|
1408
|
+
contributorRole: {
|
|
1409
|
+
type: "string",
|
|
1410
|
+
description: "Contribution details as a string.",
|
|
1411
|
+
maxLength: 10000,
|
|
1412
|
+
maxGraphemes: 1000
|
|
1286
1413
|
}
|
|
1287
1414
|
};
|
|
1288
1415
|
var ACTIVITY_LEXICON_JSON = {
|
|
1289
|
-
lexicon: lexicon$
|
|
1290
|
-
id: id$
|
|
1291
|
-
defs: defs$
|
|
1416
|
+
lexicon: lexicon$9,
|
|
1417
|
+
id: id$o,
|
|
1418
|
+
defs: defs$b
|
|
1292
1419
|
};
|
|
1293
1420
|
|
|
1294
|
-
var lexicon$
|
|
1295
|
-
var id$
|
|
1296
|
-
var defs$
|
|
1421
|
+
var lexicon$8 = 1;
|
|
1422
|
+
var id$n = "org.hypercerts.claim.collection";
|
|
1423
|
+
var defs$a = {
|
|
1297
1424
|
main: {
|
|
1298
1425
|
type: "record",
|
|
1299
1426
|
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.",
|
|
@@ -1327,12 +1454,28 @@ var defs$9 = {
|
|
|
1327
1454
|
ref: "pub.leaflet.pages.linearDocument#main",
|
|
1328
1455
|
description: "Rich-text description, represented as a Leaflet linear document."
|
|
1329
1456
|
},
|
|
1457
|
+
avatar: {
|
|
1458
|
+
type: "union",
|
|
1459
|
+
refs: [
|
|
1460
|
+
"org.hypercerts.defs#uri",
|
|
1461
|
+
"org.hypercerts.defs#smallImage"
|
|
1462
|
+
],
|
|
1463
|
+
description: "The collection's avatar/profile image as a URI or image blob."
|
|
1464
|
+
},
|
|
1465
|
+
banner: {
|
|
1466
|
+
type: "union",
|
|
1467
|
+
refs: [
|
|
1468
|
+
"org.hypercerts.defs#uri",
|
|
1469
|
+
"org.hypercerts.defs#largeImage"
|
|
1470
|
+
],
|
|
1471
|
+
description: "Larger horizontal image to display behind the collection view."
|
|
1472
|
+
},
|
|
1330
1473
|
items: {
|
|
1331
1474
|
type: "array",
|
|
1332
|
-
description: "Array of
|
|
1475
|
+
description: "Array of items in this collection with optional weights.",
|
|
1333
1476
|
items: {
|
|
1334
1477
|
type: "ref",
|
|
1335
|
-
ref: "
|
|
1478
|
+
ref: "#item"
|
|
1336
1479
|
}
|
|
1337
1480
|
},
|
|
1338
1481
|
createdAt: {
|
|
@@ -1342,20 +1485,86 @@ var defs$9 = {
|
|
|
1342
1485
|
}
|
|
1343
1486
|
}
|
|
1344
1487
|
}
|
|
1488
|
+
},
|
|
1489
|
+
item: {
|
|
1490
|
+
type: "object",
|
|
1491
|
+
required: [
|
|
1492
|
+
"itemIdentifier"
|
|
1493
|
+
],
|
|
1494
|
+
properties: {
|
|
1495
|
+
itemIdentifier: {
|
|
1496
|
+
type: "ref",
|
|
1497
|
+
ref: "com.atproto.repo.strongRef",
|
|
1498
|
+
description: "Strong reference to an item in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection)."
|
|
1499
|
+
},
|
|
1500
|
+
itemWeight: {
|
|
1501
|
+
type: "string",
|
|
1502
|
+
description: "Optional weight for this item (positive numeric value stored as string). Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed."
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1345
1505
|
}
|
|
1346
1506
|
};
|
|
1347
1507
|
var COLLECTION_LEXICON_JSON = {
|
|
1508
|
+
lexicon: lexicon$8,
|
|
1509
|
+
id: id$n,
|
|
1510
|
+
defs: defs$a
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
var lexicon$7 = 1;
|
|
1514
|
+
var id$m = "org.hypercerts.claim.contributionDetails";
|
|
1515
|
+
var defs$9 = {
|
|
1516
|
+
main: {
|
|
1517
|
+
type: "record",
|
|
1518
|
+
description: "Details about a specific contribution including role, description, and timeframe.",
|
|
1519
|
+
key: "tid",
|
|
1520
|
+
record: {
|
|
1521
|
+
type: "object",
|
|
1522
|
+
required: [
|
|
1523
|
+
"createdAt"
|
|
1524
|
+
],
|
|
1525
|
+
properties: {
|
|
1526
|
+
role: {
|
|
1527
|
+
type: "string",
|
|
1528
|
+
description: "Role or title of the contributor.",
|
|
1529
|
+
maxLength: 100
|
|
1530
|
+
},
|
|
1531
|
+
contributionDescription: {
|
|
1532
|
+
type: "string",
|
|
1533
|
+
description: "What the contribution concretely was.",
|
|
1534
|
+
maxLength: 10000,
|
|
1535
|
+
maxGraphemes: 1000
|
|
1536
|
+
},
|
|
1537
|
+
startDate: {
|
|
1538
|
+
type: "string",
|
|
1539
|
+
format: "datetime",
|
|
1540
|
+
description: "When this contribution started. This should be a subset of the hypercert timeframe."
|
|
1541
|
+
},
|
|
1542
|
+
endDate: {
|
|
1543
|
+
type: "string",
|
|
1544
|
+
format: "datetime",
|
|
1545
|
+
description: "When this contribution finished. This should be a subset of the hypercert timeframe."
|
|
1546
|
+
},
|
|
1547
|
+
createdAt: {
|
|
1548
|
+
type: "string",
|
|
1549
|
+
format: "datetime",
|
|
1550
|
+
description: "Client-declared timestamp when this record was originally created."
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
};
|
|
1556
|
+
var CONTRIBUTIONDETAILS_LEXICON_JSON = {
|
|
1348
1557
|
lexicon: lexicon$7,
|
|
1349
|
-
id: id$
|
|
1558
|
+
id: id$m,
|
|
1350
1559
|
defs: defs$9
|
|
1351
1560
|
};
|
|
1352
1561
|
|
|
1353
1562
|
var lexicon$6 = 1;
|
|
1354
|
-
var id$
|
|
1563
|
+
var id$l = "org.hypercerts.claim.contributorInformation";
|
|
1355
1564
|
var defs$8 = {
|
|
1356
1565
|
main: {
|
|
1357
1566
|
type: "record",
|
|
1358
|
-
description: "
|
|
1567
|
+
description: "Contributor information including identifier, display name, and image.",
|
|
1359
1568
|
key: "tid",
|
|
1360
1569
|
record: {
|
|
1361
1570
|
type: "object",
|
|
@@ -1380,27 +1589,6 @@ var defs$8 = {
|
|
|
1380
1589
|
],
|
|
1381
1590
|
description: "The contributor visual representation as a URI or image blob."
|
|
1382
1591
|
},
|
|
1383
|
-
role: {
|
|
1384
|
-
type: "string",
|
|
1385
|
-
description: "Role or title of the contributor.",
|
|
1386
|
-
maxLength: 100
|
|
1387
|
-
},
|
|
1388
|
-
contributionDescription: {
|
|
1389
|
-
type: "string",
|
|
1390
|
-
description: "What the contribution concretely achieved.",
|
|
1391
|
-
maxLength: 2000,
|
|
1392
|
-
maxGraphemes: 500
|
|
1393
|
-
},
|
|
1394
|
-
startDate: {
|
|
1395
|
-
type: "string",
|
|
1396
|
-
format: "datetime",
|
|
1397
|
-
description: "When this contribution started. This should be a subset of the hypercert timeframe."
|
|
1398
|
-
},
|
|
1399
|
-
endDate: {
|
|
1400
|
-
type: "string",
|
|
1401
|
-
format: "datetime",
|
|
1402
|
-
description: "When this contribution finished. This should be a subset of the hypercert timeframe."
|
|
1403
|
-
},
|
|
1404
1592
|
createdAt: {
|
|
1405
1593
|
type: "string",
|
|
1406
1594
|
format: "datetime",
|
|
@@ -1410,14 +1598,14 @@ var defs$8 = {
|
|
|
1410
1598
|
}
|
|
1411
1599
|
}
|
|
1412
1600
|
};
|
|
1413
|
-
var
|
|
1601
|
+
var CONTRIBUTORINFORMATION_LEXICON_JSON = {
|
|
1414
1602
|
lexicon: lexicon$6,
|
|
1415
|
-
id: id$
|
|
1603
|
+
id: id$l,
|
|
1416
1604
|
defs: defs$8
|
|
1417
1605
|
};
|
|
1418
1606
|
|
|
1419
1607
|
var lexicon$5 = 1;
|
|
1420
|
-
var id$
|
|
1608
|
+
var id$k = "org.hypercerts.claim.evaluation";
|
|
1421
1609
|
var defs$7 = {
|
|
1422
1610
|
score: {
|
|
1423
1611
|
type: "object",
|
|
@@ -1516,12 +1704,12 @@ var defs$7 = {
|
|
|
1516
1704
|
};
|
|
1517
1705
|
var EVALUATION_LEXICON_JSON = {
|
|
1518
1706
|
lexicon: lexicon$5,
|
|
1519
|
-
id: id$
|
|
1707
|
+
id: id$k,
|
|
1520
1708
|
defs: defs$7
|
|
1521
1709
|
};
|
|
1522
1710
|
|
|
1523
1711
|
var lexicon$4 = 1;
|
|
1524
|
-
var id$
|
|
1712
|
+
var id$j = "org.hypercerts.claim.evidence";
|
|
1525
1713
|
var defs$6 = {
|
|
1526
1714
|
main: {
|
|
1527
1715
|
type: "record",
|
|
@@ -1585,12 +1773,12 @@ var defs$6 = {
|
|
|
1585
1773
|
};
|
|
1586
1774
|
var EVIDENCE_LEXICON_JSON = {
|
|
1587
1775
|
lexicon: lexicon$4,
|
|
1588
|
-
id: id$
|
|
1776
|
+
id: id$j,
|
|
1589
1777
|
defs: defs$6
|
|
1590
1778
|
};
|
|
1591
1779
|
|
|
1592
1780
|
var lexicon$3 = 1;
|
|
1593
|
-
var id$
|
|
1781
|
+
var id$i = "org.hypercerts.claim.measurement";
|
|
1594
1782
|
var defs$5 = {
|
|
1595
1783
|
main: {
|
|
1596
1784
|
type: "record",
|
|
@@ -1664,12 +1852,12 @@ var defs$5 = {
|
|
|
1664
1852
|
};
|
|
1665
1853
|
var MEASUREMENT_LEXICON_JSON = {
|
|
1666
1854
|
lexicon: lexicon$3,
|
|
1667
|
-
id: id$
|
|
1855
|
+
id: id$i,
|
|
1668
1856
|
defs: defs$5
|
|
1669
1857
|
};
|
|
1670
1858
|
|
|
1671
1859
|
var lexicon$2 = 1;
|
|
1672
|
-
var id$
|
|
1860
|
+
var id$h = "org.hypercerts.claim.rights";
|
|
1673
1861
|
var defs$4 = {
|
|
1674
1862
|
main: {
|
|
1675
1863
|
type: "record",
|
|
@@ -1717,12 +1905,12 @@ var defs$4 = {
|
|
|
1717
1905
|
};
|
|
1718
1906
|
var RIGHTS_LEXICON_JSON = {
|
|
1719
1907
|
lexicon: lexicon$2,
|
|
1720
|
-
id: id$
|
|
1908
|
+
id: id$h,
|
|
1721
1909
|
defs: defs$4
|
|
1722
1910
|
};
|
|
1723
1911
|
|
|
1724
1912
|
var lexicon$1 = 1;
|
|
1725
|
-
var id$
|
|
1913
|
+
var id$g = "org.hypercerts.defs";
|
|
1726
1914
|
var defs$3 = {
|
|
1727
1915
|
uri: {
|
|
1728
1916
|
type: "object",
|
|
@@ -1816,12 +2004,12 @@ var defs$3 = {
|
|
|
1816
2004
|
};
|
|
1817
2005
|
var HYPERCERTS_DEFS_LEXICON_JSON = {
|
|
1818
2006
|
lexicon: lexicon$1,
|
|
1819
|
-
id: id$
|
|
2007
|
+
id: id$g,
|
|
1820
2008
|
defs: defs$3
|
|
1821
2009
|
};
|
|
1822
2010
|
|
|
1823
2011
|
var lexicon = 1;
|
|
1824
|
-
var id$
|
|
2012
|
+
var id$f = "org.hypercerts.funding.receipt";
|
|
1825
2013
|
var defs$2 = {
|
|
1826
2014
|
main: {
|
|
1827
2015
|
type: "record",
|
|
@@ -1892,12 +2080,30 @@ var defs$2 = {
|
|
|
1892
2080
|
};
|
|
1893
2081
|
var FUNDING_RECEIPT_LEXICON_JSON = {
|
|
1894
2082
|
lexicon: lexicon,
|
|
1895
|
-
id: id$
|
|
2083
|
+
id: id$f,
|
|
1896
2084
|
defs: defs$2
|
|
1897
2085
|
};
|
|
1898
2086
|
|
|
1899
|
-
const is$typed$
|
|
1900
|
-
const id$
|
|
2087
|
+
const is$typed$e = is$typed$f, validate$e = validate$f;
|
|
2088
|
+
const id$e = 'app.certified.badge.award';
|
|
2089
|
+
const hashMain$d = 'main';
|
|
2090
|
+
function isMain$d(v) {
|
|
2091
|
+
return is$typed$e(v, id$e, hashMain$d);
|
|
2092
|
+
}
|
|
2093
|
+
function validateMain$d(v) {
|
|
2094
|
+
return validate$e(v, id$e, hashMain$d, true);
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
var award = /*#__PURE__*/Object.freeze({
|
|
2098
|
+
__proto__: null,
|
|
2099
|
+
isMain: isMain$d,
|
|
2100
|
+
isRecord: isMain$d,
|
|
2101
|
+
validateMain: validateMain$d,
|
|
2102
|
+
validateRecord: validateMain$d
|
|
2103
|
+
});
|
|
2104
|
+
|
|
2105
|
+
const is$typed$d = is$typed$f, validate$d = validate$f;
|
|
2106
|
+
const id$d = 'app.certified.badge.definition';
|
|
1901
2107
|
const hashMain$c = 'main';
|
|
1902
2108
|
function isMain$c(v) {
|
|
1903
2109
|
return is$typed$d(v, id$d, hashMain$c);
|
|
@@ -1906,7 +2112,7 @@ function validateMain$c(v) {
|
|
|
1906
2112
|
return validate$d(v, id$d, hashMain$c, true);
|
|
1907
2113
|
}
|
|
1908
2114
|
|
|
1909
|
-
var
|
|
2115
|
+
var definition = /*#__PURE__*/Object.freeze({
|
|
1910
2116
|
__proto__: null,
|
|
1911
2117
|
isMain: isMain$c,
|
|
1912
2118
|
isRecord: isMain$c,
|
|
@@ -1914,8 +2120,8 @@ var award = /*#__PURE__*/Object.freeze({
|
|
|
1914
2120
|
validateRecord: validateMain$c
|
|
1915
2121
|
});
|
|
1916
2122
|
|
|
1917
|
-
const is$typed$c = is$typed$
|
|
1918
|
-
const id$c = 'app.certified.badge.
|
|
2123
|
+
const is$typed$c = is$typed$f, validate$c = validate$f;
|
|
2124
|
+
const id$c = 'app.certified.badge.response';
|
|
1919
2125
|
const hashMain$b = 'main';
|
|
1920
2126
|
function isMain$b(v) {
|
|
1921
2127
|
return is$typed$c(v, id$c, hashMain$b);
|
|
@@ -1924,7 +2130,7 @@ function validateMain$b(v) {
|
|
|
1924
2130
|
return validate$c(v, id$c, hashMain$b, true);
|
|
1925
2131
|
}
|
|
1926
2132
|
|
|
1927
|
-
var
|
|
2133
|
+
var response = /*#__PURE__*/Object.freeze({
|
|
1928
2134
|
__proto__: null,
|
|
1929
2135
|
isMain: isMain$b,
|
|
1930
2136
|
isRecord: isMain$b,
|
|
@@ -1932,8 +2138,12 @@ var definition = /*#__PURE__*/Object.freeze({
|
|
|
1932
2138
|
validateRecord: validateMain$b
|
|
1933
2139
|
});
|
|
1934
2140
|
|
|
1935
|
-
|
|
1936
|
-
|
|
2141
|
+
var defs$1 = /*#__PURE__*/Object.freeze({
|
|
2142
|
+
__proto__: null
|
|
2143
|
+
});
|
|
2144
|
+
|
|
2145
|
+
const is$typed$b = is$typed$f, validate$b = validate$f;
|
|
2146
|
+
const id$b = 'app.certified.location';
|
|
1937
2147
|
const hashMain$a = 'main';
|
|
1938
2148
|
function isMain$a(v) {
|
|
1939
2149
|
return is$typed$b(v, id$b, hashMain$a);
|
|
@@ -1942,7 +2152,7 @@ function validateMain$a(v) {
|
|
|
1942
2152
|
return validate$b(v, id$b, hashMain$a, true);
|
|
1943
2153
|
}
|
|
1944
2154
|
|
|
1945
|
-
var
|
|
2155
|
+
var location = /*#__PURE__*/Object.freeze({
|
|
1946
2156
|
__proto__: null,
|
|
1947
2157
|
isMain: isMain$a,
|
|
1948
2158
|
isRecord: isMain$a,
|
|
@@ -1950,46 +2160,51 @@ var response = /*#__PURE__*/Object.freeze({
|
|
|
1950
2160
|
validateRecord: validateMain$a
|
|
1951
2161
|
});
|
|
1952
2162
|
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
});
|
|
1956
|
-
|
|
1957
|
-
const is$typed$a = is$typed$e, validate$a = validate$e;
|
|
1958
|
-
const id$a = 'app.certified.location';
|
|
2163
|
+
const is$typed$a = is$typed$f, validate$a = validate$f;
|
|
2164
|
+
const id$a = 'com.atproto.repo.strongRef';
|
|
1959
2165
|
const hashMain$9 = 'main';
|
|
1960
2166
|
function isMain$9(v) {
|
|
1961
2167
|
return is$typed$a(v, id$a, hashMain$9);
|
|
1962
2168
|
}
|
|
1963
2169
|
function validateMain$9(v) {
|
|
1964
|
-
return validate$a(v, id$a, hashMain$9
|
|
2170
|
+
return validate$a(v, id$a, hashMain$9);
|
|
1965
2171
|
}
|
|
1966
2172
|
|
|
1967
|
-
var
|
|
2173
|
+
var strongRef = /*#__PURE__*/Object.freeze({
|
|
1968
2174
|
__proto__: null,
|
|
1969
2175
|
isMain: isMain$9,
|
|
1970
|
-
|
|
1971
|
-
validateMain: validateMain$9,
|
|
1972
|
-
validateRecord: validateMain$9
|
|
2176
|
+
validateMain: validateMain$9
|
|
1973
2177
|
});
|
|
1974
2178
|
|
|
1975
|
-
const is$typed$9 = is$typed$
|
|
1976
|
-
const id$9 = '
|
|
2179
|
+
const is$typed$9 = is$typed$f, validate$9 = validate$f;
|
|
2180
|
+
const id$9 = 'org.hypercerts.claim.activity';
|
|
1977
2181
|
const hashMain$8 = 'main';
|
|
1978
2182
|
function isMain$8(v) {
|
|
1979
2183
|
return is$typed$9(v, id$9, hashMain$8);
|
|
1980
2184
|
}
|
|
1981
2185
|
function validateMain$8(v) {
|
|
1982
|
-
return validate$9(v, id$9, hashMain$8);
|
|
2186
|
+
return validate$9(v, id$9, hashMain$8, true);
|
|
2187
|
+
}
|
|
2188
|
+
const hashContributor = 'contributor';
|
|
2189
|
+
function isContributor(v) {
|
|
2190
|
+
return is$typed$9(v, id$9, hashContributor);
|
|
2191
|
+
}
|
|
2192
|
+
function validateContributor(v) {
|
|
2193
|
+
return validate$9(v, id$9, hashContributor);
|
|
1983
2194
|
}
|
|
1984
2195
|
|
|
1985
|
-
var
|
|
2196
|
+
var activity = /*#__PURE__*/Object.freeze({
|
|
1986
2197
|
__proto__: null,
|
|
2198
|
+
isContributor: isContributor,
|
|
1987
2199
|
isMain: isMain$8,
|
|
1988
|
-
|
|
2200
|
+
isRecord: isMain$8,
|
|
2201
|
+
validateContributor: validateContributor,
|
|
2202
|
+
validateMain: validateMain$8,
|
|
2203
|
+
validateRecord: validateMain$8
|
|
1989
2204
|
});
|
|
1990
2205
|
|
|
1991
|
-
const is$typed$8 = is$typed$
|
|
1992
|
-
const id$8 = 'org.hypercerts.claim.
|
|
2206
|
+
const is$typed$8 = is$typed$f, validate$8 = validate$f;
|
|
2207
|
+
const id$8 = 'org.hypercerts.claim.collection';
|
|
1993
2208
|
const hashMain$7 = 'main';
|
|
1994
2209
|
function isMain$7(v) {
|
|
1995
2210
|
return is$typed$8(v, id$8, hashMain$7);
|
|
@@ -1997,26 +2212,26 @@ function isMain$7(v) {
|
|
|
1997
2212
|
function validateMain$7(v) {
|
|
1998
2213
|
return validate$8(v, id$8, hashMain$7, true);
|
|
1999
2214
|
}
|
|
2000
|
-
const
|
|
2001
|
-
function
|
|
2002
|
-
return is$typed$8(v, id$8,
|
|
2215
|
+
const hashItem = 'item';
|
|
2216
|
+
function isItem(v) {
|
|
2217
|
+
return is$typed$8(v, id$8, hashItem);
|
|
2003
2218
|
}
|
|
2004
|
-
function
|
|
2005
|
-
return validate$8(v, id$8,
|
|
2219
|
+
function validateItem(v) {
|
|
2220
|
+
return validate$8(v, id$8, hashItem);
|
|
2006
2221
|
}
|
|
2007
2222
|
|
|
2008
|
-
var
|
|
2223
|
+
var collection = /*#__PURE__*/Object.freeze({
|
|
2009
2224
|
__proto__: null,
|
|
2010
|
-
|
|
2225
|
+
isItem: isItem,
|
|
2011
2226
|
isMain: isMain$7,
|
|
2012
2227
|
isRecord: isMain$7,
|
|
2013
|
-
|
|
2228
|
+
validateItem: validateItem,
|
|
2014
2229
|
validateMain: validateMain$7,
|
|
2015
2230
|
validateRecord: validateMain$7
|
|
2016
2231
|
});
|
|
2017
2232
|
|
|
2018
|
-
const is$typed$7 = is$typed$
|
|
2019
|
-
const id$7 = 'org.hypercerts.claim.
|
|
2233
|
+
const is$typed$7 = is$typed$f, validate$7 = validate$f;
|
|
2234
|
+
const id$7 = 'org.hypercerts.claim.contributionDetails';
|
|
2020
2235
|
const hashMain$6 = 'main';
|
|
2021
2236
|
function isMain$6(v) {
|
|
2022
2237
|
return is$typed$7(v, id$7, hashMain$6);
|
|
@@ -2025,7 +2240,7 @@ function validateMain$6(v) {
|
|
|
2025
2240
|
return validate$7(v, id$7, hashMain$6, true);
|
|
2026
2241
|
}
|
|
2027
2242
|
|
|
2028
|
-
var
|
|
2243
|
+
var contributionDetails = /*#__PURE__*/Object.freeze({
|
|
2029
2244
|
__proto__: null,
|
|
2030
2245
|
isMain: isMain$6,
|
|
2031
2246
|
isRecord: isMain$6,
|
|
@@ -2033,8 +2248,8 @@ var collection = /*#__PURE__*/Object.freeze({
|
|
|
2033
2248
|
validateRecord: validateMain$6
|
|
2034
2249
|
});
|
|
2035
2250
|
|
|
2036
|
-
const is$typed$6 = is$typed$
|
|
2037
|
-
const id$6 = 'org.hypercerts.claim.
|
|
2251
|
+
const is$typed$6 = is$typed$f, validate$6 = validate$f;
|
|
2252
|
+
const id$6 = 'org.hypercerts.claim.contributorInformation';
|
|
2038
2253
|
const hashMain$5 = 'main';
|
|
2039
2254
|
function isMain$5(v) {
|
|
2040
2255
|
return is$typed$6(v, id$6, hashMain$5);
|
|
@@ -2043,7 +2258,7 @@ function validateMain$5(v) {
|
|
|
2043
2258
|
return validate$6(v, id$6, hashMain$5, true);
|
|
2044
2259
|
}
|
|
2045
2260
|
|
|
2046
|
-
var
|
|
2261
|
+
var contributorInformation = /*#__PURE__*/Object.freeze({
|
|
2047
2262
|
__proto__: null,
|
|
2048
2263
|
isMain: isMain$5,
|
|
2049
2264
|
isRecord: isMain$5,
|
|
@@ -2051,7 +2266,7 @@ var contributor = /*#__PURE__*/Object.freeze({
|
|
|
2051
2266
|
validateRecord: validateMain$5
|
|
2052
2267
|
});
|
|
2053
2268
|
|
|
2054
|
-
const is$typed$5 = is$typed$
|
|
2269
|
+
const is$typed$5 = is$typed$f, validate$5 = validate$f;
|
|
2055
2270
|
const id$5 = 'org.hypercerts.claim.evaluation';
|
|
2056
2271
|
const hashScore = 'score';
|
|
2057
2272
|
function isScore(v) {
|
|
@@ -2078,7 +2293,7 @@ var evaluation = /*#__PURE__*/Object.freeze({
|
|
|
2078
2293
|
validateScore: validateScore
|
|
2079
2294
|
});
|
|
2080
2295
|
|
|
2081
|
-
const is$typed$4 = is$typed$
|
|
2296
|
+
const is$typed$4 = is$typed$f, validate$4 = validate$f;
|
|
2082
2297
|
const id$4 = 'org.hypercerts.claim.evidence';
|
|
2083
2298
|
const hashMain$3 = 'main';
|
|
2084
2299
|
function isMain$3(v) {
|
|
@@ -2096,7 +2311,7 @@ var evidence = /*#__PURE__*/Object.freeze({
|
|
|
2096
2311
|
validateRecord: validateMain$3
|
|
2097
2312
|
});
|
|
2098
2313
|
|
|
2099
|
-
const is$typed$3 = is$typed$
|
|
2314
|
+
const is$typed$3 = is$typed$f, validate$3 = validate$f;
|
|
2100
2315
|
const id$3 = 'org.hypercerts.claim.measurement';
|
|
2101
2316
|
const hashMain$2 = 'main';
|
|
2102
2317
|
function isMain$2(v) {
|
|
@@ -2114,7 +2329,7 @@ var measurement = /*#__PURE__*/Object.freeze({
|
|
|
2114
2329
|
validateRecord: validateMain$2
|
|
2115
2330
|
});
|
|
2116
2331
|
|
|
2117
|
-
const is$typed$2 = is$typed$
|
|
2332
|
+
const is$typed$2 = is$typed$f, validate$2 = validate$f;
|
|
2118
2333
|
const id$2 = 'org.hypercerts.claim.rights';
|
|
2119
2334
|
const hashMain$1 = 'main';
|
|
2120
2335
|
function isMain$1(v) {
|
|
@@ -2132,7 +2347,7 @@ var rights = /*#__PURE__*/Object.freeze({
|
|
|
2132
2347
|
validateRecord: validateMain$1
|
|
2133
2348
|
});
|
|
2134
2349
|
|
|
2135
|
-
const is$typed$1 = is$typed$
|
|
2350
|
+
const is$typed$1 = is$typed$f, validate$1 = validate$f;
|
|
2136
2351
|
const id$1 = 'org.hypercerts.defs';
|
|
2137
2352
|
const hashUri = 'uri';
|
|
2138
2353
|
function isUri(v) {
|
|
@@ -2184,7 +2399,7 @@ var defs = /*#__PURE__*/Object.freeze({
|
|
|
2184
2399
|
validateUri: validateUri
|
|
2185
2400
|
});
|
|
2186
2401
|
|
|
2187
|
-
const is$typed = is$typed$
|
|
2402
|
+
const is$typed = is$typed$f, validate = validate$f;
|
|
2188
2403
|
const id = 'org.hypercerts.funding.receipt';
|
|
2189
2404
|
const hashMain = 'main';
|
|
2190
2405
|
function isMain(v) {
|
|
@@ -2208,7 +2423,7 @@ var receipt = /*#__PURE__*/Object.freeze({
|
|
|
2208
2423
|
* ⚠️ DO NOT EDIT THIS FILE MANUALLY ⚠️
|
|
2209
2424
|
*
|
|
2210
2425
|
* This file is automatically generated by scripts/generate-exports.js
|
|
2211
|
-
* Generated: 2026-01-
|
|
2426
|
+
* Generated: 2026-01-21T23:12:40.384Z
|
|
2212
2427
|
*
|
|
2213
2428
|
* To regenerate this file, run:
|
|
2214
2429
|
* npm run gen-api
|
|
@@ -2233,7 +2448,8 @@ const LOCATION_NSID = "app.certified.location";
|
|
|
2233
2448
|
const STRONGREF_NSID = "com.atproto.repo.strongRef";
|
|
2234
2449
|
const ACTIVITY_NSID = "org.hypercerts.claim.activity";
|
|
2235
2450
|
const COLLECTION_NSID = "org.hypercerts.claim.collection";
|
|
2236
|
-
const
|
|
2451
|
+
const CONTRIBUTIONDETAILS_NSID = "org.hypercerts.claim.contributionDetails";
|
|
2452
|
+
const CONTRIBUTORINFORMATION_NSID = "org.hypercerts.claim.contributorInformation";
|
|
2237
2453
|
const EVALUATION_NSID = "org.hypercerts.claim.evaluation";
|
|
2238
2454
|
const EVIDENCE_NSID = "org.hypercerts.claim.evidence";
|
|
2239
2455
|
const MEASUREMENT_NSID = "org.hypercerts.claim.measurement";
|
|
@@ -2255,7 +2471,8 @@ const HYPERCERTS_NSIDS = {
|
|
|
2255
2471
|
STRONGREF: STRONGREF_NSID,
|
|
2256
2472
|
ACTIVITY: ACTIVITY_NSID,
|
|
2257
2473
|
COLLECTION: COLLECTION_NSID,
|
|
2258
|
-
|
|
2474
|
+
CONTRIBUTIONDETAILS: CONTRIBUTIONDETAILS_NSID,
|
|
2475
|
+
CONTRIBUTORINFORMATION: CONTRIBUTORINFORMATION_NSID,
|
|
2259
2476
|
EVALUATION: EVALUATION_NSID,
|
|
2260
2477
|
EVIDENCE: EVIDENCE_NSID,
|
|
2261
2478
|
MEASUREMENT: MEASUREMENT_NSID,
|
|
@@ -2275,7 +2492,8 @@ const HYPERCERTS_LEXICON_JSON = {
|
|
|
2275
2492
|
STRONGREF: STRONGREF_LEXICON_JSON,
|
|
2276
2493
|
ACTIVITY: ACTIVITY_LEXICON_JSON,
|
|
2277
2494
|
COLLECTION: COLLECTION_LEXICON_JSON,
|
|
2278
|
-
|
|
2495
|
+
CONTRIBUTIONDETAILS: CONTRIBUTIONDETAILS_LEXICON_JSON,
|
|
2496
|
+
CONTRIBUTORINFORMATION: CONTRIBUTORINFORMATION_LEXICON_JSON,
|
|
2279
2497
|
EVALUATION: EVALUATION_LEXICON_JSON,
|
|
2280
2498
|
EVIDENCE: EVIDENCE_LEXICON_JSON,
|
|
2281
2499
|
MEASUREMENT: MEASUREMENT_LEXICON_JSON,
|
|
@@ -2292,7 +2510,8 @@ const LOCATION_LEXICON_DOC = lexicons.get(LOCATION_NSID);
|
|
|
2292
2510
|
const STRONGREF_LEXICON_DOC = lexicons.get(STRONGREF_NSID);
|
|
2293
2511
|
const ACTIVITY_LEXICON_DOC = lexicons.get(ACTIVITY_NSID);
|
|
2294
2512
|
const COLLECTION_LEXICON_DOC = lexicons.get(COLLECTION_NSID);
|
|
2295
|
-
const
|
|
2513
|
+
const CONTRIBUTIONDETAILS_LEXICON_DOC = lexicons.get(CONTRIBUTIONDETAILS_NSID);
|
|
2514
|
+
const CONTRIBUTORINFORMATION_LEXICON_DOC = lexicons.get(CONTRIBUTORINFORMATION_NSID);
|
|
2296
2515
|
const EVALUATION_LEXICON_DOC = lexicons.get(EVALUATION_NSID);
|
|
2297
2516
|
const EVIDENCE_LEXICON_DOC = lexicons.get(EVIDENCE_NSID);
|
|
2298
2517
|
const MEASUREMENT_LEXICON_DOC = lexicons.get(MEASUREMENT_NSID);
|
|
@@ -2311,7 +2530,8 @@ const HYPERCERTS_LEXICON_DOC = {
|
|
|
2311
2530
|
STRONGREF: STRONGREF_LEXICON_DOC,
|
|
2312
2531
|
ACTIVITY: ACTIVITY_LEXICON_DOC,
|
|
2313
2532
|
COLLECTION: COLLECTION_LEXICON_DOC,
|
|
2314
|
-
|
|
2533
|
+
CONTRIBUTIONDETAILS: CONTRIBUTIONDETAILS_LEXICON_DOC,
|
|
2534
|
+
CONTRIBUTORINFORMATION: CONTRIBUTORINFORMATION_LEXICON_DOC,
|
|
2315
2535
|
EVALUATION: EVALUATION_LEXICON_DOC,
|
|
2316
2536
|
EVIDENCE: EVIDENCE_LEXICON_DOC,
|
|
2317
2537
|
MEASUREMENT: MEASUREMENT_LEXICON_DOC,
|
|
@@ -2343,9 +2563,12 @@ exports.CERTIFIED_DEFS_NSID = CERTIFIED_DEFS_NSID;
|
|
|
2343
2563
|
exports.COLLECTION_LEXICON_DOC = COLLECTION_LEXICON_DOC;
|
|
2344
2564
|
exports.COLLECTION_LEXICON_JSON = COLLECTION_LEXICON_JSON;
|
|
2345
2565
|
exports.COLLECTION_NSID = COLLECTION_NSID;
|
|
2346
|
-
exports.
|
|
2347
|
-
exports.
|
|
2348
|
-
exports.
|
|
2566
|
+
exports.CONTRIBUTIONDETAILS_LEXICON_DOC = CONTRIBUTIONDETAILS_LEXICON_DOC;
|
|
2567
|
+
exports.CONTRIBUTIONDETAILS_LEXICON_JSON = CONTRIBUTIONDETAILS_LEXICON_JSON;
|
|
2568
|
+
exports.CONTRIBUTIONDETAILS_NSID = CONTRIBUTIONDETAILS_NSID;
|
|
2569
|
+
exports.CONTRIBUTORINFORMATION_LEXICON_DOC = CONTRIBUTORINFORMATION_LEXICON_DOC;
|
|
2570
|
+
exports.CONTRIBUTORINFORMATION_LEXICON_JSON = CONTRIBUTORINFORMATION_LEXICON_JSON;
|
|
2571
|
+
exports.CONTRIBUTORINFORMATION_NSID = CONTRIBUTORINFORMATION_NSID;
|
|
2349
2572
|
exports.ComAtprotoRepoStrongRef = strongRef;
|
|
2350
2573
|
exports.EVALUATION_LEXICON_DOC = EVALUATION_LEXICON_DOC;
|
|
2351
2574
|
exports.EVALUATION_LEXICON_JSON = EVALUATION_LEXICON_JSON;
|
|
@@ -2373,7 +2596,8 @@ exports.MEASUREMENT_LEXICON_JSON = MEASUREMENT_LEXICON_JSON;
|
|
|
2373
2596
|
exports.MEASUREMENT_NSID = MEASUREMENT_NSID;
|
|
2374
2597
|
exports.OrgHypercertsClaimActivity = activity;
|
|
2375
2598
|
exports.OrgHypercertsClaimCollection = collection;
|
|
2376
|
-
exports.
|
|
2599
|
+
exports.OrgHypercertsClaimContributionDetails = contributionDetails;
|
|
2600
|
+
exports.OrgHypercertsClaimContributorInformation = contributorInformation;
|
|
2377
2601
|
exports.OrgHypercertsClaimEvaluation = evaluation;
|
|
2378
2602
|
exports.OrgHypercertsClaimEvidence = evidence;
|
|
2379
2603
|
exports.OrgHypercertsClaimMeasurement = measurement;
|
|
@@ -2387,8 +2611,8 @@ exports.STRONGREF_LEXICON_DOC = STRONGREF_LEXICON_DOC;
|
|
|
2387
2611
|
exports.STRONGREF_LEXICON_JSON = STRONGREF_LEXICON_JSON;
|
|
2388
2612
|
exports.STRONGREF_NSID = STRONGREF_NSID;
|
|
2389
2613
|
exports.asPredicate = asPredicate;
|
|
2390
|
-
exports.is$typed = is$typed$
|
|
2614
|
+
exports.is$typed = is$typed$f;
|
|
2391
2615
|
exports.lexicons = lexicons;
|
|
2392
2616
|
exports.maybe$typed = maybe$typed;
|
|
2393
|
-
exports.validate = validate$
|
|
2617
|
+
exports.validate = validate$f;
|
|
2394
2618
|
//# sourceMappingURL=index.cjs.map
|