@takuhon/core 0.4.0 → 0.5.0
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/dist/index.d.ts +312 -17
- package/dist/index.js +175 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/takuhon.schema.json +80 -2
package/package.json
CHANGED
package/takuhon.schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://takuhon.example/schemas/0.
|
|
3
|
+
"$id": "https://takuhon.example/schemas/0.4.0/takuhon.schema.json",
|
|
4
4
|
"title": "Takuhon Profile",
|
|
5
5
|
"description": "Portable profile data format consumed by @takuhon/core. The canonical contract for profile content authored as takuhon.json.",
|
|
6
6
|
"type": "object",
|
|
@@ -88,6 +88,16 @@
|
|
|
88
88
|
"maxItems": 50,
|
|
89
89
|
"items": { "$ref": "#/$defs/Patent" }
|
|
90
90
|
},
|
|
91
|
+
"testScores": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"maxItems": 30,
|
|
94
|
+
"items": { "$ref": "#/$defs/TestScore" }
|
|
95
|
+
},
|
|
96
|
+
"recommendations": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"maxItems": 50,
|
|
99
|
+
"items": { "$ref": "#/$defs/Recommendation" }
|
|
100
|
+
},
|
|
91
101
|
"contact": { "$ref": "#/$defs/Contact" },
|
|
92
102
|
"settings": { "$ref": "#/$defs/Settings" },
|
|
93
103
|
"meta": { "$ref": "#/$defs/Meta" }
|
|
@@ -400,7 +410,7 @@
|
|
|
400
410
|
"MetaPrivacy": {
|
|
401
411
|
"type": "object",
|
|
402
412
|
"additionalProperties": true,
|
|
403
|
-
"description": "Opt-out flags that strip personally identifying fields from public API output (GET /api/profile, /api/jsonld, /takuhon.json). Admin endpoints (PUT /api/admin/*, GET /api/export) ignore these flags. Privacy-by-default: omitting the object or individual flags is equivalent to true.",
|
|
413
|
+
"description": "Opt-out flags that strip personally identifying fields from public API output (GET /api/profile, /api/jsonld, /takuhon.json). Admin endpoints (PUT /api/admin/*, GET /api/admin/export) ignore these flags. Privacy-by-default: omitting the object or individual flags is equivalent to true.",
|
|
404
414
|
"properties": {
|
|
405
415
|
"hideCredentialIds": {
|
|
406
416
|
"type": "boolean",
|
|
@@ -604,6 +614,74 @@
|
|
|
604
614
|
},
|
|
605
615
|
"order": { "type": "integer", "minimum": 0 }
|
|
606
616
|
}
|
|
617
|
+
},
|
|
618
|
+
"TestScore": {
|
|
619
|
+
"type": "object",
|
|
620
|
+
"additionalProperties": true,
|
|
621
|
+
"required": ["id", "title", "score", "date"],
|
|
622
|
+
"properties": {
|
|
623
|
+
"id": { "$ref": "#/$defs/Slug" },
|
|
624
|
+
"title": { "$ref": "#/$defs/LocalizedTitle" },
|
|
625
|
+
"score": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"minLength": 1,
|
|
628
|
+
"maxLength": 50,
|
|
629
|
+
"description": "Free-form score string (e.g. '112 / 120', '330', 'N1 Pass', or a percentile). The validator does not interpret its contents."
|
|
630
|
+
},
|
|
631
|
+
"date": { "$ref": "#/$defs/YearMonth" },
|
|
632
|
+
"relatedEducationId": {
|
|
633
|
+
"$ref": "#/$defs/Slug",
|
|
634
|
+
"description": "Optional reference to an education[].id (e.g. for a university course exam)."
|
|
635
|
+
},
|
|
636
|
+
"description": { "$ref": "#/$defs/LocalizedBody" },
|
|
637
|
+
"url": { "$ref": "#/$defs/Url" },
|
|
638
|
+
"order": { "type": "integer", "minimum": 0 }
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
"Recommendation": {
|
|
642
|
+
"type": "object",
|
|
643
|
+
"additionalProperties": true,
|
|
644
|
+
"required": ["id", "body", "author"],
|
|
645
|
+
"properties": {
|
|
646
|
+
"id": { "$ref": "#/$defs/Slug" },
|
|
647
|
+
"body": { "$ref": "#/$defs/LocalizedBody" },
|
|
648
|
+
"author": { "$ref": "#/$defs/RecommendationAuthor" },
|
|
649
|
+
"relationship": {
|
|
650
|
+
"$ref": "#/$defs/LocalizedTitle",
|
|
651
|
+
"description": "How the recommender relates to the profile owner (e.g. 'managed directly', 'worked together')."
|
|
652
|
+
},
|
|
653
|
+
"date": { "$ref": "#/$defs/YearMonth" },
|
|
654
|
+
"relatedCareerId": {
|
|
655
|
+
"$ref": "#/$defs/Slug",
|
|
656
|
+
"description": "Optional reference to a careers[].id (the position the recommendation pertains to)."
|
|
657
|
+
},
|
|
658
|
+
"relatedEducationId": {
|
|
659
|
+
"$ref": "#/$defs/Slug",
|
|
660
|
+
"description": "Optional reference to an education[].id (e.g. a recommendation from a professor)."
|
|
661
|
+
},
|
|
662
|
+
"order": { "type": "integer", "minimum": 0 }
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"RecommendationAuthor": {
|
|
666
|
+
"type": "object",
|
|
667
|
+
"additionalProperties": true,
|
|
668
|
+
"required": ["name"],
|
|
669
|
+
"properties": {
|
|
670
|
+
"name": {
|
|
671
|
+
"type": "string",
|
|
672
|
+
"minLength": 1,
|
|
673
|
+
"maxLength": 100,
|
|
674
|
+
"description": "Recommender's name, in its original script. Owner-curated; takuhon does not verify it."
|
|
675
|
+
},
|
|
676
|
+
"headline": {
|
|
677
|
+
"$ref": "#/$defs/LocalizedTitle",
|
|
678
|
+
"description": "Recommender's title / role / organization at the time of the recommendation."
|
|
679
|
+
},
|
|
680
|
+
"url": {
|
|
681
|
+
"$ref": "#/$defs/Url",
|
|
682
|
+
"description": "Link to the recommender's profile, for external verification by the reader."
|
|
683
|
+
}
|
|
684
|
+
}
|
|
607
685
|
}
|
|
608
686
|
}
|
|
609
687
|
}
|