@hypercerts-org/lexicon 0.10.0-beta.6 → 0.10.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -0
- package/README.md +46 -0
- package/SCHEMAS.md +114 -104
- package/dist/exports.d.ts +186 -20
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +186 -20
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +376 -54
- 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 +12 -13
- 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/defs.d.ts +44 -0
- package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/helper/workScopeTag.d.ts +31 -0
- package/dist/generated/types/org/hypercerts/helper/workScopeTag.d.ts.map +1 -0
- package/dist/index.cjs +729 -267
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +721 -263
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +218 -27
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +376 -54
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +218 -27
- 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 +12 -13
- 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/defs.d.ts +44 -0
- package/dist/types/org/hypercerts/defs.d.ts.map +1 -1
- package/dist/types/org/hypercerts/helper/workScopeTag.d.ts +31 -0
- package/dist/types/org/hypercerts/helper/workScopeTag.d.ts.map +1 -0
- package/lexicons/org/hypercerts/claim/activity.json +31 -25
- package/lexicons/org/hypercerts/claim/collection.json +33 -2
- package/lexicons/org/hypercerts/defs.json +88 -0
- package/lexicons/org/hypercerts/helper/workScopeTag.json +65 -0
- package/package.json +4 -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$g(v, id, hash) {
|
|
20
20
|
return isObject(v) && '$type' in v && is$type(v.$type, id, hash);
|
|
21
21
|
}
|
|
22
22
|
function maybe$typed(v, id, hash) {
|
|
@@ -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: [
|
|
@@ -301,9 +317,14 @@ const schemaDict = {
|
|
|
301
317
|
description: 'The hypercert visual representation as a URI or image blob.',
|
|
302
318
|
},
|
|
303
319
|
workScope: {
|
|
304
|
-
type: '
|
|
305
|
-
|
|
306
|
-
|
|
320
|
+
type: 'union',
|
|
321
|
+
refs: [
|
|
322
|
+
'lex:org.hypercerts.defs#workScopeAll',
|
|
323
|
+
'lex:org.hypercerts.defs#workScopeAny',
|
|
324
|
+
'lex:org.hypercerts.defs#workScopeNot',
|
|
325
|
+
'lex:org.hypercerts.defs#workScopeAtom',
|
|
326
|
+
],
|
|
327
|
+
description: 'Work scope logic expression using boolean operators (all/any/not) and atomic scope references.',
|
|
307
328
|
},
|
|
308
329
|
startDate: {
|
|
309
330
|
type: 'string',
|
|
@@ -346,17 +367,17 @@ const schemaDict = {
|
|
|
346
367
|
},
|
|
347
368
|
contributor: {
|
|
348
369
|
type: 'object',
|
|
349
|
-
required: ['
|
|
370
|
+
required: ['contributorIdentity'],
|
|
350
371
|
properties: {
|
|
351
|
-
|
|
372
|
+
contributorIdentity: {
|
|
352
373
|
type: 'union',
|
|
353
374
|
refs: [
|
|
354
375
|
'lex:org.hypercerts.claim.activity#contributorIdentity',
|
|
355
376
|
'lex:com.atproto.repo.strongRef',
|
|
356
377
|
],
|
|
357
|
-
description: 'Contributor
|
|
378
|
+
description: 'Contributor identity as a string (DID or identifier) via org.hypercerts.claim.activity#contributorIdentity, or a strong reference to a contributor information record.',
|
|
358
379
|
},
|
|
359
|
-
|
|
380
|
+
contributionWeight: {
|
|
360
381
|
type: 'string',
|
|
361
382
|
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.',
|
|
362
383
|
},
|
|
@@ -366,7 +387,7 @@ const schemaDict = {
|
|
|
366
387
|
'lex:org.hypercerts.claim.activity#contributorRole',
|
|
367
388
|
'lex:com.atproto.repo.strongRef',
|
|
368
389
|
],
|
|
369
|
-
description: 'Contribution details as a string or strong reference to
|
|
390
|
+
description: 'Contribution details as a string via org.hypercerts.claim.activity#contributorRole, or a strong reference to a contribution details record.',
|
|
370
391
|
},
|
|
371
392
|
},
|
|
372
393
|
},
|
|
@@ -380,21 +401,6 @@ const schemaDict = {
|
|
|
380
401
|
maxLength: 10000,
|
|
381
402
|
maxGraphemes: 1000,
|
|
382
403
|
},
|
|
383
|
-
activityWeight: {
|
|
384
|
-
type: 'object',
|
|
385
|
-
required: ['activity', 'weight'],
|
|
386
|
-
properties: {
|
|
387
|
-
activity: {
|
|
388
|
-
type: 'ref',
|
|
389
|
-
ref: 'lex:com.atproto.repo.strongRef',
|
|
390
|
-
description: 'A strong reference to a hypercert activity record. This activity must conform to the lexicon org.hypercerts.claim.activity',
|
|
391
|
-
},
|
|
392
|
-
weight: {
|
|
393
|
-
type: 'string',
|
|
394
|
-
description: 'The relative weight/importance of this hypercert activity (stored as a string to avoid float precision issues). Weights can be any positive numeric values and do not need to sum to a specific total; normalization can be performed by the consuming application as needed.',
|
|
395
|
-
},
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
404
|
},
|
|
399
405
|
},
|
|
400
406
|
OrgHypercertsClaimCollection: {
|
|
@@ -430,12 +436,28 @@ const schemaDict = {
|
|
|
430
436
|
ref: 'lex:pub.leaflet.pages.linearDocument#main',
|
|
431
437
|
description: 'Rich-text description, represented as a Leaflet linear document.',
|
|
432
438
|
},
|
|
439
|
+
avatar: {
|
|
440
|
+
type: 'union',
|
|
441
|
+
refs: [
|
|
442
|
+
'lex:org.hypercerts.defs#uri',
|
|
443
|
+
'lex:org.hypercerts.defs#smallImage',
|
|
444
|
+
],
|
|
445
|
+
description: "The collection's avatar/profile image as a URI or image blob.",
|
|
446
|
+
},
|
|
447
|
+
banner: {
|
|
448
|
+
type: 'union',
|
|
449
|
+
refs: [
|
|
450
|
+
'lex:org.hypercerts.defs#uri',
|
|
451
|
+
'lex:org.hypercerts.defs#largeImage',
|
|
452
|
+
],
|
|
453
|
+
description: 'Larger horizontal image to display behind the collection view.',
|
|
454
|
+
},
|
|
433
455
|
items: {
|
|
434
456
|
type: 'array',
|
|
435
|
-
description: 'Array of
|
|
457
|
+
description: 'Array of items in this collection with optional weights.',
|
|
436
458
|
items: {
|
|
437
459
|
type: 'ref',
|
|
438
|
-
ref: 'lex:
|
|
460
|
+
ref: 'lex:org.hypercerts.claim.collection#item',
|
|
439
461
|
},
|
|
440
462
|
},
|
|
441
463
|
createdAt: {
|
|
@@ -446,6 +468,21 @@ const schemaDict = {
|
|
|
446
468
|
},
|
|
447
469
|
},
|
|
448
470
|
},
|
|
471
|
+
item: {
|
|
472
|
+
type: 'object',
|
|
473
|
+
required: ['itemIdentifier'],
|
|
474
|
+
properties: {
|
|
475
|
+
itemIdentifier: {
|
|
476
|
+
type: 'ref',
|
|
477
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
478
|
+
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).',
|
|
479
|
+
},
|
|
480
|
+
itemWeight: {
|
|
481
|
+
type: 'string',
|
|
482
|
+
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.',
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
},
|
|
449
486
|
},
|
|
450
487
|
},
|
|
451
488
|
OrgHypercertsClaimContributionDetails: {
|
|
@@ -867,6 +904,94 @@ const schemaDict = {
|
|
|
867
904
|
},
|
|
868
905
|
},
|
|
869
906
|
},
|
|
907
|
+
workScopeAll: {
|
|
908
|
+
type: 'object',
|
|
909
|
+
required: ['op', 'args'],
|
|
910
|
+
description: 'Logical AND operation: all arguments must be satisfied.',
|
|
911
|
+
properties: {
|
|
912
|
+
op: {
|
|
913
|
+
type: 'string',
|
|
914
|
+
const: 'all',
|
|
915
|
+
description: "Operator type: 'all' (logical AND)",
|
|
916
|
+
},
|
|
917
|
+
args: {
|
|
918
|
+
type: 'array',
|
|
919
|
+
items: {
|
|
920
|
+
type: 'union',
|
|
921
|
+
refs: [
|
|
922
|
+
'lex:org.hypercerts.defs#workScopeAll',
|
|
923
|
+
'lex:org.hypercerts.defs#workScopeAny',
|
|
924
|
+
'lex:org.hypercerts.defs#workScopeNot',
|
|
925
|
+
'lex:org.hypercerts.defs#workScopeAtom',
|
|
926
|
+
],
|
|
927
|
+
},
|
|
928
|
+
minLength: 1,
|
|
929
|
+
maxLength: 100,
|
|
930
|
+
description: 'Array of work scope expressions that must all be satisfied',
|
|
931
|
+
},
|
|
932
|
+
},
|
|
933
|
+
},
|
|
934
|
+
workScopeAny: {
|
|
935
|
+
type: 'object',
|
|
936
|
+
required: ['op', 'args'],
|
|
937
|
+
description: 'Logical OR operation: at least one argument must be satisfied.',
|
|
938
|
+
properties: {
|
|
939
|
+
op: {
|
|
940
|
+
type: 'string',
|
|
941
|
+
const: 'any',
|
|
942
|
+
description: "Operator type: 'any' (logical OR)",
|
|
943
|
+
},
|
|
944
|
+
args: {
|
|
945
|
+
type: 'array',
|
|
946
|
+
items: {
|
|
947
|
+
type: 'union',
|
|
948
|
+
refs: [
|
|
949
|
+
'lex:org.hypercerts.defs#workScopeAll',
|
|
950
|
+
'lex:org.hypercerts.defs#workScopeAny',
|
|
951
|
+
'lex:org.hypercerts.defs#workScopeNot',
|
|
952
|
+
'lex:org.hypercerts.defs#workScopeAtom',
|
|
953
|
+
],
|
|
954
|
+
},
|
|
955
|
+
minLength: 1,
|
|
956
|
+
maxLength: 100,
|
|
957
|
+
description: 'Array of work scope expressions, at least one of which must be satisfied',
|
|
958
|
+
},
|
|
959
|
+
},
|
|
960
|
+
},
|
|
961
|
+
workScopeNot: {
|
|
962
|
+
type: 'object',
|
|
963
|
+
required: ['op', 'arg'],
|
|
964
|
+
description: 'Logical NOT operation: the argument must not be satisfied.',
|
|
965
|
+
properties: {
|
|
966
|
+
op: {
|
|
967
|
+
type: 'string',
|
|
968
|
+
const: 'not',
|
|
969
|
+
description: "Operator type: 'not' (logical NOT)",
|
|
970
|
+
},
|
|
971
|
+
arg: {
|
|
972
|
+
type: 'union',
|
|
973
|
+
refs: [
|
|
974
|
+
'lex:org.hypercerts.defs#workScopeAll',
|
|
975
|
+
'lex:org.hypercerts.defs#workScopeAny',
|
|
976
|
+
'lex:org.hypercerts.defs#workScopeNot',
|
|
977
|
+
'lex:org.hypercerts.defs#workScopeAtom',
|
|
978
|
+
],
|
|
979
|
+
description: 'Work scope expression that must not be satisfied',
|
|
980
|
+
},
|
|
981
|
+
},
|
|
982
|
+
},
|
|
983
|
+
workScopeAtom: {
|
|
984
|
+
type: 'object',
|
|
985
|
+
required: ['atom'],
|
|
986
|
+
description: 'Atomic scope reference: a strong reference to a scope record.',
|
|
987
|
+
properties: {
|
|
988
|
+
atom: {
|
|
989
|
+
type: 'ref',
|
|
990
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
991
|
+
description: 'Strong reference to an org.hypercerts.helper.workScopeTag record',
|
|
992
|
+
},
|
|
993
|
+
},
|
|
994
|
+
},
|
|
870
995
|
},
|
|
871
996
|
},
|
|
872
997
|
OrgHypercertsFundingReceipt: {
|
|
@@ -935,11 +1060,76 @@ const schemaDict = {
|
|
|
935
1060
|
},
|
|
936
1061
|
},
|
|
937
1062
|
},
|
|
1063
|
+
OrgHypercertsHelperWorkScopeTag: {
|
|
1064
|
+
lexicon: 1,
|
|
1065
|
+
id: 'org.hypercerts.helper.workScopeTag',
|
|
1066
|
+
defs: {
|
|
1067
|
+
main: {
|
|
1068
|
+
type: 'record',
|
|
1069
|
+
description: 'A reusable scope atom for work scope logic expressions. Scopes can represent topics, languages, domains, deliverables, methods, regions, tags, or other categorical labels.',
|
|
1070
|
+
key: 'tid',
|
|
1071
|
+
record: {
|
|
1072
|
+
type: 'object',
|
|
1073
|
+
required: ['createdAt', 'key', 'label'],
|
|
1074
|
+
properties: {
|
|
1075
|
+
createdAt: {
|
|
1076
|
+
type: 'string',
|
|
1077
|
+
format: 'datetime',
|
|
1078
|
+
description: 'Client-declared timestamp when this record was originally created',
|
|
1079
|
+
},
|
|
1080
|
+
key: {
|
|
1081
|
+
type: 'string',
|
|
1082
|
+
description: "Lowercase, hyphenated machine-readable key for this scope (e.g., 'ipfs', 'go-lang', 'filecoin').",
|
|
1083
|
+
maxLength: 120,
|
|
1084
|
+
},
|
|
1085
|
+
label: {
|
|
1086
|
+
type: 'string',
|
|
1087
|
+
description: 'Human-readable label for this scope.',
|
|
1088
|
+
maxLength: 200,
|
|
1089
|
+
},
|
|
1090
|
+
kind: {
|
|
1091
|
+
type: 'string',
|
|
1092
|
+
description: 'Category type of this scope. Recommended values: topic, language, domain, method, tag.',
|
|
1093
|
+
maxLength: 50,
|
|
1094
|
+
},
|
|
1095
|
+
description: {
|
|
1096
|
+
type: 'string',
|
|
1097
|
+
description: 'Optional longer description of this scope.',
|
|
1098
|
+
maxLength: 10000,
|
|
1099
|
+
maxGraphemes: 1000,
|
|
1100
|
+
},
|
|
1101
|
+
parent: {
|
|
1102
|
+
type: 'ref',
|
|
1103
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
1104
|
+
description: 'Optional strong reference to a parent scope record for taxonomy/hierarchy support.',
|
|
1105
|
+
},
|
|
1106
|
+
aliases: {
|
|
1107
|
+
type: 'array',
|
|
1108
|
+
items: {
|
|
1109
|
+
type: 'string',
|
|
1110
|
+
maxLength: 200,
|
|
1111
|
+
},
|
|
1112
|
+
maxLength: 50,
|
|
1113
|
+
description: 'Optional array of alternative names or identifiers for this scope.',
|
|
1114
|
+
},
|
|
1115
|
+
externalReference: {
|
|
1116
|
+
type: 'union',
|
|
1117
|
+
refs: [
|
|
1118
|
+
'lex:org.hypercerts.defs#uri',
|
|
1119
|
+
'lex:org.hypercerts.defs#smallBlob',
|
|
1120
|
+
],
|
|
1121
|
+
description: 'Optional external reference for this scope as a URI or blob.',
|
|
1122
|
+
},
|
|
1123
|
+
},
|
|
1124
|
+
},
|
|
1125
|
+
},
|
|
1126
|
+
},
|
|
1127
|
+
},
|
|
938
1128
|
};
|
|
939
1129
|
const schemas = Object.values(schemaDict);
|
|
940
1130
|
const lexicons = new Lexicons(schemas);
|
|
941
|
-
function validate$
|
|
942
|
-
return (requiredType ? is$typed$
|
|
1131
|
+
function validate$g(v, id, hash, requiredType) {
|
|
1132
|
+
return (requiredType ? is$typed$g : maybe$typed)(v, id, hash)
|
|
943
1133
|
? lexicons.validate(`${id}#${hash}`, v)
|
|
944
1134
|
: {
|
|
945
1135
|
success: false,
|
|
@@ -963,11 +1153,12 @@ const ids = {
|
|
|
963
1153
|
OrgHypercertsClaimRights: 'org.hypercerts.claim.rights',
|
|
964
1154
|
OrgHypercertsDefs: 'org.hypercerts.defs',
|
|
965
1155
|
OrgHypercertsFundingReceipt: 'org.hypercerts.funding.receipt',
|
|
1156
|
+
OrgHypercertsHelperWorkScopeTag: 'org.hypercerts.helper.workScopeTag',
|
|
966
1157
|
};
|
|
967
1158
|
|
|
968
|
-
var lexicon$
|
|
969
|
-
var id$
|
|
970
|
-
var defs$
|
|
1159
|
+
var lexicon$g = 1;
|
|
1160
|
+
var id$w = "app.certified.badge.award";
|
|
1161
|
+
var defs$i = {
|
|
971
1162
|
main: {
|
|
972
1163
|
type: "record",
|
|
973
1164
|
description: "Records a badge award to a user, project, or activity claim.",
|
|
@@ -1007,14 +1198,14 @@ var defs$h = {
|
|
|
1007
1198
|
}
|
|
1008
1199
|
};
|
|
1009
1200
|
var BADGE_AWARD_LEXICON_JSON = {
|
|
1010
|
-
lexicon: lexicon$
|
|
1011
|
-
id: id$
|
|
1012
|
-
defs: defs$
|
|
1201
|
+
lexicon: lexicon$g,
|
|
1202
|
+
id: id$w,
|
|
1203
|
+
defs: defs$i
|
|
1013
1204
|
};
|
|
1014
1205
|
|
|
1015
|
-
var lexicon$
|
|
1016
|
-
var id$
|
|
1017
|
-
var defs$
|
|
1206
|
+
var lexicon$f = 1;
|
|
1207
|
+
var id$v = "app.certified.badge.definition";
|
|
1208
|
+
var defs$h = {
|
|
1018
1209
|
main: {
|
|
1019
1210
|
type: "record",
|
|
1020
1211
|
description: "Defines a badge that can be awarded via badge award records to users, projects, or activity claims.",
|
|
@@ -1069,14 +1260,14 @@ var defs$g = {
|
|
|
1069
1260
|
}
|
|
1070
1261
|
};
|
|
1071
1262
|
var BADGE_DEFINITION_LEXICON_JSON = {
|
|
1072
|
-
lexicon: lexicon$
|
|
1073
|
-
id: id$
|
|
1074
|
-
defs: defs$
|
|
1263
|
+
lexicon: lexicon$f,
|
|
1264
|
+
id: id$v,
|
|
1265
|
+
defs: defs$h
|
|
1075
1266
|
};
|
|
1076
1267
|
|
|
1077
|
-
var lexicon$
|
|
1078
|
-
var id$
|
|
1079
|
-
var defs$
|
|
1268
|
+
var lexicon$e = 1;
|
|
1269
|
+
var id$u = "app.certified.badge.response";
|
|
1270
|
+
var defs$g = {
|
|
1080
1271
|
main: {
|
|
1081
1272
|
type: "record",
|
|
1082
1273
|
description: "Recipient response to a badge award.",
|
|
@@ -1116,15 +1307,15 @@ var defs$f = {
|
|
|
1116
1307
|
}
|
|
1117
1308
|
};
|
|
1118
1309
|
var BADGE_RESPONSE_LEXICON_JSON = {
|
|
1119
|
-
lexicon: lexicon$
|
|
1120
|
-
id: id$
|
|
1121
|
-
defs: defs$
|
|
1310
|
+
lexicon: lexicon$e,
|
|
1311
|
+
id: id$u,
|
|
1312
|
+
defs: defs$g
|
|
1122
1313
|
};
|
|
1123
1314
|
|
|
1124
|
-
var lexicon$
|
|
1125
|
-
var id$
|
|
1315
|
+
var lexicon$d = 1;
|
|
1316
|
+
var id$t = "app.certified.defs";
|
|
1126
1317
|
var description$1 = "Common type definitions used across certified protocols.";
|
|
1127
|
-
var defs$
|
|
1318
|
+
var defs$f = {
|
|
1128
1319
|
did: {
|
|
1129
1320
|
type: "string",
|
|
1130
1321
|
format: "did",
|
|
@@ -1132,15 +1323,15 @@ var defs$e = {
|
|
|
1132
1323
|
}
|
|
1133
1324
|
};
|
|
1134
1325
|
var CERTIFIED_DEFS_LEXICON_JSON = {
|
|
1135
|
-
lexicon: lexicon$
|
|
1136
|
-
id: id$
|
|
1326
|
+
lexicon: lexicon$d,
|
|
1327
|
+
id: id$t,
|
|
1137
1328
|
description: description$1,
|
|
1138
|
-
defs: defs$
|
|
1329
|
+
defs: defs$f
|
|
1139
1330
|
};
|
|
1140
1331
|
|
|
1141
|
-
var lexicon$
|
|
1142
|
-
var id$
|
|
1143
|
-
var defs$
|
|
1332
|
+
var lexicon$c = 1;
|
|
1333
|
+
var id$s = "app.certified.location";
|
|
1334
|
+
var defs$e = {
|
|
1144
1335
|
main: {
|
|
1145
1336
|
type: "record",
|
|
1146
1337
|
description: "A location reference",
|
|
@@ -1205,15 +1396,15 @@ var defs$d = {
|
|
|
1205
1396
|
}
|
|
1206
1397
|
};
|
|
1207
1398
|
var LOCATION_LEXICON_JSON = {
|
|
1208
|
-
lexicon: lexicon$
|
|
1209
|
-
id: id$
|
|
1210
|
-
defs: defs$
|
|
1399
|
+
lexicon: lexicon$c,
|
|
1400
|
+
id: id$s,
|
|
1401
|
+
defs: defs$e
|
|
1211
1402
|
};
|
|
1212
1403
|
|
|
1213
|
-
var lexicon$
|
|
1214
|
-
var id$
|
|
1404
|
+
var lexicon$b = 1;
|
|
1405
|
+
var id$r = "com.atproto.repo.strongRef";
|
|
1215
1406
|
var description = "A URI with a content-hash fingerprint.";
|
|
1216
|
-
var defs$
|
|
1407
|
+
var defs$d = {
|
|
1217
1408
|
main: {
|
|
1218
1409
|
type: "object",
|
|
1219
1410
|
required: [
|
|
@@ -1233,15 +1424,15 @@ var defs$c = {
|
|
|
1233
1424
|
}
|
|
1234
1425
|
};
|
|
1235
1426
|
var STRONGREF_LEXICON_JSON = {
|
|
1236
|
-
lexicon: lexicon$
|
|
1237
|
-
id: id$
|
|
1427
|
+
lexicon: lexicon$b,
|
|
1428
|
+
id: id$r,
|
|
1238
1429
|
description: description,
|
|
1239
|
-
defs: defs$
|
|
1430
|
+
defs: defs$d
|
|
1240
1431
|
};
|
|
1241
1432
|
|
|
1242
|
-
var lexicon$
|
|
1243
|
-
var id$
|
|
1244
|
-
var defs$
|
|
1433
|
+
var lexicon$a = 1;
|
|
1434
|
+
var id$q = "org.hypercerts.claim.activity";
|
|
1435
|
+
var defs$c = {
|
|
1245
1436
|
main: {
|
|
1246
1437
|
type: "record",
|
|
1247
1438
|
description: "A hypercert record tracking impact work.",
|
|
@@ -1261,16 +1452,32 @@ var defs$b = {
|
|
|
1261
1452
|
},
|
|
1262
1453
|
shortDescription: {
|
|
1263
1454
|
type: "string",
|
|
1264
|
-
description: "Short
|
|
1455
|
+
description: "Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.",
|
|
1265
1456
|
maxLength: 3000,
|
|
1266
1457
|
maxGraphemes: 300
|
|
1267
1458
|
},
|
|
1459
|
+
shortDescriptionFacets: {
|
|
1460
|
+
type: "array",
|
|
1461
|
+
description: "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).",
|
|
1462
|
+
items: {
|
|
1463
|
+
type: "ref",
|
|
1464
|
+
ref: "app.bsky.richtext.facet"
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1268
1467
|
description: {
|
|
1269
1468
|
type: "string",
|
|
1270
|
-
description: "Optional longer description of
|
|
1469
|
+
description: "Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.",
|
|
1271
1470
|
maxLength: 30000,
|
|
1272
1471
|
maxGraphemes: 3000
|
|
1273
1472
|
},
|
|
1473
|
+
descriptionFacets: {
|
|
1474
|
+
type: "array",
|
|
1475
|
+
description: "Rich text annotations for `description` (mentions, URLs, hashtags, etc).",
|
|
1476
|
+
items: {
|
|
1477
|
+
type: "ref",
|
|
1478
|
+
ref: "app.bsky.richtext.facet"
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1274
1481
|
image: {
|
|
1275
1482
|
type: "union",
|
|
1276
1483
|
refs: [
|
|
@@ -1280,9 +1487,14 @@ var defs$b = {
|
|
|
1280
1487
|
description: "The hypercert visual representation as a URI or image blob."
|
|
1281
1488
|
},
|
|
1282
1489
|
workScope: {
|
|
1283
|
-
type: "
|
|
1284
|
-
|
|
1285
|
-
|
|
1490
|
+
type: "union",
|
|
1491
|
+
refs: [
|
|
1492
|
+
"org.hypercerts.defs#workScopeAll",
|
|
1493
|
+
"org.hypercerts.defs#workScopeAny",
|
|
1494
|
+
"org.hypercerts.defs#workScopeNot",
|
|
1495
|
+
"org.hypercerts.defs#workScopeAtom"
|
|
1496
|
+
],
|
|
1497
|
+
description: "Work scope logic expression using boolean operators (all/any/not) and atomic scope references."
|
|
1286
1498
|
},
|
|
1287
1499
|
startDate: {
|
|
1288
1500
|
type: "string",
|
|
@@ -1326,18 +1538,18 @@ var defs$b = {
|
|
|
1326
1538
|
contributor: {
|
|
1327
1539
|
type: "object",
|
|
1328
1540
|
required: [
|
|
1329
|
-
"
|
|
1541
|
+
"contributorIdentity"
|
|
1330
1542
|
],
|
|
1331
1543
|
properties: {
|
|
1332
|
-
|
|
1544
|
+
contributorIdentity: {
|
|
1333
1545
|
type: "union",
|
|
1334
1546
|
refs: [
|
|
1335
1547
|
"#contributorIdentity",
|
|
1336
1548
|
"com.atproto.repo.strongRef"
|
|
1337
1549
|
],
|
|
1338
|
-
description: "Contributor
|
|
1550
|
+
description: "Contributor identity as a string (DID or identifier) via org.hypercerts.claim.activity#contributorIdentity, or a strong reference to a contributor information record."
|
|
1339
1551
|
},
|
|
1340
|
-
|
|
1552
|
+
contributionWeight: {
|
|
1341
1553
|
type: "string",
|
|
1342
1554
|
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."
|
|
1343
1555
|
},
|
|
@@ -1347,7 +1559,7 @@ var defs$b = {
|
|
|
1347
1559
|
"#contributorRole",
|
|
1348
1560
|
"com.atproto.repo.strongRef"
|
|
1349
1561
|
],
|
|
1350
|
-
description: "Contribution details as a string or strong reference to
|
|
1562
|
+
description: "Contribution details as a string via org.hypercerts.claim.activity#contributorRole, or a strong reference to a contribution details record."
|
|
1351
1563
|
}
|
|
1352
1564
|
}
|
|
1353
1565
|
},
|
|
@@ -1360,35 +1572,17 @@ var defs$b = {
|
|
|
1360
1572
|
description: "Contribution details as a string.",
|
|
1361
1573
|
maxLength: 10000,
|
|
1362
1574
|
maxGraphemes: 1000
|
|
1363
|
-
},
|
|
1364
|
-
activityWeight: {
|
|
1365
|
-
type: "object",
|
|
1366
|
-
required: [
|
|
1367
|
-
"activity",
|
|
1368
|
-
"weight"
|
|
1369
|
-
],
|
|
1370
|
-
properties: {
|
|
1371
|
-
activity: {
|
|
1372
|
-
type: "ref",
|
|
1373
|
-
ref: "com.atproto.repo.strongRef",
|
|
1374
|
-
description: "A strong reference to a hypercert activity record. This activity must conform to the lexicon org.hypercerts.claim.activity"
|
|
1375
|
-
},
|
|
1376
|
-
weight: {
|
|
1377
|
-
type: "string",
|
|
1378
|
-
description: "The relative weight/importance of this hypercert activity (stored as a string to avoid float precision issues). Weights can be any positive numeric values and do not need to sum to a specific total; normalization can be performed by the consuming application as needed."
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
1575
|
}
|
|
1382
1576
|
};
|
|
1383
1577
|
var ACTIVITY_LEXICON_JSON = {
|
|
1384
|
-
lexicon: lexicon$
|
|
1385
|
-
id: id$
|
|
1386
|
-
defs: defs$
|
|
1578
|
+
lexicon: lexicon$a,
|
|
1579
|
+
id: id$q,
|
|
1580
|
+
defs: defs$c
|
|
1387
1581
|
};
|
|
1388
1582
|
|
|
1389
|
-
var lexicon$
|
|
1390
|
-
var id$
|
|
1391
|
-
var defs$
|
|
1583
|
+
var lexicon$9 = 1;
|
|
1584
|
+
var id$p = "org.hypercerts.claim.collection";
|
|
1585
|
+
var defs$b = {
|
|
1392
1586
|
main: {
|
|
1393
1587
|
type: "record",
|
|
1394
1588
|
description: "A collection/group of items (activities and/or other collections). Collections support recursive nesting. Use app.certified.location as a sidecar (same TID) for location metadata.",
|
|
@@ -1422,12 +1616,28 @@ var defs$a = {
|
|
|
1422
1616
|
ref: "pub.leaflet.pages.linearDocument#main",
|
|
1423
1617
|
description: "Rich-text description, represented as a Leaflet linear document."
|
|
1424
1618
|
},
|
|
1619
|
+
avatar: {
|
|
1620
|
+
type: "union",
|
|
1621
|
+
refs: [
|
|
1622
|
+
"org.hypercerts.defs#uri",
|
|
1623
|
+
"org.hypercerts.defs#smallImage"
|
|
1624
|
+
],
|
|
1625
|
+
description: "The collection's avatar/profile image as a URI or image blob."
|
|
1626
|
+
},
|
|
1627
|
+
banner: {
|
|
1628
|
+
type: "union",
|
|
1629
|
+
refs: [
|
|
1630
|
+
"org.hypercerts.defs#uri",
|
|
1631
|
+
"org.hypercerts.defs#largeImage"
|
|
1632
|
+
],
|
|
1633
|
+
description: "Larger horizontal image to display behind the collection view."
|
|
1634
|
+
},
|
|
1425
1635
|
items: {
|
|
1426
1636
|
type: "array",
|
|
1427
|
-
description: "Array of
|
|
1637
|
+
description: "Array of items in this collection with optional weights.",
|
|
1428
1638
|
items: {
|
|
1429
1639
|
type: "ref",
|
|
1430
|
-
ref: "
|
|
1640
|
+
ref: "#item"
|
|
1431
1641
|
}
|
|
1432
1642
|
},
|
|
1433
1643
|
createdAt: {
|
|
@@ -1437,17 +1647,34 @@ var defs$a = {
|
|
|
1437
1647
|
}
|
|
1438
1648
|
}
|
|
1439
1649
|
}
|
|
1650
|
+
},
|
|
1651
|
+
item: {
|
|
1652
|
+
type: "object",
|
|
1653
|
+
required: [
|
|
1654
|
+
"itemIdentifier"
|
|
1655
|
+
],
|
|
1656
|
+
properties: {
|
|
1657
|
+
itemIdentifier: {
|
|
1658
|
+
type: "ref",
|
|
1659
|
+
ref: "com.atproto.repo.strongRef",
|
|
1660
|
+
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)."
|
|
1661
|
+
},
|
|
1662
|
+
itemWeight: {
|
|
1663
|
+
type: "string",
|
|
1664
|
+
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."
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1440
1667
|
}
|
|
1441
1668
|
};
|
|
1442
1669
|
var COLLECTION_LEXICON_JSON = {
|
|
1443
|
-
lexicon: lexicon$
|
|
1444
|
-
id: id$
|
|
1445
|
-
defs: defs$
|
|
1670
|
+
lexicon: lexicon$9,
|
|
1671
|
+
id: id$p,
|
|
1672
|
+
defs: defs$b
|
|
1446
1673
|
};
|
|
1447
1674
|
|
|
1448
|
-
var lexicon$
|
|
1449
|
-
var id$
|
|
1450
|
-
var defs$
|
|
1675
|
+
var lexicon$8 = 1;
|
|
1676
|
+
var id$o = "org.hypercerts.claim.contributionDetails";
|
|
1677
|
+
var defs$a = {
|
|
1451
1678
|
main: {
|
|
1452
1679
|
type: "record",
|
|
1453
1680
|
description: "Details about a specific contribution including role, description, and timeframe.",
|
|
@@ -1489,14 +1716,14 @@ var defs$9 = {
|
|
|
1489
1716
|
}
|
|
1490
1717
|
};
|
|
1491
1718
|
var CONTRIBUTIONDETAILS_LEXICON_JSON = {
|
|
1492
|
-
lexicon: lexicon$
|
|
1493
|
-
id: id$
|
|
1494
|
-
defs: defs$
|
|
1719
|
+
lexicon: lexicon$8,
|
|
1720
|
+
id: id$o,
|
|
1721
|
+
defs: defs$a
|
|
1495
1722
|
};
|
|
1496
1723
|
|
|
1497
|
-
var lexicon$
|
|
1498
|
-
var id$
|
|
1499
|
-
var defs$
|
|
1724
|
+
var lexicon$7 = 1;
|
|
1725
|
+
var id$n = "org.hypercerts.claim.contributorInformation";
|
|
1726
|
+
var defs$9 = {
|
|
1500
1727
|
main: {
|
|
1501
1728
|
type: "record",
|
|
1502
1729
|
description: "Contributor information including identifier, display name, and image.",
|
|
@@ -1534,14 +1761,14 @@ var defs$8 = {
|
|
|
1534
1761
|
}
|
|
1535
1762
|
};
|
|
1536
1763
|
var CONTRIBUTORINFORMATION_LEXICON_JSON = {
|
|
1537
|
-
lexicon: lexicon$
|
|
1538
|
-
id: id$
|
|
1539
|
-
defs: defs$
|
|
1764
|
+
lexicon: lexicon$7,
|
|
1765
|
+
id: id$n,
|
|
1766
|
+
defs: defs$9
|
|
1540
1767
|
};
|
|
1541
1768
|
|
|
1542
|
-
var lexicon$
|
|
1543
|
-
var id$
|
|
1544
|
-
var defs$
|
|
1769
|
+
var lexicon$6 = 1;
|
|
1770
|
+
var id$m = "org.hypercerts.claim.evaluation";
|
|
1771
|
+
var defs$8 = {
|
|
1545
1772
|
score: {
|
|
1546
1773
|
type: "object",
|
|
1547
1774
|
description: "Overall score for an evaluation on a numeric scale.",
|
|
@@ -1638,14 +1865,14 @@ var defs$7 = {
|
|
|
1638
1865
|
}
|
|
1639
1866
|
};
|
|
1640
1867
|
var EVALUATION_LEXICON_JSON = {
|
|
1641
|
-
lexicon: lexicon$
|
|
1642
|
-
id: id$
|
|
1643
|
-
defs: defs$
|
|
1868
|
+
lexicon: lexicon$6,
|
|
1869
|
+
id: id$m,
|
|
1870
|
+
defs: defs$8
|
|
1644
1871
|
};
|
|
1645
1872
|
|
|
1646
|
-
var lexicon$
|
|
1647
|
-
var id$
|
|
1648
|
-
var defs$
|
|
1873
|
+
var lexicon$5 = 1;
|
|
1874
|
+
var id$l = "org.hypercerts.claim.evidence";
|
|
1875
|
+
var defs$7 = {
|
|
1649
1876
|
main: {
|
|
1650
1877
|
type: "record",
|
|
1651
1878
|
description: "A piece of evidence related to a hypercert record (e.g. an activity, project, claim, or evaluation). Evidence may support, clarify, or challenge the referenced subject.",
|
|
@@ -1707,14 +1934,14 @@ var defs$6 = {
|
|
|
1707
1934
|
}
|
|
1708
1935
|
};
|
|
1709
1936
|
var EVIDENCE_LEXICON_JSON = {
|
|
1710
|
-
lexicon: lexicon$
|
|
1711
|
-
id: id$
|
|
1712
|
-
defs: defs$
|
|
1937
|
+
lexicon: lexicon$5,
|
|
1938
|
+
id: id$l,
|
|
1939
|
+
defs: defs$7
|
|
1713
1940
|
};
|
|
1714
1941
|
|
|
1715
|
-
var lexicon$
|
|
1716
|
-
var id$
|
|
1717
|
-
var defs$
|
|
1942
|
+
var lexicon$4 = 1;
|
|
1943
|
+
var id$k = "org.hypercerts.claim.measurement";
|
|
1944
|
+
var defs$6 = {
|
|
1718
1945
|
main: {
|
|
1719
1946
|
type: "record",
|
|
1720
1947
|
description: "Measurement data related to a hypercert record (e.g. an activity and its impact).",
|
|
@@ -1786,14 +2013,14 @@ var defs$5 = {
|
|
|
1786
2013
|
}
|
|
1787
2014
|
};
|
|
1788
2015
|
var MEASUREMENT_LEXICON_JSON = {
|
|
1789
|
-
lexicon: lexicon$
|
|
1790
|
-
id: id$
|
|
1791
|
-
defs: defs$
|
|
2016
|
+
lexicon: lexicon$4,
|
|
2017
|
+
id: id$k,
|
|
2018
|
+
defs: defs$6
|
|
1792
2019
|
};
|
|
1793
2020
|
|
|
1794
|
-
var lexicon$
|
|
1795
|
-
var id$
|
|
1796
|
-
var defs$
|
|
2021
|
+
var lexicon$3 = 1;
|
|
2022
|
+
var id$j = "org.hypercerts.claim.rights";
|
|
2023
|
+
var defs$5 = {
|
|
1797
2024
|
main: {
|
|
1798
2025
|
type: "record",
|
|
1799
2026
|
description: "Describes the rights that a contributor and/or an owner has, such as whether the hypercert can be sold, transferred, and under what conditions.",
|
|
@@ -1839,14 +2066,14 @@ var defs$4 = {
|
|
|
1839
2066
|
}
|
|
1840
2067
|
};
|
|
1841
2068
|
var RIGHTS_LEXICON_JSON = {
|
|
1842
|
-
lexicon: lexicon$
|
|
1843
|
-
id: id$
|
|
1844
|
-
defs: defs$
|
|
2069
|
+
lexicon: lexicon$3,
|
|
2070
|
+
id: id$j,
|
|
2071
|
+
defs: defs$5
|
|
1845
2072
|
};
|
|
1846
2073
|
|
|
1847
|
-
var lexicon$
|
|
1848
|
-
var id$
|
|
1849
|
-
var defs$
|
|
2074
|
+
var lexicon$2 = 1;
|
|
2075
|
+
var id$i = "org.hypercerts.defs";
|
|
2076
|
+
var defs$4 = {
|
|
1850
2077
|
uri: {
|
|
1851
2078
|
type: "object",
|
|
1852
2079
|
required: [
|
|
@@ -1935,17 +2162,116 @@ var defs$3 = {
|
|
|
1935
2162
|
description: "Image (up to 10MB)"
|
|
1936
2163
|
}
|
|
1937
2164
|
}
|
|
2165
|
+
},
|
|
2166
|
+
workScopeAll: {
|
|
2167
|
+
type: "object",
|
|
2168
|
+
required: [
|
|
2169
|
+
"op",
|
|
2170
|
+
"args"
|
|
2171
|
+
],
|
|
2172
|
+
description: "Logical AND operation: all arguments must be satisfied.",
|
|
2173
|
+
properties: {
|
|
2174
|
+
op: {
|
|
2175
|
+
type: "string",
|
|
2176
|
+
"const": "all",
|
|
2177
|
+
description: "Operator type: 'all' (logical AND)"
|
|
2178
|
+
},
|
|
2179
|
+
args: {
|
|
2180
|
+
type: "array",
|
|
2181
|
+
items: {
|
|
2182
|
+
type: "union",
|
|
2183
|
+
refs: [
|
|
2184
|
+
"#workScopeAll",
|
|
2185
|
+
"#workScopeAny",
|
|
2186
|
+
"#workScopeNot",
|
|
2187
|
+
"#workScopeAtom"
|
|
2188
|
+
]
|
|
2189
|
+
},
|
|
2190
|
+
minLength: 1,
|
|
2191
|
+
maxLength: 100,
|
|
2192
|
+
description: "Array of work scope expressions that must all be satisfied"
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2196
|
+
workScopeAny: {
|
|
2197
|
+
type: "object",
|
|
2198
|
+
required: [
|
|
2199
|
+
"op",
|
|
2200
|
+
"args"
|
|
2201
|
+
],
|
|
2202
|
+
description: "Logical OR operation: at least one argument must be satisfied.",
|
|
2203
|
+
properties: {
|
|
2204
|
+
op: {
|
|
2205
|
+
type: "string",
|
|
2206
|
+
"const": "any",
|
|
2207
|
+
description: "Operator type: 'any' (logical OR)"
|
|
2208
|
+
},
|
|
2209
|
+
args: {
|
|
2210
|
+
type: "array",
|
|
2211
|
+
items: {
|
|
2212
|
+
type: "union",
|
|
2213
|
+
refs: [
|
|
2214
|
+
"#workScopeAll",
|
|
2215
|
+
"#workScopeAny",
|
|
2216
|
+
"#workScopeNot",
|
|
2217
|
+
"#workScopeAtom"
|
|
2218
|
+
]
|
|
2219
|
+
},
|
|
2220
|
+
minLength: 1,
|
|
2221
|
+
maxLength: 100,
|
|
2222
|
+
description: "Array of work scope expressions, at least one of which must be satisfied"
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2226
|
+
workScopeNot: {
|
|
2227
|
+
type: "object",
|
|
2228
|
+
required: [
|
|
2229
|
+
"op",
|
|
2230
|
+
"arg"
|
|
2231
|
+
],
|
|
2232
|
+
description: "Logical NOT operation: the argument must not be satisfied.",
|
|
2233
|
+
properties: {
|
|
2234
|
+
op: {
|
|
2235
|
+
type: "string",
|
|
2236
|
+
"const": "not",
|
|
2237
|
+
description: "Operator type: 'not' (logical NOT)"
|
|
2238
|
+
},
|
|
2239
|
+
arg: {
|
|
2240
|
+
type: "union",
|
|
2241
|
+
refs: [
|
|
2242
|
+
"#workScopeAll",
|
|
2243
|
+
"#workScopeAny",
|
|
2244
|
+
"#workScopeNot",
|
|
2245
|
+
"#workScopeAtom"
|
|
2246
|
+
],
|
|
2247
|
+
description: "Work scope expression that must not be satisfied"
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
workScopeAtom: {
|
|
2252
|
+
type: "object",
|
|
2253
|
+
required: [
|
|
2254
|
+
"atom"
|
|
2255
|
+
],
|
|
2256
|
+
description: "Atomic scope reference: a strong reference to a scope record.",
|
|
2257
|
+
properties: {
|
|
2258
|
+
atom: {
|
|
2259
|
+
type: "ref",
|
|
2260
|
+
ref: "com.atproto.repo.strongRef",
|
|
2261
|
+
description: "Strong reference to an org.hypercerts.helper.workScopeTag record"
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
1938
2264
|
}
|
|
1939
2265
|
};
|
|
1940
2266
|
var HYPERCERTS_DEFS_LEXICON_JSON = {
|
|
1941
|
-
lexicon: lexicon$
|
|
1942
|
-
id: id$
|
|
1943
|
-
defs: defs$
|
|
2267
|
+
lexicon: lexicon$2,
|
|
2268
|
+
id: id$i,
|
|
2269
|
+
defs: defs$4
|
|
1944
2270
|
};
|
|
1945
2271
|
|
|
1946
|
-
var lexicon = 1;
|
|
1947
|
-
var id$
|
|
1948
|
-
var defs$
|
|
2272
|
+
var lexicon$1 = 1;
|
|
2273
|
+
var id$h = "org.hypercerts.funding.receipt";
|
|
2274
|
+
var defs$3 = {
|
|
1949
2275
|
main: {
|
|
1950
2276
|
type: "record",
|
|
1951
2277
|
description: "Records a funding receipt for a payment from one user to another user. It may be recorded by the recipient, by the sender, or by a third party. The sender may remain anonymous.",
|
|
@@ -2014,13 +2340,104 @@ var defs$2 = {
|
|
|
2014
2340
|
}
|
|
2015
2341
|
};
|
|
2016
2342
|
var FUNDING_RECEIPT_LEXICON_JSON = {
|
|
2343
|
+
lexicon: lexicon$1,
|
|
2344
|
+
id: id$h,
|
|
2345
|
+
defs: defs$3
|
|
2346
|
+
};
|
|
2347
|
+
|
|
2348
|
+
var lexicon = 1;
|
|
2349
|
+
var id$g = "org.hypercerts.helper.workScopeTag";
|
|
2350
|
+
var defs$2 = {
|
|
2351
|
+
main: {
|
|
2352
|
+
type: "record",
|
|
2353
|
+
description: "A reusable scope atom for work scope logic expressions. Scopes can represent topics, languages, domains, deliverables, methods, regions, tags, or other categorical labels.",
|
|
2354
|
+
key: "tid",
|
|
2355
|
+
record: {
|
|
2356
|
+
type: "object",
|
|
2357
|
+
required: [
|
|
2358
|
+
"createdAt",
|
|
2359
|
+
"key",
|
|
2360
|
+
"label"
|
|
2361
|
+
],
|
|
2362
|
+
properties: {
|
|
2363
|
+
createdAt: {
|
|
2364
|
+
type: "string",
|
|
2365
|
+
format: "datetime",
|
|
2366
|
+
description: "Client-declared timestamp when this record was originally created"
|
|
2367
|
+
},
|
|
2368
|
+
key: {
|
|
2369
|
+
type: "string",
|
|
2370
|
+
description: "Lowercase, hyphenated machine-readable key for this scope (e.g., 'ipfs', 'go-lang', 'filecoin').",
|
|
2371
|
+
maxLength: 120
|
|
2372
|
+
},
|
|
2373
|
+
label: {
|
|
2374
|
+
type: "string",
|
|
2375
|
+
description: "Human-readable label for this scope.",
|
|
2376
|
+
maxLength: 200
|
|
2377
|
+
},
|
|
2378
|
+
kind: {
|
|
2379
|
+
type: "string",
|
|
2380
|
+
description: "Category type of this scope. Recommended values: topic, language, domain, method, tag.",
|
|
2381
|
+
maxLength: 50
|
|
2382
|
+
},
|
|
2383
|
+
description: {
|
|
2384
|
+
type: "string",
|
|
2385
|
+
description: "Optional longer description of this scope.",
|
|
2386
|
+
maxLength: 10000,
|
|
2387
|
+
maxGraphemes: 1000
|
|
2388
|
+
},
|
|
2389
|
+
parent: {
|
|
2390
|
+
type: "ref",
|
|
2391
|
+
ref: "com.atproto.repo.strongRef",
|
|
2392
|
+
description: "Optional strong reference to a parent scope record for taxonomy/hierarchy support."
|
|
2393
|
+
},
|
|
2394
|
+
aliases: {
|
|
2395
|
+
type: "array",
|
|
2396
|
+
items: {
|
|
2397
|
+
type: "string",
|
|
2398
|
+
maxLength: 200
|
|
2399
|
+
},
|
|
2400
|
+
maxLength: 50,
|
|
2401
|
+
description: "Optional array of alternative names or identifiers for this scope."
|
|
2402
|
+
},
|
|
2403
|
+
externalReference: {
|
|
2404
|
+
type: "union",
|
|
2405
|
+
refs: [
|
|
2406
|
+
"org.hypercerts.defs#uri",
|
|
2407
|
+
"org.hypercerts.defs#smallBlob"
|
|
2408
|
+
],
|
|
2409
|
+
description: "Optional external reference for this scope as a URI or blob."
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
};
|
|
2415
|
+
var HELPER_WORKSCOPETAG_LEXICON_JSON = {
|
|
2017
2416
|
lexicon: lexicon,
|
|
2018
|
-
id: id$
|
|
2417
|
+
id: id$g,
|
|
2019
2418
|
defs: defs$2
|
|
2020
2419
|
};
|
|
2021
2420
|
|
|
2022
|
-
const is$typed$
|
|
2023
|
-
const id$
|
|
2421
|
+
const is$typed$f = is$typed$g, validate$f = validate$g;
|
|
2422
|
+
const id$f = 'app.certified.badge.award';
|
|
2423
|
+
const hashMain$e = 'main';
|
|
2424
|
+
function isMain$e(v) {
|
|
2425
|
+
return is$typed$f(v, id$f, hashMain$e);
|
|
2426
|
+
}
|
|
2427
|
+
function validateMain$e(v) {
|
|
2428
|
+
return validate$f(v, id$f, hashMain$e, true);
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
var award = /*#__PURE__*/Object.freeze({
|
|
2432
|
+
__proto__: null,
|
|
2433
|
+
isMain: isMain$e,
|
|
2434
|
+
isRecord: isMain$e,
|
|
2435
|
+
validateMain: validateMain$e,
|
|
2436
|
+
validateRecord: validateMain$e
|
|
2437
|
+
});
|
|
2438
|
+
|
|
2439
|
+
const is$typed$e = is$typed$g, validate$e = validate$g;
|
|
2440
|
+
const id$e = 'app.certified.badge.definition';
|
|
2024
2441
|
const hashMain$d = 'main';
|
|
2025
2442
|
function isMain$d(v) {
|
|
2026
2443
|
return is$typed$e(v, id$e, hashMain$d);
|
|
@@ -2029,7 +2446,7 @@ function validateMain$d(v) {
|
|
|
2029
2446
|
return validate$e(v, id$e, hashMain$d, true);
|
|
2030
2447
|
}
|
|
2031
2448
|
|
|
2032
|
-
var
|
|
2449
|
+
var definition = /*#__PURE__*/Object.freeze({
|
|
2033
2450
|
__proto__: null,
|
|
2034
2451
|
isMain: isMain$d,
|
|
2035
2452
|
isRecord: isMain$d,
|
|
@@ -2037,8 +2454,8 @@ var award = /*#__PURE__*/Object.freeze({
|
|
|
2037
2454
|
validateRecord: validateMain$d
|
|
2038
2455
|
});
|
|
2039
2456
|
|
|
2040
|
-
const is$typed$d = is$typed$
|
|
2041
|
-
const id$d = 'app.certified.badge.
|
|
2457
|
+
const is$typed$d = is$typed$g, validate$d = validate$g;
|
|
2458
|
+
const id$d = 'app.certified.badge.response';
|
|
2042
2459
|
const hashMain$c = 'main';
|
|
2043
2460
|
function isMain$c(v) {
|
|
2044
2461
|
return is$typed$d(v, id$d, hashMain$c);
|
|
@@ -2047,7 +2464,7 @@ function validateMain$c(v) {
|
|
|
2047
2464
|
return validate$d(v, id$d, hashMain$c, true);
|
|
2048
2465
|
}
|
|
2049
2466
|
|
|
2050
|
-
var
|
|
2467
|
+
var response = /*#__PURE__*/Object.freeze({
|
|
2051
2468
|
__proto__: null,
|
|
2052
2469
|
isMain: isMain$c,
|
|
2053
2470
|
isRecord: isMain$c,
|
|
@@ -2055,8 +2472,12 @@ var definition = /*#__PURE__*/Object.freeze({
|
|
|
2055
2472
|
validateRecord: validateMain$c
|
|
2056
2473
|
});
|
|
2057
2474
|
|
|
2058
|
-
|
|
2059
|
-
|
|
2475
|
+
var defs$1 = /*#__PURE__*/Object.freeze({
|
|
2476
|
+
__proto__: null
|
|
2477
|
+
});
|
|
2478
|
+
|
|
2479
|
+
const is$typed$c = is$typed$g, validate$c = validate$g;
|
|
2480
|
+
const id$c = 'app.certified.location';
|
|
2060
2481
|
const hashMain$b = 'main';
|
|
2061
2482
|
function isMain$b(v) {
|
|
2062
2483
|
return is$typed$c(v, id$c, hashMain$b);
|
|
@@ -2065,7 +2486,7 @@ function validateMain$b(v) {
|
|
|
2065
2486
|
return validate$c(v, id$c, hashMain$b, true);
|
|
2066
2487
|
}
|
|
2067
2488
|
|
|
2068
|
-
var
|
|
2489
|
+
var location = /*#__PURE__*/Object.freeze({
|
|
2069
2490
|
__proto__: null,
|
|
2070
2491
|
isMain: isMain$b,
|
|
2071
2492
|
isRecord: isMain$b,
|
|
@@ -2073,46 +2494,51 @@ var response = /*#__PURE__*/Object.freeze({
|
|
|
2073
2494
|
validateRecord: validateMain$b
|
|
2074
2495
|
});
|
|
2075
2496
|
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
});
|
|
2079
|
-
|
|
2080
|
-
const is$typed$b = is$typed$f, validate$b = validate$f;
|
|
2081
|
-
const id$b = 'app.certified.location';
|
|
2497
|
+
const is$typed$b = is$typed$g, validate$b = validate$g;
|
|
2498
|
+
const id$b = 'com.atproto.repo.strongRef';
|
|
2082
2499
|
const hashMain$a = 'main';
|
|
2083
2500
|
function isMain$a(v) {
|
|
2084
2501
|
return is$typed$b(v, id$b, hashMain$a);
|
|
2085
2502
|
}
|
|
2086
2503
|
function validateMain$a(v) {
|
|
2087
|
-
return validate$b(v, id$b, hashMain$a
|
|
2504
|
+
return validate$b(v, id$b, hashMain$a);
|
|
2088
2505
|
}
|
|
2089
2506
|
|
|
2090
|
-
var
|
|
2507
|
+
var strongRef = /*#__PURE__*/Object.freeze({
|
|
2091
2508
|
__proto__: null,
|
|
2092
2509
|
isMain: isMain$a,
|
|
2093
|
-
|
|
2094
|
-
validateMain: validateMain$a,
|
|
2095
|
-
validateRecord: validateMain$a
|
|
2510
|
+
validateMain: validateMain$a
|
|
2096
2511
|
});
|
|
2097
2512
|
|
|
2098
|
-
const is$typed$a = is$typed$
|
|
2099
|
-
const id$a = '
|
|
2513
|
+
const is$typed$a = is$typed$g, validate$a = validate$g;
|
|
2514
|
+
const id$a = 'org.hypercerts.claim.activity';
|
|
2100
2515
|
const hashMain$9 = 'main';
|
|
2101
2516
|
function isMain$9(v) {
|
|
2102
2517
|
return is$typed$a(v, id$a, hashMain$9);
|
|
2103
2518
|
}
|
|
2104
2519
|
function validateMain$9(v) {
|
|
2105
|
-
return validate$a(v, id$a, hashMain$9);
|
|
2520
|
+
return validate$a(v, id$a, hashMain$9, true);
|
|
2521
|
+
}
|
|
2522
|
+
const hashContributor = 'contributor';
|
|
2523
|
+
function isContributor(v) {
|
|
2524
|
+
return is$typed$a(v, id$a, hashContributor);
|
|
2525
|
+
}
|
|
2526
|
+
function validateContributor(v) {
|
|
2527
|
+
return validate$a(v, id$a, hashContributor);
|
|
2106
2528
|
}
|
|
2107
2529
|
|
|
2108
|
-
var
|
|
2530
|
+
var activity = /*#__PURE__*/Object.freeze({
|
|
2109
2531
|
__proto__: null,
|
|
2532
|
+
isContributor: isContributor,
|
|
2110
2533
|
isMain: isMain$9,
|
|
2111
|
-
|
|
2534
|
+
isRecord: isMain$9,
|
|
2535
|
+
validateContributor: validateContributor,
|
|
2536
|
+
validateMain: validateMain$9,
|
|
2537
|
+
validateRecord: validateMain$9
|
|
2112
2538
|
});
|
|
2113
2539
|
|
|
2114
|
-
const is$typed$9 = is$typed$
|
|
2115
|
-
const id$9 = 'org.hypercerts.claim.
|
|
2540
|
+
const is$typed$9 = is$typed$g, validate$9 = validate$g;
|
|
2541
|
+
const id$9 = 'org.hypercerts.claim.collection';
|
|
2116
2542
|
const hashMain$8 = 'main';
|
|
2117
2543
|
function isMain$8(v) {
|
|
2118
2544
|
return is$typed$9(v, id$9, hashMain$8);
|
|
@@ -2120,35 +2546,26 @@ function isMain$8(v) {
|
|
|
2120
2546
|
function validateMain$8(v) {
|
|
2121
2547
|
return validate$9(v, id$9, hashMain$8, true);
|
|
2122
2548
|
}
|
|
2123
|
-
const
|
|
2124
|
-
function
|
|
2125
|
-
return is$typed$9(v, id$9,
|
|
2126
|
-
}
|
|
2127
|
-
function validateContributor(v) {
|
|
2128
|
-
return validate$9(v, id$9, hashContributor);
|
|
2129
|
-
}
|
|
2130
|
-
const hashActivityWeight = 'activityWeight';
|
|
2131
|
-
function isActivityWeight(v) {
|
|
2132
|
-
return is$typed$9(v, id$9, hashActivityWeight);
|
|
2549
|
+
const hashItem = 'item';
|
|
2550
|
+
function isItem(v) {
|
|
2551
|
+
return is$typed$9(v, id$9, hashItem);
|
|
2133
2552
|
}
|
|
2134
|
-
function
|
|
2135
|
-
return validate$9(v, id$9,
|
|
2553
|
+
function validateItem(v) {
|
|
2554
|
+
return validate$9(v, id$9, hashItem);
|
|
2136
2555
|
}
|
|
2137
2556
|
|
|
2138
|
-
var
|
|
2557
|
+
var collection = /*#__PURE__*/Object.freeze({
|
|
2139
2558
|
__proto__: null,
|
|
2140
|
-
|
|
2141
|
-
isContributor: isContributor,
|
|
2559
|
+
isItem: isItem,
|
|
2142
2560
|
isMain: isMain$8,
|
|
2143
2561
|
isRecord: isMain$8,
|
|
2144
|
-
|
|
2145
|
-
validateContributor: validateContributor,
|
|
2562
|
+
validateItem: validateItem,
|
|
2146
2563
|
validateMain: validateMain$8,
|
|
2147
2564
|
validateRecord: validateMain$8
|
|
2148
2565
|
});
|
|
2149
2566
|
|
|
2150
|
-
const is$typed$8 = is$typed$
|
|
2151
|
-
const id$8 = 'org.hypercerts.claim.
|
|
2567
|
+
const is$typed$8 = is$typed$g, validate$8 = validate$g;
|
|
2568
|
+
const id$8 = 'org.hypercerts.claim.contributionDetails';
|
|
2152
2569
|
const hashMain$7 = 'main';
|
|
2153
2570
|
function isMain$7(v) {
|
|
2154
2571
|
return is$typed$8(v, id$8, hashMain$7);
|
|
@@ -2157,7 +2574,7 @@ function validateMain$7(v) {
|
|
|
2157
2574
|
return validate$8(v, id$8, hashMain$7, true);
|
|
2158
2575
|
}
|
|
2159
2576
|
|
|
2160
|
-
var
|
|
2577
|
+
var contributionDetails = /*#__PURE__*/Object.freeze({
|
|
2161
2578
|
__proto__: null,
|
|
2162
2579
|
isMain: isMain$7,
|
|
2163
2580
|
isRecord: isMain$7,
|
|
@@ -2165,8 +2582,8 @@ var collection = /*#__PURE__*/Object.freeze({
|
|
|
2165
2582
|
validateRecord: validateMain$7
|
|
2166
2583
|
});
|
|
2167
2584
|
|
|
2168
|
-
const is$typed$7 = is$typed$
|
|
2169
|
-
const id$7 = 'org.hypercerts.claim.
|
|
2585
|
+
const is$typed$7 = is$typed$g, validate$7 = validate$g;
|
|
2586
|
+
const id$7 = 'org.hypercerts.claim.contributorInformation';
|
|
2170
2587
|
const hashMain$6 = 'main';
|
|
2171
2588
|
function isMain$6(v) {
|
|
2172
2589
|
return is$typed$7(v, id$7, hashMain$6);
|
|
@@ -2175,7 +2592,7 @@ function validateMain$6(v) {
|
|
|
2175
2592
|
return validate$7(v, id$7, hashMain$6, true);
|
|
2176
2593
|
}
|
|
2177
2594
|
|
|
2178
|
-
var
|
|
2595
|
+
var contributorInformation = /*#__PURE__*/Object.freeze({
|
|
2179
2596
|
__proto__: null,
|
|
2180
2597
|
isMain: isMain$6,
|
|
2181
2598
|
isRecord: isMain$6,
|
|
@@ -2183,8 +2600,15 @@ var contributionDetails = /*#__PURE__*/Object.freeze({
|
|
|
2183
2600
|
validateRecord: validateMain$6
|
|
2184
2601
|
});
|
|
2185
2602
|
|
|
2186
|
-
const is$typed$6 = is$typed$
|
|
2187
|
-
const id$6 = 'org.hypercerts.claim.
|
|
2603
|
+
const is$typed$6 = is$typed$g, validate$6 = validate$g;
|
|
2604
|
+
const id$6 = 'org.hypercerts.claim.evaluation';
|
|
2605
|
+
const hashScore = 'score';
|
|
2606
|
+
function isScore(v) {
|
|
2607
|
+
return is$typed$6(v, id$6, hashScore);
|
|
2608
|
+
}
|
|
2609
|
+
function validateScore(v) {
|
|
2610
|
+
return validate$6(v, id$6, hashScore);
|
|
2611
|
+
}
|
|
2188
2612
|
const hashMain$5 = 'main';
|
|
2189
2613
|
function isMain$5(v) {
|
|
2190
2614
|
return is$typed$6(v, id$6, hashMain$5);
|
|
@@ -2193,23 +2617,18 @@ function validateMain$5(v) {
|
|
|
2193
2617
|
return validate$6(v, id$6, hashMain$5, true);
|
|
2194
2618
|
}
|
|
2195
2619
|
|
|
2196
|
-
var
|
|
2620
|
+
var evaluation = /*#__PURE__*/Object.freeze({
|
|
2197
2621
|
__proto__: null,
|
|
2198
2622
|
isMain: isMain$5,
|
|
2199
2623
|
isRecord: isMain$5,
|
|
2624
|
+
isScore: isScore,
|
|
2200
2625
|
validateMain: validateMain$5,
|
|
2201
|
-
validateRecord: validateMain$5
|
|
2626
|
+
validateRecord: validateMain$5,
|
|
2627
|
+
validateScore: validateScore
|
|
2202
2628
|
});
|
|
2203
2629
|
|
|
2204
|
-
const is$typed$5 = is$typed$
|
|
2205
|
-
const id$5 = 'org.hypercerts.claim.
|
|
2206
|
-
const hashScore = 'score';
|
|
2207
|
-
function isScore(v) {
|
|
2208
|
-
return is$typed$5(v, id$5, hashScore);
|
|
2209
|
-
}
|
|
2210
|
-
function validateScore(v) {
|
|
2211
|
-
return validate$5(v, id$5, hashScore);
|
|
2212
|
-
}
|
|
2630
|
+
const is$typed$5 = is$typed$g, validate$5 = validate$g;
|
|
2631
|
+
const id$5 = 'org.hypercerts.claim.evidence';
|
|
2213
2632
|
const hashMain$4 = 'main';
|
|
2214
2633
|
function isMain$4(v) {
|
|
2215
2634
|
return is$typed$5(v, id$5, hashMain$4);
|
|
@@ -2218,18 +2637,16 @@ function validateMain$4(v) {
|
|
|
2218
2637
|
return validate$5(v, id$5, hashMain$4, true);
|
|
2219
2638
|
}
|
|
2220
2639
|
|
|
2221
|
-
var
|
|
2640
|
+
var evidence = /*#__PURE__*/Object.freeze({
|
|
2222
2641
|
__proto__: null,
|
|
2223
2642
|
isMain: isMain$4,
|
|
2224
2643
|
isRecord: isMain$4,
|
|
2225
|
-
isScore: isScore,
|
|
2226
2644
|
validateMain: validateMain$4,
|
|
2227
|
-
validateRecord: validateMain$4
|
|
2228
|
-
validateScore: validateScore
|
|
2645
|
+
validateRecord: validateMain$4
|
|
2229
2646
|
});
|
|
2230
2647
|
|
|
2231
|
-
const is$typed$4 = is$typed$
|
|
2232
|
-
const id$4 = 'org.hypercerts.claim.
|
|
2648
|
+
const is$typed$4 = is$typed$g, validate$4 = validate$g;
|
|
2649
|
+
const id$4 = 'org.hypercerts.claim.measurement';
|
|
2233
2650
|
const hashMain$3 = 'main';
|
|
2234
2651
|
function isMain$3(v) {
|
|
2235
2652
|
return is$typed$4(v, id$4, hashMain$3);
|
|
@@ -2238,7 +2655,7 @@ function validateMain$3(v) {
|
|
|
2238
2655
|
return validate$4(v, id$4, hashMain$3, true);
|
|
2239
2656
|
}
|
|
2240
2657
|
|
|
2241
|
-
var
|
|
2658
|
+
var measurement = /*#__PURE__*/Object.freeze({
|
|
2242
2659
|
__proto__: null,
|
|
2243
2660
|
isMain: isMain$3,
|
|
2244
2661
|
isRecord: isMain$3,
|
|
@@ -2246,8 +2663,8 @@ var evidence = /*#__PURE__*/Object.freeze({
|
|
|
2246
2663
|
validateRecord: validateMain$3
|
|
2247
2664
|
});
|
|
2248
2665
|
|
|
2249
|
-
const is$typed$3 = is$typed$
|
|
2250
|
-
const id$3 = 'org.hypercerts.claim.
|
|
2666
|
+
const is$typed$3 = is$typed$g, validate$3 = validate$g;
|
|
2667
|
+
const id$3 = 'org.hypercerts.claim.rights';
|
|
2251
2668
|
const hashMain$2 = 'main';
|
|
2252
2669
|
function isMain$2(v) {
|
|
2253
2670
|
return is$typed$3(v, id$3, hashMain$2);
|
|
@@ -2256,7 +2673,7 @@ function validateMain$2(v) {
|
|
|
2256
2673
|
return validate$3(v, id$3, hashMain$2, true);
|
|
2257
2674
|
}
|
|
2258
2675
|
|
|
2259
|
-
var
|
|
2676
|
+
var rights = /*#__PURE__*/Object.freeze({
|
|
2260
2677
|
__proto__: null,
|
|
2261
2678
|
isMain: isMain$2,
|
|
2262
2679
|
isRecord: isMain$2,
|
|
@@ -2264,60 +2681,70 @@ var measurement = /*#__PURE__*/Object.freeze({
|
|
|
2264
2681
|
validateRecord: validateMain$2
|
|
2265
2682
|
});
|
|
2266
2683
|
|
|
2267
|
-
const is$typed$2 = is$typed$
|
|
2268
|
-
const id$2 = 'org.hypercerts.
|
|
2269
|
-
const hashMain$1 = 'main';
|
|
2270
|
-
function isMain$1(v) {
|
|
2271
|
-
return is$typed$2(v, id$2, hashMain$1);
|
|
2272
|
-
}
|
|
2273
|
-
function validateMain$1(v) {
|
|
2274
|
-
return validate$2(v, id$2, hashMain$1, true);
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
|
-
var rights = /*#__PURE__*/Object.freeze({
|
|
2278
|
-
__proto__: null,
|
|
2279
|
-
isMain: isMain$1,
|
|
2280
|
-
isRecord: isMain$1,
|
|
2281
|
-
validateMain: validateMain$1,
|
|
2282
|
-
validateRecord: validateMain$1
|
|
2283
|
-
});
|
|
2284
|
-
|
|
2285
|
-
const is$typed$1 = is$typed$f, validate$1 = validate$f;
|
|
2286
|
-
const id$1 = 'org.hypercerts.defs';
|
|
2684
|
+
const is$typed$2 = is$typed$g, validate$2 = validate$g;
|
|
2685
|
+
const id$2 = 'org.hypercerts.defs';
|
|
2287
2686
|
const hashUri = 'uri';
|
|
2288
2687
|
function isUri(v) {
|
|
2289
|
-
return is$typed$
|
|
2688
|
+
return is$typed$2(v, id$2, hashUri);
|
|
2290
2689
|
}
|
|
2291
2690
|
function validateUri(v) {
|
|
2292
|
-
return validate$
|
|
2691
|
+
return validate$2(v, id$2, hashUri);
|
|
2293
2692
|
}
|
|
2294
2693
|
const hashSmallBlob = 'smallBlob';
|
|
2295
2694
|
function isSmallBlob(v) {
|
|
2296
|
-
return is$typed$
|
|
2695
|
+
return is$typed$2(v, id$2, hashSmallBlob);
|
|
2297
2696
|
}
|
|
2298
2697
|
function validateSmallBlob(v) {
|
|
2299
|
-
return validate$
|
|
2698
|
+
return validate$2(v, id$2, hashSmallBlob);
|
|
2300
2699
|
}
|
|
2301
2700
|
const hashLargeBlob = 'largeBlob';
|
|
2302
2701
|
function isLargeBlob(v) {
|
|
2303
|
-
return is$typed$
|
|
2702
|
+
return is$typed$2(v, id$2, hashLargeBlob);
|
|
2304
2703
|
}
|
|
2305
2704
|
function validateLargeBlob(v) {
|
|
2306
|
-
return validate$
|
|
2705
|
+
return validate$2(v, id$2, hashLargeBlob);
|
|
2307
2706
|
}
|
|
2308
2707
|
const hashSmallImage = 'smallImage';
|
|
2309
2708
|
function isSmallImage(v) {
|
|
2310
|
-
return is$typed$
|
|
2709
|
+
return is$typed$2(v, id$2, hashSmallImage);
|
|
2311
2710
|
}
|
|
2312
2711
|
function validateSmallImage(v) {
|
|
2313
|
-
return validate$
|
|
2712
|
+
return validate$2(v, id$2, hashSmallImage);
|
|
2314
2713
|
}
|
|
2315
2714
|
const hashLargeImage = 'largeImage';
|
|
2316
2715
|
function isLargeImage(v) {
|
|
2317
|
-
return is$typed$
|
|
2716
|
+
return is$typed$2(v, id$2, hashLargeImage);
|
|
2318
2717
|
}
|
|
2319
2718
|
function validateLargeImage(v) {
|
|
2320
|
-
return validate$
|
|
2719
|
+
return validate$2(v, id$2, hashLargeImage);
|
|
2720
|
+
}
|
|
2721
|
+
const hashWorkScopeAll = 'workScopeAll';
|
|
2722
|
+
function isWorkScopeAll(v) {
|
|
2723
|
+
return is$typed$2(v, id$2, hashWorkScopeAll);
|
|
2724
|
+
}
|
|
2725
|
+
function validateWorkScopeAll(v) {
|
|
2726
|
+
return validate$2(v, id$2, hashWorkScopeAll);
|
|
2727
|
+
}
|
|
2728
|
+
const hashWorkScopeAny = 'workScopeAny';
|
|
2729
|
+
function isWorkScopeAny(v) {
|
|
2730
|
+
return is$typed$2(v, id$2, hashWorkScopeAny);
|
|
2731
|
+
}
|
|
2732
|
+
function validateWorkScopeAny(v) {
|
|
2733
|
+
return validate$2(v, id$2, hashWorkScopeAny);
|
|
2734
|
+
}
|
|
2735
|
+
const hashWorkScopeNot = 'workScopeNot';
|
|
2736
|
+
function isWorkScopeNot(v) {
|
|
2737
|
+
return is$typed$2(v, id$2, hashWorkScopeNot);
|
|
2738
|
+
}
|
|
2739
|
+
function validateWorkScopeNot(v) {
|
|
2740
|
+
return validate$2(v, id$2, hashWorkScopeNot);
|
|
2741
|
+
}
|
|
2742
|
+
const hashWorkScopeAtom = 'workScopeAtom';
|
|
2743
|
+
function isWorkScopeAtom(v) {
|
|
2744
|
+
return is$typed$2(v, id$2, hashWorkScopeAtom);
|
|
2745
|
+
}
|
|
2746
|
+
function validateWorkScopeAtom(v) {
|
|
2747
|
+
return validate$2(v, id$2, hashWorkScopeAtom);
|
|
2321
2748
|
}
|
|
2322
2749
|
|
|
2323
2750
|
var defs = /*#__PURE__*/Object.freeze({
|
|
@@ -2327,15 +2754,41 @@ var defs = /*#__PURE__*/Object.freeze({
|
|
|
2327
2754
|
isSmallBlob: isSmallBlob,
|
|
2328
2755
|
isSmallImage: isSmallImage,
|
|
2329
2756
|
isUri: isUri,
|
|
2757
|
+
isWorkScopeAll: isWorkScopeAll,
|
|
2758
|
+
isWorkScopeAny: isWorkScopeAny,
|
|
2759
|
+
isWorkScopeAtom: isWorkScopeAtom,
|
|
2760
|
+
isWorkScopeNot: isWorkScopeNot,
|
|
2330
2761
|
validateLargeBlob: validateLargeBlob,
|
|
2331
2762
|
validateLargeImage: validateLargeImage,
|
|
2332
2763
|
validateSmallBlob: validateSmallBlob,
|
|
2333
2764
|
validateSmallImage: validateSmallImage,
|
|
2334
|
-
validateUri: validateUri
|
|
2765
|
+
validateUri: validateUri,
|
|
2766
|
+
validateWorkScopeAll: validateWorkScopeAll,
|
|
2767
|
+
validateWorkScopeAny: validateWorkScopeAny,
|
|
2768
|
+
validateWorkScopeAtom: validateWorkScopeAtom,
|
|
2769
|
+
validateWorkScopeNot: validateWorkScopeNot
|
|
2335
2770
|
});
|
|
2336
2771
|
|
|
2337
|
-
const is$typed = is$typed$
|
|
2338
|
-
const id = 'org.hypercerts.funding.receipt';
|
|
2772
|
+
const is$typed$1 = is$typed$g, validate$1 = validate$g;
|
|
2773
|
+
const id$1 = 'org.hypercerts.funding.receipt';
|
|
2774
|
+
const hashMain$1 = 'main';
|
|
2775
|
+
function isMain$1(v) {
|
|
2776
|
+
return is$typed$1(v, id$1, hashMain$1);
|
|
2777
|
+
}
|
|
2778
|
+
function validateMain$1(v) {
|
|
2779
|
+
return validate$1(v, id$1, hashMain$1, true);
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
var receipt = /*#__PURE__*/Object.freeze({
|
|
2783
|
+
__proto__: null,
|
|
2784
|
+
isMain: isMain$1,
|
|
2785
|
+
isRecord: isMain$1,
|
|
2786
|
+
validateMain: validateMain$1,
|
|
2787
|
+
validateRecord: validateMain$1
|
|
2788
|
+
});
|
|
2789
|
+
|
|
2790
|
+
const is$typed = is$typed$g, validate = validate$g;
|
|
2791
|
+
const id = 'org.hypercerts.helper.workScopeTag';
|
|
2339
2792
|
const hashMain = 'main';
|
|
2340
2793
|
function isMain(v) {
|
|
2341
2794
|
return is$typed(v, id, hashMain);
|
|
@@ -2344,7 +2797,7 @@ function validateMain(v) {
|
|
|
2344
2797
|
return validate(v, id, hashMain, true);
|
|
2345
2798
|
}
|
|
2346
2799
|
|
|
2347
|
-
var
|
|
2800
|
+
var workScopeTag = /*#__PURE__*/Object.freeze({
|
|
2348
2801
|
__proto__: null,
|
|
2349
2802
|
isMain: isMain,
|
|
2350
2803
|
isRecord: isMain,
|
|
@@ -2358,7 +2811,7 @@ var receipt = /*#__PURE__*/Object.freeze({
|
|
|
2358
2811
|
* ⚠️ DO NOT EDIT THIS FILE MANUALLY ⚠️
|
|
2359
2812
|
*
|
|
2360
2813
|
* This file is automatically generated by scripts/generate-exports.js
|
|
2361
|
-
* Generated: 2026-01-
|
|
2814
|
+
* Generated: 2026-01-21T23:19:57.583Z
|
|
2362
2815
|
*
|
|
2363
2816
|
* To regenerate this file, run:
|
|
2364
2817
|
* npm run gen-api
|
|
@@ -2391,6 +2844,7 @@ const MEASUREMENT_NSID = "org.hypercerts.claim.measurement";
|
|
|
2391
2844
|
const RIGHTS_NSID = "org.hypercerts.claim.rights";
|
|
2392
2845
|
const HYPERCERTS_DEFS_NSID = "org.hypercerts.defs";
|
|
2393
2846
|
const FUNDING_RECEIPT_NSID = "org.hypercerts.funding.receipt";
|
|
2847
|
+
const HELPER_WORKSCOPETAG_NSID = "org.hypercerts.helper.workScopeTag";
|
|
2394
2848
|
/**
|
|
2395
2849
|
* Collection NSIDs organized by semantic record type.
|
|
2396
2850
|
*
|
|
@@ -2414,6 +2868,7 @@ const HYPERCERTS_NSIDS = {
|
|
|
2414
2868
|
RIGHTS: RIGHTS_NSID,
|
|
2415
2869
|
HYPERCERTS_DEFS: HYPERCERTS_DEFS_NSID,
|
|
2416
2870
|
FUNDING_RECEIPT: FUNDING_RECEIPT_NSID,
|
|
2871
|
+
HELPER_WORKSCOPETAG: HELPER_WORKSCOPETAG_NSID,
|
|
2417
2872
|
};
|
|
2418
2873
|
/**
|
|
2419
2874
|
* Lexicon JSON objects organized by semantic record type.
|
|
@@ -2435,6 +2890,7 @@ const HYPERCERTS_LEXICON_JSON = {
|
|
|
2435
2890
|
RIGHTS: RIGHTS_LEXICON_JSON,
|
|
2436
2891
|
HYPERCERTS_DEFS: HYPERCERTS_DEFS_LEXICON_JSON,
|
|
2437
2892
|
FUNDING_RECEIPT: FUNDING_RECEIPT_LEXICON_JSON,
|
|
2893
|
+
HELPER_WORKSCOPETAG: HELPER_WORKSCOPETAG_LEXICON_JSON,
|
|
2438
2894
|
};
|
|
2439
2895
|
// Individual lexicon objects (from lexicons.get())
|
|
2440
2896
|
const BADGE_AWARD_LEXICON_DOC = lexicons.get(BADGE_AWARD_NSID);
|
|
@@ -2453,6 +2909,7 @@ const MEASUREMENT_LEXICON_DOC = lexicons.get(MEASUREMENT_NSID);
|
|
|
2453
2909
|
const RIGHTS_LEXICON_DOC = lexicons.get(RIGHTS_NSID);
|
|
2454
2910
|
const HYPERCERTS_DEFS_LEXICON_DOC = lexicons.get(HYPERCERTS_DEFS_NSID);
|
|
2455
2911
|
const FUNDING_RECEIPT_LEXICON_DOC = lexicons.get(FUNDING_RECEIPT_NSID);
|
|
2912
|
+
const HELPER_WORKSCOPETAG_LEXICON_DOC = lexicons.get(HELPER_WORKSCOPETAG_NSID);
|
|
2456
2913
|
/**
|
|
2457
2914
|
* Lexicon document objects organized by semantic record type.
|
|
2458
2915
|
*/
|
|
@@ -2473,7 +2930,8 @@ const HYPERCERTS_LEXICON_DOC = {
|
|
|
2473
2930
|
RIGHTS: RIGHTS_LEXICON_DOC,
|
|
2474
2931
|
HYPERCERTS_DEFS: HYPERCERTS_DEFS_LEXICON_DOC,
|
|
2475
2932
|
FUNDING_RECEIPT: FUNDING_RECEIPT_LEXICON_DOC,
|
|
2933
|
+
HELPER_WORKSCOPETAG: HELPER_WORKSCOPETAG_LEXICON_DOC,
|
|
2476
2934
|
};
|
|
2477
2935
|
|
|
2478
|
-
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$
|
|
2936
|
+
export { ACTIVITY_LEXICON_DOC, ACTIVITY_LEXICON_JSON, ACTIVITY_NSID, award as AppCertifiedBadgeAward, definition as AppCertifiedBadgeDefinition, response as AppCertifiedBadgeResponse, defs$1 as AppCertifiedDefs, location as AppCertifiedLocation, BADGE_AWARD_LEXICON_DOC, BADGE_AWARD_LEXICON_JSON, BADGE_AWARD_NSID, BADGE_DEFINITION_LEXICON_DOC, BADGE_DEFINITION_LEXICON_JSON, BADGE_DEFINITION_NSID, BADGE_RESPONSE_LEXICON_DOC, BADGE_RESPONSE_LEXICON_JSON, BADGE_RESPONSE_NSID, CERTIFIED_DEFS_LEXICON_DOC, CERTIFIED_DEFS_LEXICON_JSON, CERTIFIED_DEFS_NSID, COLLECTION_LEXICON_DOC, COLLECTION_LEXICON_JSON, COLLECTION_NSID, CONTRIBUTIONDETAILS_LEXICON_DOC, CONTRIBUTIONDETAILS_LEXICON_JSON, CONTRIBUTIONDETAILS_NSID, CONTRIBUTORINFORMATION_LEXICON_DOC, CONTRIBUTORINFORMATION_LEXICON_JSON, CONTRIBUTORINFORMATION_NSID, strongRef as ComAtprotoRepoStrongRef, EVALUATION_LEXICON_DOC, EVALUATION_LEXICON_JSON, EVALUATION_NSID, EVIDENCE_LEXICON_DOC, EVIDENCE_LEXICON_JSON, EVIDENCE_NSID, FUNDING_RECEIPT_LEXICON_DOC, FUNDING_RECEIPT_LEXICON_JSON, FUNDING_RECEIPT_NSID, HELPER_WORKSCOPETAG_LEXICON_DOC, HELPER_WORKSCOPETAG_LEXICON_JSON, HELPER_WORKSCOPETAG_NSID, HYPERCERTS_DEFS_LEXICON_DOC, HYPERCERTS_DEFS_LEXICON_JSON, HYPERCERTS_DEFS_NSID, HYPERCERTS_LEXICON_DOC, HYPERCERTS_LEXICON_JSON, HYPERCERTS_NSIDS, ids as HYPERCERTS_NSIDS_BY_TYPE, schemas as HYPERCERTS_SCHEMAS, schemaDict as HYPERCERTS_SCHEMA_DICT, LOCATION_LEXICON_DOC, LOCATION_LEXICON_JSON, LOCATION_NSID, MEASUREMENT_LEXICON_DOC, MEASUREMENT_LEXICON_JSON, MEASUREMENT_NSID, activity as OrgHypercertsClaimActivity, collection as OrgHypercertsClaimCollection, contributionDetails as OrgHypercertsClaimContributionDetails, contributorInformation as OrgHypercertsClaimContributorInformation, evaluation as OrgHypercertsClaimEvaluation, evidence as OrgHypercertsClaimEvidence, measurement as OrgHypercertsClaimMeasurement, rights as OrgHypercertsClaimRights, defs as OrgHypercertsDefs, receipt as OrgHypercertsFundingReceipt, workScopeTag as OrgHypercertsHelperWorkScopeTag, RIGHTS_LEXICON_DOC, RIGHTS_LEXICON_JSON, RIGHTS_NSID, STRONGREF_LEXICON_DOC, STRONGREF_LEXICON_JSON, STRONGREF_NSID, asPredicate, is$typed$g as is$typed, lexicons, maybe$typed, validate$g as validate };
|
|
2479
2937
|
//# sourceMappingURL=index.mjs.map
|