@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.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$
|
|
19
|
+
function is$typed$f(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) {
|
|
@@ -282,16 +282,32 @@ const schemaDict = {
|
|
|
282
282
|
},
|
|
283
283
|
shortDescription: {
|
|
284
284
|
type: 'string',
|
|
285
|
-
description: 'Short
|
|
285
|
+
description: 'Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.',
|
|
286
286
|
maxLength: 3000,
|
|
287
287
|
maxGraphemes: 300,
|
|
288
288
|
},
|
|
289
|
+
shortDescriptionFacets: {
|
|
290
|
+
type: 'array',
|
|
291
|
+
description: 'Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).',
|
|
292
|
+
items: {
|
|
293
|
+
type: 'ref',
|
|
294
|
+
ref: 'lex:app.bsky.richtext.facet',
|
|
295
|
+
},
|
|
296
|
+
},
|
|
289
297
|
description: {
|
|
290
298
|
type: 'string',
|
|
291
|
-
description: 'Optional longer description of
|
|
299
|
+
description: 'Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.',
|
|
292
300
|
maxLength: 30000,
|
|
293
301
|
maxGraphemes: 3000,
|
|
294
302
|
},
|
|
303
|
+
descriptionFacets: {
|
|
304
|
+
type: 'array',
|
|
305
|
+
description: 'Rich text annotations for `description` (mentions, URLs, hashtags, etc).',
|
|
306
|
+
items: {
|
|
307
|
+
type: 'ref',
|
|
308
|
+
ref: 'lex:app.bsky.richtext.facet',
|
|
309
|
+
},
|
|
310
|
+
},
|
|
295
311
|
image: {
|
|
296
312
|
type: 'union',
|
|
297
313
|
refs: [
|
|
@@ -315,12 +331,12 @@ const schemaDict = {
|
|
|
315
331
|
format: 'datetime',
|
|
316
332
|
description: 'When the work ended',
|
|
317
333
|
},
|
|
318
|
-
|
|
334
|
+
contributors: {
|
|
319
335
|
type: 'array',
|
|
320
|
-
description: '
|
|
336
|
+
description: 'An array of contributor objects, each containing contributor information, weight, and contribution details.',
|
|
321
337
|
items: {
|
|
322
338
|
type: 'ref',
|
|
323
|
-
ref: 'lex:
|
|
339
|
+
ref: 'lex:org.hypercerts.claim.activity#contributor',
|
|
324
340
|
},
|
|
325
341
|
},
|
|
326
342
|
rights: {
|
|
@@ -344,21 +360,42 @@ const schemaDict = {
|
|
|
344
360
|
},
|
|
345
361
|
},
|
|
346
362
|
},
|
|
347
|
-
|
|
363
|
+
contributor: {
|
|
348
364
|
type: 'object',
|
|
349
|
-
required: ['
|
|
365
|
+
required: ['contributorIdentity'],
|
|
350
366
|
properties: {
|
|
351
|
-
|
|
352
|
-
type: '
|
|
353
|
-
|
|
354
|
-
|
|
367
|
+
contributorIdentity: {
|
|
368
|
+
type: 'union',
|
|
369
|
+
refs: [
|
|
370
|
+
'lex:org.hypercerts.claim.activity#contributorIdentity',
|
|
371
|
+
'lex:com.atproto.repo.strongRef',
|
|
372
|
+
],
|
|
373
|
+
description: 'Contributor identity as a string (DID or identifier) via org.hypercerts.claim.activity#contributorIdentity, or a strong reference to a contributor information record.',
|
|
355
374
|
},
|
|
356
|
-
|
|
375
|
+
contributionWeight: {
|
|
357
376
|
type: 'string',
|
|
358
|
-
description: 'The relative weight/importance of this
|
|
377
|
+
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.',
|
|
378
|
+
},
|
|
379
|
+
contributionDetails: {
|
|
380
|
+
type: 'union',
|
|
381
|
+
refs: [
|
|
382
|
+
'lex:org.hypercerts.claim.activity#contributorRole',
|
|
383
|
+
'lex:com.atproto.repo.strongRef',
|
|
384
|
+
],
|
|
385
|
+
description: 'Contribution details as a string via org.hypercerts.claim.activity#contributorRole, or a strong reference to a contribution details record.',
|
|
359
386
|
},
|
|
360
387
|
},
|
|
361
388
|
},
|
|
389
|
+
contributorIdentity: {
|
|
390
|
+
type: 'string',
|
|
391
|
+
description: 'Contributor information as a string (DID or identifier).',
|
|
392
|
+
},
|
|
393
|
+
contributorRole: {
|
|
394
|
+
type: 'string',
|
|
395
|
+
description: 'Contribution details as a string.',
|
|
396
|
+
maxLength: 10000,
|
|
397
|
+
maxGraphemes: 1000,
|
|
398
|
+
},
|
|
362
399
|
},
|
|
363
400
|
},
|
|
364
401
|
OrgHypercertsClaimCollection: {
|
|
@@ -394,12 +431,28 @@ const schemaDict = {
|
|
|
394
431
|
ref: 'lex:pub.leaflet.pages.linearDocument#main',
|
|
395
432
|
description: 'Rich-text description, represented as a Leaflet linear document.',
|
|
396
433
|
},
|
|
434
|
+
avatar: {
|
|
435
|
+
type: 'union',
|
|
436
|
+
refs: [
|
|
437
|
+
'lex:org.hypercerts.defs#uri',
|
|
438
|
+
'lex:org.hypercerts.defs#smallImage',
|
|
439
|
+
],
|
|
440
|
+
description: "The collection's avatar/profile image as a URI or image blob.",
|
|
441
|
+
},
|
|
442
|
+
banner: {
|
|
443
|
+
type: 'union',
|
|
444
|
+
refs: [
|
|
445
|
+
'lex:org.hypercerts.defs#uri',
|
|
446
|
+
'lex:org.hypercerts.defs#largeImage',
|
|
447
|
+
],
|
|
448
|
+
description: 'Larger horizontal image to display behind the collection view.',
|
|
449
|
+
},
|
|
397
450
|
items: {
|
|
398
451
|
type: 'array',
|
|
399
|
-
description: 'Array of
|
|
452
|
+
description: 'Array of items in this collection with optional weights.',
|
|
400
453
|
items: {
|
|
401
454
|
type: 'ref',
|
|
402
|
-
ref: 'lex:
|
|
455
|
+
ref: 'lex:org.hypercerts.claim.collection#item',
|
|
403
456
|
},
|
|
404
457
|
},
|
|
405
458
|
createdAt: {
|
|
@@ -410,37 +463,35 @@ const schemaDict = {
|
|
|
410
463
|
},
|
|
411
464
|
},
|
|
412
465
|
},
|
|
466
|
+
item: {
|
|
467
|
+
type: 'object',
|
|
468
|
+
required: ['itemIdentifier'],
|
|
469
|
+
properties: {
|
|
470
|
+
itemIdentifier: {
|
|
471
|
+
type: 'ref',
|
|
472
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
473
|
+
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).',
|
|
474
|
+
},
|
|
475
|
+
itemWeight: {
|
|
476
|
+
type: 'string',
|
|
477
|
+
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.',
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
},
|
|
413
481
|
},
|
|
414
482
|
},
|
|
415
|
-
|
|
483
|
+
OrgHypercertsClaimContributionDetails: {
|
|
416
484
|
lexicon: 1,
|
|
417
|
-
id: 'org.hypercerts.claim.
|
|
485
|
+
id: 'org.hypercerts.claim.contributionDetails',
|
|
418
486
|
defs: {
|
|
419
487
|
main: {
|
|
420
488
|
type: 'record',
|
|
421
|
-
description:
|
|
489
|
+
description: 'Details about a specific contribution including role, description, and timeframe.',
|
|
422
490
|
key: 'tid',
|
|
423
491
|
record: {
|
|
424
492
|
type: 'object',
|
|
425
493
|
required: ['createdAt'],
|
|
426
494
|
properties: {
|
|
427
|
-
identifier: {
|
|
428
|
-
type: 'string',
|
|
429
|
-
description: 'DID or a URI to a social profile of the contributor.',
|
|
430
|
-
},
|
|
431
|
-
displayName: {
|
|
432
|
-
type: 'string',
|
|
433
|
-
description: 'Display name of the contributor.',
|
|
434
|
-
maxLength: 100,
|
|
435
|
-
},
|
|
436
|
-
image: {
|
|
437
|
-
type: 'union',
|
|
438
|
-
refs: [
|
|
439
|
-
'lex:org.hypercerts.defs#uri',
|
|
440
|
-
'lex:org.hypercerts.defs#smallImage',
|
|
441
|
-
],
|
|
442
|
-
description: 'The contributor visual representation as a URI or image blob.',
|
|
443
|
-
},
|
|
444
495
|
role: {
|
|
445
496
|
type: 'string',
|
|
446
497
|
description: 'Role or title of the contributor.',
|
|
@@ -448,9 +499,9 @@ const schemaDict = {
|
|
|
448
499
|
},
|
|
449
500
|
contributionDescription: {
|
|
450
501
|
type: 'string',
|
|
451
|
-
description: 'What the contribution concretely
|
|
452
|
-
maxLength:
|
|
453
|
-
maxGraphemes:
|
|
502
|
+
description: 'What the contribution concretely was.',
|
|
503
|
+
maxLength: 10000,
|
|
504
|
+
maxGraphemes: 1000,
|
|
454
505
|
},
|
|
455
506
|
startDate: {
|
|
456
507
|
type: 'string',
|
|
@@ -472,6 +523,45 @@ const schemaDict = {
|
|
|
472
523
|
},
|
|
473
524
|
},
|
|
474
525
|
},
|
|
526
|
+
OrgHypercertsClaimContributorInformation: {
|
|
527
|
+
lexicon: 1,
|
|
528
|
+
id: 'org.hypercerts.claim.contributorInformation',
|
|
529
|
+
defs: {
|
|
530
|
+
main: {
|
|
531
|
+
type: 'record',
|
|
532
|
+
description: 'Contributor information including identifier, display name, and image.',
|
|
533
|
+
key: 'tid',
|
|
534
|
+
record: {
|
|
535
|
+
type: 'object',
|
|
536
|
+
required: ['createdAt'],
|
|
537
|
+
properties: {
|
|
538
|
+
identifier: {
|
|
539
|
+
type: 'string',
|
|
540
|
+
description: 'DID or a URI to a social profile of the contributor.',
|
|
541
|
+
},
|
|
542
|
+
displayName: {
|
|
543
|
+
type: 'string',
|
|
544
|
+
description: 'Display name of the contributor.',
|
|
545
|
+
maxLength: 100,
|
|
546
|
+
},
|
|
547
|
+
image: {
|
|
548
|
+
type: 'union',
|
|
549
|
+
refs: [
|
|
550
|
+
'lex:org.hypercerts.defs#uri',
|
|
551
|
+
'lex:org.hypercerts.defs#smallImage',
|
|
552
|
+
],
|
|
553
|
+
description: 'The contributor visual representation as a URI or image blob.',
|
|
554
|
+
},
|
|
555
|
+
createdAt: {
|
|
556
|
+
type: 'string',
|
|
557
|
+
format: 'datetime',
|
|
558
|
+
description: 'Client-declared timestamp when this record was originally created.',
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
},
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
},
|
|
475
565
|
OrgHypercertsClaimEvaluation: {
|
|
476
566
|
lexicon: 1,
|
|
477
567
|
id: 'org.hypercerts.claim.evaluation',
|
|
@@ -880,8 +970,8 @@ const schemaDict = {
|
|
|
880
970
|
};
|
|
881
971
|
const schemas = Object.values(schemaDict);
|
|
882
972
|
const lexicons = new Lexicons(schemas);
|
|
883
|
-
function validate$
|
|
884
|
-
return (requiredType ? is$typed$
|
|
973
|
+
function validate$f(v, id, hash, requiredType) {
|
|
974
|
+
return (requiredType ? is$typed$f : maybe$typed)(v, id, hash)
|
|
885
975
|
? lexicons.validate(`${id}#${hash}`, v)
|
|
886
976
|
: {
|
|
887
977
|
success: false,
|
|
@@ -897,7 +987,8 @@ const ids = {
|
|
|
897
987
|
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
898
988
|
OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',
|
|
899
989
|
OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',
|
|
900
|
-
|
|
990
|
+
OrgHypercertsClaimContributionDetails: 'org.hypercerts.claim.contributionDetails',
|
|
991
|
+
OrgHypercertsClaimContributorInformation: 'org.hypercerts.claim.contributorInformation',
|
|
901
992
|
OrgHypercertsClaimEvaluation: 'org.hypercerts.claim.evaluation',
|
|
902
993
|
OrgHypercertsClaimEvidence: 'org.hypercerts.claim.evidence',
|
|
903
994
|
OrgHypercertsClaimMeasurement: 'org.hypercerts.claim.measurement',
|
|
@@ -906,9 +997,9 @@ const ids = {
|
|
|
906
997
|
OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',
|
|
907
998
|
};
|
|
908
999
|
|
|
909
|
-
var lexicon$
|
|
910
|
-
var id$
|
|
911
|
-
var defs$
|
|
1000
|
+
var lexicon$f = 1;
|
|
1001
|
+
var id$u = "app.certified.badge.award";
|
|
1002
|
+
var defs$h = {
|
|
912
1003
|
main: {
|
|
913
1004
|
type: "record",
|
|
914
1005
|
description: "Records a badge award to a user, project, or activity claim.",
|
|
@@ -948,14 +1039,14 @@ var defs$g = {
|
|
|
948
1039
|
}
|
|
949
1040
|
};
|
|
950
1041
|
var BADGE_AWARD_LEXICON_JSON = {
|
|
951
|
-
lexicon: lexicon$
|
|
952
|
-
id: id$
|
|
953
|
-
defs: defs$
|
|
1042
|
+
lexicon: lexicon$f,
|
|
1043
|
+
id: id$u,
|
|
1044
|
+
defs: defs$h
|
|
954
1045
|
};
|
|
955
1046
|
|
|
956
|
-
var lexicon$
|
|
957
|
-
var id$
|
|
958
|
-
var defs$
|
|
1047
|
+
var lexicon$e = 1;
|
|
1048
|
+
var id$t = "app.certified.badge.definition";
|
|
1049
|
+
var defs$g = {
|
|
959
1050
|
main: {
|
|
960
1051
|
type: "record",
|
|
961
1052
|
description: "Defines a badge that can be awarded via badge award records to users, projects, or activity claims.",
|
|
@@ -1010,14 +1101,14 @@ var defs$f = {
|
|
|
1010
1101
|
}
|
|
1011
1102
|
};
|
|
1012
1103
|
var BADGE_DEFINITION_LEXICON_JSON = {
|
|
1013
|
-
lexicon: lexicon$
|
|
1014
|
-
id: id$
|
|
1015
|
-
defs: defs$
|
|
1104
|
+
lexicon: lexicon$e,
|
|
1105
|
+
id: id$t,
|
|
1106
|
+
defs: defs$g
|
|
1016
1107
|
};
|
|
1017
1108
|
|
|
1018
|
-
var lexicon$
|
|
1019
|
-
var id$
|
|
1020
|
-
var defs$
|
|
1109
|
+
var lexicon$d = 1;
|
|
1110
|
+
var id$s = "app.certified.badge.response";
|
|
1111
|
+
var defs$f = {
|
|
1021
1112
|
main: {
|
|
1022
1113
|
type: "record",
|
|
1023
1114
|
description: "Recipient response to a badge award.",
|
|
@@ -1057,15 +1148,15 @@ var defs$e = {
|
|
|
1057
1148
|
}
|
|
1058
1149
|
};
|
|
1059
1150
|
var BADGE_RESPONSE_LEXICON_JSON = {
|
|
1060
|
-
lexicon: lexicon$
|
|
1061
|
-
id: id$
|
|
1062
|
-
defs: defs$
|
|
1151
|
+
lexicon: lexicon$d,
|
|
1152
|
+
id: id$s,
|
|
1153
|
+
defs: defs$f
|
|
1063
1154
|
};
|
|
1064
1155
|
|
|
1065
|
-
var lexicon$
|
|
1066
|
-
var id$
|
|
1156
|
+
var lexicon$c = 1;
|
|
1157
|
+
var id$r = "app.certified.defs";
|
|
1067
1158
|
var description$1 = "Common type definitions used across certified protocols.";
|
|
1068
|
-
var defs$
|
|
1159
|
+
var defs$e = {
|
|
1069
1160
|
did: {
|
|
1070
1161
|
type: "string",
|
|
1071
1162
|
format: "did",
|
|
@@ -1073,15 +1164,15 @@ var defs$d = {
|
|
|
1073
1164
|
}
|
|
1074
1165
|
};
|
|
1075
1166
|
var CERTIFIED_DEFS_LEXICON_JSON = {
|
|
1076
|
-
lexicon: lexicon$
|
|
1077
|
-
id: id$
|
|
1167
|
+
lexicon: lexicon$c,
|
|
1168
|
+
id: id$r,
|
|
1078
1169
|
description: description$1,
|
|
1079
|
-
defs: defs$
|
|
1170
|
+
defs: defs$e
|
|
1080
1171
|
};
|
|
1081
1172
|
|
|
1082
|
-
var lexicon$
|
|
1083
|
-
var id$
|
|
1084
|
-
var defs$
|
|
1173
|
+
var lexicon$b = 1;
|
|
1174
|
+
var id$q = "app.certified.location";
|
|
1175
|
+
var defs$d = {
|
|
1085
1176
|
main: {
|
|
1086
1177
|
type: "record",
|
|
1087
1178
|
description: "A location reference",
|
|
@@ -1146,15 +1237,15 @@ var defs$c = {
|
|
|
1146
1237
|
}
|
|
1147
1238
|
};
|
|
1148
1239
|
var LOCATION_LEXICON_JSON = {
|
|
1149
|
-
lexicon: lexicon$
|
|
1150
|
-
id: id$
|
|
1151
|
-
defs: defs$
|
|
1240
|
+
lexicon: lexicon$b,
|
|
1241
|
+
id: id$q,
|
|
1242
|
+
defs: defs$d
|
|
1152
1243
|
};
|
|
1153
1244
|
|
|
1154
|
-
var lexicon$
|
|
1155
|
-
var id$
|
|
1245
|
+
var lexicon$a = 1;
|
|
1246
|
+
var id$p = "com.atproto.repo.strongRef";
|
|
1156
1247
|
var description = "A URI with a content-hash fingerprint.";
|
|
1157
|
-
var defs$
|
|
1248
|
+
var defs$c = {
|
|
1158
1249
|
main: {
|
|
1159
1250
|
type: "object",
|
|
1160
1251
|
required: [
|
|
@@ -1174,15 +1265,15 @@ var defs$b = {
|
|
|
1174
1265
|
}
|
|
1175
1266
|
};
|
|
1176
1267
|
var STRONGREF_LEXICON_JSON = {
|
|
1177
|
-
lexicon: lexicon$
|
|
1178
|
-
id: id$
|
|
1268
|
+
lexicon: lexicon$a,
|
|
1269
|
+
id: id$p,
|
|
1179
1270
|
description: description,
|
|
1180
|
-
defs: defs$
|
|
1271
|
+
defs: defs$c
|
|
1181
1272
|
};
|
|
1182
1273
|
|
|
1183
|
-
var lexicon$
|
|
1184
|
-
var id$
|
|
1185
|
-
var defs$
|
|
1274
|
+
var lexicon$9 = 1;
|
|
1275
|
+
var id$o = "org.hypercerts.claim.activity";
|
|
1276
|
+
var defs$b = {
|
|
1186
1277
|
main: {
|
|
1187
1278
|
type: "record",
|
|
1188
1279
|
description: "A hypercert record tracking impact work.",
|
|
@@ -1202,16 +1293,32 @@ var defs$a = {
|
|
|
1202
1293
|
},
|
|
1203
1294
|
shortDescription: {
|
|
1204
1295
|
type: "string",
|
|
1205
|
-
description: "Short
|
|
1296
|
+
description: "Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.",
|
|
1206
1297
|
maxLength: 3000,
|
|
1207
1298
|
maxGraphemes: 300
|
|
1208
1299
|
},
|
|
1300
|
+
shortDescriptionFacets: {
|
|
1301
|
+
type: "array",
|
|
1302
|
+
description: "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).",
|
|
1303
|
+
items: {
|
|
1304
|
+
type: "ref",
|
|
1305
|
+
ref: "app.bsky.richtext.facet"
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1209
1308
|
description: {
|
|
1210
1309
|
type: "string",
|
|
1211
|
-
description: "Optional longer description of
|
|
1310
|
+
description: "Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.",
|
|
1212
1311
|
maxLength: 30000,
|
|
1213
1312
|
maxGraphemes: 3000
|
|
1214
1313
|
},
|
|
1314
|
+
descriptionFacets: {
|
|
1315
|
+
type: "array",
|
|
1316
|
+
description: "Rich text annotations for `description` (mentions, URLs, hashtags, etc).",
|
|
1317
|
+
items: {
|
|
1318
|
+
type: "ref",
|
|
1319
|
+
ref: "app.bsky.richtext.facet"
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1215
1322
|
image: {
|
|
1216
1323
|
type: "union",
|
|
1217
1324
|
refs: [
|
|
@@ -1235,12 +1342,12 @@ var defs$a = {
|
|
|
1235
1342
|
format: "datetime",
|
|
1236
1343
|
description: "When the work ended"
|
|
1237
1344
|
},
|
|
1238
|
-
|
|
1345
|
+
contributors: {
|
|
1239
1346
|
type: "array",
|
|
1240
|
-
description: "
|
|
1347
|
+
description: "An array of contributor objects, each containing contributor information, weight, and contribution details.",
|
|
1241
1348
|
items: {
|
|
1242
1349
|
type: "ref",
|
|
1243
|
-
ref: "
|
|
1350
|
+
ref: "#contributor"
|
|
1244
1351
|
}
|
|
1245
1352
|
},
|
|
1246
1353
|
rights: {
|
|
@@ -1264,34 +1371,54 @@ var defs$a = {
|
|
|
1264
1371
|
}
|
|
1265
1372
|
}
|
|
1266
1373
|
},
|
|
1267
|
-
|
|
1374
|
+
contributor: {
|
|
1268
1375
|
type: "object",
|
|
1269
1376
|
required: [
|
|
1270
|
-
"
|
|
1271
|
-
"weight"
|
|
1377
|
+
"contributorIdentity"
|
|
1272
1378
|
],
|
|
1273
1379
|
properties: {
|
|
1274
|
-
|
|
1275
|
-
type: "
|
|
1276
|
-
|
|
1277
|
-
|
|
1380
|
+
contributorIdentity: {
|
|
1381
|
+
type: "union",
|
|
1382
|
+
refs: [
|
|
1383
|
+
"#contributorIdentity",
|
|
1384
|
+
"com.atproto.repo.strongRef"
|
|
1385
|
+
],
|
|
1386
|
+
description: "Contributor identity as a string (DID or identifier) via org.hypercerts.claim.activity#contributorIdentity, or a strong reference to a contributor information record."
|
|
1278
1387
|
},
|
|
1279
|
-
|
|
1388
|
+
contributionWeight: {
|
|
1280
1389
|
type: "string",
|
|
1281
|
-
description: "The relative weight/importance of this
|
|
1390
|
+
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."
|
|
1391
|
+
},
|
|
1392
|
+
contributionDetails: {
|
|
1393
|
+
type: "union",
|
|
1394
|
+
refs: [
|
|
1395
|
+
"#contributorRole",
|
|
1396
|
+
"com.atproto.repo.strongRef"
|
|
1397
|
+
],
|
|
1398
|
+
description: "Contribution details as a string via org.hypercerts.claim.activity#contributorRole, or a strong reference to a contribution details record."
|
|
1282
1399
|
}
|
|
1283
1400
|
}
|
|
1401
|
+
},
|
|
1402
|
+
contributorIdentity: {
|
|
1403
|
+
type: "string",
|
|
1404
|
+
description: "Contributor information as a string (DID or identifier)."
|
|
1405
|
+
},
|
|
1406
|
+
contributorRole: {
|
|
1407
|
+
type: "string",
|
|
1408
|
+
description: "Contribution details as a string.",
|
|
1409
|
+
maxLength: 10000,
|
|
1410
|
+
maxGraphemes: 1000
|
|
1284
1411
|
}
|
|
1285
1412
|
};
|
|
1286
1413
|
var ACTIVITY_LEXICON_JSON = {
|
|
1287
|
-
lexicon: lexicon$
|
|
1288
|
-
id: id$
|
|
1289
|
-
defs: defs$
|
|
1414
|
+
lexicon: lexicon$9,
|
|
1415
|
+
id: id$o,
|
|
1416
|
+
defs: defs$b
|
|
1290
1417
|
};
|
|
1291
1418
|
|
|
1292
|
-
var lexicon$
|
|
1293
|
-
var id$
|
|
1294
|
-
var defs$
|
|
1419
|
+
var lexicon$8 = 1;
|
|
1420
|
+
var id$n = "org.hypercerts.claim.collection";
|
|
1421
|
+
var defs$a = {
|
|
1295
1422
|
main: {
|
|
1296
1423
|
type: "record",
|
|
1297
1424
|
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.",
|
|
@@ -1325,12 +1452,28 @@ var defs$9 = {
|
|
|
1325
1452
|
ref: "pub.leaflet.pages.linearDocument#main",
|
|
1326
1453
|
description: "Rich-text description, represented as a Leaflet linear document."
|
|
1327
1454
|
},
|
|
1455
|
+
avatar: {
|
|
1456
|
+
type: "union",
|
|
1457
|
+
refs: [
|
|
1458
|
+
"org.hypercerts.defs#uri",
|
|
1459
|
+
"org.hypercerts.defs#smallImage"
|
|
1460
|
+
],
|
|
1461
|
+
description: "The collection's avatar/profile image as a URI or image blob."
|
|
1462
|
+
},
|
|
1463
|
+
banner: {
|
|
1464
|
+
type: "union",
|
|
1465
|
+
refs: [
|
|
1466
|
+
"org.hypercerts.defs#uri",
|
|
1467
|
+
"org.hypercerts.defs#largeImage"
|
|
1468
|
+
],
|
|
1469
|
+
description: "Larger horizontal image to display behind the collection view."
|
|
1470
|
+
},
|
|
1328
1471
|
items: {
|
|
1329
1472
|
type: "array",
|
|
1330
|
-
description: "Array of
|
|
1473
|
+
description: "Array of items in this collection with optional weights.",
|
|
1331
1474
|
items: {
|
|
1332
1475
|
type: "ref",
|
|
1333
|
-
ref: "
|
|
1476
|
+
ref: "#item"
|
|
1334
1477
|
}
|
|
1335
1478
|
},
|
|
1336
1479
|
createdAt: {
|
|
@@ -1340,20 +1483,86 @@ var defs$9 = {
|
|
|
1340
1483
|
}
|
|
1341
1484
|
}
|
|
1342
1485
|
}
|
|
1486
|
+
},
|
|
1487
|
+
item: {
|
|
1488
|
+
type: "object",
|
|
1489
|
+
required: [
|
|
1490
|
+
"itemIdentifier"
|
|
1491
|
+
],
|
|
1492
|
+
properties: {
|
|
1493
|
+
itemIdentifier: {
|
|
1494
|
+
type: "ref",
|
|
1495
|
+
ref: "com.atproto.repo.strongRef",
|
|
1496
|
+
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)."
|
|
1497
|
+
},
|
|
1498
|
+
itemWeight: {
|
|
1499
|
+
type: "string",
|
|
1500
|
+
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."
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1343
1503
|
}
|
|
1344
1504
|
};
|
|
1345
1505
|
var COLLECTION_LEXICON_JSON = {
|
|
1506
|
+
lexicon: lexicon$8,
|
|
1507
|
+
id: id$n,
|
|
1508
|
+
defs: defs$a
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1511
|
+
var lexicon$7 = 1;
|
|
1512
|
+
var id$m = "org.hypercerts.claim.contributionDetails";
|
|
1513
|
+
var defs$9 = {
|
|
1514
|
+
main: {
|
|
1515
|
+
type: "record",
|
|
1516
|
+
description: "Details about a specific contribution including role, description, and timeframe.",
|
|
1517
|
+
key: "tid",
|
|
1518
|
+
record: {
|
|
1519
|
+
type: "object",
|
|
1520
|
+
required: [
|
|
1521
|
+
"createdAt"
|
|
1522
|
+
],
|
|
1523
|
+
properties: {
|
|
1524
|
+
role: {
|
|
1525
|
+
type: "string",
|
|
1526
|
+
description: "Role or title of the contributor.",
|
|
1527
|
+
maxLength: 100
|
|
1528
|
+
},
|
|
1529
|
+
contributionDescription: {
|
|
1530
|
+
type: "string",
|
|
1531
|
+
description: "What the contribution concretely was.",
|
|
1532
|
+
maxLength: 10000,
|
|
1533
|
+
maxGraphemes: 1000
|
|
1534
|
+
},
|
|
1535
|
+
startDate: {
|
|
1536
|
+
type: "string",
|
|
1537
|
+
format: "datetime",
|
|
1538
|
+
description: "When this contribution started. This should be a subset of the hypercert timeframe."
|
|
1539
|
+
},
|
|
1540
|
+
endDate: {
|
|
1541
|
+
type: "string",
|
|
1542
|
+
format: "datetime",
|
|
1543
|
+
description: "When this contribution finished. This should be a subset of the hypercert timeframe."
|
|
1544
|
+
},
|
|
1545
|
+
createdAt: {
|
|
1546
|
+
type: "string",
|
|
1547
|
+
format: "datetime",
|
|
1548
|
+
description: "Client-declared timestamp when this record was originally created."
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
};
|
|
1554
|
+
var CONTRIBUTIONDETAILS_LEXICON_JSON = {
|
|
1346
1555
|
lexicon: lexicon$7,
|
|
1347
|
-
id: id$
|
|
1556
|
+
id: id$m,
|
|
1348
1557
|
defs: defs$9
|
|
1349
1558
|
};
|
|
1350
1559
|
|
|
1351
1560
|
var lexicon$6 = 1;
|
|
1352
|
-
var id$
|
|
1561
|
+
var id$l = "org.hypercerts.claim.contributorInformation";
|
|
1353
1562
|
var defs$8 = {
|
|
1354
1563
|
main: {
|
|
1355
1564
|
type: "record",
|
|
1356
|
-
description: "
|
|
1565
|
+
description: "Contributor information including identifier, display name, and image.",
|
|
1357
1566
|
key: "tid",
|
|
1358
1567
|
record: {
|
|
1359
1568
|
type: "object",
|
|
@@ -1378,27 +1587,6 @@ var defs$8 = {
|
|
|
1378
1587
|
],
|
|
1379
1588
|
description: "The contributor visual representation as a URI or image blob."
|
|
1380
1589
|
},
|
|
1381
|
-
role: {
|
|
1382
|
-
type: "string",
|
|
1383
|
-
description: "Role or title of the contributor.",
|
|
1384
|
-
maxLength: 100
|
|
1385
|
-
},
|
|
1386
|
-
contributionDescription: {
|
|
1387
|
-
type: "string",
|
|
1388
|
-
description: "What the contribution concretely achieved.",
|
|
1389
|
-
maxLength: 2000,
|
|
1390
|
-
maxGraphemes: 500
|
|
1391
|
-
},
|
|
1392
|
-
startDate: {
|
|
1393
|
-
type: "string",
|
|
1394
|
-
format: "datetime",
|
|
1395
|
-
description: "When this contribution started. This should be a subset of the hypercert timeframe."
|
|
1396
|
-
},
|
|
1397
|
-
endDate: {
|
|
1398
|
-
type: "string",
|
|
1399
|
-
format: "datetime",
|
|
1400
|
-
description: "When this contribution finished. This should be a subset of the hypercert timeframe."
|
|
1401
|
-
},
|
|
1402
1590
|
createdAt: {
|
|
1403
1591
|
type: "string",
|
|
1404
1592
|
format: "datetime",
|
|
@@ -1408,14 +1596,14 @@ var defs$8 = {
|
|
|
1408
1596
|
}
|
|
1409
1597
|
}
|
|
1410
1598
|
};
|
|
1411
|
-
var
|
|
1599
|
+
var CONTRIBUTORINFORMATION_LEXICON_JSON = {
|
|
1412
1600
|
lexicon: lexicon$6,
|
|
1413
|
-
id: id$
|
|
1601
|
+
id: id$l,
|
|
1414
1602
|
defs: defs$8
|
|
1415
1603
|
};
|
|
1416
1604
|
|
|
1417
1605
|
var lexicon$5 = 1;
|
|
1418
|
-
var id$
|
|
1606
|
+
var id$k = "org.hypercerts.claim.evaluation";
|
|
1419
1607
|
var defs$7 = {
|
|
1420
1608
|
score: {
|
|
1421
1609
|
type: "object",
|
|
@@ -1514,12 +1702,12 @@ var defs$7 = {
|
|
|
1514
1702
|
};
|
|
1515
1703
|
var EVALUATION_LEXICON_JSON = {
|
|
1516
1704
|
lexicon: lexicon$5,
|
|
1517
|
-
id: id$
|
|
1705
|
+
id: id$k,
|
|
1518
1706
|
defs: defs$7
|
|
1519
1707
|
};
|
|
1520
1708
|
|
|
1521
1709
|
var lexicon$4 = 1;
|
|
1522
|
-
var id$
|
|
1710
|
+
var id$j = "org.hypercerts.claim.evidence";
|
|
1523
1711
|
var defs$6 = {
|
|
1524
1712
|
main: {
|
|
1525
1713
|
type: "record",
|
|
@@ -1583,12 +1771,12 @@ var defs$6 = {
|
|
|
1583
1771
|
};
|
|
1584
1772
|
var EVIDENCE_LEXICON_JSON = {
|
|
1585
1773
|
lexicon: lexicon$4,
|
|
1586
|
-
id: id$
|
|
1774
|
+
id: id$j,
|
|
1587
1775
|
defs: defs$6
|
|
1588
1776
|
};
|
|
1589
1777
|
|
|
1590
1778
|
var lexicon$3 = 1;
|
|
1591
|
-
var id$
|
|
1779
|
+
var id$i = "org.hypercerts.claim.measurement";
|
|
1592
1780
|
var defs$5 = {
|
|
1593
1781
|
main: {
|
|
1594
1782
|
type: "record",
|
|
@@ -1662,12 +1850,12 @@ var defs$5 = {
|
|
|
1662
1850
|
};
|
|
1663
1851
|
var MEASUREMENT_LEXICON_JSON = {
|
|
1664
1852
|
lexicon: lexicon$3,
|
|
1665
|
-
id: id$
|
|
1853
|
+
id: id$i,
|
|
1666
1854
|
defs: defs$5
|
|
1667
1855
|
};
|
|
1668
1856
|
|
|
1669
1857
|
var lexicon$2 = 1;
|
|
1670
|
-
var id$
|
|
1858
|
+
var id$h = "org.hypercerts.claim.rights";
|
|
1671
1859
|
var defs$4 = {
|
|
1672
1860
|
main: {
|
|
1673
1861
|
type: "record",
|
|
@@ -1715,12 +1903,12 @@ var defs$4 = {
|
|
|
1715
1903
|
};
|
|
1716
1904
|
var RIGHTS_LEXICON_JSON = {
|
|
1717
1905
|
lexicon: lexicon$2,
|
|
1718
|
-
id: id$
|
|
1906
|
+
id: id$h,
|
|
1719
1907
|
defs: defs$4
|
|
1720
1908
|
};
|
|
1721
1909
|
|
|
1722
1910
|
var lexicon$1 = 1;
|
|
1723
|
-
var id$
|
|
1911
|
+
var id$g = "org.hypercerts.defs";
|
|
1724
1912
|
var defs$3 = {
|
|
1725
1913
|
uri: {
|
|
1726
1914
|
type: "object",
|
|
@@ -1814,12 +2002,12 @@ var defs$3 = {
|
|
|
1814
2002
|
};
|
|
1815
2003
|
var HYPERCERTS_DEFS_LEXICON_JSON = {
|
|
1816
2004
|
lexicon: lexicon$1,
|
|
1817
|
-
id: id$
|
|
2005
|
+
id: id$g,
|
|
1818
2006
|
defs: defs$3
|
|
1819
2007
|
};
|
|
1820
2008
|
|
|
1821
2009
|
var lexicon = 1;
|
|
1822
|
-
var id$
|
|
2010
|
+
var id$f = "org.hypercerts.funding.receipt";
|
|
1823
2011
|
var defs$2 = {
|
|
1824
2012
|
main: {
|
|
1825
2013
|
type: "record",
|
|
@@ -1890,12 +2078,30 @@ var defs$2 = {
|
|
|
1890
2078
|
};
|
|
1891
2079
|
var FUNDING_RECEIPT_LEXICON_JSON = {
|
|
1892
2080
|
lexicon: lexicon,
|
|
1893
|
-
id: id$
|
|
2081
|
+
id: id$f,
|
|
1894
2082
|
defs: defs$2
|
|
1895
2083
|
};
|
|
1896
2084
|
|
|
1897
|
-
const is$typed$
|
|
1898
|
-
const id$
|
|
2085
|
+
const is$typed$e = is$typed$f, validate$e = validate$f;
|
|
2086
|
+
const id$e = 'app.certified.badge.award';
|
|
2087
|
+
const hashMain$d = 'main';
|
|
2088
|
+
function isMain$d(v) {
|
|
2089
|
+
return is$typed$e(v, id$e, hashMain$d);
|
|
2090
|
+
}
|
|
2091
|
+
function validateMain$d(v) {
|
|
2092
|
+
return validate$e(v, id$e, hashMain$d, true);
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
var award = /*#__PURE__*/Object.freeze({
|
|
2096
|
+
__proto__: null,
|
|
2097
|
+
isMain: isMain$d,
|
|
2098
|
+
isRecord: isMain$d,
|
|
2099
|
+
validateMain: validateMain$d,
|
|
2100
|
+
validateRecord: validateMain$d
|
|
2101
|
+
});
|
|
2102
|
+
|
|
2103
|
+
const is$typed$d = is$typed$f, validate$d = validate$f;
|
|
2104
|
+
const id$d = 'app.certified.badge.definition';
|
|
1899
2105
|
const hashMain$c = 'main';
|
|
1900
2106
|
function isMain$c(v) {
|
|
1901
2107
|
return is$typed$d(v, id$d, hashMain$c);
|
|
@@ -1904,7 +2110,7 @@ function validateMain$c(v) {
|
|
|
1904
2110
|
return validate$d(v, id$d, hashMain$c, true);
|
|
1905
2111
|
}
|
|
1906
2112
|
|
|
1907
|
-
var
|
|
2113
|
+
var definition = /*#__PURE__*/Object.freeze({
|
|
1908
2114
|
__proto__: null,
|
|
1909
2115
|
isMain: isMain$c,
|
|
1910
2116
|
isRecord: isMain$c,
|
|
@@ -1912,8 +2118,8 @@ var award = /*#__PURE__*/Object.freeze({
|
|
|
1912
2118
|
validateRecord: validateMain$c
|
|
1913
2119
|
});
|
|
1914
2120
|
|
|
1915
|
-
const is$typed$c = is$typed$
|
|
1916
|
-
const id$c = 'app.certified.badge.
|
|
2121
|
+
const is$typed$c = is$typed$f, validate$c = validate$f;
|
|
2122
|
+
const id$c = 'app.certified.badge.response';
|
|
1917
2123
|
const hashMain$b = 'main';
|
|
1918
2124
|
function isMain$b(v) {
|
|
1919
2125
|
return is$typed$c(v, id$c, hashMain$b);
|
|
@@ -1922,7 +2128,7 @@ function validateMain$b(v) {
|
|
|
1922
2128
|
return validate$c(v, id$c, hashMain$b, true);
|
|
1923
2129
|
}
|
|
1924
2130
|
|
|
1925
|
-
var
|
|
2131
|
+
var response = /*#__PURE__*/Object.freeze({
|
|
1926
2132
|
__proto__: null,
|
|
1927
2133
|
isMain: isMain$b,
|
|
1928
2134
|
isRecord: isMain$b,
|
|
@@ -1930,8 +2136,12 @@ var definition = /*#__PURE__*/Object.freeze({
|
|
|
1930
2136
|
validateRecord: validateMain$b
|
|
1931
2137
|
});
|
|
1932
2138
|
|
|
1933
|
-
|
|
1934
|
-
|
|
2139
|
+
var defs$1 = /*#__PURE__*/Object.freeze({
|
|
2140
|
+
__proto__: null
|
|
2141
|
+
});
|
|
2142
|
+
|
|
2143
|
+
const is$typed$b = is$typed$f, validate$b = validate$f;
|
|
2144
|
+
const id$b = 'app.certified.location';
|
|
1935
2145
|
const hashMain$a = 'main';
|
|
1936
2146
|
function isMain$a(v) {
|
|
1937
2147
|
return is$typed$b(v, id$b, hashMain$a);
|
|
@@ -1940,7 +2150,7 @@ function validateMain$a(v) {
|
|
|
1940
2150
|
return validate$b(v, id$b, hashMain$a, true);
|
|
1941
2151
|
}
|
|
1942
2152
|
|
|
1943
|
-
var
|
|
2153
|
+
var location = /*#__PURE__*/Object.freeze({
|
|
1944
2154
|
__proto__: null,
|
|
1945
2155
|
isMain: isMain$a,
|
|
1946
2156
|
isRecord: isMain$a,
|
|
@@ -1948,46 +2158,51 @@ var response = /*#__PURE__*/Object.freeze({
|
|
|
1948
2158
|
validateRecord: validateMain$a
|
|
1949
2159
|
});
|
|
1950
2160
|
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
});
|
|
1954
|
-
|
|
1955
|
-
const is$typed$a = is$typed$e, validate$a = validate$e;
|
|
1956
|
-
const id$a = 'app.certified.location';
|
|
2161
|
+
const is$typed$a = is$typed$f, validate$a = validate$f;
|
|
2162
|
+
const id$a = 'com.atproto.repo.strongRef';
|
|
1957
2163
|
const hashMain$9 = 'main';
|
|
1958
2164
|
function isMain$9(v) {
|
|
1959
2165
|
return is$typed$a(v, id$a, hashMain$9);
|
|
1960
2166
|
}
|
|
1961
2167
|
function validateMain$9(v) {
|
|
1962
|
-
return validate$a(v, id$a, hashMain$9
|
|
2168
|
+
return validate$a(v, id$a, hashMain$9);
|
|
1963
2169
|
}
|
|
1964
2170
|
|
|
1965
|
-
var
|
|
2171
|
+
var strongRef = /*#__PURE__*/Object.freeze({
|
|
1966
2172
|
__proto__: null,
|
|
1967
2173
|
isMain: isMain$9,
|
|
1968
|
-
|
|
1969
|
-
validateMain: validateMain$9,
|
|
1970
|
-
validateRecord: validateMain$9
|
|
2174
|
+
validateMain: validateMain$9
|
|
1971
2175
|
});
|
|
1972
2176
|
|
|
1973
|
-
const is$typed$9 = is$typed$
|
|
1974
|
-
const id$9 = '
|
|
2177
|
+
const is$typed$9 = is$typed$f, validate$9 = validate$f;
|
|
2178
|
+
const id$9 = 'org.hypercerts.claim.activity';
|
|
1975
2179
|
const hashMain$8 = 'main';
|
|
1976
2180
|
function isMain$8(v) {
|
|
1977
2181
|
return is$typed$9(v, id$9, hashMain$8);
|
|
1978
2182
|
}
|
|
1979
2183
|
function validateMain$8(v) {
|
|
1980
|
-
return validate$9(v, id$9, hashMain$8);
|
|
2184
|
+
return validate$9(v, id$9, hashMain$8, true);
|
|
2185
|
+
}
|
|
2186
|
+
const hashContributor = 'contributor';
|
|
2187
|
+
function isContributor(v) {
|
|
2188
|
+
return is$typed$9(v, id$9, hashContributor);
|
|
2189
|
+
}
|
|
2190
|
+
function validateContributor(v) {
|
|
2191
|
+
return validate$9(v, id$9, hashContributor);
|
|
1981
2192
|
}
|
|
1982
2193
|
|
|
1983
|
-
var
|
|
2194
|
+
var activity = /*#__PURE__*/Object.freeze({
|
|
1984
2195
|
__proto__: null,
|
|
2196
|
+
isContributor: isContributor,
|
|
1985
2197
|
isMain: isMain$8,
|
|
1986
|
-
|
|
2198
|
+
isRecord: isMain$8,
|
|
2199
|
+
validateContributor: validateContributor,
|
|
2200
|
+
validateMain: validateMain$8,
|
|
2201
|
+
validateRecord: validateMain$8
|
|
1987
2202
|
});
|
|
1988
2203
|
|
|
1989
|
-
const is$typed$8 = is$typed$
|
|
1990
|
-
const id$8 = 'org.hypercerts.claim.
|
|
2204
|
+
const is$typed$8 = is$typed$f, validate$8 = validate$f;
|
|
2205
|
+
const id$8 = 'org.hypercerts.claim.collection';
|
|
1991
2206
|
const hashMain$7 = 'main';
|
|
1992
2207
|
function isMain$7(v) {
|
|
1993
2208
|
return is$typed$8(v, id$8, hashMain$7);
|
|
@@ -1995,26 +2210,26 @@ function isMain$7(v) {
|
|
|
1995
2210
|
function validateMain$7(v) {
|
|
1996
2211
|
return validate$8(v, id$8, hashMain$7, true);
|
|
1997
2212
|
}
|
|
1998
|
-
const
|
|
1999
|
-
function
|
|
2000
|
-
return is$typed$8(v, id$8,
|
|
2213
|
+
const hashItem = 'item';
|
|
2214
|
+
function isItem(v) {
|
|
2215
|
+
return is$typed$8(v, id$8, hashItem);
|
|
2001
2216
|
}
|
|
2002
|
-
function
|
|
2003
|
-
return validate$8(v, id$8,
|
|
2217
|
+
function validateItem(v) {
|
|
2218
|
+
return validate$8(v, id$8, hashItem);
|
|
2004
2219
|
}
|
|
2005
2220
|
|
|
2006
|
-
var
|
|
2221
|
+
var collection = /*#__PURE__*/Object.freeze({
|
|
2007
2222
|
__proto__: null,
|
|
2008
|
-
|
|
2223
|
+
isItem: isItem,
|
|
2009
2224
|
isMain: isMain$7,
|
|
2010
2225
|
isRecord: isMain$7,
|
|
2011
|
-
|
|
2226
|
+
validateItem: validateItem,
|
|
2012
2227
|
validateMain: validateMain$7,
|
|
2013
2228
|
validateRecord: validateMain$7
|
|
2014
2229
|
});
|
|
2015
2230
|
|
|
2016
|
-
const is$typed$7 = is$typed$
|
|
2017
|
-
const id$7 = 'org.hypercerts.claim.
|
|
2231
|
+
const is$typed$7 = is$typed$f, validate$7 = validate$f;
|
|
2232
|
+
const id$7 = 'org.hypercerts.claim.contributionDetails';
|
|
2018
2233
|
const hashMain$6 = 'main';
|
|
2019
2234
|
function isMain$6(v) {
|
|
2020
2235
|
return is$typed$7(v, id$7, hashMain$6);
|
|
@@ -2023,7 +2238,7 @@ function validateMain$6(v) {
|
|
|
2023
2238
|
return validate$7(v, id$7, hashMain$6, true);
|
|
2024
2239
|
}
|
|
2025
2240
|
|
|
2026
|
-
var
|
|
2241
|
+
var contributionDetails = /*#__PURE__*/Object.freeze({
|
|
2027
2242
|
__proto__: null,
|
|
2028
2243
|
isMain: isMain$6,
|
|
2029
2244
|
isRecord: isMain$6,
|
|
@@ -2031,8 +2246,8 @@ var collection = /*#__PURE__*/Object.freeze({
|
|
|
2031
2246
|
validateRecord: validateMain$6
|
|
2032
2247
|
});
|
|
2033
2248
|
|
|
2034
|
-
const is$typed$6 = is$typed$
|
|
2035
|
-
const id$6 = 'org.hypercerts.claim.
|
|
2249
|
+
const is$typed$6 = is$typed$f, validate$6 = validate$f;
|
|
2250
|
+
const id$6 = 'org.hypercerts.claim.contributorInformation';
|
|
2036
2251
|
const hashMain$5 = 'main';
|
|
2037
2252
|
function isMain$5(v) {
|
|
2038
2253
|
return is$typed$6(v, id$6, hashMain$5);
|
|
@@ -2041,7 +2256,7 @@ function validateMain$5(v) {
|
|
|
2041
2256
|
return validate$6(v, id$6, hashMain$5, true);
|
|
2042
2257
|
}
|
|
2043
2258
|
|
|
2044
|
-
var
|
|
2259
|
+
var contributorInformation = /*#__PURE__*/Object.freeze({
|
|
2045
2260
|
__proto__: null,
|
|
2046
2261
|
isMain: isMain$5,
|
|
2047
2262
|
isRecord: isMain$5,
|
|
@@ -2049,7 +2264,7 @@ var contributor = /*#__PURE__*/Object.freeze({
|
|
|
2049
2264
|
validateRecord: validateMain$5
|
|
2050
2265
|
});
|
|
2051
2266
|
|
|
2052
|
-
const is$typed$5 = is$typed$
|
|
2267
|
+
const is$typed$5 = is$typed$f, validate$5 = validate$f;
|
|
2053
2268
|
const id$5 = 'org.hypercerts.claim.evaluation';
|
|
2054
2269
|
const hashScore = 'score';
|
|
2055
2270
|
function isScore(v) {
|
|
@@ -2076,7 +2291,7 @@ var evaluation = /*#__PURE__*/Object.freeze({
|
|
|
2076
2291
|
validateScore: validateScore
|
|
2077
2292
|
});
|
|
2078
2293
|
|
|
2079
|
-
const is$typed$4 = is$typed$
|
|
2294
|
+
const is$typed$4 = is$typed$f, validate$4 = validate$f;
|
|
2080
2295
|
const id$4 = 'org.hypercerts.claim.evidence';
|
|
2081
2296
|
const hashMain$3 = 'main';
|
|
2082
2297
|
function isMain$3(v) {
|
|
@@ -2094,7 +2309,7 @@ var evidence = /*#__PURE__*/Object.freeze({
|
|
|
2094
2309
|
validateRecord: validateMain$3
|
|
2095
2310
|
});
|
|
2096
2311
|
|
|
2097
|
-
const is$typed$3 = is$typed$
|
|
2312
|
+
const is$typed$3 = is$typed$f, validate$3 = validate$f;
|
|
2098
2313
|
const id$3 = 'org.hypercerts.claim.measurement';
|
|
2099
2314
|
const hashMain$2 = 'main';
|
|
2100
2315
|
function isMain$2(v) {
|
|
@@ -2112,7 +2327,7 @@ var measurement = /*#__PURE__*/Object.freeze({
|
|
|
2112
2327
|
validateRecord: validateMain$2
|
|
2113
2328
|
});
|
|
2114
2329
|
|
|
2115
|
-
const is$typed$2 = is$typed$
|
|
2330
|
+
const is$typed$2 = is$typed$f, validate$2 = validate$f;
|
|
2116
2331
|
const id$2 = 'org.hypercerts.claim.rights';
|
|
2117
2332
|
const hashMain$1 = 'main';
|
|
2118
2333
|
function isMain$1(v) {
|
|
@@ -2130,7 +2345,7 @@ var rights = /*#__PURE__*/Object.freeze({
|
|
|
2130
2345
|
validateRecord: validateMain$1
|
|
2131
2346
|
});
|
|
2132
2347
|
|
|
2133
|
-
const is$typed$1 = is$typed$
|
|
2348
|
+
const is$typed$1 = is$typed$f, validate$1 = validate$f;
|
|
2134
2349
|
const id$1 = 'org.hypercerts.defs';
|
|
2135
2350
|
const hashUri = 'uri';
|
|
2136
2351
|
function isUri(v) {
|
|
@@ -2182,7 +2397,7 @@ var defs = /*#__PURE__*/Object.freeze({
|
|
|
2182
2397
|
validateUri: validateUri
|
|
2183
2398
|
});
|
|
2184
2399
|
|
|
2185
|
-
const is$typed = is$typed$
|
|
2400
|
+
const is$typed = is$typed$f, validate = validate$f;
|
|
2186
2401
|
const id = 'org.hypercerts.funding.receipt';
|
|
2187
2402
|
const hashMain = 'main';
|
|
2188
2403
|
function isMain(v) {
|
|
@@ -2206,7 +2421,7 @@ var receipt = /*#__PURE__*/Object.freeze({
|
|
|
2206
2421
|
* ⚠️ DO NOT EDIT THIS FILE MANUALLY ⚠️
|
|
2207
2422
|
*
|
|
2208
2423
|
* This file is automatically generated by scripts/generate-exports.js
|
|
2209
|
-
* Generated: 2026-01-
|
|
2424
|
+
* Generated: 2026-01-21T23:12:40.384Z
|
|
2210
2425
|
*
|
|
2211
2426
|
* To regenerate this file, run:
|
|
2212
2427
|
* npm run gen-api
|
|
@@ -2231,7 +2446,8 @@ const LOCATION_NSID = "app.certified.location";
|
|
|
2231
2446
|
const STRONGREF_NSID = "com.atproto.repo.strongRef";
|
|
2232
2447
|
const ACTIVITY_NSID = "org.hypercerts.claim.activity";
|
|
2233
2448
|
const COLLECTION_NSID = "org.hypercerts.claim.collection";
|
|
2234
|
-
const
|
|
2449
|
+
const CONTRIBUTIONDETAILS_NSID = "org.hypercerts.claim.contributionDetails";
|
|
2450
|
+
const CONTRIBUTORINFORMATION_NSID = "org.hypercerts.claim.contributorInformation";
|
|
2235
2451
|
const EVALUATION_NSID = "org.hypercerts.claim.evaluation";
|
|
2236
2452
|
const EVIDENCE_NSID = "org.hypercerts.claim.evidence";
|
|
2237
2453
|
const MEASUREMENT_NSID = "org.hypercerts.claim.measurement";
|
|
@@ -2253,7 +2469,8 @@ const HYPERCERTS_NSIDS = {
|
|
|
2253
2469
|
STRONGREF: STRONGREF_NSID,
|
|
2254
2470
|
ACTIVITY: ACTIVITY_NSID,
|
|
2255
2471
|
COLLECTION: COLLECTION_NSID,
|
|
2256
|
-
|
|
2472
|
+
CONTRIBUTIONDETAILS: CONTRIBUTIONDETAILS_NSID,
|
|
2473
|
+
CONTRIBUTORINFORMATION: CONTRIBUTORINFORMATION_NSID,
|
|
2257
2474
|
EVALUATION: EVALUATION_NSID,
|
|
2258
2475
|
EVIDENCE: EVIDENCE_NSID,
|
|
2259
2476
|
MEASUREMENT: MEASUREMENT_NSID,
|
|
@@ -2273,7 +2490,8 @@ const HYPERCERTS_LEXICON_JSON = {
|
|
|
2273
2490
|
STRONGREF: STRONGREF_LEXICON_JSON,
|
|
2274
2491
|
ACTIVITY: ACTIVITY_LEXICON_JSON,
|
|
2275
2492
|
COLLECTION: COLLECTION_LEXICON_JSON,
|
|
2276
|
-
|
|
2493
|
+
CONTRIBUTIONDETAILS: CONTRIBUTIONDETAILS_LEXICON_JSON,
|
|
2494
|
+
CONTRIBUTORINFORMATION: CONTRIBUTORINFORMATION_LEXICON_JSON,
|
|
2277
2495
|
EVALUATION: EVALUATION_LEXICON_JSON,
|
|
2278
2496
|
EVIDENCE: EVIDENCE_LEXICON_JSON,
|
|
2279
2497
|
MEASUREMENT: MEASUREMENT_LEXICON_JSON,
|
|
@@ -2290,7 +2508,8 @@ const LOCATION_LEXICON_DOC = lexicons.get(LOCATION_NSID);
|
|
|
2290
2508
|
const STRONGREF_LEXICON_DOC = lexicons.get(STRONGREF_NSID);
|
|
2291
2509
|
const ACTIVITY_LEXICON_DOC = lexicons.get(ACTIVITY_NSID);
|
|
2292
2510
|
const COLLECTION_LEXICON_DOC = lexicons.get(COLLECTION_NSID);
|
|
2293
|
-
const
|
|
2511
|
+
const CONTRIBUTIONDETAILS_LEXICON_DOC = lexicons.get(CONTRIBUTIONDETAILS_NSID);
|
|
2512
|
+
const CONTRIBUTORINFORMATION_LEXICON_DOC = lexicons.get(CONTRIBUTORINFORMATION_NSID);
|
|
2294
2513
|
const EVALUATION_LEXICON_DOC = lexicons.get(EVALUATION_NSID);
|
|
2295
2514
|
const EVIDENCE_LEXICON_DOC = lexicons.get(EVIDENCE_NSID);
|
|
2296
2515
|
const MEASUREMENT_LEXICON_DOC = lexicons.get(MEASUREMENT_NSID);
|
|
@@ -2309,7 +2528,8 @@ const HYPERCERTS_LEXICON_DOC = {
|
|
|
2309
2528
|
STRONGREF: STRONGREF_LEXICON_DOC,
|
|
2310
2529
|
ACTIVITY: ACTIVITY_LEXICON_DOC,
|
|
2311
2530
|
COLLECTION: COLLECTION_LEXICON_DOC,
|
|
2312
|
-
|
|
2531
|
+
CONTRIBUTIONDETAILS: CONTRIBUTIONDETAILS_LEXICON_DOC,
|
|
2532
|
+
CONTRIBUTORINFORMATION: CONTRIBUTORINFORMATION_LEXICON_DOC,
|
|
2313
2533
|
EVALUATION: EVALUATION_LEXICON_DOC,
|
|
2314
2534
|
EVIDENCE: EVIDENCE_LEXICON_DOC,
|
|
2315
2535
|
MEASUREMENT: MEASUREMENT_LEXICON_DOC,
|
|
@@ -2318,5 +2538,5 @@ const HYPERCERTS_LEXICON_DOC = {
|
|
|
2318
2538
|
FUNDING_RECEIPT: FUNDING_RECEIPT_LEXICON_DOC,
|
|
2319
2539
|
};
|
|
2320
2540
|
|
|
2321
|
-
export { ACTIVITY_LEXICON_DOC, ACTIVITY_LEXICON_JSON, ACTIVITY_NSID, award as AppCertifiedBadgeAward, definition as AppCertifiedBadgeDefinition, response as AppCertifiedBadgeResponse, defs$1 as AppCertifiedDefs, location as AppCertifiedLocation, BADGE_AWARD_LEXICON_DOC, BADGE_AWARD_LEXICON_JSON, BADGE_AWARD_NSID, BADGE_DEFINITION_LEXICON_DOC, BADGE_DEFINITION_LEXICON_JSON, BADGE_DEFINITION_NSID, BADGE_RESPONSE_LEXICON_DOC, BADGE_RESPONSE_LEXICON_JSON, BADGE_RESPONSE_NSID, CERTIFIED_DEFS_LEXICON_DOC, CERTIFIED_DEFS_LEXICON_JSON, CERTIFIED_DEFS_NSID, COLLECTION_LEXICON_DOC, COLLECTION_LEXICON_JSON, COLLECTION_NSID,
|
|
2541
|
+
export { ACTIVITY_LEXICON_DOC, ACTIVITY_LEXICON_JSON, ACTIVITY_NSID, award as AppCertifiedBadgeAward, definition as AppCertifiedBadgeDefinition, response as AppCertifiedBadgeResponse, defs$1 as AppCertifiedDefs, location as AppCertifiedLocation, BADGE_AWARD_LEXICON_DOC, BADGE_AWARD_LEXICON_JSON, BADGE_AWARD_NSID, BADGE_DEFINITION_LEXICON_DOC, BADGE_DEFINITION_LEXICON_JSON, BADGE_DEFINITION_NSID, BADGE_RESPONSE_LEXICON_DOC, BADGE_RESPONSE_LEXICON_JSON, BADGE_RESPONSE_NSID, CERTIFIED_DEFS_LEXICON_DOC, CERTIFIED_DEFS_LEXICON_JSON, CERTIFIED_DEFS_NSID, COLLECTION_LEXICON_DOC, COLLECTION_LEXICON_JSON, COLLECTION_NSID, CONTRIBUTIONDETAILS_LEXICON_DOC, CONTRIBUTIONDETAILS_LEXICON_JSON, CONTRIBUTIONDETAILS_NSID, CONTRIBUTORINFORMATION_LEXICON_DOC, CONTRIBUTORINFORMATION_LEXICON_JSON, CONTRIBUTORINFORMATION_NSID, strongRef as ComAtprotoRepoStrongRef, EVALUATION_LEXICON_DOC, EVALUATION_LEXICON_JSON, EVALUATION_NSID, EVIDENCE_LEXICON_DOC, EVIDENCE_LEXICON_JSON, EVIDENCE_NSID, FUNDING_RECEIPT_LEXICON_DOC, FUNDING_RECEIPT_LEXICON_JSON, FUNDING_RECEIPT_NSID, HYPERCERTS_DEFS_LEXICON_DOC, HYPERCERTS_DEFS_LEXICON_JSON, HYPERCERTS_DEFS_NSID, HYPERCERTS_LEXICON_DOC, HYPERCERTS_LEXICON_JSON, HYPERCERTS_NSIDS, ids as HYPERCERTS_NSIDS_BY_TYPE, schemas as HYPERCERTS_SCHEMAS, schemaDict as HYPERCERTS_SCHEMA_DICT, LOCATION_LEXICON_DOC, LOCATION_LEXICON_JSON, LOCATION_NSID, MEASUREMENT_LEXICON_DOC, MEASUREMENT_LEXICON_JSON, MEASUREMENT_NSID, activity as OrgHypercertsClaimActivity, collection as OrgHypercertsClaimCollection, contributionDetails as OrgHypercertsClaimContributionDetails, contributorInformation as OrgHypercertsClaimContributorInformation, evaluation as OrgHypercertsClaimEvaluation, evidence as OrgHypercertsClaimEvidence, measurement as OrgHypercertsClaimMeasurement, rights as OrgHypercertsClaimRights, defs as OrgHypercertsDefs, receipt as OrgHypercertsFundingReceipt, RIGHTS_LEXICON_DOC, RIGHTS_LEXICON_JSON, RIGHTS_NSID, STRONGREF_LEXICON_DOC, STRONGREF_LEXICON_JSON, STRONGREF_NSID, asPredicate, is$typed$f as is$typed, lexicons, maybe$typed, validate$f as validate };
|
|
2322
2542
|
//# sourceMappingURL=index.mjs.map
|