@takuhon/core 0.20.0 → 0.22.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takuhon/core",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "JSON Schema, validation, normalization, locale resolution, and JSON-LD generation for takuhon",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Takuhon contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://takuhon.example/schemas/0.6.0/takuhon.schema.json",
3
+ "$id": "https://takuhon.example/schemas/0.7.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",
@@ -142,6 +142,11 @@
142
142
  "pattern": "^[a-z0-9][a-z0-9-]*$",
143
143
  "description": "URL-safe identifier (lowercase alphanumerics and hyphens, must start with alphanumeric)."
144
144
  },
145
+ "Visibility": {
146
+ "type": "string",
147
+ "enum": ["public", "private"],
148
+ "description": "Per-item public visibility (added in 0.7.0). 'private' removes the item from every public surface via applyPublicPrivacyFilter; an absent value or 'public' keeps the item public."
149
+ },
145
150
  "LocalizedTitle": {
146
151
  "type": "object",
147
152
  "minProperties": 1,
@@ -233,6 +238,7 @@
233
238
  "required": ["id", "type", "url"],
234
239
  "properties": {
235
240
  "id": { "$ref": "#/$defs/Slug" },
241
+ "visibility": { "$ref": "#/$defs/Visibility" },
236
242
  "type": { "$ref": "#/$defs/LinkType" },
237
243
  "label": { "$ref": "#/$defs/LocalizedTitle" },
238
244
  "url": { "$ref": "#/$defs/Url" },
@@ -259,6 +265,7 @@
259
265
  "required": ["id", "organization", "role", "startDate"],
260
266
  "properties": {
261
267
  "id": { "$ref": "#/$defs/Slug" },
268
+ "visibility": { "$ref": "#/$defs/Visibility" },
262
269
  "organization": { "$ref": "#/$defs/LocalizedTitle" },
263
270
  "role": { "$ref": "#/$defs/LocalizedTitle" },
264
271
  "description": { "$ref": "#/$defs/LocalizedBody" },
@@ -278,6 +285,7 @@
278
285
  "required": ["id", "title"],
279
286
  "properties": {
280
287
  "id": { "$ref": "#/$defs/Slug" },
288
+ "visibility": { "$ref": "#/$defs/Visibility" },
281
289
  "title": { "$ref": "#/$defs/LocalizedTitle" },
282
290
  "description": { "$ref": "#/$defs/LocalizedBody" },
283
291
  "url": { "$ref": "#/$defs/Url" },
@@ -301,6 +309,7 @@
301
309
  "required": ["id", "label"],
302
310
  "properties": {
303
311
  "id": { "$ref": "#/$defs/Slug" },
312
+ "visibility": { "$ref": "#/$defs/Visibility" },
304
313
  "label": { "type": "string", "minLength": 1, "maxLength": 100 },
305
314
  "category": {
306
315
  "type": "string",
@@ -555,6 +564,7 @@
555
564
  "required": ["id", "title", "issuingOrganization", "issueDate"],
556
565
  "properties": {
557
566
  "id": { "$ref": "#/$defs/Slug" },
567
+ "visibility": { "$ref": "#/$defs/Visibility" },
558
568
  "title": { "$ref": "#/$defs/LocalizedTitle" },
559
569
  "issuingOrganization": { "$ref": "#/$defs/LocalizedTitle" },
560
570
  "issueDate": { "$ref": "#/$defs/YearMonth" },
@@ -578,6 +588,7 @@
578
588
  "required": ["id", "organization", "startDate"],
579
589
  "properties": {
580
590
  "id": { "$ref": "#/$defs/Slug" },
591
+ "visibility": { "$ref": "#/$defs/Visibility" },
581
592
  "organization": { "$ref": "#/$defs/LocalizedTitle" },
582
593
  "role": { "$ref": "#/$defs/LocalizedTitle" },
583
594
  "description": { "$ref": "#/$defs/LocalizedBody" },
@@ -597,6 +608,7 @@
597
608
  "required": ["id", "organization", "role", "startDate"],
598
609
  "properties": {
599
610
  "id": { "$ref": "#/$defs/Slug" },
611
+ "visibility": { "$ref": "#/$defs/Visibility" },
600
612
  "organization": { "$ref": "#/$defs/LocalizedTitle" },
601
613
  "role": { "$ref": "#/$defs/LocalizedTitle" },
602
614
  "cause": { "$ref": "#/$defs/LocalizedTitle" },
@@ -616,6 +628,7 @@
616
628
  "required": ["id", "title", "issuer", "date"],
617
629
  "properties": {
618
630
  "id": { "$ref": "#/$defs/Slug" },
631
+ "visibility": { "$ref": "#/$defs/Visibility" },
619
632
  "title": { "$ref": "#/$defs/LocalizedTitle" },
620
633
  "issuer": { "$ref": "#/$defs/LocalizedTitle" },
621
634
  "description": { "$ref": "#/$defs/LocalizedBody" },
@@ -630,6 +643,7 @@
630
643
  "required": ["id", "institution", "startDate"],
631
644
  "properties": {
632
645
  "id": { "$ref": "#/$defs/Slug" },
646
+ "visibility": { "$ref": "#/$defs/Visibility" },
633
647
  "institution": { "$ref": "#/$defs/LocalizedTitle" },
634
648
  "degree": { "$ref": "#/$defs/LocalizedTitle" },
635
649
  "fieldOfStudy": { "$ref": "#/$defs/LocalizedTitle" },
@@ -656,6 +670,7 @@
656
670
  "required": ["id", "title", "date"],
657
671
  "properties": {
658
672
  "id": { "$ref": "#/$defs/Slug" },
673
+ "visibility": { "$ref": "#/$defs/Visibility" },
659
674
  "title": { "$ref": "#/$defs/LocalizedTitle" },
660
675
  "publisher": { "$ref": "#/$defs/LocalizedTitle" },
661
676
  "description": { "$ref": "#/$defs/LocalizedBody" },
@@ -682,6 +697,7 @@
682
697
  "required": ["id", "language", "proficiency"],
683
698
  "properties": {
684
699
  "id": { "$ref": "#/$defs/Slug" },
700
+ "visibility": { "$ref": "#/$defs/Visibility" },
685
701
  "language": { "$ref": "#/$defs/LocaleTag" },
686
702
  "displayName": { "$ref": "#/$defs/LocalizedTitle" },
687
703
  "proficiency": {
@@ -698,6 +714,7 @@
698
714
  "required": ["id", "title"],
699
715
  "properties": {
700
716
  "id": { "$ref": "#/$defs/Slug" },
717
+ "visibility": { "$ref": "#/$defs/Visibility" },
701
718
  "title": { "$ref": "#/$defs/LocalizedTitle" },
702
719
  "provider": { "$ref": "#/$defs/LocalizedTitle" },
703
720
  "courseNumber": { "type": "string", "minLength": 1, "maxLength": 50 },
@@ -717,6 +734,7 @@
717
734
  "required": ["id", "title", "patentNumber", "status"],
718
735
  "properties": {
719
736
  "id": { "$ref": "#/$defs/Slug" },
737
+ "visibility": { "$ref": "#/$defs/Visibility" },
720
738
  "title": { "$ref": "#/$defs/LocalizedTitle" },
721
739
  "patentNumber": { "type": "string", "minLength": 1, "maxLength": 100 },
722
740
  "office": {
@@ -746,6 +764,7 @@
746
764
  "required": ["id", "title", "score", "date"],
747
765
  "properties": {
748
766
  "id": { "$ref": "#/$defs/Slug" },
767
+ "visibility": { "$ref": "#/$defs/Visibility" },
749
768
  "title": { "$ref": "#/$defs/LocalizedTitle" },
750
769
  "score": {
751
770
  "type": "string",
@@ -769,6 +788,7 @@
769
788
  "required": ["id", "body", "author"],
770
789
  "properties": {
771
790
  "id": { "$ref": "#/$defs/Slug" },
791
+ "visibility": { "$ref": "#/$defs/Visibility" },
772
792
  "body": { "$ref": "#/$defs/LocalizedBody" },
773
793
  "author": { "$ref": "#/$defs/RecommendationAuthor" },
774
794
  "relationship": {