@hypercerts-org/lexicon 0.10.0-beta.13 → 0.10.0-beta.15
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 +51 -0
- package/README.md +69 -2
- package/SCHEMAS.md +73 -9
- package/dist/exports.d.ts +140 -7
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +140 -7
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +268 -22
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/app/certified/actor/profile.d.ts +27 -0
- package/dist/generated/types/app/certified/actor/profile.d.ts.map +1 -0
- package/dist/generated/types/app/certified/defs.d.ts +11 -1
- package/dist/generated/types/app/certified/defs.d.ts.map +1 -1
- package/dist/generated/types/app/certified/location.d.ts +2 -2
- package/dist/generated/types/app/certified/location.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/acknowledgement.d.ts +21 -0
- package/dist/generated/types/org/hypercerts/acknowledgement.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +21 -3
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/index.cjs +530 -141
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +518 -137
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +151 -11
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +268 -22
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +151 -11
- package/dist/lexicons.mjs.map +1 -1
- package/dist/types/app/certified/actor/profile.d.ts +27 -0
- package/dist/types/app/certified/actor/profile.d.ts.map +1 -0
- package/dist/types/app/certified/defs.d.ts +11 -1
- package/dist/types/app/certified/defs.d.ts.map +1 -1
- package/dist/types/app/certified/location.d.ts +2 -2
- package/dist/types/app/certified/location.d.ts.map +1 -1
- package/dist/types/org/hypercerts/acknowledgement.d.ts +21 -0
- package/dist/types/org/hypercerts/acknowledgement.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/activity.d.ts +21 -3
- package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/lexicons/app/certified/actor/profile.json +51 -0
- package/lexicons/app/certified/defs.json +11 -3
- package/lexicons/app/certified/location.json +11 -2
- package/lexicons/org/hypercerts/acknowledgement.json +41 -0
- package/lexicons/org/hypercerts/claim/activity.json +31 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var lexicon$
|
|
3
|
+
var lexicon$j = require('@atproto/lexicon');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED CODE - DO NOT MODIFY
|
|
@@ -18,7 +18,7 @@ function is$type($type, id, hash) {
|
|
|
18
18
|
$type.startsWith(id) &&
|
|
19
19
|
$type.endsWith(hash);
|
|
20
20
|
}
|
|
21
|
-
function is$typed$
|
|
21
|
+
function is$typed$j(v, id, hash) {
|
|
22
22
|
return isObject(v) && '$type' in v && is$type(v.$type, id, hash);
|
|
23
23
|
}
|
|
24
24
|
function maybe$typed(v, id, hash) {
|
|
@@ -39,6 +39,63 @@ function asPredicate(validate) {
|
|
|
39
39
|
* GENERATED CODE - DO NOT MODIFY
|
|
40
40
|
*/
|
|
41
41
|
const schemaDict = {
|
|
42
|
+
AppCertifiedActorProfile: {
|
|
43
|
+
lexicon: 1,
|
|
44
|
+
id: 'app.certified.actor.profile',
|
|
45
|
+
defs: {
|
|
46
|
+
main: {
|
|
47
|
+
type: 'record',
|
|
48
|
+
description: 'A declaration of a Hypercert account profile.',
|
|
49
|
+
key: 'literal:self',
|
|
50
|
+
record: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
properties: {
|
|
53
|
+
displayName: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
maxGraphemes: 64,
|
|
56
|
+
maxLength: 640,
|
|
57
|
+
},
|
|
58
|
+
description: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'Free-form profile description text.',
|
|
61
|
+
maxGraphemes: 256,
|
|
62
|
+
maxLength: 2560,
|
|
63
|
+
},
|
|
64
|
+
pronouns: {
|
|
65
|
+
type: 'string',
|
|
66
|
+
description: 'Free-form pronouns text.',
|
|
67
|
+
maxGraphemes: 20,
|
|
68
|
+
maxLength: 200,
|
|
69
|
+
},
|
|
70
|
+
website: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
format: 'uri',
|
|
73
|
+
},
|
|
74
|
+
avatar: {
|
|
75
|
+
type: 'union',
|
|
76
|
+
refs: [
|
|
77
|
+
'lex:org.hypercerts.defs#uri',
|
|
78
|
+
'lex:org.hypercerts.defs#smallImage',
|
|
79
|
+
],
|
|
80
|
+
description: "Small image to be displayed next to posts from account. AKA, 'profile picture'",
|
|
81
|
+
},
|
|
82
|
+
banner: {
|
|
83
|
+
type: 'union',
|
|
84
|
+
refs: [
|
|
85
|
+
'lex:org.hypercerts.defs#uri',
|
|
86
|
+
'lex:org.hypercerts.defs#largeImage',
|
|
87
|
+
],
|
|
88
|
+
description: 'Larger horizontal image to display behind profile view.',
|
|
89
|
+
},
|
|
90
|
+
createdAt: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
format: 'datetime',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
42
99
|
AppCertifiedBadgeAward: {
|
|
43
100
|
lexicon: 1,
|
|
44
101
|
id: 'app.certified.badge.award',
|
|
@@ -173,9 +230,17 @@ const schemaDict = {
|
|
|
173
230
|
description: 'Common type definitions used across certified protocols.',
|
|
174
231
|
defs: {
|
|
175
232
|
did: {
|
|
176
|
-
type: '
|
|
177
|
-
format: 'did',
|
|
233
|
+
type: 'object',
|
|
178
234
|
description: 'A Decentralized Identifier (DID) string.',
|
|
235
|
+
required: ['did'],
|
|
236
|
+
properties: {
|
|
237
|
+
did: {
|
|
238
|
+
type: 'string',
|
|
239
|
+
format: 'did',
|
|
240
|
+
description: 'The DID string value.',
|
|
241
|
+
maxLength: 256,
|
|
242
|
+
},
|
|
243
|
+
},
|
|
179
244
|
},
|
|
180
245
|
},
|
|
181
246
|
},
|
|
@@ -210,8 +275,17 @@ const schemaDict = {
|
|
|
210
275
|
},
|
|
211
276
|
locationType: {
|
|
212
277
|
type: 'string',
|
|
213
|
-
description: 'An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point)',
|
|
214
|
-
knownValues: [
|
|
278
|
+
description: 'An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point). See the Location Protocol spec for the full registry: https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry',
|
|
279
|
+
knownValues: [
|
|
280
|
+
'coordinate-decimal',
|
|
281
|
+
'geojson-point',
|
|
282
|
+
'geojson',
|
|
283
|
+
'h3',
|
|
284
|
+
'geohash',
|
|
285
|
+
'wkt',
|
|
286
|
+
'address',
|
|
287
|
+
'scaledCoordinates',
|
|
288
|
+
],
|
|
215
289
|
maxLength: 20,
|
|
216
290
|
},
|
|
217
291
|
location: {
|
|
@@ -279,6 +353,47 @@ const schemaDict = {
|
|
|
279
353
|
},
|
|
280
354
|
},
|
|
281
355
|
},
|
|
356
|
+
OrgHypercertsAcknowledgement: {
|
|
357
|
+
lexicon: 1,
|
|
358
|
+
id: 'org.hypercerts.acknowledgement',
|
|
359
|
+
defs: {
|
|
360
|
+
main: {
|
|
361
|
+
type: 'record',
|
|
362
|
+
description: "Acknowledges the inclusion of one record (subject) within another (context). Typically created in the subject owner's repo to form a bidirectional link. For example, a contributor acknowledging inclusion in an activity, or an activity owner acknowledging inclusion in a collection.",
|
|
363
|
+
key: 'tid',
|
|
364
|
+
record: {
|
|
365
|
+
type: 'object',
|
|
366
|
+
required: ['subject', 'context', 'acknowledged', 'createdAt'],
|
|
367
|
+
properties: {
|
|
368
|
+
subject: {
|
|
369
|
+
type: 'ref',
|
|
370
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
371
|
+
description: 'The record whose inclusion is being acknowledged (e.g. an activity, a contributor information record).',
|
|
372
|
+
},
|
|
373
|
+
context: {
|
|
374
|
+
type: 'ref',
|
|
375
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
376
|
+
description: 'The record that includes the subject (e.g. a collection/project that includes an activity, or an activity that includes a contributor).',
|
|
377
|
+
},
|
|
378
|
+
acknowledged: {
|
|
379
|
+
type: 'boolean',
|
|
380
|
+
description: 'Whether inclusion is acknowledged (true) or rejected (false).',
|
|
381
|
+
},
|
|
382
|
+
comment: {
|
|
383
|
+
type: 'string',
|
|
384
|
+
description: 'Optional comment providing additional context or reasoning.',
|
|
385
|
+
maxLength: 1000,
|
|
386
|
+
},
|
|
387
|
+
createdAt: {
|
|
388
|
+
type: 'string',
|
|
389
|
+
format: 'datetime',
|
|
390
|
+
description: 'Client-declared timestamp when this record was originally created.',
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
},
|
|
282
397
|
OrgHypercertsClaimActivity: {
|
|
283
398
|
lexicon: 1,
|
|
284
399
|
id: 'org.hypercerts.claim.activity',
|
|
@@ -406,20 +521,43 @@ const schemaDict = {
|
|
|
406
521
|
},
|
|
407
522
|
},
|
|
408
523
|
contributorIdentity: {
|
|
409
|
-
type: '
|
|
524
|
+
type: 'object',
|
|
410
525
|
description: 'Contributor information as a string (DID or identifier).',
|
|
526
|
+
required: ['identity'],
|
|
527
|
+
properties: {
|
|
528
|
+
identity: {
|
|
529
|
+
type: 'string',
|
|
530
|
+
description: 'The contributor identity string (DID or identifier).',
|
|
531
|
+
maxLength: 1000,
|
|
532
|
+
maxGraphemes: 100,
|
|
533
|
+
},
|
|
534
|
+
},
|
|
411
535
|
},
|
|
412
536
|
contributorRole: {
|
|
413
|
-
type: '
|
|
537
|
+
type: 'object',
|
|
414
538
|
description: 'Contribution details as a string.',
|
|
415
|
-
|
|
416
|
-
|
|
539
|
+
required: ['role'],
|
|
540
|
+
properties: {
|
|
541
|
+
role: {
|
|
542
|
+
type: 'string',
|
|
543
|
+
description: 'The contribution role or details.',
|
|
544
|
+
maxLength: 1000,
|
|
545
|
+
maxGraphemes: 100,
|
|
546
|
+
},
|
|
547
|
+
},
|
|
417
548
|
},
|
|
418
549
|
workScopeString: {
|
|
419
|
-
type: '
|
|
550
|
+
type: 'object',
|
|
420
551
|
description: 'A free-form string describing the work scope for simple or legacy scopes.',
|
|
421
|
-
|
|
422
|
-
|
|
552
|
+
required: ['scope'],
|
|
553
|
+
properties: {
|
|
554
|
+
scope: {
|
|
555
|
+
type: 'string',
|
|
556
|
+
description: 'The work scope description string.',
|
|
557
|
+
maxLength: 1000,
|
|
558
|
+
maxGraphemes: 100,
|
|
559
|
+
},
|
|
560
|
+
},
|
|
423
561
|
},
|
|
424
562
|
},
|
|
425
563
|
},
|
|
@@ -1126,22 +1264,24 @@ const schemaDict = {
|
|
|
1126
1264
|
},
|
|
1127
1265
|
};
|
|
1128
1266
|
const schemas = Object.values(schemaDict);
|
|
1129
|
-
const lexicons = new lexicon$
|
|
1130
|
-
function validate$
|
|
1131
|
-
return (requiredType ? is$typed$
|
|
1267
|
+
const lexicons = new lexicon$j.Lexicons(schemas);
|
|
1268
|
+
function validate$j(v, id, hash, requiredType) {
|
|
1269
|
+
return (requiredType ? is$typed$j : maybe$typed)(v, id, hash)
|
|
1132
1270
|
? lexicons.validate(`${id}#${hash}`, v)
|
|
1133
1271
|
: {
|
|
1134
1272
|
success: false,
|
|
1135
|
-
error: new lexicon$
|
|
1273
|
+
error: new lexicon$j.ValidationError(`Must be an object with "${hash === 'main' ? id : `${id}#${hash}`}" $type property`),
|
|
1136
1274
|
};
|
|
1137
1275
|
}
|
|
1138
1276
|
const ids = {
|
|
1277
|
+
AppCertifiedActorProfile: 'app.certified.actor.profile',
|
|
1139
1278
|
AppCertifiedBadgeAward: 'app.certified.badge.award',
|
|
1140
1279
|
AppCertifiedBadgeDefinition: 'app.certified.badge.definition',
|
|
1141
1280
|
AppCertifiedBadgeResponse: 'app.certified.badge.response',
|
|
1142
1281
|
AppCertifiedDefs: 'app.certified.defs',
|
|
1143
1282
|
AppCertifiedLocation: 'app.certified.location',
|
|
1144
1283
|
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
1284
|
+
OrgHypercertsAcknowledgement: 'org.hypercerts.acknowledgement',
|
|
1145
1285
|
OrgHypercertsClaimActivity: 'org.hypercerts.claim.activity',
|
|
1146
1286
|
OrgHypercertsClaimAttachment: 'org.hypercerts.claim.attachment',
|
|
1147
1287
|
OrgHypercertsClaimCollection: 'org.hypercerts.claim.collection',
|
|
@@ -1155,9 +1295,70 @@ const ids = {
|
|
|
1155
1295
|
OrgHypercertsHelperWorkScopeTag: 'org.hypercerts.helper.workScopeTag',
|
|
1156
1296
|
};
|
|
1157
1297
|
|
|
1158
|
-
var lexicon$
|
|
1159
|
-
var id$
|
|
1160
|
-
var defs$
|
|
1298
|
+
var lexicon$i = 1;
|
|
1299
|
+
var id$B = "app.certified.actor.profile";
|
|
1300
|
+
var defs$k = {
|
|
1301
|
+
main: {
|
|
1302
|
+
type: "record",
|
|
1303
|
+
description: "A declaration of a Hypercert account profile.",
|
|
1304
|
+
key: "literal:self",
|
|
1305
|
+
record: {
|
|
1306
|
+
type: "object",
|
|
1307
|
+
properties: {
|
|
1308
|
+
displayName: {
|
|
1309
|
+
type: "string",
|
|
1310
|
+
maxGraphemes: 64,
|
|
1311
|
+
maxLength: 640
|
|
1312
|
+
},
|
|
1313
|
+
description: {
|
|
1314
|
+
type: "string",
|
|
1315
|
+
description: "Free-form profile description text.",
|
|
1316
|
+
maxGraphemes: 256,
|
|
1317
|
+
maxLength: 2560
|
|
1318
|
+
},
|
|
1319
|
+
pronouns: {
|
|
1320
|
+
type: "string",
|
|
1321
|
+
description: "Free-form pronouns text.",
|
|
1322
|
+
maxGraphemes: 20,
|
|
1323
|
+
maxLength: 200
|
|
1324
|
+
},
|
|
1325
|
+
website: {
|
|
1326
|
+
type: "string",
|
|
1327
|
+
format: "uri"
|
|
1328
|
+
},
|
|
1329
|
+
avatar: {
|
|
1330
|
+
type: "union",
|
|
1331
|
+
refs: [
|
|
1332
|
+
"org.hypercerts.defs#uri",
|
|
1333
|
+
"org.hypercerts.defs#smallImage"
|
|
1334
|
+
],
|
|
1335
|
+
description: "Small image to be displayed next to posts from account. AKA, 'profile picture'"
|
|
1336
|
+
},
|
|
1337
|
+
banner: {
|
|
1338
|
+
type: "union",
|
|
1339
|
+
refs: [
|
|
1340
|
+
"org.hypercerts.defs#uri",
|
|
1341
|
+
"org.hypercerts.defs#largeImage"
|
|
1342
|
+
],
|
|
1343
|
+
description: "Larger horizontal image to display behind profile view."
|
|
1344
|
+
},
|
|
1345
|
+
createdAt: {
|
|
1346
|
+
type: "string",
|
|
1347
|
+
format: "datetime"
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
};
|
|
1353
|
+
var ACTOR_PROFILE_LEXICON_JSON = {
|
|
1354
|
+
lexicon: lexicon$i,
|
|
1355
|
+
id: id$B,
|
|
1356
|
+
defs: defs$k
|
|
1357
|
+
};
|
|
1358
|
+
|
|
1359
|
+
var lexicon$h = 1;
|
|
1360
|
+
var id$A = "app.certified.badge.award";
|
|
1361
|
+
var defs$j = {
|
|
1161
1362
|
main: {
|
|
1162
1363
|
type: "record",
|
|
1163
1364
|
description: "Records a badge award to a user, project, or activity claim.",
|
|
@@ -1197,14 +1398,14 @@ var defs$i = {
|
|
|
1197
1398
|
}
|
|
1198
1399
|
};
|
|
1199
1400
|
var BADGE_AWARD_LEXICON_JSON = {
|
|
1200
|
-
lexicon: lexicon$
|
|
1201
|
-
id: id$
|
|
1202
|
-
defs: defs$
|
|
1401
|
+
lexicon: lexicon$h,
|
|
1402
|
+
id: id$A,
|
|
1403
|
+
defs: defs$j
|
|
1203
1404
|
};
|
|
1204
1405
|
|
|
1205
|
-
var lexicon$
|
|
1206
|
-
var id$
|
|
1207
|
-
var defs$
|
|
1406
|
+
var lexicon$g = 1;
|
|
1407
|
+
var id$z = "app.certified.badge.definition";
|
|
1408
|
+
var defs$i = {
|
|
1208
1409
|
main: {
|
|
1209
1410
|
type: "record",
|
|
1210
1411
|
description: "Defines a badge that can be awarded via badge award records to users, projects, or activity claims.",
|
|
@@ -1259,14 +1460,14 @@ var defs$h = {
|
|
|
1259
1460
|
}
|
|
1260
1461
|
};
|
|
1261
1462
|
var BADGE_DEFINITION_LEXICON_JSON = {
|
|
1262
|
-
lexicon: lexicon$
|
|
1263
|
-
id: id$
|
|
1264
|
-
defs: defs$
|
|
1463
|
+
lexicon: lexicon$g,
|
|
1464
|
+
id: id$z,
|
|
1465
|
+
defs: defs$i
|
|
1265
1466
|
};
|
|
1266
1467
|
|
|
1267
|
-
var lexicon$
|
|
1268
|
-
var id$
|
|
1269
|
-
var defs$
|
|
1468
|
+
var lexicon$f = 1;
|
|
1469
|
+
var id$y = "app.certified.badge.response";
|
|
1470
|
+
var defs$h = {
|
|
1270
1471
|
main: {
|
|
1271
1472
|
type: "record",
|
|
1272
1473
|
description: "Recipient response to a badge award.",
|
|
@@ -1306,31 +1507,41 @@ var defs$g = {
|
|
|
1306
1507
|
}
|
|
1307
1508
|
};
|
|
1308
1509
|
var BADGE_RESPONSE_LEXICON_JSON = {
|
|
1309
|
-
lexicon: lexicon$
|
|
1310
|
-
id: id$
|
|
1311
|
-
defs: defs$
|
|
1510
|
+
lexicon: lexicon$f,
|
|
1511
|
+
id: id$y,
|
|
1512
|
+
defs: defs$h
|
|
1312
1513
|
};
|
|
1313
1514
|
|
|
1314
|
-
var lexicon$
|
|
1315
|
-
var id$
|
|
1515
|
+
var lexicon$e = 1;
|
|
1516
|
+
var id$x = "app.certified.defs";
|
|
1316
1517
|
var description$1 = "Common type definitions used across certified protocols.";
|
|
1317
|
-
var defs$
|
|
1518
|
+
var defs$g = {
|
|
1318
1519
|
did: {
|
|
1319
|
-
type: "
|
|
1320
|
-
|
|
1321
|
-
|
|
1520
|
+
type: "object",
|
|
1521
|
+
description: "A Decentralized Identifier (DID) string.",
|
|
1522
|
+
required: [
|
|
1523
|
+
"did"
|
|
1524
|
+
],
|
|
1525
|
+
properties: {
|
|
1526
|
+
did: {
|
|
1527
|
+
type: "string",
|
|
1528
|
+
format: "did",
|
|
1529
|
+
description: "The DID string value.",
|
|
1530
|
+
maxLength: 256
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1322
1533
|
}
|
|
1323
1534
|
};
|
|
1324
1535
|
var CERTIFIED_DEFS_LEXICON_JSON = {
|
|
1325
|
-
lexicon: lexicon$
|
|
1326
|
-
id: id$
|
|
1536
|
+
lexicon: lexicon$e,
|
|
1537
|
+
id: id$x,
|
|
1327
1538
|
description: description$1,
|
|
1328
|
-
defs: defs$
|
|
1539
|
+
defs: defs$g
|
|
1329
1540
|
};
|
|
1330
1541
|
|
|
1331
|
-
var lexicon$
|
|
1332
|
-
var id$
|
|
1333
|
-
var defs$
|
|
1542
|
+
var lexicon$d = 1;
|
|
1543
|
+
var id$w = "app.certified.location";
|
|
1544
|
+
var defs$f = {
|
|
1334
1545
|
main: {
|
|
1335
1546
|
type: "record",
|
|
1336
1547
|
description: "A location reference",
|
|
@@ -1358,10 +1569,16 @@ var defs$e = {
|
|
|
1358
1569
|
},
|
|
1359
1570
|
locationType: {
|
|
1360
1571
|
type: "string",
|
|
1361
|
-
description: "An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point)",
|
|
1572
|
+
description: "An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point). See the Location Protocol spec for the full registry: https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry",
|
|
1362
1573
|
knownValues: [
|
|
1363
1574
|
"coordinate-decimal",
|
|
1364
|
-
"geojson-point"
|
|
1575
|
+
"geojson-point",
|
|
1576
|
+
"geojson",
|
|
1577
|
+
"h3",
|
|
1578
|
+
"geohash",
|
|
1579
|
+
"wkt",
|
|
1580
|
+
"address",
|
|
1581
|
+
"scaledCoordinates"
|
|
1365
1582
|
],
|
|
1366
1583
|
maxLength: 20
|
|
1367
1584
|
},
|
|
@@ -1411,15 +1628,15 @@ var defs$e = {
|
|
|
1411
1628
|
}
|
|
1412
1629
|
};
|
|
1413
1630
|
var LOCATION_LEXICON_JSON = {
|
|
1414
|
-
lexicon: lexicon$
|
|
1415
|
-
id: id$
|
|
1416
|
-
defs: defs$
|
|
1631
|
+
lexicon: lexicon$d,
|
|
1632
|
+
id: id$w,
|
|
1633
|
+
defs: defs$f
|
|
1417
1634
|
};
|
|
1418
1635
|
|
|
1419
|
-
var lexicon$
|
|
1420
|
-
var id$
|
|
1636
|
+
var lexicon$c = 1;
|
|
1637
|
+
var id$v = "com.atproto.repo.strongRef";
|
|
1421
1638
|
var description = "A URI with a content-hash fingerprint.";
|
|
1422
|
-
var defs$
|
|
1639
|
+
var defs$e = {
|
|
1423
1640
|
main: {
|
|
1424
1641
|
type: "object",
|
|
1425
1642
|
required: [
|
|
@@ -1439,14 +1656,64 @@ var defs$d = {
|
|
|
1439
1656
|
}
|
|
1440
1657
|
};
|
|
1441
1658
|
var STRONG_REF_LEXICON_JSON = {
|
|
1442
|
-
lexicon: lexicon$
|
|
1443
|
-
id: id$
|
|
1659
|
+
lexicon: lexicon$c,
|
|
1660
|
+
id: id$v,
|
|
1444
1661
|
description: description,
|
|
1662
|
+
defs: defs$e
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1665
|
+
var lexicon$b = 1;
|
|
1666
|
+
var id$u = "org.hypercerts.acknowledgement";
|
|
1667
|
+
var defs$d = {
|
|
1668
|
+
main: {
|
|
1669
|
+
type: "record",
|
|
1670
|
+
description: "Acknowledges the inclusion of one record (subject) within another (context). Typically created in the subject owner's repo to form a bidirectional link. For example, a contributor acknowledging inclusion in an activity, or an activity owner acknowledging inclusion in a collection.",
|
|
1671
|
+
key: "tid",
|
|
1672
|
+
record: {
|
|
1673
|
+
type: "object",
|
|
1674
|
+
required: [
|
|
1675
|
+
"subject",
|
|
1676
|
+
"context",
|
|
1677
|
+
"acknowledged",
|
|
1678
|
+
"createdAt"
|
|
1679
|
+
],
|
|
1680
|
+
properties: {
|
|
1681
|
+
subject: {
|
|
1682
|
+
type: "ref",
|
|
1683
|
+
ref: "com.atproto.repo.strongRef",
|
|
1684
|
+
description: "The record whose inclusion is being acknowledged (e.g. an activity, a contributor information record)."
|
|
1685
|
+
},
|
|
1686
|
+
context: {
|
|
1687
|
+
type: "ref",
|
|
1688
|
+
ref: "com.atproto.repo.strongRef",
|
|
1689
|
+
description: "The record that includes the subject (e.g. a collection/project that includes an activity, or an activity that includes a contributor)."
|
|
1690
|
+
},
|
|
1691
|
+
acknowledged: {
|
|
1692
|
+
type: "boolean",
|
|
1693
|
+
description: "Whether inclusion is acknowledged (true) or rejected (false)."
|
|
1694
|
+
},
|
|
1695
|
+
comment: {
|
|
1696
|
+
type: "string",
|
|
1697
|
+
description: "Optional comment providing additional context or reasoning.",
|
|
1698
|
+
maxLength: 1000
|
|
1699
|
+
},
|
|
1700
|
+
createdAt: {
|
|
1701
|
+
type: "string",
|
|
1702
|
+
format: "datetime",
|
|
1703
|
+
description: "Client-declared timestamp when this record was originally created."
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
};
|
|
1709
|
+
var HYPERCERTS_ACKNOWLEDGEMENT_LEXICON_JSON = {
|
|
1710
|
+
lexicon: lexicon$b,
|
|
1711
|
+
id: id$u,
|
|
1445
1712
|
defs: defs$d
|
|
1446
1713
|
};
|
|
1447
1714
|
|
|
1448
1715
|
var lexicon$a = 1;
|
|
1449
|
-
var id$
|
|
1716
|
+
var id$t = "org.hypercerts.claim.activity";
|
|
1450
1717
|
var defs$c = {
|
|
1451
1718
|
main: {
|
|
1452
1719
|
type: "record",
|
|
@@ -1577,30 +1844,59 @@ var defs$c = {
|
|
|
1577
1844
|
}
|
|
1578
1845
|
},
|
|
1579
1846
|
contributorIdentity: {
|
|
1580
|
-
type: "
|
|
1581
|
-
description: "Contributor information as a string (DID or identifier)."
|
|
1847
|
+
type: "object",
|
|
1848
|
+
description: "Contributor information as a string (DID or identifier).",
|
|
1849
|
+
required: [
|
|
1850
|
+
"identity"
|
|
1851
|
+
],
|
|
1852
|
+
properties: {
|
|
1853
|
+
identity: {
|
|
1854
|
+
type: "string",
|
|
1855
|
+
description: "The contributor identity string (DID or identifier).",
|
|
1856
|
+
maxLength: 1000,
|
|
1857
|
+
maxGraphemes: 100
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1582
1860
|
},
|
|
1583
1861
|
contributorRole: {
|
|
1584
|
-
type: "
|
|
1862
|
+
type: "object",
|
|
1585
1863
|
description: "Contribution details as a string.",
|
|
1586
|
-
|
|
1587
|
-
|
|
1864
|
+
required: [
|
|
1865
|
+
"role"
|
|
1866
|
+
],
|
|
1867
|
+
properties: {
|
|
1868
|
+
role: {
|
|
1869
|
+
type: "string",
|
|
1870
|
+
description: "The contribution role or details.",
|
|
1871
|
+
maxLength: 1000,
|
|
1872
|
+
maxGraphemes: 100
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1588
1875
|
},
|
|
1589
1876
|
workScopeString: {
|
|
1590
|
-
type: "
|
|
1877
|
+
type: "object",
|
|
1591
1878
|
description: "A free-form string describing the work scope for simple or legacy scopes.",
|
|
1592
|
-
|
|
1593
|
-
|
|
1879
|
+
required: [
|
|
1880
|
+
"scope"
|
|
1881
|
+
],
|
|
1882
|
+
properties: {
|
|
1883
|
+
scope: {
|
|
1884
|
+
type: "string",
|
|
1885
|
+
description: "The work scope description string.",
|
|
1886
|
+
maxLength: 1000,
|
|
1887
|
+
maxGraphemes: 100
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1594
1890
|
}
|
|
1595
1891
|
};
|
|
1596
1892
|
var ACTIVITY_LEXICON_JSON = {
|
|
1597
1893
|
lexicon: lexicon$a,
|
|
1598
|
-
id: id$
|
|
1894
|
+
id: id$t,
|
|
1599
1895
|
defs: defs$c
|
|
1600
1896
|
};
|
|
1601
1897
|
|
|
1602
1898
|
var lexicon$9 = 1;
|
|
1603
|
-
var id$
|
|
1899
|
+
var id$s = "org.hypercerts.claim.attachment";
|
|
1604
1900
|
var defs$b = {
|
|
1605
1901
|
main: {
|
|
1606
1902
|
type: "record",
|
|
@@ -1689,12 +1985,12 @@ var defs$b = {
|
|
|
1689
1985
|
};
|
|
1690
1986
|
var ATTACHMENT_LEXICON_JSON = {
|
|
1691
1987
|
lexicon: lexicon$9,
|
|
1692
|
-
id: id$
|
|
1988
|
+
id: id$s,
|
|
1693
1989
|
defs: defs$b
|
|
1694
1990
|
};
|
|
1695
1991
|
|
|
1696
1992
|
var lexicon$8 = 1;
|
|
1697
|
-
var id$
|
|
1993
|
+
var id$r = "org.hypercerts.claim.collection";
|
|
1698
1994
|
var defs$a = {
|
|
1699
1995
|
main: {
|
|
1700
1996
|
type: "record",
|
|
@@ -1786,12 +2082,12 @@ var defs$a = {
|
|
|
1786
2082
|
};
|
|
1787
2083
|
var COLLECTION_LEXICON_JSON = {
|
|
1788
2084
|
lexicon: lexicon$8,
|
|
1789
|
-
id: id$
|
|
2085
|
+
id: id$r,
|
|
1790
2086
|
defs: defs$a
|
|
1791
2087
|
};
|
|
1792
2088
|
|
|
1793
2089
|
var lexicon$7 = 1;
|
|
1794
|
-
var id$
|
|
2090
|
+
var id$q = "org.hypercerts.claim.contributionDetails";
|
|
1795
2091
|
var defs$9 = {
|
|
1796
2092
|
main: {
|
|
1797
2093
|
type: "record",
|
|
@@ -1835,12 +2131,12 @@ var defs$9 = {
|
|
|
1835
2131
|
};
|
|
1836
2132
|
var CONTRIBUTION_DETAILS_LEXICON_JSON = {
|
|
1837
2133
|
lexicon: lexicon$7,
|
|
1838
|
-
id: id$
|
|
2134
|
+
id: id$q,
|
|
1839
2135
|
defs: defs$9
|
|
1840
2136
|
};
|
|
1841
2137
|
|
|
1842
2138
|
var lexicon$6 = 1;
|
|
1843
|
-
var id$
|
|
2139
|
+
var id$p = "org.hypercerts.claim.contributorInformation";
|
|
1844
2140
|
var defs$8 = {
|
|
1845
2141
|
main: {
|
|
1846
2142
|
type: "record",
|
|
@@ -1880,12 +2176,12 @@ var defs$8 = {
|
|
|
1880
2176
|
};
|
|
1881
2177
|
var CONTRIBUTOR_INFORMATION_LEXICON_JSON = {
|
|
1882
2178
|
lexicon: lexicon$6,
|
|
1883
|
-
id: id$
|
|
2179
|
+
id: id$p,
|
|
1884
2180
|
defs: defs$8
|
|
1885
2181
|
};
|
|
1886
2182
|
|
|
1887
2183
|
var lexicon$5 = 1;
|
|
1888
|
-
var id$
|
|
2184
|
+
var id$o = "org.hypercerts.claim.evaluation";
|
|
1889
2185
|
var defs$7 = {
|
|
1890
2186
|
score: {
|
|
1891
2187
|
type: "object",
|
|
@@ -1984,12 +2280,12 @@ var defs$7 = {
|
|
|
1984
2280
|
};
|
|
1985
2281
|
var EVALUATION_LEXICON_JSON = {
|
|
1986
2282
|
lexicon: lexicon$5,
|
|
1987
|
-
id: id$
|
|
2283
|
+
id: id$o,
|
|
1988
2284
|
defs: defs$7
|
|
1989
2285
|
};
|
|
1990
2286
|
|
|
1991
2287
|
var lexicon$4 = 1;
|
|
1992
|
-
var id$
|
|
2288
|
+
var id$n = "org.hypercerts.claim.measurement";
|
|
1993
2289
|
var defs$6 = {
|
|
1994
2290
|
main: {
|
|
1995
2291
|
type: "record",
|
|
@@ -2096,12 +2392,12 @@ var defs$6 = {
|
|
|
2096
2392
|
};
|
|
2097
2393
|
var MEASUREMENT_LEXICON_JSON = {
|
|
2098
2394
|
lexicon: lexicon$4,
|
|
2099
|
-
id: id$
|
|
2395
|
+
id: id$n,
|
|
2100
2396
|
defs: defs$6
|
|
2101
2397
|
};
|
|
2102
2398
|
|
|
2103
2399
|
var lexicon$3 = 1;
|
|
2104
|
-
var id$
|
|
2400
|
+
var id$m = "org.hypercerts.claim.rights";
|
|
2105
2401
|
var defs$5 = {
|
|
2106
2402
|
main: {
|
|
2107
2403
|
type: "record",
|
|
@@ -2149,12 +2445,12 @@ var defs$5 = {
|
|
|
2149
2445
|
};
|
|
2150
2446
|
var RIGHTS_LEXICON_JSON = {
|
|
2151
2447
|
lexicon: lexicon$3,
|
|
2152
|
-
id: id$
|
|
2448
|
+
id: id$m,
|
|
2153
2449
|
defs: defs$5
|
|
2154
2450
|
};
|
|
2155
2451
|
|
|
2156
2452
|
var lexicon$2 = 1;
|
|
2157
|
-
var id$
|
|
2453
|
+
var id$l = "org.hypercerts.defs";
|
|
2158
2454
|
var defs$4 = {
|
|
2159
2455
|
uri: {
|
|
2160
2456
|
type: "object",
|
|
@@ -2248,12 +2544,12 @@ var defs$4 = {
|
|
|
2248
2544
|
};
|
|
2249
2545
|
var HYPERCERTS_DEFS_LEXICON_JSON = {
|
|
2250
2546
|
lexicon: lexicon$2,
|
|
2251
|
-
id: id$
|
|
2547
|
+
id: id$l,
|
|
2252
2548
|
defs: defs$4
|
|
2253
2549
|
};
|
|
2254
2550
|
|
|
2255
2551
|
var lexicon$1 = 1;
|
|
2256
|
-
var id$
|
|
2552
|
+
var id$k = "org.hypercerts.funding.receipt";
|
|
2257
2553
|
var defs$3 = {
|
|
2258
2554
|
main: {
|
|
2259
2555
|
type: "record",
|
|
@@ -2324,12 +2620,12 @@ var defs$3 = {
|
|
|
2324
2620
|
};
|
|
2325
2621
|
var FUNDING_RECEIPT_LEXICON_JSON = {
|
|
2326
2622
|
lexicon: lexicon$1,
|
|
2327
|
-
id: id$
|
|
2623
|
+
id: id$k,
|
|
2328
2624
|
defs: defs$3
|
|
2329
2625
|
};
|
|
2330
2626
|
|
|
2331
2627
|
var lexicon = 1;
|
|
2332
|
-
var id$
|
|
2628
|
+
var id$j = "org.hypercerts.helper.workScopeTag";
|
|
2333
2629
|
var defs$2 = {
|
|
2334
2630
|
main: {
|
|
2335
2631
|
type: "record",
|
|
@@ -2397,21 +2693,57 @@ var defs$2 = {
|
|
|
2397
2693
|
};
|
|
2398
2694
|
var WORK_SCOPE_TAG_LEXICON_JSON = {
|
|
2399
2695
|
lexicon: lexicon,
|
|
2400
|
-
id: id$
|
|
2696
|
+
id: id$j,
|
|
2401
2697
|
defs: defs$2
|
|
2402
2698
|
};
|
|
2403
2699
|
|
|
2404
|
-
const is$typed$
|
|
2405
|
-
const id$
|
|
2700
|
+
const is$typed$i = is$typed$j, validate$i = validate$j;
|
|
2701
|
+
const id$i = 'app.certified.actor.profile';
|
|
2702
|
+
const hashMain$g = 'main';
|
|
2703
|
+
function isMain$g(v) {
|
|
2704
|
+
return is$typed$i(v, id$i, hashMain$g);
|
|
2705
|
+
}
|
|
2706
|
+
function validateMain$g(v) {
|
|
2707
|
+
return validate$i(v, id$i, hashMain$g, true);
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
var profile = /*#__PURE__*/Object.freeze({
|
|
2711
|
+
__proto__: null,
|
|
2712
|
+
isMain: isMain$g,
|
|
2713
|
+
isRecord: isMain$g,
|
|
2714
|
+
validateMain: validateMain$g,
|
|
2715
|
+
validateRecord: validateMain$g
|
|
2716
|
+
});
|
|
2717
|
+
|
|
2718
|
+
const is$typed$h = is$typed$j, validate$h = validate$j;
|
|
2719
|
+
const id$h = 'app.certified.badge.award';
|
|
2720
|
+
const hashMain$f = 'main';
|
|
2721
|
+
function isMain$f(v) {
|
|
2722
|
+
return is$typed$h(v, id$h, hashMain$f);
|
|
2723
|
+
}
|
|
2724
|
+
function validateMain$f(v) {
|
|
2725
|
+
return validate$h(v, id$h, hashMain$f, true);
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
var award = /*#__PURE__*/Object.freeze({
|
|
2729
|
+
__proto__: null,
|
|
2730
|
+
isMain: isMain$f,
|
|
2731
|
+
isRecord: isMain$f,
|
|
2732
|
+
validateMain: validateMain$f,
|
|
2733
|
+
validateRecord: validateMain$f
|
|
2734
|
+
});
|
|
2735
|
+
|
|
2736
|
+
const is$typed$g = is$typed$j, validate$g = validate$j;
|
|
2737
|
+
const id$g = 'app.certified.badge.definition';
|
|
2406
2738
|
const hashMain$e = 'main';
|
|
2407
2739
|
function isMain$e(v) {
|
|
2408
|
-
return is$typed$
|
|
2740
|
+
return is$typed$g(v, id$g, hashMain$e);
|
|
2409
2741
|
}
|
|
2410
2742
|
function validateMain$e(v) {
|
|
2411
|
-
return validate$
|
|
2743
|
+
return validate$g(v, id$g, hashMain$e, true);
|
|
2412
2744
|
}
|
|
2413
2745
|
|
|
2414
|
-
var
|
|
2746
|
+
var definition = /*#__PURE__*/Object.freeze({
|
|
2415
2747
|
__proto__: null,
|
|
2416
2748
|
isMain: isMain$e,
|
|
2417
2749
|
isRecord: isMain$e,
|
|
@@ -2419,17 +2751,17 @@ var award = /*#__PURE__*/Object.freeze({
|
|
|
2419
2751
|
validateRecord: validateMain$e
|
|
2420
2752
|
});
|
|
2421
2753
|
|
|
2422
|
-
const is$typed$
|
|
2423
|
-
const id$
|
|
2754
|
+
const is$typed$f = is$typed$j, validate$f = validate$j;
|
|
2755
|
+
const id$f = 'app.certified.badge.response';
|
|
2424
2756
|
const hashMain$d = 'main';
|
|
2425
2757
|
function isMain$d(v) {
|
|
2426
|
-
return is$typed$
|
|
2758
|
+
return is$typed$f(v, id$f, hashMain$d);
|
|
2427
2759
|
}
|
|
2428
2760
|
function validateMain$d(v) {
|
|
2429
|
-
return validate$
|
|
2761
|
+
return validate$f(v, id$f, hashMain$d, true);
|
|
2430
2762
|
}
|
|
2431
2763
|
|
|
2432
|
-
var
|
|
2764
|
+
var response = /*#__PURE__*/Object.freeze({
|
|
2433
2765
|
__proto__: null,
|
|
2434
2766
|
isMain: isMain$d,
|
|
2435
2767
|
isRecord: isMain$d,
|
|
@@ -2437,8 +2769,24 @@ var definition = /*#__PURE__*/Object.freeze({
|
|
|
2437
2769
|
validateRecord: validateMain$d
|
|
2438
2770
|
});
|
|
2439
2771
|
|
|
2440
|
-
const is$typed$
|
|
2441
|
-
const id$
|
|
2772
|
+
const is$typed$e = is$typed$j, validate$e = validate$j;
|
|
2773
|
+
const id$e = 'app.certified.defs';
|
|
2774
|
+
const hashDid = 'did';
|
|
2775
|
+
function isDid(v) {
|
|
2776
|
+
return is$typed$e(v, id$e, hashDid);
|
|
2777
|
+
}
|
|
2778
|
+
function validateDid(v) {
|
|
2779
|
+
return validate$e(v, id$e, hashDid);
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
var defs$1 = /*#__PURE__*/Object.freeze({
|
|
2783
|
+
__proto__: null,
|
|
2784
|
+
isDid: isDid,
|
|
2785
|
+
validateDid: validateDid
|
|
2786
|
+
});
|
|
2787
|
+
|
|
2788
|
+
const is$typed$d = is$typed$j, validate$d = validate$j;
|
|
2789
|
+
const id$d = 'app.certified.location';
|
|
2442
2790
|
const hashMain$c = 'main';
|
|
2443
2791
|
function isMain$c(v) {
|
|
2444
2792
|
return is$typed$d(v, id$d, hashMain$c);
|
|
@@ -2446,63 +2794,59 @@ function isMain$c(v) {
|
|
|
2446
2794
|
function validateMain$c(v) {
|
|
2447
2795
|
return validate$d(v, id$d, hashMain$c, true);
|
|
2448
2796
|
}
|
|
2797
|
+
const hashString = 'string';
|
|
2798
|
+
function isString(v) {
|
|
2799
|
+
return is$typed$d(v, id$d, hashString);
|
|
2800
|
+
}
|
|
2801
|
+
function validateString(v) {
|
|
2802
|
+
return validate$d(v, id$d, hashString);
|
|
2803
|
+
}
|
|
2449
2804
|
|
|
2450
|
-
var
|
|
2805
|
+
var location = /*#__PURE__*/Object.freeze({
|
|
2451
2806
|
__proto__: null,
|
|
2452
2807
|
isMain: isMain$c,
|
|
2453
2808
|
isRecord: isMain$c,
|
|
2809
|
+
isString: isString,
|
|
2454
2810
|
validateMain: validateMain$c,
|
|
2455
|
-
validateRecord: validateMain$c
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
var defs$1 = /*#__PURE__*/Object.freeze({
|
|
2459
|
-
__proto__: null
|
|
2811
|
+
validateRecord: validateMain$c,
|
|
2812
|
+
validateString: validateString
|
|
2460
2813
|
});
|
|
2461
2814
|
|
|
2462
|
-
const is$typed$c = is$typed$
|
|
2463
|
-
const id$c = '
|
|
2815
|
+
const is$typed$c = is$typed$j, validate$c = validate$j;
|
|
2816
|
+
const id$c = 'com.atproto.repo.strongRef';
|
|
2464
2817
|
const hashMain$b = 'main';
|
|
2465
2818
|
function isMain$b(v) {
|
|
2466
2819
|
return is$typed$c(v, id$c, hashMain$b);
|
|
2467
2820
|
}
|
|
2468
2821
|
function validateMain$b(v) {
|
|
2469
|
-
return validate$c(v, id$c, hashMain$b
|
|
2470
|
-
}
|
|
2471
|
-
const hashString = 'string';
|
|
2472
|
-
function isString(v) {
|
|
2473
|
-
return is$typed$c(v, id$c, hashString);
|
|
2474
|
-
}
|
|
2475
|
-
function validateString(v) {
|
|
2476
|
-
return validate$c(v, id$c, hashString);
|
|
2822
|
+
return validate$c(v, id$c, hashMain$b);
|
|
2477
2823
|
}
|
|
2478
2824
|
|
|
2479
|
-
var
|
|
2825
|
+
var strongRef = /*#__PURE__*/Object.freeze({
|
|
2480
2826
|
__proto__: null,
|
|
2481
2827
|
isMain: isMain$b,
|
|
2482
|
-
|
|
2483
|
-
isString: isString,
|
|
2484
|
-
validateMain: validateMain$b,
|
|
2485
|
-
validateRecord: validateMain$b,
|
|
2486
|
-
validateString: validateString
|
|
2828
|
+
validateMain: validateMain$b
|
|
2487
2829
|
});
|
|
2488
2830
|
|
|
2489
|
-
const is$typed$b = is$typed$
|
|
2490
|
-
const id$b = '
|
|
2831
|
+
const is$typed$b = is$typed$j, validate$b = validate$j;
|
|
2832
|
+
const id$b = 'org.hypercerts.acknowledgement';
|
|
2491
2833
|
const hashMain$a = 'main';
|
|
2492
2834
|
function isMain$a(v) {
|
|
2493
2835
|
return is$typed$b(v, id$b, hashMain$a);
|
|
2494
2836
|
}
|
|
2495
2837
|
function validateMain$a(v) {
|
|
2496
|
-
return validate$b(v, id$b, hashMain$a);
|
|
2838
|
+
return validate$b(v, id$b, hashMain$a, true);
|
|
2497
2839
|
}
|
|
2498
2840
|
|
|
2499
|
-
var
|
|
2841
|
+
var acknowledgement = /*#__PURE__*/Object.freeze({
|
|
2500
2842
|
__proto__: null,
|
|
2501
2843
|
isMain: isMain$a,
|
|
2502
|
-
|
|
2844
|
+
isRecord: isMain$a,
|
|
2845
|
+
validateMain: validateMain$a,
|
|
2846
|
+
validateRecord: validateMain$a
|
|
2503
2847
|
});
|
|
2504
2848
|
|
|
2505
|
-
const is$typed$a = is$typed$
|
|
2849
|
+
const is$typed$a = is$typed$j, validate$a = validate$j;
|
|
2506
2850
|
const id$a = 'org.hypercerts.claim.activity';
|
|
2507
2851
|
const hashMain$9 = 'main';
|
|
2508
2852
|
function isMain$9(v) {
|
|
@@ -2518,18 +2862,45 @@ function isContributor(v) {
|
|
|
2518
2862
|
function validateContributor(v) {
|
|
2519
2863
|
return validate$a(v, id$a, hashContributor);
|
|
2520
2864
|
}
|
|
2865
|
+
const hashContributorIdentity = 'contributorIdentity';
|
|
2866
|
+
function isContributorIdentity(v) {
|
|
2867
|
+
return is$typed$a(v, id$a, hashContributorIdentity);
|
|
2868
|
+
}
|
|
2869
|
+
function validateContributorIdentity(v) {
|
|
2870
|
+
return validate$a(v, id$a, hashContributorIdentity);
|
|
2871
|
+
}
|
|
2872
|
+
const hashContributorRole = 'contributorRole';
|
|
2873
|
+
function isContributorRole(v) {
|
|
2874
|
+
return is$typed$a(v, id$a, hashContributorRole);
|
|
2875
|
+
}
|
|
2876
|
+
function validateContributorRole(v) {
|
|
2877
|
+
return validate$a(v, id$a, hashContributorRole);
|
|
2878
|
+
}
|
|
2879
|
+
const hashWorkScopeString = 'workScopeString';
|
|
2880
|
+
function isWorkScopeString(v) {
|
|
2881
|
+
return is$typed$a(v, id$a, hashWorkScopeString);
|
|
2882
|
+
}
|
|
2883
|
+
function validateWorkScopeString(v) {
|
|
2884
|
+
return validate$a(v, id$a, hashWorkScopeString);
|
|
2885
|
+
}
|
|
2521
2886
|
|
|
2522
2887
|
var activity = /*#__PURE__*/Object.freeze({
|
|
2523
2888
|
__proto__: null,
|
|
2524
2889
|
isContributor: isContributor,
|
|
2890
|
+
isContributorIdentity: isContributorIdentity,
|
|
2891
|
+
isContributorRole: isContributorRole,
|
|
2525
2892
|
isMain: isMain$9,
|
|
2526
2893
|
isRecord: isMain$9,
|
|
2894
|
+
isWorkScopeString: isWorkScopeString,
|
|
2527
2895
|
validateContributor: validateContributor,
|
|
2896
|
+
validateContributorIdentity: validateContributorIdentity,
|
|
2897
|
+
validateContributorRole: validateContributorRole,
|
|
2528
2898
|
validateMain: validateMain$9,
|
|
2529
|
-
validateRecord: validateMain$9
|
|
2899
|
+
validateRecord: validateMain$9,
|
|
2900
|
+
validateWorkScopeString: validateWorkScopeString
|
|
2530
2901
|
});
|
|
2531
2902
|
|
|
2532
|
-
const is$typed$9 = is$typed$
|
|
2903
|
+
const is$typed$9 = is$typed$j, validate$9 = validate$j;
|
|
2533
2904
|
const id$9 = 'org.hypercerts.claim.attachment';
|
|
2534
2905
|
const hashMain$8 = 'main';
|
|
2535
2906
|
function isMain$8(v) {
|
|
@@ -2547,7 +2918,7 @@ var attachment = /*#__PURE__*/Object.freeze({
|
|
|
2547
2918
|
validateRecord: validateMain$8
|
|
2548
2919
|
});
|
|
2549
2920
|
|
|
2550
|
-
const is$typed$8 = is$typed$
|
|
2921
|
+
const is$typed$8 = is$typed$j, validate$8 = validate$j;
|
|
2551
2922
|
const id$8 = 'org.hypercerts.claim.collection';
|
|
2552
2923
|
const hashMain$7 = 'main';
|
|
2553
2924
|
function isMain$7(v) {
|
|
@@ -2574,7 +2945,7 @@ var collection = /*#__PURE__*/Object.freeze({
|
|
|
2574
2945
|
validateRecord: validateMain$7
|
|
2575
2946
|
});
|
|
2576
2947
|
|
|
2577
|
-
const is$typed$7 = is$typed$
|
|
2948
|
+
const is$typed$7 = is$typed$j, validate$7 = validate$j;
|
|
2578
2949
|
const id$7 = 'org.hypercerts.claim.contributionDetails';
|
|
2579
2950
|
const hashMain$6 = 'main';
|
|
2580
2951
|
function isMain$6(v) {
|
|
@@ -2592,7 +2963,7 @@ var contributionDetails = /*#__PURE__*/Object.freeze({
|
|
|
2592
2963
|
validateRecord: validateMain$6
|
|
2593
2964
|
});
|
|
2594
2965
|
|
|
2595
|
-
const is$typed$6 = is$typed$
|
|
2966
|
+
const is$typed$6 = is$typed$j, validate$6 = validate$j;
|
|
2596
2967
|
const id$6 = 'org.hypercerts.claim.contributorInformation';
|
|
2597
2968
|
const hashMain$5 = 'main';
|
|
2598
2969
|
function isMain$5(v) {
|
|
@@ -2610,7 +2981,7 @@ var contributorInformation = /*#__PURE__*/Object.freeze({
|
|
|
2610
2981
|
validateRecord: validateMain$5
|
|
2611
2982
|
});
|
|
2612
2983
|
|
|
2613
|
-
const is$typed$5 = is$typed$
|
|
2984
|
+
const is$typed$5 = is$typed$j, validate$5 = validate$j;
|
|
2614
2985
|
const id$5 = 'org.hypercerts.claim.evaluation';
|
|
2615
2986
|
const hashScore = 'score';
|
|
2616
2987
|
function isScore(v) {
|
|
@@ -2637,7 +3008,7 @@ var evaluation = /*#__PURE__*/Object.freeze({
|
|
|
2637
3008
|
validateScore: validateScore
|
|
2638
3009
|
});
|
|
2639
3010
|
|
|
2640
|
-
const is$typed$4 = is$typed$
|
|
3011
|
+
const is$typed$4 = is$typed$j, validate$4 = validate$j;
|
|
2641
3012
|
const id$4 = 'org.hypercerts.claim.measurement';
|
|
2642
3013
|
const hashMain$3 = 'main';
|
|
2643
3014
|
function isMain$3(v) {
|
|
@@ -2655,7 +3026,7 @@ var measurement = /*#__PURE__*/Object.freeze({
|
|
|
2655
3026
|
validateRecord: validateMain$3
|
|
2656
3027
|
});
|
|
2657
3028
|
|
|
2658
|
-
const is$typed$3 = is$typed$
|
|
3029
|
+
const is$typed$3 = is$typed$j, validate$3 = validate$j;
|
|
2659
3030
|
const id$3 = 'org.hypercerts.claim.rights';
|
|
2660
3031
|
const hashMain$2 = 'main';
|
|
2661
3032
|
function isMain$2(v) {
|
|
@@ -2673,7 +3044,7 @@ var rights = /*#__PURE__*/Object.freeze({
|
|
|
2673
3044
|
validateRecord: validateMain$2
|
|
2674
3045
|
});
|
|
2675
3046
|
|
|
2676
|
-
const is$typed$2 = is$typed$
|
|
3047
|
+
const is$typed$2 = is$typed$j, validate$2 = validate$j;
|
|
2677
3048
|
const id$2 = 'org.hypercerts.defs';
|
|
2678
3049
|
const hashUri = 'uri';
|
|
2679
3050
|
function isUri(v) {
|
|
@@ -2725,7 +3096,7 @@ var defs = /*#__PURE__*/Object.freeze({
|
|
|
2725
3096
|
validateUri: validateUri
|
|
2726
3097
|
});
|
|
2727
3098
|
|
|
2728
|
-
const is$typed$1 = is$typed$
|
|
3099
|
+
const is$typed$1 = is$typed$j, validate$1 = validate$j;
|
|
2729
3100
|
const id$1 = 'org.hypercerts.funding.receipt';
|
|
2730
3101
|
const hashMain$1 = 'main';
|
|
2731
3102
|
function isMain$1(v) {
|
|
@@ -2743,7 +3114,7 @@ var receipt = /*#__PURE__*/Object.freeze({
|
|
|
2743
3114
|
validateRecord: validateMain$1
|
|
2744
3115
|
});
|
|
2745
3116
|
|
|
2746
|
-
const is$typed = is$typed$
|
|
3117
|
+
const is$typed = is$typed$j, validate = validate$j;
|
|
2747
3118
|
const id = 'org.hypercerts.helper.workScopeTag';
|
|
2748
3119
|
const hashMain = 'main';
|
|
2749
3120
|
function isMain(v) {
|
|
@@ -2767,7 +3138,7 @@ var workScopeTag = /*#__PURE__*/Object.freeze({
|
|
|
2767
3138
|
* ⚠️ DO NOT EDIT THIS FILE MANUALLY ⚠️
|
|
2768
3139
|
*
|
|
2769
3140
|
* This file is automatically generated by scripts/generate-exports.js
|
|
2770
|
-
* Generated: 2026-
|
|
3141
|
+
* Generated: 2026-02-12T03:41:04.097Z
|
|
2771
3142
|
*
|
|
2772
3143
|
* To regenerate this file, run:
|
|
2773
3144
|
* npm run gen-api
|
|
@@ -2784,12 +3155,14 @@ var workScopeTag = /*#__PURE__*/Object.freeze({
|
|
|
2784
3155
|
* @packageDocumentation
|
|
2785
3156
|
*/
|
|
2786
3157
|
// Individual NSID constants
|
|
3158
|
+
const ACTOR_PROFILE_NSID = "app.certified.actor.profile";
|
|
2787
3159
|
const BADGE_AWARD_NSID = "app.certified.badge.award";
|
|
2788
3160
|
const BADGE_DEFINITION_NSID = "app.certified.badge.definition";
|
|
2789
3161
|
const BADGE_RESPONSE_NSID = "app.certified.badge.response";
|
|
2790
3162
|
const CERTIFIED_DEFS_NSID = "app.certified.defs";
|
|
2791
3163
|
const LOCATION_NSID = "app.certified.location";
|
|
2792
3164
|
const STRONG_REF_NSID = "com.atproto.repo.strongRef";
|
|
3165
|
+
const HYPERCERTS_ACKNOWLEDGEMENT_NSID = "org.hypercerts.acknowledgement";
|
|
2793
3166
|
const ACTIVITY_NSID = "org.hypercerts.claim.activity";
|
|
2794
3167
|
const ATTACHMENT_NSID = "org.hypercerts.claim.attachment";
|
|
2795
3168
|
const COLLECTION_NSID = "org.hypercerts.claim.collection";
|
|
@@ -2808,12 +3181,14 @@ const WORK_SCOPE_TAG_NSID = "org.hypercerts.helper.workScopeTag";
|
|
|
2808
3181
|
* correct collection names.
|
|
2809
3182
|
*/
|
|
2810
3183
|
const HYPERCERTS_NSIDS = {
|
|
3184
|
+
ACTOR_PROFILE: ACTOR_PROFILE_NSID,
|
|
2811
3185
|
BADGE_AWARD: BADGE_AWARD_NSID,
|
|
2812
3186
|
BADGE_DEFINITION: BADGE_DEFINITION_NSID,
|
|
2813
3187
|
BADGE_RESPONSE: BADGE_RESPONSE_NSID,
|
|
2814
3188
|
CERTIFIED_DEFS: CERTIFIED_DEFS_NSID,
|
|
2815
3189
|
LOCATION: LOCATION_NSID,
|
|
2816
3190
|
STRONG_REF: STRONG_REF_NSID,
|
|
3191
|
+
HYPERCERTS_ACKNOWLEDGEMENT: HYPERCERTS_ACKNOWLEDGEMENT_NSID,
|
|
2817
3192
|
ACTIVITY: ACTIVITY_NSID,
|
|
2818
3193
|
ATTACHMENT: ATTACHMENT_NSID,
|
|
2819
3194
|
COLLECTION: COLLECTION_NSID,
|
|
@@ -2830,12 +3205,14 @@ const HYPERCERTS_NSIDS = {
|
|
|
2830
3205
|
* Lexicon JSON objects organized by semantic record type.
|
|
2831
3206
|
*/
|
|
2832
3207
|
const HYPERCERTS_LEXICON_JSON = {
|
|
3208
|
+
ACTOR_PROFILE: ACTOR_PROFILE_LEXICON_JSON,
|
|
2833
3209
|
BADGE_AWARD: BADGE_AWARD_LEXICON_JSON,
|
|
2834
3210
|
BADGE_DEFINITION: BADGE_DEFINITION_LEXICON_JSON,
|
|
2835
3211
|
BADGE_RESPONSE: BADGE_RESPONSE_LEXICON_JSON,
|
|
2836
3212
|
CERTIFIED_DEFS: CERTIFIED_DEFS_LEXICON_JSON,
|
|
2837
3213
|
LOCATION: LOCATION_LEXICON_JSON,
|
|
2838
3214
|
STRONG_REF: STRONG_REF_LEXICON_JSON,
|
|
3215
|
+
HYPERCERTS_ACKNOWLEDGEMENT: HYPERCERTS_ACKNOWLEDGEMENT_LEXICON_JSON,
|
|
2839
3216
|
ACTIVITY: ACTIVITY_LEXICON_JSON,
|
|
2840
3217
|
ATTACHMENT: ATTACHMENT_LEXICON_JSON,
|
|
2841
3218
|
COLLECTION: COLLECTION_LEXICON_JSON,
|
|
@@ -2849,12 +3226,14 @@ const HYPERCERTS_LEXICON_JSON = {
|
|
|
2849
3226
|
WORK_SCOPE_TAG: WORK_SCOPE_TAG_LEXICON_JSON,
|
|
2850
3227
|
};
|
|
2851
3228
|
// Individual lexicon objects (from lexicons.get())
|
|
3229
|
+
const ACTOR_PROFILE_LEXICON_DOC = lexicons.get(ACTOR_PROFILE_NSID);
|
|
2852
3230
|
const BADGE_AWARD_LEXICON_DOC = lexicons.get(BADGE_AWARD_NSID);
|
|
2853
3231
|
const BADGE_DEFINITION_LEXICON_DOC = lexicons.get(BADGE_DEFINITION_NSID);
|
|
2854
3232
|
const BADGE_RESPONSE_LEXICON_DOC = lexicons.get(BADGE_RESPONSE_NSID);
|
|
2855
3233
|
const CERTIFIED_DEFS_LEXICON_DOC = lexicons.get(CERTIFIED_DEFS_NSID);
|
|
2856
3234
|
const LOCATION_LEXICON_DOC = lexicons.get(LOCATION_NSID);
|
|
2857
3235
|
const STRONG_REF_LEXICON_DOC = lexicons.get(STRONG_REF_NSID);
|
|
3236
|
+
const HYPERCERTS_ACKNOWLEDGEMENT_LEXICON_DOC = lexicons.get(HYPERCERTS_ACKNOWLEDGEMENT_NSID);
|
|
2858
3237
|
const ACTIVITY_LEXICON_DOC = lexicons.get(ACTIVITY_NSID);
|
|
2859
3238
|
const ATTACHMENT_LEXICON_DOC = lexicons.get(ATTACHMENT_NSID);
|
|
2860
3239
|
const COLLECTION_LEXICON_DOC = lexicons.get(COLLECTION_NSID);
|
|
@@ -2870,12 +3249,14 @@ const WORK_SCOPE_TAG_LEXICON_DOC = lexicons.get(WORK_SCOPE_TAG_NSID);
|
|
|
2870
3249
|
* Lexicon document objects organized by semantic record type.
|
|
2871
3250
|
*/
|
|
2872
3251
|
const HYPERCERTS_LEXICON_DOC = {
|
|
3252
|
+
ACTOR_PROFILE: ACTOR_PROFILE_LEXICON_DOC,
|
|
2873
3253
|
BADGE_AWARD: BADGE_AWARD_LEXICON_DOC,
|
|
2874
3254
|
BADGE_DEFINITION: BADGE_DEFINITION_LEXICON_DOC,
|
|
2875
3255
|
BADGE_RESPONSE: BADGE_RESPONSE_LEXICON_DOC,
|
|
2876
3256
|
CERTIFIED_DEFS: CERTIFIED_DEFS_LEXICON_DOC,
|
|
2877
3257
|
LOCATION: LOCATION_LEXICON_DOC,
|
|
2878
3258
|
STRONG_REF: STRONG_REF_LEXICON_DOC,
|
|
3259
|
+
HYPERCERTS_ACKNOWLEDGEMENT: HYPERCERTS_ACKNOWLEDGEMENT_LEXICON_DOC,
|
|
2879
3260
|
ACTIVITY: ACTIVITY_LEXICON_DOC,
|
|
2880
3261
|
ATTACHMENT: ATTACHMENT_LEXICON_DOC,
|
|
2881
3262
|
COLLECTION: COLLECTION_LEXICON_DOC,
|
|
@@ -2892,9 +3273,13 @@ const HYPERCERTS_LEXICON_DOC = {
|
|
|
2892
3273
|
exports.ACTIVITY_LEXICON_DOC = ACTIVITY_LEXICON_DOC;
|
|
2893
3274
|
exports.ACTIVITY_LEXICON_JSON = ACTIVITY_LEXICON_JSON;
|
|
2894
3275
|
exports.ACTIVITY_NSID = ACTIVITY_NSID;
|
|
3276
|
+
exports.ACTOR_PROFILE_LEXICON_DOC = ACTOR_PROFILE_LEXICON_DOC;
|
|
3277
|
+
exports.ACTOR_PROFILE_LEXICON_JSON = ACTOR_PROFILE_LEXICON_JSON;
|
|
3278
|
+
exports.ACTOR_PROFILE_NSID = ACTOR_PROFILE_NSID;
|
|
2895
3279
|
exports.ATTACHMENT_LEXICON_DOC = ATTACHMENT_LEXICON_DOC;
|
|
2896
3280
|
exports.ATTACHMENT_LEXICON_JSON = ATTACHMENT_LEXICON_JSON;
|
|
2897
3281
|
exports.ATTACHMENT_NSID = ATTACHMENT_NSID;
|
|
3282
|
+
exports.AppCertifiedActorProfile = profile;
|
|
2898
3283
|
exports.AppCertifiedBadgeAward = award;
|
|
2899
3284
|
exports.AppCertifiedBadgeDefinition = definition;
|
|
2900
3285
|
exports.AppCertifiedBadgeResponse = response;
|
|
@@ -2928,6 +3313,9 @@ exports.EVALUATION_NSID = EVALUATION_NSID;
|
|
|
2928
3313
|
exports.FUNDING_RECEIPT_LEXICON_DOC = FUNDING_RECEIPT_LEXICON_DOC;
|
|
2929
3314
|
exports.FUNDING_RECEIPT_LEXICON_JSON = FUNDING_RECEIPT_LEXICON_JSON;
|
|
2930
3315
|
exports.FUNDING_RECEIPT_NSID = FUNDING_RECEIPT_NSID;
|
|
3316
|
+
exports.HYPERCERTS_ACKNOWLEDGEMENT_LEXICON_DOC = HYPERCERTS_ACKNOWLEDGEMENT_LEXICON_DOC;
|
|
3317
|
+
exports.HYPERCERTS_ACKNOWLEDGEMENT_LEXICON_JSON = HYPERCERTS_ACKNOWLEDGEMENT_LEXICON_JSON;
|
|
3318
|
+
exports.HYPERCERTS_ACKNOWLEDGEMENT_NSID = HYPERCERTS_ACKNOWLEDGEMENT_NSID;
|
|
2931
3319
|
exports.HYPERCERTS_DEFS_LEXICON_DOC = HYPERCERTS_DEFS_LEXICON_DOC;
|
|
2932
3320
|
exports.HYPERCERTS_DEFS_LEXICON_JSON = HYPERCERTS_DEFS_LEXICON_JSON;
|
|
2933
3321
|
exports.HYPERCERTS_DEFS_NSID = HYPERCERTS_DEFS_NSID;
|
|
@@ -2943,6 +3331,7 @@ exports.LOCATION_NSID = LOCATION_NSID;
|
|
|
2943
3331
|
exports.MEASUREMENT_LEXICON_DOC = MEASUREMENT_LEXICON_DOC;
|
|
2944
3332
|
exports.MEASUREMENT_LEXICON_JSON = MEASUREMENT_LEXICON_JSON;
|
|
2945
3333
|
exports.MEASUREMENT_NSID = MEASUREMENT_NSID;
|
|
3334
|
+
exports.OrgHypercertsAcknowledgement = acknowledgement;
|
|
2946
3335
|
exports.OrgHypercertsClaimActivity = activity;
|
|
2947
3336
|
exports.OrgHypercertsClaimAttachment = attachment;
|
|
2948
3337
|
exports.OrgHypercertsClaimCollection = collection;
|
|
@@ -2964,8 +3353,8 @@ exports.WORK_SCOPE_TAG_LEXICON_DOC = WORK_SCOPE_TAG_LEXICON_DOC;
|
|
|
2964
3353
|
exports.WORK_SCOPE_TAG_LEXICON_JSON = WORK_SCOPE_TAG_LEXICON_JSON;
|
|
2965
3354
|
exports.WORK_SCOPE_TAG_NSID = WORK_SCOPE_TAG_NSID;
|
|
2966
3355
|
exports.asPredicate = asPredicate;
|
|
2967
|
-
exports.is$typed = is$typed$
|
|
3356
|
+
exports.is$typed = is$typed$j;
|
|
2968
3357
|
exports.lexicons = lexicons;
|
|
2969
3358
|
exports.maybe$typed = maybe$typed;
|
|
2970
|
-
exports.validate = validate$
|
|
3359
|
+
exports.validate = validate$j;
|
|
2971
3360
|
//# sourceMappingURL=index.cjs.map
|