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