@hypercerts-org/lexicon 0.10.0-beta.4 → 0.10.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +82 -0
- package/README.md +66 -311
- package/SCHEMAS.md +284 -0
- package/dist/exports.d.ts +76 -118
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +76 -118
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +182 -266
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +21 -18
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts +9 -9
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/{contribution.d.ts → contributionDetails.d.ts} +8 -10
- package/dist/generated/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts +23 -0
- package/dist/generated/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
- package/dist/index.cjs +270 -357
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +263 -350
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +102 -141
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +182 -266
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +102 -141
- package/dist/lexicons.mjs.map +1 -1
- package/dist/types/org/hypercerts/claim/activity.d.ts +21 -18
- package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/types/org/hypercerts/claim/collection.d.ts +9 -9
- package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -1
- package/dist/types/org/hypercerts/claim/{contribution.d.ts → contributionDetails.d.ts} +8 -10
- package/dist/types/org/hypercerts/claim/contributionDetails.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/contributorInformation.d.ts +23 -0
- package/dist/types/org/hypercerts/claim/contributorInformation.d.ts.map +1 -0
- package/lexicons/org/hypercerts/claim/activity.json +29 -39
- package/lexicons/org/hypercerts/claim/collection.json +14 -17
- package/lexicons/org/hypercerts/claim/contributionDetails.json +43 -0
- package/lexicons/org/hypercerts/claim/contributorInformation.json +39 -0
- package/lexicons/org/hypercerts/claim/evaluation.json +1 -1
- package/package.json +6 -2
- package/dist/generated/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
- package/dist/generated/types/org/hypercerts/claim/project.d.ts +0 -29
- package/dist/generated/types/org/hypercerts/claim/project.d.ts.map +0 -1
- package/dist/types/org/hypercerts/claim/contribution.d.ts.map +0 -1
- package/dist/types/org/hypercerts/claim/project.d.ts +0 -29
- package/dist/types/org/hypercerts/claim/project.d.ts.map +0 -1
- package/lexicons/org/hypercerts/claim/contribution.json +0 -50
- package/lexicons/org/hypercerts/claim/project.json +0 -64
|
@@ -222,7 +222,7 @@ export declare const schemaDict: {
|
|
|
222
222
|
readonly key: "any";
|
|
223
223
|
readonly record: {
|
|
224
224
|
readonly type: "object";
|
|
225
|
-
readonly required: ["title", "shortDescription", "createdAt"
|
|
225
|
+
readonly required: ["title", "shortDescription", "createdAt"];
|
|
226
226
|
readonly properties: {
|
|
227
227
|
readonly title: {
|
|
228
228
|
readonly type: "string";
|
|
@@ -248,7 +248,8 @@ export declare const schemaDict: {
|
|
|
248
248
|
};
|
|
249
249
|
readonly workScope: {
|
|
250
250
|
readonly type: "ref";
|
|
251
|
-
readonly ref: "lex:
|
|
251
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
252
|
+
readonly description: "A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions.";
|
|
252
253
|
};
|
|
253
254
|
readonly startDate: {
|
|
254
255
|
readonly type: "string";
|
|
@@ -260,12 +261,12 @@ export declare const schemaDict: {
|
|
|
260
261
|
readonly format: "datetime";
|
|
261
262
|
readonly description: "When the work ended";
|
|
262
263
|
};
|
|
263
|
-
readonly
|
|
264
|
+
readonly contributors: {
|
|
264
265
|
readonly type: "array";
|
|
265
|
-
readonly description: "
|
|
266
|
+
readonly description: "An array of contributor objects, each containing contributor information, weight, and contribution details.";
|
|
266
267
|
readonly items: {
|
|
267
268
|
readonly type: "ref";
|
|
268
|
-
readonly ref: "lex:
|
|
269
|
+
readonly ref: "lex:org.hypercerts.claim.activity#contributor";
|
|
269
270
|
};
|
|
270
271
|
};
|
|
271
272
|
readonly rights: {
|
|
@@ -281,11 +282,6 @@ export declare const schemaDict: {
|
|
|
281
282
|
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
282
283
|
};
|
|
283
284
|
};
|
|
284
|
-
readonly project: {
|
|
285
|
-
readonly type: "string";
|
|
286
|
-
readonly format: "at-uri";
|
|
287
|
-
readonly description: "A reference (AT-URI) to the project record that this activity is part of. The record referenced must conform with the lexicon org.hypercerts.claim.project. This activity must also be referenced by the project, establishing a bidirectional link.";
|
|
288
|
-
};
|
|
289
285
|
readonly createdAt: {
|
|
290
286
|
readonly type: "string";
|
|
291
287
|
readonly format: "datetime";
|
|
@@ -294,36 +290,36 @@ export declare const schemaDict: {
|
|
|
294
290
|
};
|
|
295
291
|
};
|
|
296
292
|
};
|
|
297
|
-
readonly
|
|
293
|
+
readonly contributor: {
|
|
298
294
|
readonly type: "object";
|
|
299
|
-
readonly
|
|
295
|
+
readonly required: ["contributorInformation"];
|
|
300
296
|
readonly properties: {
|
|
301
|
-
readonly
|
|
302
|
-
readonly type: "
|
|
303
|
-
readonly
|
|
304
|
-
readonly
|
|
305
|
-
readonly type: "string";
|
|
306
|
-
};
|
|
307
|
-
readonly maxLength: 100;
|
|
297
|
+
readonly contributorInformation: {
|
|
298
|
+
readonly type: "union";
|
|
299
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorIdentity", "lex:com.atproto.repo.strongRef"];
|
|
300
|
+
readonly description: "Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main.";
|
|
308
301
|
};
|
|
309
|
-
readonly
|
|
310
|
-
readonly type: "
|
|
311
|
-
readonly description: "
|
|
312
|
-
readonly items: {
|
|
313
|
-
readonly type: "string";
|
|
314
|
-
};
|
|
315
|
-
readonly maxLength: 100;
|
|
302
|
+
readonly weight: {
|
|
303
|
+
readonly type: "string";
|
|
304
|
+
readonly description: "The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.";
|
|
316
305
|
};
|
|
317
|
-
readonly
|
|
318
|
-
readonly type: "
|
|
319
|
-
readonly
|
|
320
|
-
readonly
|
|
321
|
-
readonly type: "string";
|
|
322
|
-
};
|
|
323
|
-
readonly maxLength: 100;
|
|
306
|
+
readonly contributionDetails: {
|
|
307
|
+
readonly type: "union";
|
|
308
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorRole", "lex:com.atproto.repo.strongRef"];
|
|
309
|
+
readonly description: "Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main.";
|
|
324
310
|
};
|
|
325
311
|
};
|
|
326
312
|
};
|
|
313
|
+
readonly contributorIdentity: {
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
readonly description: "Contributor information as a string (DID or identifier).";
|
|
316
|
+
};
|
|
317
|
+
readonly contributorRole: {
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
readonly description: "Contribution details as a string.";
|
|
320
|
+
readonly maxLength: 10000;
|
|
321
|
+
readonly maxGraphemes: 1000;
|
|
322
|
+
};
|
|
327
323
|
readonly activityWeight: {
|
|
328
324
|
readonly type: "object";
|
|
329
325
|
readonly required: ["activity", "weight"];
|
|
@@ -347,12 +343,16 @@ export declare const schemaDict: {
|
|
|
347
343
|
readonly defs: {
|
|
348
344
|
readonly main: {
|
|
349
345
|
readonly type: "record";
|
|
350
|
-
readonly description: "A collection/group of
|
|
346
|
+
readonly 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.";
|
|
351
347
|
readonly key: "tid";
|
|
352
348
|
readonly record: {
|
|
353
349
|
readonly type: "object";
|
|
354
|
-
readonly required: ["title", "
|
|
350
|
+
readonly required: ["title", "items", "createdAt"];
|
|
355
351
|
readonly properties: {
|
|
352
|
+
readonly type: {
|
|
353
|
+
readonly type: "string";
|
|
354
|
+
readonly description: "The type of this collection. Possible fields can be 'favorites', 'project', or any other type of collection.";
|
|
355
|
+
};
|
|
356
356
|
readonly title: {
|
|
357
357
|
readonly type: "string";
|
|
358
358
|
readonly description: "The title of this collection";
|
|
@@ -363,26 +363,19 @@ export declare const schemaDict: {
|
|
|
363
363
|
readonly type: "string";
|
|
364
364
|
readonly maxLength: 3000;
|
|
365
365
|
readonly maxGraphemes: 300;
|
|
366
|
-
readonly description: "
|
|
367
|
-
};
|
|
368
|
-
readonly avatar: {
|
|
369
|
-
readonly type: "blob";
|
|
370
|
-
readonly description: "Primary avatar image representing this collection across apps and views; typically a square image.";
|
|
371
|
-
readonly accept: ["image/png", "image/jpeg"];
|
|
372
|
-
readonly maxSize: 1000000;
|
|
366
|
+
readonly description: "Short summary of this collection, suitable for previews and list views";
|
|
373
367
|
};
|
|
374
|
-
readonly
|
|
375
|
-
readonly type: "
|
|
376
|
-
readonly
|
|
377
|
-
readonly
|
|
378
|
-
readonly maxSize: 1000000;
|
|
368
|
+
readonly description: {
|
|
369
|
+
readonly type: "ref";
|
|
370
|
+
readonly ref: "lex:pub.leaflet.pages.linearDocument#main";
|
|
371
|
+
readonly description: "Rich-text description, represented as a Leaflet linear document.";
|
|
379
372
|
};
|
|
380
|
-
readonly
|
|
373
|
+
readonly items: {
|
|
381
374
|
readonly type: "array";
|
|
382
|
-
readonly description: "Array of
|
|
375
|
+
readonly description: "Array of strong references to items in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection).";
|
|
383
376
|
readonly items: {
|
|
384
377
|
readonly type: "ref";
|
|
385
|
-
readonly ref: "lex:
|
|
378
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
386
379
|
};
|
|
387
380
|
};
|
|
388
381
|
readonly createdAt: {
|
|
@@ -395,35 +388,28 @@ export declare const schemaDict: {
|
|
|
395
388
|
};
|
|
396
389
|
};
|
|
397
390
|
};
|
|
398
|
-
readonly
|
|
391
|
+
readonly OrgHypercertsClaimContributionDetails: {
|
|
399
392
|
readonly lexicon: 1;
|
|
400
|
-
readonly id: "org.hypercerts.claim.
|
|
393
|
+
readonly id: "org.hypercerts.claim.contributionDetails";
|
|
401
394
|
readonly defs: {
|
|
402
395
|
readonly main: {
|
|
403
396
|
readonly type: "record";
|
|
404
|
-
readonly description: "
|
|
397
|
+
readonly description: "Details about a specific contribution including role, description, and timeframe.";
|
|
405
398
|
readonly key: "tid";
|
|
406
399
|
readonly record: {
|
|
407
400
|
readonly type: "object";
|
|
408
|
-
readonly required: ["
|
|
401
|
+
readonly required: ["createdAt"];
|
|
409
402
|
readonly properties: {
|
|
410
403
|
readonly role: {
|
|
411
404
|
readonly type: "string";
|
|
412
|
-
readonly description: "Role or title of the contributor
|
|
405
|
+
readonly description: "Role or title of the contributor.";
|
|
413
406
|
readonly maxLength: 100;
|
|
414
407
|
};
|
|
415
|
-
readonly
|
|
416
|
-
readonly type: "array";
|
|
417
|
-
readonly description: "List of the contributors (names, pseudonyms, or DIDs). If multiple contributors are stored in the same hypercertContribution, then they would have the exact same role.";
|
|
418
|
-
readonly items: {
|
|
419
|
-
readonly type: "string";
|
|
420
|
-
};
|
|
421
|
-
};
|
|
422
|
-
readonly description: {
|
|
408
|
+
readonly contributionDescription: {
|
|
423
409
|
readonly type: "string";
|
|
424
|
-
readonly description: "What the contribution concretely
|
|
425
|
-
readonly maxLength:
|
|
426
|
-
readonly maxGraphemes:
|
|
410
|
+
readonly description: "What the contribution concretely was.";
|
|
411
|
+
readonly maxLength: 10000;
|
|
412
|
+
readonly maxGraphemes: 1000;
|
|
427
413
|
};
|
|
428
414
|
readonly startDate: {
|
|
429
415
|
readonly type: "string";
|
|
@@ -433,12 +419,48 @@ export declare const schemaDict: {
|
|
|
433
419
|
readonly endDate: {
|
|
434
420
|
readonly type: "string";
|
|
435
421
|
readonly format: "datetime";
|
|
436
|
-
readonly description: "When this contribution finished.
|
|
422
|
+
readonly description: "When this contribution finished. This should be a subset of the hypercert timeframe.";
|
|
437
423
|
};
|
|
438
424
|
readonly createdAt: {
|
|
439
425
|
readonly type: "string";
|
|
440
426
|
readonly format: "datetime";
|
|
441
|
-
readonly description: "Client-declared timestamp when this record was originally created";
|
|
427
|
+
readonly description: "Client-declared timestamp when this record was originally created.";
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
readonly OrgHypercertsClaimContributorInformation: {
|
|
435
|
+
readonly lexicon: 1;
|
|
436
|
+
readonly id: "org.hypercerts.claim.contributorInformation";
|
|
437
|
+
readonly defs: {
|
|
438
|
+
readonly main: {
|
|
439
|
+
readonly type: "record";
|
|
440
|
+
readonly description: "Contributor information including identifier, display name, and image.";
|
|
441
|
+
readonly key: "tid";
|
|
442
|
+
readonly record: {
|
|
443
|
+
readonly type: "object";
|
|
444
|
+
readonly required: ["createdAt"];
|
|
445
|
+
readonly properties: {
|
|
446
|
+
readonly identifier: {
|
|
447
|
+
readonly type: "string";
|
|
448
|
+
readonly description: "DID or a URI to a social profile of the contributor.";
|
|
449
|
+
};
|
|
450
|
+
readonly displayName: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
readonly description: "Display name of the contributor.";
|
|
453
|
+
readonly maxLength: 100;
|
|
454
|
+
};
|
|
455
|
+
readonly image: {
|
|
456
|
+
readonly type: "union";
|
|
457
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
458
|
+
readonly description: "The contributor visual representation as a URI or image blob.";
|
|
459
|
+
};
|
|
460
|
+
readonly createdAt: {
|
|
461
|
+
readonly type: "string";
|
|
462
|
+
readonly format: "datetime";
|
|
463
|
+
readonly description: "Client-declared timestamp when this record was originally created.";
|
|
442
464
|
};
|
|
443
465
|
};
|
|
444
466
|
};
|
|
@@ -501,7 +523,7 @@ export declare const schemaDict: {
|
|
|
501
523
|
};
|
|
502
524
|
readonly measurements: {
|
|
503
525
|
readonly type: "array";
|
|
504
|
-
readonly description: "Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement
|
|
526
|
+
readonly description: "Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement";
|
|
505
527
|
readonly items: {
|
|
506
528
|
readonly type: "ref";
|
|
507
529
|
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
@@ -658,70 +680,6 @@ export declare const schemaDict: {
|
|
|
658
680
|
};
|
|
659
681
|
};
|
|
660
682
|
};
|
|
661
|
-
readonly OrgHypercertsClaimProject: {
|
|
662
|
-
readonly lexicon: 1;
|
|
663
|
-
readonly id: "org.hypercerts.claim.project";
|
|
664
|
-
readonly defs: {
|
|
665
|
-
readonly main: {
|
|
666
|
-
readonly type: "record";
|
|
667
|
-
readonly description: "A project that can include multiple activities, each of which may be linked to at most one project.";
|
|
668
|
-
readonly key: "tid";
|
|
669
|
-
readonly record: {
|
|
670
|
-
readonly type: "object";
|
|
671
|
-
readonly required: ["title", "shortDescription", "createdAt"];
|
|
672
|
-
readonly properties: {
|
|
673
|
-
readonly title: {
|
|
674
|
-
readonly type: "string";
|
|
675
|
-
readonly description: "Title of this project";
|
|
676
|
-
readonly maxLength: 800;
|
|
677
|
-
readonly maxGraphemes: 80;
|
|
678
|
-
};
|
|
679
|
-
readonly shortDescription: {
|
|
680
|
-
readonly type: "string";
|
|
681
|
-
readonly maxLength: 3000;
|
|
682
|
-
readonly maxGraphemes: 300;
|
|
683
|
-
readonly description: "Short summary of this project, suitable for previews and list views.";
|
|
684
|
-
};
|
|
685
|
-
readonly description: {
|
|
686
|
-
readonly type: "ref";
|
|
687
|
-
readonly ref: "lex:pub.leaflet.pages.linearDocument#main";
|
|
688
|
-
readonly description: "Rich-text description of this project, represented as a Leaflet linear document.";
|
|
689
|
-
};
|
|
690
|
-
readonly avatar: {
|
|
691
|
-
readonly type: "blob";
|
|
692
|
-
readonly description: "Primary avatar image representing this project across apps and views; typically a square logo or project identity image.";
|
|
693
|
-
readonly accept: ["image/png", "image/jpeg"];
|
|
694
|
-
readonly maxSize: 1000000;
|
|
695
|
-
};
|
|
696
|
-
readonly coverPhoto: {
|
|
697
|
-
readonly type: "blob";
|
|
698
|
-
readonly description: "The cover photo of this project.";
|
|
699
|
-
readonly accept: ["image/png", "image/jpeg"];
|
|
700
|
-
readonly maxSize: 1000000;
|
|
701
|
-
};
|
|
702
|
-
readonly activities: {
|
|
703
|
-
readonly type: "array";
|
|
704
|
-
readonly description: "Array of activities with their associated weights in this project";
|
|
705
|
-
readonly items: {
|
|
706
|
-
readonly type: "ref";
|
|
707
|
-
readonly ref: "lex:org.hypercerts.claim.activity#activityWeight";
|
|
708
|
-
};
|
|
709
|
-
};
|
|
710
|
-
readonly location: {
|
|
711
|
-
readonly type: "ref";
|
|
712
|
-
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
713
|
-
readonly description: "A strong reference to a location record describing where the work for this project took place. The referenced record must conform to the app.certified.location lexicon.";
|
|
714
|
-
};
|
|
715
|
-
readonly createdAt: {
|
|
716
|
-
readonly type: "string";
|
|
717
|
-
readonly format: "datetime";
|
|
718
|
-
readonly description: "Client-declared timestamp when this record was originally created";
|
|
719
|
-
};
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
};
|
|
723
|
-
};
|
|
724
|
-
};
|
|
725
683
|
readonly OrgHypercertsClaimRights: {
|
|
726
684
|
readonly lexicon: 1;
|
|
727
685
|
readonly id: "org.hypercerts.claim.rights";
|
|
@@ -1114,7 +1072,7 @@ export declare const schemas: ({
|
|
|
1114
1072
|
readonly key: "any";
|
|
1115
1073
|
readonly record: {
|
|
1116
1074
|
readonly type: "object";
|
|
1117
|
-
readonly required: ["title", "shortDescription", "createdAt"
|
|
1075
|
+
readonly required: ["title", "shortDescription", "createdAt"];
|
|
1118
1076
|
readonly properties: {
|
|
1119
1077
|
readonly title: {
|
|
1120
1078
|
readonly type: "string";
|
|
@@ -1140,7 +1098,8 @@ export declare const schemas: ({
|
|
|
1140
1098
|
};
|
|
1141
1099
|
readonly workScope: {
|
|
1142
1100
|
readonly type: "ref";
|
|
1143
|
-
readonly ref: "lex:
|
|
1101
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
1102
|
+
readonly description: "A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions.";
|
|
1144
1103
|
};
|
|
1145
1104
|
readonly startDate: {
|
|
1146
1105
|
readonly type: "string";
|
|
@@ -1152,12 +1111,12 @@ export declare const schemas: ({
|
|
|
1152
1111
|
readonly format: "datetime";
|
|
1153
1112
|
readonly description: "When the work ended";
|
|
1154
1113
|
};
|
|
1155
|
-
readonly
|
|
1114
|
+
readonly contributors: {
|
|
1156
1115
|
readonly type: "array";
|
|
1157
|
-
readonly description: "
|
|
1116
|
+
readonly description: "An array of contributor objects, each containing contributor information, weight, and contribution details.";
|
|
1158
1117
|
readonly items: {
|
|
1159
1118
|
readonly type: "ref";
|
|
1160
|
-
readonly ref: "lex:
|
|
1119
|
+
readonly ref: "lex:org.hypercerts.claim.activity#contributor";
|
|
1161
1120
|
};
|
|
1162
1121
|
};
|
|
1163
1122
|
readonly rights: {
|
|
@@ -1173,11 +1132,6 @@ export declare const schemas: ({
|
|
|
1173
1132
|
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
1174
1133
|
};
|
|
1175
1134
|
};
|
|
1176
|
-
readonly project: {
|
|
1177
|
-
readonly type: "string";
|
|
1178
|
-
readonly format: "at-uri";
|
|
1179
|
-
readonly description: "A reference (AT-URI) to the project record that this activity is part of. The record referenced must conform with the lexicon org.hypercerts.claim.project. This activity must also be referenced by the project, establishing a bidirectional link.";
|
|
1180
|
-
};
|
|
1181
1135
|
readonly createdAt: {
|
|
1182
1136
|
readonly type: "string";
|
|
1183
1137
|
readonly format: "datetime";
|
|
@@ -1186,36 +1140,36 @@ export declare const schemas: ({
|
|
|
1186
1140
|
};
|
|
1187
1141
|
};
|
|
1188
1142
|
};
|
|
1189
|
-
readonly
|
|
1143
|
+
readonly contributor: {
|
|
1190
1144
|
readonly type: "object";
|
|
1191
|
-
readonly
|
|
1145
|
+
readonly required: ["contributorInformation"];
|
|
1192
1146
|
readonly properties: {
|
|
1193
|
-
readonly
|
|
1194
|
-
readonly type: "
|
|
1195
|
-
readonly
|
|
1196
|
-
readonly
|
|
1197
|
-
readonly type: "string";
|
|
1198
|
-
};
|
|
1199
|
-
readonly maxLength: 100;
|
|
1147
|
+
readonly contributorInformation: {
|
|
1148
|
+
readonly type: "union";
|
|
1149
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorIdentity", "lex:com.atproto.repo.strongRef"];
|
|
1150
|
+
readonly description: "Contributor information as a string (DID or identifier) or strong reference to for instance org.hypercerts.claim.contributorInformation#main.";
|
|
1200
1151
|
};
|
|
1201
|
-
readonly
|
|
1202
|
-
readonly type: "
|
|
1203
|
-
readonly description: "
|
|
1204
|
-
readonly items: {
|
|
1205
|
-
readonly type: "string";
|
|
1206
|
-
};
|
|
1207
|
-
readonly maxLength: 100;
|
|
1152
|
+
readonly weight: {
|
|
1153
|
+
readonly type: "string";
|
|
1154
|
+
readonly description: "The relative weight/importance of this contribution (stored as a string to avoid float precision issues). Must be a positive numeric value. Weights do not need to sum to a specific total; normalization can be performed by the consuming application as needed.";
|
|
1208
1155
|
};
|
|
1209
|
-
readonly
|
|
1210
|
-
readonly type: "
|
|
1211
|
-
readonly
|
|
1212
|
-
readonly
|
|
1213
|
-
readonly type: "string";
|
|
1214
|
-
};
|
|
1215
|
-
readonly maxLength: 100;
|
|
1156
|
+
readonly contributionDetails: {
|
|
1157
|
+
readonly type: "union";
|
|
1158
|
+
readonly refs: ["lex:org.hypercerts.claim.activity#contributorRole", "lex:com.atproto.repo.strongRef"];
|
|
1159
|
+
readonly description: "Contribution details as a string or strong reference to org.hypercerts.claim.contributionDetails#main.";
|
|
1216
1160
|
};
|
|
1217
1161
|
};
|
|
1218
1162
|
};
|
|
1163
|
+
readonly contributorIdentity: {
|
|
1164
|
+
readonly type: "string";
|
|
1165
|
+
readonly description: "Contributor information as a string (DID or identifier).";
|
|
1166
|
+
};
|
|
1167
|
+
readonly contributorRole: {
|
|
1168
|
+
readonly type: "string";
|
|
1169
|
+
readonly description: "Contribution details as a string.";
|
|
1170
|
+
readonly maxLength: 10000;
|
|
1171
|
+
readonly maxGraphemes: 1000;
|
|
1172
|
+
};
|
|
1219
1173
|
readonly activityWeight: {
|
|
1220
1174
|
readonly type: "object";
|
|
1221
1175
|
readonly required: ["activity", "weight"];
|
|
@@ -1238,12 +1192,16 @@ export declare const schemas: ({
|
|
|
1238
1192
|
readonly defs: {
|
|
1239
1193
|
readonly main: {
|
|
1240
1194
|
readonly type: "record";
|
|
1241
|
-
readonly description: "A collection/group of
|
|
1195
|
+
readonly 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.";
|
|
1242
1196
|
readonly key: "tid";
|
|
1243
1197
|
readonly record: {
|
|
1244
1198
|
readonly type: "object";
|
|
1245
|
-
readonly required: ["title", "
|
|
1199
|
+
readonly required: ["title", "items", "createdAt"];
|
|
1246
1200
|
readonly properties: {
|
|
1201
|
+
readonly type: {
|
|
1202
|
+
readonly type: "string";
|
|
1203
|
+
readonly description: "The type of this collection. Possible fields can be 'favorites', 'project', or any other type of collection.";
|
|
1204
|
+
};
|
|
1247
1205
|
readonly title: {
|
|
1248
1206
|
readonly type: "string";
|
|
1249
1207
|
readonly description: "The title of this collection";
|
|
@@ -1254,26 +1212,19 @@ export declare const schemas: ({
|
|
|
1254
1212
|
readonly type: "string";
|
|
1255
1213
|
readonly maxLength: 3000;
|
|
1256
1214
|
readonly maxGraphemes: 300;
|
|
1257
|
-
readonly description: "
|
|
1258
|
-
};
|
|
1259
|
-
readonly avatar: {
|
|
1260
|
-
readonly type: "blob";
|
|
1261
|
-
readonly description: "Primary avatar image representing this collection across apps and views; typically a square image.";
|
|
1262
|
-
readonly accept: ["image/png", "image/jpeg"];
|
|
1263
|
-
readonly maxSize: 1000000;
|
|
1215
|
+
readonly description: "Short summary of this collection, suitable for previews and list views";
|
|
1264
1216
|
};
|
|
1265
|
-
readonly
|
|
1266
|
-
readonly type: "
|
|
1267
|
-
readonly
|
|
1268
|
-
readonly
|
|
1269
|
-
readonly maxSize: 1000000;
|
|
1217
|
+
readonly description: {
|
|
1218
|
+
readonly type: "ref";
|
|
1219
|
+
readonly ref: "lex:pub.leaflet.pages.linearDocument#main";
|
|
1220
|
+
readonly description: "Rich-text description, represented as a Leaflet linear document.";
|
|
1270
1221
|
};
|
|
1271
|
-
readonly
|
|
1222
|
+
readonly items: {
|
|
1272
1223
|
readonly type: "array";
|
|
1273
|
-
readonly description: "Array of
|
|
1224
|
+
readonly description: "Array of strong references to items in this collection. Items can be activities (org.hypercerts.claim.activity) and/or other collections (org.hypercerts.claim.collection).";
|
|
1274
1225
|
readonly items: {
|
|
1275
1226
|
readonly type: "ref";
|
|
1276
|
-
readonly ref: "lex:
|
|
1227
|
+
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
1277
1228
|
};
|
|
1278
1229
|
};
|
|
1279
1230
|
readonly createdAt: {
|
|
@@ -1287,33 +1238,26 @@ export declare const schemas: ({
|
|
|
1287
1238
|
};
|
|
1288
1239
|
} | {
|
|
1289
1240
|
readonly lexicon: 1;
|
|
1290
|
-
readonly id: "org.hypercerts.claim.
|
|
1241
|
+
readonly id: "org.hypercerts.claim.contributionDetails";
|
|
1291
1242
|
readonly defs: {
|
|
1292
1243
|
readonly main: {
|
|
1293
1244
|
readonly type: "record";
|
|
1294
|
-
readonly description: "
|
|
1245
|
+
readonly description: "Details about a specific contribution including role, description, and timeframe.";
|
|
1295
1246
|
readonly key: "tid";
|
|
1296
1247
|
readonly record: {
|
|
1297
1248
|
readonly type: "object";
|
|
1298
|
-
readonly required: ["
|
|
1249
|
+
readonly required: ["createdAt"];
|
|
1299
1250
|
readonly properties: {
|
|
1300
1251
|
readonly role: {
|
|
1301
1252
|
readonly type: "string";
|
|
1302
|
-
readonly description: "Role or title of the contributor
|
|
1253
|
+
readonly description: "Role or title of the contributor.";
|
|
1303
1254
|
readonly maxLength: 100;
|
|
1304
1255
|
};
|
|
1305
|
-
readonly
|
|
1306
|
-
readonly type: "array";
|
|
1307
|
-
readonly description: "List of the contributors (names, pseudonyms, or DIDs). If multiple contributors are stored in the same hypercertContribution, then they would have the exact same role.";
|
|
1308
|
-
readonly items: {
|
|
1309
|
-
readonly type: "string";
|
|
1310
|
-
};
|
|
1311
|
-
};
|
|
1312
|
-
readonly description: {
|
|
1256
|
+
readonly contributionDescription: {
|
|
1313
1257
|
readonly type: "string";
|
|
1314
|
-
readonly description: "What the contribution concretely
|
|
1315
|
-
readonly maxLength:
|
|
1316
|
-
readonly maxGraphemes:
|
|
1258
|
+
readonly description: "What the contribution concretely was.";
|
|
1259
|
+
readonly maxLength: 10000;
|
|
1260
|
+
readonly maxGraphemes: 1000;
|
|
1317
1261
|
};
|
|
1318
1262
|
readonly startDate: {
|
|
1319
1263
|
readonly type: "string";
|
|
@@ -1323,12 +1267,47 @@ export declare const schemas: ({
|
|
|
1323
1267
|
readonly endDate: {
|
|
1324
1268
|
readonly type: "string";
|
|
1325
1269
|
readonly format: "datetime";
|
|
1326
|
-
readonly description: "When this contribution finished.
|
|
1270
|
+
readonly description: "When this contribution finished. This should be a subset of the hypercert timeframe.";
|
|
1327
1271
|
};
|
|
1328
1272
|
readonly createdAt: {
|
|
1329
1273
|
readonly type: "string";
|
|
1330
1274
|
readonly format: "datetime";
|
|
1331
|
-
readonly description: "Client-declared timestamp when this record was originally created";
|
|
1275
|
+
readonly description: "Client-declared timestamp when this record was originally created.";
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
} | {
|
|
1282
|
+
readonly lexicon: 1;
|
|
1283
|
+
readonly id: "org.hypercerts.claim.contributorInformation";
|
|
1284
|
+
readonly defs: {
|
|
1285
|
+
readonly main: {
|
|
1286
|
+
readonly type: "record";
|
|
1287
|
+
readonly description: "Contributor information including identifier, display name, and image.";
|
|
1288
|
+
readonly key: "tid";
|
|
1289
|
+
readonly record: {
|
|
1290
|
+
readonly type: "object";
|
|
1291
|
+
readonly required: ["createdAt"];
|
|
1292
|
+
readonly properties: {
|
|
1293
|
+
readonly identifier: {
|
|
1294
|
+
readonly type: "string";
|
|
1295
|
+
readonly description: "DID or a URI to a social profile of the contributor.";
|
|
1296
|
+
};
|
|
1297
|
+
readonly displayName: {
|
|
1298
|
+
readonly type: "string";
|
|
1299
|
+
readonly description: "Display name of the contributor.";
|
|
1300
|
+
readonly maxLength: 100;
|
|
1301
|
+
};
|
|
1302
|
+
readonly image: {
|
|
1303
|
+
readonly type: "union";
|
|
1304
|
+
readonly refs: ["lex:org.hypercerts.defs#uri", "lex:org.hypercerts.defs#smallImage"];
|
|
1305
|
+
readonly description: "The contributor visual representation as a URI or image blob.";
|
|
1306
|
+
};
|
|
1307
|
+
readonly createdAt: {
|
|
1308
|
+
readonly type: "string";
|
|
1309
|
+
readonly format: "datetime";
|
|
1310
|
+
readonly description: "Client-declared timestamp when this record was originally created.";
|
|
1332
1311
|
};
|
|
1333
1312
|
};
|
|
1334
1313
|
};
|
|
@@ -1390,7 +1369,7 @@ export declare const schemas: ({
|
|
|
1390
1369
|
};
|
|
1391
1370
|
readonly measurements: {
|
|
1392
1371
|
readonly type: "array";
|
|
1393
|
-
readonly description: "Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement
|
|
1372
|
+
readonly description: "Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement";
|
|
1394
1373
|
readonly items: {
|
|
1395
1374
|
readonly type: "ref";
|
|
1396
1375
|
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
@@ -1544,69 +1523,6 @@ export declare const schemas: ({
|
|
|
1544
1523
|
};
|
|
1545
1524
|
};
|
|
1546
1525
|
};
|
|
1547
|
-
} | {
|
|
1548
|
-
readonly lexicon: 1;
|
|
1549
|
-
readonly id: "org.hypercerts.claim.project";
|
|
1550
|
-
readonly defs: {
|
|
1551
|
-
readonly main: {
|
|
1552
|
-
readonly type: "record";
|
|
1553
|
-
readonly description: "A project that can include multiple activities, each of which may be linked to at most one project.";
|
|
1554
|
-
readonly key: "tid";
|
|
1555
|
-
readonly record: {
|
|
1556
|
-
readonly type: "object";
|
|
1557
|
-
readonly required: ["title", "shortDescription", "createdAt"];
|
|
1558
|
-
readonly properties: {
|
|
1559
|
-
readonly title: {
|
|
1560
|
-
readonly type: "string";
|
|
1561
|
-
readonly description: "Title of this project";
|
|
1562
|
-
readonly maxLength: 800;
|
|
1563
|
-
readonly maxGraphemes: 80;
|
|
1564
|
-
};
|
|
1565
|
-
readonly shortDescription: {
|
|
1566
|
-
readonly type: "string";
|
|
1567
|
-
readonly maxLength: 3000;
|
|
1568
|
-
readonly maxGraphemes: 300;
|
|
1569
|
-
readonly description: "Short summary of this project, suitable for previews and list views.";
|
|
1570
|
-
};
|
|
1571
|
-
readonly description: {
|
|
1572
|
-
readonly type: "ref";
|
|
1573
|
-
readonly ref: "lex:pub.leaflet.pages.linearDocument#main";
|
|
1574
|
-
readonly description: "Rich-text description of this project, represented as a Leaflet linear document.";
|
|
1575
|
-
};
|
|
1576
|
-
readonly avatar: {
|
|
1577
|
-
readonly type: "blob";
|
|
1578
|
-
readonly description: "Primary avatar image representing this project across apps and views; typically a square logo or project identity image.";
|
|
1579
|
-
readonly accept: ["image/png", "image/jpeg"];
|
|
1580
|
-
readonly maxSize: 1000000;
|
|
1581
|
-
};
|
|
1582
|
-
readonly coverPhoto: {
|
|
1583
|
-
readonly type: "blob";
|
|
1584
|
-
readonly description: "The cover photo of this project.";
|
|
1585
|
-
readonly accept: ["image/png", "image/jpeg"];
|
|
1586
|
-
readonly maxSize: 1000000;
|
|
1587
|
-
};
|
|
1588
|
-
readonly activities: {
|
|
1589
|
-
readonly type: "array";
|
|
1590
|
-
readonly description: "Array of activities with their associated weights in this project";
|
|
1591
|
-
readonly items: {
|
|
1592
|
-
readonly type: "ref";
|
|
1593
|
-
readonly ref: "lex:org.hypercerts.claim.activity#activityWeight";
|
|
1594
|
-
};
|
|
1595
|
-
};
|
|
1596
|
-
readonly location: {
|
|
1597
|
-
readonly type: "ref";
|
|
1598
|
-
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
1599
|
-
readonly description: "A strong reference to a location record describing where the work for this project took place. The referenced record must conform to the app.certified.location lexicon.";
|
|
1600
|
-
};
|
|
1601
|
-
readonly createdAt: {
|
|
1602
|
-
readonly type: "string";
|
|
1603
|
-
readonly format: "datetime";
|
|
1604
|
-
readonly description: "Client-declared timestamp when this record was originally created";
|
|
1605
|
-
};
|
|
1606
|
-
};
|
|
1607
|
-
};
|
|
1608
|
-
};
|
|
1609
|
-
};
|
|
1610
1526
|
} | {
|
|
1611
1527
|
readonly lexicon: 1;
|
|
1612
1528
|
readonly id: "org.hypercerts.claim.rights";
|
|
@@ -1799,11 +1715,11 @@ export declare const ids: {
|
|
|
1799
1715
|
readonly ComAtprotoRepoStrongRef: "com.atproto.repo.strongRef";
|
|
1800
1716
|
readonly OrgHypercertsClaimActivity: "org.hypercerts.claim.activity";
|
|
1801
1717
|
readonly OrgHypercertsClaimCollection: "org.hypercerts.claim.collection";
|
|
1802
|
-
readonly
|
|
1718
|
+
readonly OrgHypercertsClaimContributionDetails: "org.hypercerts.claim.contributionDetails";
|
|
1719
|
+
readonly OrgHypercertsClaimContributorInformation: "org.hypercerts.claim.contributorInformation";
|
|
1803
1720
|
readonly OrgHypercertsClaimEvaluation: "org.hypercerts.claim.evaluation";
|
|
1804
1721
|
readonly OrgHypercertsClaimEvidence: "org.hypercerts.claim.evidence";
|
|
1805
1722
|
readonly OrgHypercertsClaimMeasurement: "org.hypercerts.claim.measurement";
|
|
1806
|
-
readonly OrgHypercertsClaimProject: "org.hypercerts.claim.project";
|
|
1807
1723
|
readonly OrgHypercertsClaimRights: "org.hypercerts.claim.rights";
|
|
1808
1724
|
readonly OrgHypercertsDefs: "org.hypercerts.defs";
|
|
1809
1725
|
readonly OrgHypercertsFundingReceipt: "org.hypercerts.funding.receipt";
|