@originator-profile/model 0.4.0-beta.5 → 0.5.0-beta.1

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.cjs CHANGED
@@ -59,6 +59,36 @@ const CertificationSystem = {
59
59
  required: ["id", "type", "name"]
60
60
  };
61
61
 
62
+ const OpCipContext = {
63
+ type: "array",
64
+ additionalItems: false,
65
+ minItems: 4,
66
+ items: [
67
+ {
68
+ type: "string",
69
+ const: "https://www.w3.org/ns/credentials/v2"
70
+ },
71
+ {
72
+ type: "string",
73
+ const: "https://originator-profile.org/ns/credentials/v1"
74
+ },
75
+ {
76
+ type: "string",
77
+ const: "https://originator-profile.org/ns/cip/v1"
78
+ },
79
+ {
80
+ type: "object",
81
+ properties: {
82
+ "@language": {
83
+ type: "string",
84
+ title: "\u8A00\u8A9E\u30B3\u30FC\u30C9"
85
+ }
86
+ },
87
+ required: ["@language"]
88
+ }
89
+ ]
90
+ };
91
+
62
92
  const OpContextHead = {
63
93
  type: "array",
64
94
  allOf: [
@@ -137,36 +167,6 @@ const CertificateProperties = {
137
167
  required: ["id", "type", "certificationSystem"]
138
168
  };
139
169
 
140
- const OpCipContext = {
141
- type: "array",
142
- additionalItems: false,
143
- minItems: 4,
144
- items: [
145
- {
146
- type: "string",
147
- const: "https://www.w3.org/ns/credentials/v2"
148
- },
149
- {
150
- type: "string",
151
- const: "https://originator-profile.org/ns/credentials/v1"
152
- },
153
- {
154
- type: "string",
155
- const: "https://originator-profile.org/ns/cip/v1"
156
- },
157
- {
158
- type: "object",
159
- properties: {
160
- "@language": {
161
- type: "string",
162
- title: "\u8A00\u8A9E\u30B3\u30FC\u30C9"
163
- }
164
- },
165
- required: ["@language"]
166
- }
167
- ]
168
- };
169
-
170
170
  const Certificate = {
171
171
  type: "object",
172
172
  allOf: [
@@ -203,12 +203,16 @@ const JapaneseExistenceCertificateProperties = {
203
203
  type: "object",
204
204
  properties: {
205
205
  id: { type: "string", title: "subject \u306E OP ID", format: "uri" },
206
- type: { type: "string", const: "ECJPProperties" },
206
+ type: { type: "string", const: "JP-OrganizationExistenceCertificate" },
207
207
  name: {
208
- title: "\u6CD5\u4EBA\u540D",
208
+ title: "PA \u540D",
209
209
  type: "string"
210
210
  },
211
211
  description: { type: "string", title: "\u8AAC\u660E" },
212
+ corporateName: {
213
+ title: "\u6CD5\u4EBA\u540D",
214
+ type: "string"
215
+ },
212
216
  corporateNumber: {
213
217
  title: "\u6CD5\u4EBA\u756A\u53F7",
214
218
  type: "string"
@@ -239,6 +243,7 @@ const JapaneseExistenceCertificateProperties = {
239
243
  "id",
240
244
  "type",
241
245
  "name",
246
+ "corporateName",
242
247
  "corporateNumber",
243
248
  "postalCode",
244
249
  "addressCountry",
@@ -279,6 +284,16 @@ const JapaneseExistenceCertificate = {
279
284
  ]
280
285
  };
281
286
 
287
+ const Page = {
288
+ title: "\u30DA\u30FC\u30B8",
289
+ type: "object",
290
+ properties: {
291
+ id: { title: "\u30DA\u30FC\u30B8 URL", type: "string", format: "uri" },
292
+ name: { title: "\u30DA\u30FC\u30B8\u8868\u793A\u540D", type: "string" }
293
+ },
294
+ required: ["id", "name"]
295
+ };
296
+
282
297
  const BasicTarget = {
283
298
  title: "Basic Target",
284
299
  type: "object",
@@ -410,16 +425,6 @@ const ContentAttestation = {
410
425
  ]
411
426
  };
412
427
 
413
- const Page = {
414
- title: "\u30DA\u30FC\u30B8",
415
- type: "object",
416
- properties: {
417
- id: { title: "\u30DA\u30FC\u30B8 URL", type: "string", format: "uri" },
418
- name: { title: "\u30DA\u30FC\u30B8\u8868\u793A\u540D", type: "string" }
419
- },
420
- required: ["id", "name"]
421
- };
422
-
423
428
  const subject$4 = {
424
429
  type: "object",
425
430
  additionalProperties: false,
@@ -431,15 +436,15 @@ const subject$4 = {
431
436
  },
432
437
  type: {
433
438
  type: "string",
434
- const: "Article"
439
+ const: "Advertorial"
435
440
  },
436
441
  headline: {
437
442
  type: "string",
438
- description: "\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u30BF\u30A4\u30C8\u30EB\u3002"
443
+ description: "\u8A18\u4E8B\u5E83\u544A\u306E\u30BF\u30A4\u30C8\u30EB\u3002"
439
444
  },
440
445
  description: {
441
446
  type: "string",
442
- description: "\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u8AAC\u660E\uFF08\u6587\u5B57\u5217\uFF09\u3002"
447
+ description: "\u8A18\u4E8B\u5E83\u544A\u306E\u8AAC\u660E\uFF08\u6587\u5B57\u5217\uFF09\u3002"
443
448
  },
444
449
  image: Image,
445
450
  datePublished: {
@@ -466,6 +471,13 @@ const subject$4 = {
466
471
  type: "string"
467
472
  }
468
473
  },
474
+ sponsor: {
475
+ title: "\u30B9\u30DD\u30F3\u30B5\u30FC\u540D",
476
+ type: "array",
477
+ items: {
478
+ type: "string"
479
+ }
480
+ },
469
481
  genre: {
470
482
  title: "\u30B8\u30E3\u30F3\u30EB",
471
483
  type: "string"
@@ -473,7 +485,7 @@ const subject$4 = {
473
485
  },
474
486
  required: ["id", "type", "headline", "description"]
475
487
  };
476
- const ArticleCA = {
488
+ const AdvertorialCA = {
477
489
  type: "object",
478
490
  additionalProperties: true,
479
491
  allOf: [
@@ -498,52 +510,6 @@ const ArticleCA = {
498
510
  };
499
511
 
500
512
  const subject$3 = {
501
- type: "object",
502
- additionalProperties: true,
503
- properties: {
504
- id: {
505
- title: "CA ID",
506
- type: "string",
507
- format: "uri"
508
- },
509
- type: {
510
- title: "JSON-LD \u30BF\u30A4\u30D7",
511
- type: "string"
512
- }
513
- },
514
- required: ["id", "type"]
515
- };
516
- const UnsignedContentAttestation = {
517
- type: "object",
518
- additionalProperties: true,
519
- allOf: [
520
- OpVc,
521
- {
522
- type: "object",
523
- additionalProperties: true,
524
- properties: {
525
- "@context": OpContextHead,
526
- type: {
527
- type: "array",
528
- contains: {
529
- const: "ContentAttestation"
530
- }
531
- },
532
- credentialSubject: subject$3,
533
- allowedUrl: AllowedUrl,
534
- allowedOrigin: AllowedOrigin,
535
- target: {
536
- type: "array",
537
- items: RawTarget,
538
- minItems: 1
539
- }
540
- },
541
- required: ["@context", "type", "credentialSubject", "target"]
542
- }
543
- ]
544
- };
545
-
546
- const subject$2 = {
547
513
  type: "object",
548
514
  additionalProperties: false,
549
515
  properties: {
@@ -554,15 +520,15 @@ const subject$2 = {
554
520
  },
555
521
  type: {
556
522
  type: "string",
557
- const: "Advertorial"
523
+ const: "Article"
558
524
  },
559
525
  headline: {
560
526
  type: "string",
561
- description: "\u8A18\u4E8B\u5E83\u544A\u306E\u30BF\u30A4\u30C8\u30EB\u3002"
527
+ description: "\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u30BF\u30A4\u30C8\u30EB\u3002"
562
528
  },
563
529
  description: {
564
530
  type: "string",
565
- description: "\u8A18\u4E8B\u5E83\u544A\u306E\u8AAC\u660E\uFF08\u6587\u5B57\u5217\uFF09\u3002"
531
+ description: "\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u8AAC\u660E\uFF08\u6587\u5B57\u5217\uFF09\u3002"
566
532
  },
567
533
  image: Image,
568
534
  datePublished: {
@@ -589,13 +555,6 @@ const subject$2 = {
589
555
  type: "string"
590
556
  }
591
557
  },
592
- sponsor: {
593
- title: "\u30B9\u30DD\u30F3\u30B5\u30FC\u540D",
594
- type: "array",
595
- items: {
596
- type: "string"
597
- }
598
- },
599
558
  genre: {
600
559
  title: "\u30B8\u30E3\u30F3\u30EB",
601
560
  type: "string"
@@ -603,7 +562,7 @@ const subject$2 = {
603
562
  },
604
563
  required: ["id", "type", "headline", "description"]
605
564
  };
606
- const AdvertorialCA = {
565
+ const ArticleCA = {
607
566
  type: "object",
608
567
  additionalProperties: true,
609
568
  allOf: [
@@ -613,7 +572,7 @@ const AdvertorialCA = {
613
572
  additionalProperties: true,
614
573
  properties: {
615
574
  "@context": OpCipContext,
616
- credentialSubject: subject$2,
575
+ credentialSubject: subject$3,
617
576
  allowedUrl: AllowedUrl
618
577
  },
619
578
  required: ["@context", "type", "credentialSubject", "allowedUrl"]
@@ -627,6 +586,52 @@ const AdvertorialCA = {
627
586
  }
628
587
  };
629
588
 
589
+ const subject$2 = {
590
+ type: "object",
591
+ additionalProperties: true,
592
+ properties: {
593
+ id: {
594
+ title: "CA ID",
595
+ type: "string",
596
+ format: "uri"
597
+ },
598
+ type: {
599
+ title: "JSON-LD \u30BF\u30A4\u30D7",
600
+ type: "string"
601
+ }
602
+ },
603
+ required: ["id", "type"]
604
+ };
605
+ const UnsignedContentAttestation = {
606
+ type: "object",
607
+ additionalProperties: true,
608
+ allOf: [
609
+ OpVc,
610
+ {
611
+ type: "object",
612
+ additionalProperties: true,
613
+ properties: {
614
+ "@context": OpContextHead,
615
+ type: {
616
+ type: "array",
617
+ contains: {
618
+ const: "ContentAttestation"
619
+ }
620
+ },
621
+ credentialSubject: subject$2,
622
+ allowedUrl: AllowedUrl,
623
+ allowedOrigin: AllowedOrigin,
624
+ target: {
625
+ type: "array",
626
+ items: RawTarget,
627
+ minItems: 1
628
+ }
629
+ },
630
+ required: ["@context", "type", "credentialSubject", "target"]
631
+ }
632
+ ]
633
+ };
634
+
630
635
  const ContentAttestationSetItem = {
631
636
  title: "Content Attestation Set Item",
632
637
  oneOf: [
@@ -658,6 +663,20 @@ const ContentAttestationSet = {
658
663
  items: ContentAttestationSetItem
659
664
  };
660
665
 
666
+ const CpContext = {
667
+ type: "array",
668
+ additionalItems: false,
669
+ minItems: 2,
670
+ items: [
671
+ {
672
+ const: "https://www.w3.org/ns/credentials/v2"
673
+ },
674
+ {
675
+ const: "https://originator-profile.org/ns/credentials/v1"
676
+ }
677
+ ]
678
+ };
679
+
661
680
  const Jwk = {
662
681
  title: "JSON Web Key",
663
682
  type: "object",
@@ -713,20 +732,6 @@ const Jwks = {
713
732
  additionalProperties: true
714
733
  };
715
734
 
716
- const CpContext = {
717
- type: "array",
718
- additionalItems: false,
719
- minItems: 2,
720
- items: [
721
- {
722
- const: "https://www.w3.org/ns/credentials/v2"
723
- },
724
- {
725
- const: "https://originator-profile.org/ns/credentials/v1"
726
- }
727
- ]
728
- };
729
-
730
735
  const CoreProfile = {
731
736
  type: "object",
732
737
  additionalProperties: false,
@@ -782,10 +787,15 @@ const Advertisement = {
782
787
  required: ["type"]
783
788
  };
784
789
 
785
- const DpUrl = {
786
- title: "URL",
787
- description: "\u5BFE\u8C61\u306E\u8981\u7D20\u304C\u5B58\u5728\u3059\u308B\u30DA\u30FC\u30B8\u306E URL",
788
- type: "string"
790
+ const DpAllowedOrigins = {
791
+ title: "Allowed Origins",
792
+ description: "\u5229\u7528\u53EF\u80FD\u306A\u30AA\u30EA\u30B8\u30F3\u306E\u30EA\u30B9\u30C8",
793
+ type: "array",
794
+ items: {
795
+ title: "Allowed Origin",
796
+ description: "\u5229\u7528\u53EF\u80FD\u306A\u30AA\u30EA\u30B8\u30F3",
797
+ type: "string"
798
+ }
789
799
  };
790
800
 
791
801
  const DpLocation = {
@@ -809,12 +819,18 @@ const DpProof = {
809
819
  additionalProperties: false
810
820
  };
811
821
 
812
- const DpVisibleText = {
813
- title: "Document Profile Visible Text",
814
- description: "\u5BFE\u8C61\u306E\u8981\u7D20\u306E\u305D\u306E\u5B50\u5B6B\u306E\u30EC\u30F3\u30C0\u30EA\u30F3\u30B0\u3055\u308C\u305F\u30C6\u30AD\u30B9\u30C8\u3068\u305D\u306E\u30C6\u30AD\u30B9\u30C8\u3078\u306E\u7F72\u540D",
822
+ const DpUrl = {
823
+ title: "URL",
824
+ description: "\u5BFE\u8C61\u306E\u8981\u7D20\u304C\u5B58\u5728\u3059\u308B\u30DA\u30FC\u30B8\u306E URL",
825
+ type: "string"
826
+ };
827
+
828
+ const DpHtml = {
829
+ title: "Document Profile HTML",
830
+ description: "\u5BFE\u8C61\u306E\u8981\u7D20\u3068\u305D\u306E\u5B50\u5B6B\u3092\u542B\u3080\u90E8\u5206\u306E HTML \u3068\u305D\u306E HTML \u3078\u306E\u7F72\u540D",
815
831
  type: "object",
816
832
  properties: {
817
- type: { const: "visibleText" },
833
+ type: { const: "html" },
818
834
  url: DpUrl,
819
835
  location: DpLocation,
820
836
  proof: DpProof
@@ -837,12 +853,12 @@ const DpText = {
837
853
  additionalProperties: false
838
854
  };
839
855
 
840
- const DpHtml = {
841
- title: "Document Profile HTML",
842
- description: "\u5BFE\u8C61\u306E\u8981\u7D20\u3068\u305D\u306E\u5B50\u5B6B\u3092\u542B\u3080\u90E8\u5206\u306E HTML \u3068\u305D\u306E HTML \u3078\u306E\u7F72\u540D",
856
+ const DpVisibleText = {
857
+ title: "Document Profile Visible Text",
858
+ description: "\u5BFE\u8C61\u306E\u8981\u7D20\u306E\u305D\u306E\u5B50\u5B6B\u306E\u30EC\u30F3\u30C0\u30EA\u30F3\u30B0\u3055\u308C\u305F\u30C6\u30AD\u30B9\u30C8\u3068\u305D\u306E\u30C6\u30AD\u30B9\u30C8\u3078\u306E\u7F72\u540D",
843
859
  type: "object",
844
860
  properties: {
845
- type: { const: "html" },
861
+ type: { const: "visibleText" },
846
862
  url: DpUrl,
847
863
  location: DpLocation,
848
864
  proof: DpProof
@@ -883,17 +899,6 @@ const DpItem = {
883
899
  anyOf: [DpVisibleText, DpText, DpHtml, OgWebsite, Advertisement]
884
900
  };
885
901
 
886
- const DpAllowedOrigins = {
887
- title: "Allowed Origins",
888
- description: "\u5229\u7528\u53EF\u80FD\u306A\u30AA\u30EA\u30B8\u30F3\u306E\u30EA\u30B9\u30C8",
889
- type: "array",
890
- items: {
891
- title: "Allowed Origin",
892
- description: "\u5229\u7528\u53EF\u80FD\u306A\u30AA\u30EA\u30B8\u30F3",
893
- type: "string"
894
- }
895
- };
896
-
897
902
  const Dp = {
898
903
  title: "Document Profile",
899
904
  type: "object",
@@ -1426,6 +1431,41 @@ const Profile = {
1426
1431
  anyOf: [Op, Dp]
1427
1432
  };
1428
1433
 
1434
+ const Description = {
1435
+ title: "Description",
1436
+ anyOf: [
1437
+ { type: "string" },
1438
+ {
1439
+ type: "object",
1440
+ additionalProperties: true,
1441
+ properties: {
1442
+ text: {
1443
+ type: "string",
1444
+ description: "Text value."
1445
+ },
1446
+ encodingFormat: {
1447
+ type: "string",
1448
+ title: "Encoding format",
1449
+ description: "MIME type. Allowed values: 'text/plain' and 'text/html' (only br, p, ol, ul, li allowed).",
1450
+ enum: ["text/plain", "text/html"]
1451
+ }
1452
+ },
1453
+ required: ["text", "encodingFormat"]
1454
+ }
1455
+ ]
1456
+ };
1457
+
1458
+ const deprecatedMedia = {
1459
+ type: "string",
1460
+ title: "Web Media Profile"
1461
+ };
1462
+ const mediaArray = {
1463
+ type: "array",
1464
+ items: {
1465
+ type: "string",
1466
+ title: "Web Media Profile"
1467
+ }
1468
+ };
1429
1469
  const OriginatorProfileSetItem = {
1430
1470
  title: "Originator Profile",
1431
1471
  type: "object",
@@ -1444,8 +1484,8 @@ const OriginatorProfileSetItem = {
1444
1484
  }
1445
1485
  },
1446
1486
  media: {
1447
- title: "Web Media Profile",
1448
- type: "string"
1487
+ title: "Web Media Profile \u307E\u305F\u306F Web Media Profile \u306E\u914D\u5217",
1488
+ oneOf: [deprecatedMedia, mediaArray]
1449
1489
  }
1450
1490
  },
1451
1491
  required: ["core"]
@@ -1525,12 +1565,21 @@ const SiteProfile = {
1525
1565
  items: OriginatorProfileSetItem,
1526
1566
  minItems: 1
1527
1567
  },
1568
+ sites: {
1569
+ title: "Website Profile \u306E\u914D\u5217",
1570
+ type: "array",
1571
+ items: {
1572
+ type: "string",
1573
+ title: "Website Profile"
1574
+ }
1575
+ },
1528
1576
  credential: {
1577
+ // NOTE: 後方互換性のため 2026-11-01 まで残す。sitesが優先され、存在しない場合にcredentialを使用
1529
1578
  type: "string",
1530
1579
  title: "Credential"
1531
1580
  }
1532
1581
  },
1533
- required: ["originators", "credential"]
1582
+ required: ["originators"]
1534
1583
  };
1535
1584
 
1536
1585
  const User = {
@@ -1607,21 +1656,7 @@ const subject$1 = {
1607
1656
  required: ["id", "name"]
1608
1657
  },
1609
1658
  description: {
1610
- title: "\u7D44\u7E54\u306B\u95A2\u3059\u308B\u8AAC\u660E",
1611
- type: ["string", "object"],
1612
- properties: {
1613
- text: {
1614
- type: "string",
1615
- description: "Text value."
1616
- },
1617
- encodingFormat: {
1618
- type: "string",
1619
- title: "Encoding format",
1620
- description: "MIME type. Allowed values: 'text/plain' and 'text/html' (only br, p, ol, ul, li allowed).",
1621
- enum: ["text/plain", "text/html"]
1622
- }
1623
- },
1624
- required: ["text", "encodingFormat"]
1659
+ anyOf: [Description, { type: "array", items: Description }]
1625
1660
  }
1626
1661
  },
1627
1662
  required: ["id", "type", "url", "name"]
@@ -1684,7 +1719,7 @@ const subject = {
1684
1719
  properties: {
1685
1720
  id: {
1686
1721
  type: "string",
1687
- title: "Web \u30B5\u30A4\u30C8\u306E\u30AA\u30EA\u30B8\u30F3 (\u5F62\u5F0F: https://<\u30DB\u30B9\u30C8\u540D>)",
1722
+ description: "It MUST be the Web site URL. If the same content exists on multiple URLs, specify the most representative URL.",
1688
1723
  format: "uri"
1689
1724
  },
1690
1725
  type: {
@@ -1692,12 +1727,12 @@ const subject = {
1692
1727
  },
1693
1728
  name: {
1694
1729
  type: "string",
1695
- title: "Web \u30B5\u30A4\u30C8\u306E\u540D\u79F0"
1730
+ description: "The name of the Web site."
1696
1731
  },
1697
1732
  image: Image,
1698
1733
  description: {
1699
1734
  type: "string",
1700
- title: "Web \u30B5\u30A4\u30C8\u306E\u8AAC\u660E"
1735
+ description: "A description of the Web site."
1701
1736
  },
1702
1737
  allowedOrigin: AllowedOrigin
1703
1738
  },
@@ -1742,6 +1777,7 @@ exports.ContentAttestation = ContentAttestation;
1742
1777
  exports.ContentAttestationSet = ContentAttestationSet;
1743
1778
  exports.ContentAttestationSetItem = ContentAttestationSetItem;
1744
1779
  exports.CoreProfile = CoreProfile;
1780
+ exports.Description = Description;
1745
1781
  exports.Dp = Dp;
1746
1782
  exports.DpAllowedOrigins = DpAllowedOrigins;
1747
1783
  exports.DpHtml = DpHtml;