@originator-profile/model 0.4.0-beta.1 → 0.4.0-beta.5
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/LICENSE +201 -0
- package/NOTICE +5 -0
- package/README.md +6 -3
- package/dist/index.cjs +130 -10
- package/dist/index.d.cts +599 -14
- package/dist/index.d.mts +599 -14
- package/dist/index.mjs +129 -11
- package/package.json +24 -19
- package/context.json +0 -59
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ const AllowedOrigin = {
|
|
|
11
11
|
items: Item$1
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
|
-
description: "Content Attestation \u306B\
|
|
14
|
+
description: "@deprecated Content Attestation \u3067\u306F allowedOrigin \u306F\u975E\u63A8\u5968\u3067\u3059\u3002\u4EE3\u308F\u308A\u306B allowedUrl \u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u30022026\u5E749\u6708\u307E\u3067\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u307E\u3059\u3002\n\n\u8868\u660E\u3055\u308C\u308B\u60C5\u5831\u306E\u5BFE\u8C61\u3068\u306A\u308B [origin](https://www.rfc-editor.org/rfc/rfc6454#section-7)"
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
const Item = {
|
|
@@ -334,7 +334,7 @@ const RawTarget = {
|
|
|
334
334
|
]
|
|
335
335
|
},
|
|
336
336
|
content: {
|
|
337
|
-
|
|
337
|
+
anyOf: [
|
|
338
338
|
{
|
|
339
339
|
type: "array",
|
|
340
340
|
items: {
|
|
@@ -362,7 +362,7 @@ const Target = {
|
|
|
362
362
|
oneOf: [BasicTarget, ExternalResourceTarget]
|
|
363
363
|
};
|
|
364
364
|
|
|
365
|
-
const subject$
|
|
365
|
+
const subject$5 = {
|
|
366
366
|
type: "object",
|
|
367
367
|
additionalProperties: true,
|
|
368
368
|
properties: {
|
|
@@ -394,7 +394,7 @@ const ContentAttestation = {
|
|
|
394
394
|
const: "ContentAttestation"
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
|
-
credentialSubject: subject$
|
|
397
|
+
credentialSubject: subject$5,
|
|
398
398
|
allowedUrl: AllowedUrl,
|
|
399
399
|
allowedOrigin: AllowedOrigin,
|
|
400
400
|
target: {
|
|
@@ -408,7 +408,17 @@ const ContentAttestation = {
|
|
|
408
408
|
]
|
|
409
409
|
};
|
|
410
410
|
|
|
411
|
-
const
|
|
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
|
+
const subject$4 = {
|
|
412
422
|
type: "object",
|
|
413
423
|
additionalProperties: false,
|
|
414
424
|
properties: {
|
|
@@ -427,7 +437,7 @@ const subject$3 = {
|
|
|
427
437
|
},
|
|
428
438
|
description: {
|
|
429
439
|
type: "string",
|
|
430
|
-
description: "\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u8AAC\u660E\uFF08\
|
|
440
|
+
description: "\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u8AAC\u660E\uFF08\u6587\u5B57\u5217\uFF09\u3002"
|
|
431
441
|
},
|
|
432
442
|
image: Image,
|
|
433
443
|
datePublished: {
|
|
@@ -471,7 +481,7 @@ const ArticleCA = {
|
|
|
471
481
|
additionalProperties: true,
|
|
472
482
|
properties: {
|
|
473
483
|
"@context": OpCipContext,
|
|
474
|
-
credentialSubject: subject$
|
|
484
|
+
credentialSubject: subject$4,
|
|
475
485
|
allowedUrl: AllowedUrl
|
|
476
486
|
},
|
|
477
487
|
required: ["@context", "type", "credentialSubject", "allowedUrl"]
|
|
@@ -485,7 +495,7 @@ const ArticleCA = {
|
|
|
485
495
|
}
|
|
486
496
|
};
|
|
487
497
|
|
|
488
|
-
const subject$
|
|
498
|
+
const subject$3 = {
|
|
489
499
|
type: "object",
|
|
490
500
|
additionalProperties: true,
|
|
491
501
|
properties: {
|
|
@@ -517,7 +527,7 @@ const UnsignedContentAttestation = {
|
|
|
517
527
|
const: "ContentAttestation"
|
|
518
528
|
}
|
|
519
529
|
},
|
|
520
|
-
credentialSubject: subject$
|
|
530
|
+
credentialSubject: subject$3,
|
|
521
531
|
allowedUrl: AllowedUrl,
|
|
522
532
|
allowedOrigin: AllowedOrigin,
|
|
523
533
|
target: {
|
|
@@ -531,6 +541,90 @@ const UnsignedContentAttestation = {
|
|
|
531
541
|
]
|
|
532
542
|
};
|
|
533
543
|
|
|
544
|
+
const subject$2 = {
|
|
545
|
+
type: "object",
|
|
546
|
+
additionalProperties: false,
|
|
547
|
+
properties: {
|
|
548
|
+
id: {
|
|
549
|
+
type: "string",
|
|
550
|
+
format: "uri",
|
|
551
|
+
description: "CA ID"
|
|
552
|
+
},
|
|
553
|
+
type: {
|
|
554
|
+
type: "string",
|
|
555
|
+
const: "Advertorial"
|
|
556
|
+
},
|
|
557
|
+
headline: {
|
|
558
|
+
type: "string",
|
|
559
|
+
description: "\u8A18\u4E8B\u5E83\u544A\u306E\u30BF\u30A4\u30C8\u30EB\u3002"
|
|
560
|
+
},
|
|
561
|
+
description: {
|
|
562
|
+
type: "string",
|
|
563
|
+
description: "\u8A18\u4E8B\u5E83\u544A\u306E\u8AAC\u660E\uFF08\u6587\u5B57\u5217\uFF09\u3002"
|
|
564
|
+
},
|
|
565
|
+
image: Image,
|
|
566
|
+
datePublished: {
|
|
567
|
+
title: "\u516C\u958B\u65E5\u6642",
|
|
568
|
+
type: "string",
|
|
569
|
+
description: "http://www.w3.org/2001/XMLSchema#dateTime \u5F62\u5F0F\u306E\u516C\u958B\u65E5\u6642"
|
|
570
|
+
},
|
|
571
|
+
dateModified: {
|
|
572
|
+
title: "\u6700\u7D42\u66F4\u65B0\u65E5\u6642",
|
|
573
|
+
type: "string",
|
|
574
|
+
description: "http://www.w3.org/2001/XMLSchema#dateTime \u5F62\u5F0F\u306E\u6700\u7D42\u66F4\u65B0\u65E5\u6642"
|
|
575
|
+
},
|
|
576
|
+
author: {
|
|
577
|
+
title: "\u8457\u8005\u540D",
|
|
578
|
+
type: "array",
|
|
579
|
+
items: {
|
|
580
|
+
type: "string"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
editor: {
|
|
584
|
+
title: "\u7DE8\u96C6\u8005\u540D",
|
|
585
|
+
type: "array",
|
|
586
|
+
items: {
|
|
587
|
+
type: "string"
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
sponsor: {
|
|
591
|
+
title: "\u30B9\u30DD\u30F3\u30B5\u30FC\u540D",
|
|
592
|
+
type: "array",
|
|
593
|
+
items: {
|
|
594
|
+
type: "string"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
genre: {
|
|
598
|
+
title: "\u30B8\u30E3\u30F3\u30EB",
|
|
599
|
+
type: "string"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
required: ["id", "type", "headline", "description"]
|
|
603
|
+
};
|
|
604
|
+
const AdvertorialCA = {
|
|
605
|
+
type: "object",
|
|
606
|
+
additionalProperties: true,
|
|
607
|
+
allOf: [
|
|
608
|
+
ContentAttestation,
|
|
609
|
+
{
|
|
610
|
+
type: "object",
|
|
611
|
+
additionalProperties: true,
|
|
612
|
+
properties: {
|
|
613
|
+
"@context": OpCipContext,
|
|
614
|
+
credentialSubject: subject$2,
|
|
615
|
+
allowedUrl: AllowedUrl
|
|
616
|
+
},
|
|
617
|
+
required: ["@context", "type", "credentialSubject", "allowedUrl"]
|
|
618
|
+
}
|
|
619
|
+
],
|
|
620
|
+
not: {
|
|
621
|
+
properties: {
|
|
622
|
+
allowedOrigin: {}
|
|
623
|
+
},
|
|
624
|
+
required: ["allowedOrigin"]
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
|
|
534
628
|
const ContentAttestationSetItem = {
|
|
535
629
|
title: "Content Attestation Set Item",
|
|
536
630
|
oneOf: [
|
|
@@ -1490,6 +1584,14 @@ const subject$1 = {
|
|
|
1490
1584
|
},
|
|
1491
1585
|
required: ["id", "name"]
|
|
1492
1586
|
},
|
|
1587
|
+
publishingPrinciple: {
|
|
1588
|
+
type: "object",
|
|
1589
|
+
properties: {
|
|
1590
|
+
id: { title: "\u7DE8\u96C6\u30AC\u30A4\u30C9\u30E9\u30A4\u30F3 URL", type: "string", format: "uri" },
|
|
1591
|
+
name: { title: "\u7DE8\u96C6\u30AC\u30A4\u30C9\u30E9\u30A4\u30F3\u8868\u793A\u540D", type: "string" }
|
|
1592
|
+
},
|
|
1593
|
+
required: ["id", "name"]
|
|
1594
|
+
},
|
|
1493
1595
|
privacyPolicy: {
|
|
1494
1596
|
type: "object",
|
|
1495
1597
|
properties: {
|
|
@@ -1502,7 +1604,23 @@ const subject$1 = {
|
|
|
1502
1604
|
},
|
|
1503
1605
|
required: ["id", "name"]
|
|
1504
1606
|
},
|
|
1505
|
-
description: {
|
|
1607
|
+
description: {
|
|
1608
|
+
title: "\u7D44\u7E54\u306B\u95A2\u3059\u308B\u8AAC\u660E",
|
|
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"]
|
|
1623
|
+
}
|
|
1506
1624
|
},
|
|
1507
1625
|
required: ["id", "type", "url", "name"]
|
|
1508
1626
|
};
|
|
@@ -1610,4 +1728,4 @@ const WebsiteProfile = {
|
|
|
1610
1728
|
]
|
|
1611
1729
|
};
|
|
1612
1730
|
|
|
1613
|
-
export { Advertisement, 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, Profile, RawTarget, Request, SiteProfile, Target, UnsignedContentAttestation, User, WebMediaProfile, WebsiteProfile };
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,37 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@originator-profile/model",
|
|
3
|
-
"version": "0.4.0-beta.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.4.0-beta.5",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"homepage": "https://docs.originator-profile.org",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/originator-profile/originator-profile.git",
|
|
9
|
+
"directory": "packages/model"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
5
14
|
"type": "module",
|
|
6
15
|
"exports": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"default": "./dist/index.cjs"
|
|
11
|
-
},
|
|
12
|
-
"import": {
|
|
13
|
-
"types": "./dist/index.d.mts",
|
|
14
|
-
"default": "./dist/index.mjs"
|
|
15
|
-
}
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./dist/index.d.cts",
|
|
18
|
+
"default": "./dist/index.cjs"
|
|
16
19
|
},
|
|
17
|
-
"
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./dist/index.d.mts",
|
|
22
|
+
"default": "./dist/index.mjs"
|
|
23
|
+
}
|
|
18
24
|
},
|
|
19
25
|
"files": [
|
|
20
|
-
"
|
|
21
|
-
"
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE",
|
|
29
|
+
"NOTICE"
|
|
22
30
|
],
|
|
23
31
|
"devDependencies": {
|
|
24
|
-
"@types/jsonld": "^1.5.15",
|
|
25
32
|
"ajv": "^8.17.1",
|
|
26
33
|
"eslint": "^9.25.1",
|
|
27
34
|
"json-schema-to-ts": "^3.1.1",
|
|
28
|
-
"jsonld": "^8.3.3",
|
|
29
|
-
"msw": "^2.7.5",
|
|
30
35
|
"pkgroll": "^2.12.2",
|
|
31
36
|
"typescript": "^5.8.3",
|
|
32
37
|
"vitest": "^4.0.0",
|
|
33
|
-
"@originator-profile/tsconfig": "0.4.0-beta.
|
|
34
|
-
"eslint-config-originator-profile": "0.4.0-beta.
|
|
38
|
+
"@originator-profile/tsconfig": "0.4.0-beta.5",
|
|
39
|
+
"eslint-config-originator-profile": "0.4.0-beta.5"
|
|
35
40
|
},
|
|
36
41
|
"scripts": {
|
|
37
42
|
"build": "pkgroll --clean-dist --target=node20",
|
package/context.json
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@context": {
|
|
3
|
-
"opctx": "https://originator-profile.org/context#",
|
|
4
|
-
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
5
|
-
"main": {
|
|
6
|
-
"@id": "opctx:main",
|
|
7
|
-
"@type": "xsd:string"
|
|
8
|
-
},
|
|
9
|
-
"profile": {
|
|
10
|
-
"@id": "opctx:profile",
|
|
11
|
-
"@type": "xsd:string"
|
|
12
|
-
},
|
|
13
|
-
"publisher": {
|
|
14
|
-
"@id": "opctx:publisher",
|
|
15
|
-
"@type": "xsd:string"
|
|
16
|
-
},
|
|
17
|
-
"advertiser": {
|
|
18
|
-
"@id": "opctx:advertiser",
|
|
19
|
-
"@type": "xsd:string"
|
|
20
|
-
},
|
|
21
|
-
"iss": {
|
|
22
|
-
"@id": "opctx:iss",
|
|
23
|
-
"@type": "xsd:string"
|
|
24
|
-
},
|
|
25
|
-
"sub": {
|
|
26
|
-
"@id": "opctx:sub",
|
|
27
|
-
"@type": "xsd:string"
|
|
28
|
-
},
|
|
29
|
-
"website": {
|
|
30
|
-
"@id": "opctx:website",
|
|
31
|
-
"@context": {
|
|
32
|
-
"op": "opctx:op",
|
|
33
|
-
"dp": "opctx:dp"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"ad": {
|
|
37
|
-
"@id": "opctx:ad",
|
|
38
|
-
"@context": {
|
|
39
|
-
"op": "opctx:op",
|
|
40
|
-
"dp": "opctx:dp"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"op": {
|
|
44
|
-
"@id": "opctx:op",
|
|
45
|
-
"@context": {
|
|
46
|
-
"iss": "opctx:iss",
|
|
47
|
-
"sub": "opctx:sub",
|
|
48
|
-
"profile": "opctx:profile"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"dp": {
|
|
52
|
-
"@id": "opctx:dp",
|
|
53
|
-
"@context": {
|
|
54
|
-
"sub": "opctx:sub",
|
|
55
|
-
"profile": "opctx:profile"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|