@originator-profile/opvc 0.4.0-beta.4 → 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/README.md +9 -5
- package/dist/commands/ca/{sign-u6tlrRDs.d.ts → sign.d.mts} +6 -6
- package/dist/commands/ca/{sign.js → sign.mjs} +2 -2
- package/dist/commands/{wsp/unsigned-GKtEiExg.d.ts → ca/unsigned.d.mts} +3 -3
- package/dist/commands/ca/{unsigned.js → unsigned.mjs} +2 -2
- package/dist/commands/key-gen/{index-8CMF1zsG.d.ts → index.d.mts} +2 -2
- package/dist/commands/sign.d.mts +30 -0
- package/dist/commands/{sign.js → sign.mjs} +5 -1
- package/dist/commands/wsp/unsigned.d.mts +17 -0
- package/dist/commands/wsp/{unsigned.js → unsigned.mjs} +2 -2
- package/dist/{content-attestation-C3xuevcl.js → content-attestation-rNiF6uH4.mjs} +1 -1
- package/dist/{index-Bm-dbO4e.d.ts → index.d.mts} +6 -1
- package/dist/{index.js → index.mjs} +2 -2
- package/dist/{website-profile-DrsvsZ7c.js → website-profile-Dhto-mS2.mjs} +1 -1
- package/package.json +12 -12
- package/dist/commands/ca/unsigned-CWJwmcc1.d.ts +0 -17
- package/dist/commands/sign-Dth6Brns.d.ts +0 -30
- /package/dist/{chunk-B_d9r8Q2.js → chunk-DJTHdtxa.mjs} +0 -0
- /package/dist/commands/key-gen/{index.js → index.mjs} +0 -0
- /package/dist/{flags-BkTs_ozN.js → flags-CFmMpf5A.mjs} +0 -0
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ FLAG DESCRIPTIONS
|
|
|
122
122
|
}
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
_See code: [src/commands/ca/sign.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.
|
|
125
|
+
_See code: [src/commands/ca/sign.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.5/packages/opvc/src/commands/ca/sign.ts)_
|
|
126
126
|
|
|
127
127
|
## `opvc ca:unsigned`
|
|
128
128
|
|
|
@@ -207,7 +207,7 @@ FLAG DESCRIPTIONS
|
|
|
207
207
|
}
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
_See code: [src/commands/ca/unsigned.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.
|
|
210
|
+
_See code: [src/commands/ca/unsigned.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.5/packages/opvc/src/commands/ca/unsigned.ts)_
|
|
211
211
|
|
|
212
212
|
## `opvc help [COMMAND]`
|
|
213
213
|
|
|
@@ -245,7 +245,7 @@ DESCRIPTION
|
|
|
245
245
|
鍵ペアの生成
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
_See code: [src/commands/key-gen/index.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.
|
|
248
|
+
_See code: [src/commands/key-gen/index.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.5/packages/opvc/src/commands/key-gen/index.ts)_
|
|
249
249
|
|
|
250
250
|
## `opvc sign`
|
|
251
251
|
|
|
@@ -363,6 +363,10 @@ FLAG DESCRIPTIONS
|
|
|
363
363
|
"id": "https://wmp-holder.example.jp/statement",
|
|
364
364
|
"name": "情報発信ポリシー"
|
|
365
365
|
},
|
|
366
|
+
"publishingPrinciple": {
|
|
367
|
+
"id": "https://wmp-holder.example.jp/editorial-guidelines",
|
|
368
|
+
"name": "編集ガイドライン"
|
|
369
|
+
},
|
|
366
370
|
"privacyPolicy": {
|
|
367
371
|
"id": "https://wmp-holder.example.jp/privacy",
|
|
368
372
|
"name": "プライバシーポリシー"
|
|
@@ -403,7 +407,7 @@ FLAG DESCRIPTIONS
|
|
|
403
407
|
}
|
|
404
408
|
```
|
|
405
409
|
|
|
406
|
-
_See code: [src/commands/sign.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.
|
|
410
|
+
_See code: [src/commands/sign.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.5/packages/opvc/src/commands/sign.ts)_
|
|
407
411
|
|
|
408
412
|
## `opvc wsp:unsigned`
|
|
409
413
|
|
|
@@ -468,7 +472,7 @@ FLAG DESCRIPTIONS
|
|
|
468
472
|
}
|
|
469
473
|
```
|
|
470
474
|
|
|
471
|
-
_See code: [src/commands/wsp/unsigned.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.
|
|
475
|
+
_See code: [src/commands/wsp/unsigned.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.5/packages/opvc/src/commands/wsp/unsigned.ts)_
|
|
472
476
|
<!-- commandsstop -->
|
|
473
477
|
<!-- prettier-ignore-end -->
|
|
474
478
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Command } from "@oclif/core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _oclif_core_interfaces21 from "@oclif/core/interfaces";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/ca/sign.d.ts
|
|
5
5
|
declare class CaSign extends Command {
|
|
6
6
|
static summary: string;
|
|
7
7
|
static description: string;
|
|
8
8
|
static flags: {
|
|
9
|
-
identity:
|
|
9
|
+
identity: _oclif_core_interfaces21.OptionFlag<{
|
|
10
10
|
[x: string]: unknown;
|
|
11
11
|
use?: string | undefined;
|
|
12
12
|
key_ops?: string[] | undefined;
|
|
@@ -17,10 +17,10 @@ declare class CaSign extends Command {
|
|
|
17
17
|
"x5t#S256"?: string | undefined;
|
|
18
18
|
kty: string;
|
|
19
19
|
kid: string;
|
|
20
|
-
},
|
|
21
|
-
input:
|
|
22
|
-
"issued-at":
|
|
23
|
-
"expired-at":
|
|
20
|
+
}, _oclif_core_interfaces21.CustomOptions>;
|
|
21
|
+
input: _oclif_core_interfaces21.OptionFlag<string, _oclif_core_interfaces21.CustomOptions>;
|
|
22
|
+
"issued-at": _oclif_core_interfaces21.OptionFlag<string | undefined, _oclif_core_interfaces21.CustomOptions>;
|
|
23
|
+
"expired-at": _oclif_core_interfaces21.OptionFlag<Date | undefined, _oclif_core_interfaces21.CustomOptions>;
|
|
24
24
|
};
|
|
25
25
|
static examples: string[];
|
|
26
26
|
run(): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as sign } from "../../content-attestation-
|
|
2
|
-
import { r as privateKey, t as expirationDate } from "../../flags-
|
|
1
|
+
import { n as sign } from "../../content-attestation-rNiF6uH4.mjs";
|
|
2
|
+
import { r as privateKey, t as expirationDate } from "../../flags-CFmMpf5A.mjs";
|
|
3
3
|
import { Command, Flags } from "@oclif/core";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Command } from "@oclif/core";
|
|
2
2
|
import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
3
3
|
|
|
4
|
-
//#region src/commands/
|
|
5
|
-
declare class
|
|
4
|
+
//#region src/commands/ca/unsigned.d.ts
|
|
5
|
+
declare class CaUnsigned extends Command {
|
|
6
6
|
static summary: string;
|
|
7
7
|
static description: string;
|
|
8
8
|
static flags: {
|
|
@@ -14,4 +14,4 @@ declare class WspUnsigned extends Command {
|
|
|
14
14
|
run(): Promise<void>;
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
export {
|
|
17
|
+
export { CaUnsigned };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as unsignedCa } from "../../content-attestation-
|
|
2
|
-
import { t as expirationDate } from "../../flags-
|
|
1
|
+
import { r as unsignedCa } from "../../content-attestation-rNiF6uH4.mjs";
|
|
2
|
+
import { t as expirationDate } from "../../flags-CFmMpf5A.mjs";
|
|
3
3
|
import { Command, Flags } from "@oclif/core";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Command } from "@oclif/core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _oclif_core_interfaces29 from "@oclif/core/interfaces";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/key-gen/index.d.ts
|
|
5
5
|
declare class KeyGen extends Command {
|
|
6
6
|
static description: string;
|
|
7
7
|
static flags: {
|
|
8
|
-
output:
|
|
8
|
+
output: _oclif_core_interfaces29.OptionFlag<string, _oclif_core_interfaces29.CustomOptions>;
|
|
9
9
|
};
|
|
10
10
|
run(): Promise<void>;
|
|
11
11
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
import * as _oclif_core_interfaces5 from "@oclif/core/interfaces";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/sign.d.ts
|
|
5
|
+
declare class VcSign extends Command {
|
|
6
|
+
static summary: string;
|
|
7
|
+
static description: string;
|
|
8
|
+
static flags: {
|
|
9
|
+
identity: _oclif_core_interfaces5.OptionFlag<{
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
use?: string | undefined;
|
|
12
|
+
key_ops?: string[] | undefined;
|
|
13
|
+
alg?: string | undefined;
|
|
14
|
+
x5u?: string | undefined;
|
|
15
|
+
x5c?: string[] | undefined;
|
|
16
|
+
x5t?: string | undefined;
|
|
17
|
+
"x5t#S256"?: string | undefined;
|
|
18
|
+
kty: string;
|
|
19
|
+
kid: string;
|
|
20
|
+
}, _oclif_core_interfaces5.CustomOptions>;
|
|
21
|
+
id: _oclif_core_interfaces5.OptionFlag<string | undefined, _oclif_core_interfaces5.CustomOptions>;
|
|
22
|
+
input: _oclif_core_interfaces5.OptionFlag<string, _oclif_core_interfaces5.CustomOptions>;
|
|
23
|
+
"issued-at": _oclif_core_interfaces5.OptionFlag<string | undefined, _oclif_core_interfaces5.CustomOptions>;
|
|
24
|
+
"expired-at": _oclif_core_interfaces5.OptionFlag<Date | undefined, _oclif_core_interfaces5.CustomOptions>;
|
|
25
|
+
};
|
|
26
|
+
static examples: string[];
|
|
27
|
+
run(): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { VcSign };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as opId, r as privateKey, t as expirationDate } from "../flags-
|
|
1
|
+
import { n as opId, r as privateKey, t as expirationDate } from "../flags-CFmMpf5A.mjs";
|
|
2
2
|
import { fetchAndSetDigestSri } from "@originator-profile/sign";
|
|
3
3
|
import { addYears } from "date-fns";
|
|
4
4
|
import { Command, Flags } from "@oclif/core";
|
|
@@ -60,6 +60,10 @@ const exampleWebMediaProfile = {
|
|
|
60
60
|
id: "https://wmp-holder.example.jp/statement",
|
|
61
61
|
name: "情報発信ポリシー"
|
|
62
62
|
},
|
|
63
|
+
publishingPrinciple: {
|
|
64
|
+
id: "https://wmp-holder.example.jp/editorial-guidelines",
|
|
65
|
+
name: "編集ガイドライン"
|
|
66
|
+
},
|
|
63
67
|
privacyPolicy: {
|
|
64
68
|
id: "https://wmp-holder.example.jp/privacy",
|
|
65
69
|
name: "プライバシーポリシー"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
import * as _oclif_core_interfaces15 from "@oclif/core/interfaces";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/wsp/unsigned.d.ts
|
|
5
|
+
declare class WspUnsigned extends Command {
|
|
6
|
+
static summary: string;
|
|
7
|
+
static description: string;
|
|
8
|
+
static flags: {
|
|
9
|
+
input: _oclif_core_interfaces15.OptionFlag<string, _oclif_core_interfaces15.CustomOptions>;
|
|
10
|
+
"issued-at": _oclif_core_interfaces15.OptionFlag<string | undefined, _oclif_core_interfaces15.CustomOptions>;
|
|
11
|
+
"expired-at": _oclif_core_interfaces15.OptionFlag<Date | undefined, _oclif_core_interfaces15.CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
static examples: string[];
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { WspUnsigned };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as unsignedWsp } from "../../website-profile-
|
|
2
|
-
import { t as expirationDate } from "../../flags-
|
|
1
|
+
import { t as unsignedWsp } from "../../website-profile-Dhto-mS2.mjs";
|
|
2
|
+
import { t as expirationDate } from "../../flags-CFmMpf5A.mjs";
|
|
3
3
|
import { Command, Flags } from "@oclif/core";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-
|
|
1
|
+
import { t as __export } from "./chunk-DJTHdtxa.mjs";
|
|
2
2
|
import { JSDOM } from "jsdom";
|
|
3
3
|
import { parseExpirationDate } from "@originator-profile/core";
|
|
4
4
|
import { fetchAndSetDigestSri, fetchAndSetTargetIntegrity, signCa } from "@originator-profile/sign";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-B_d9r8Q2.js";
|
|
2
1
|
import { Jwk, RawTarget, UnsignedContentAttestation, WebsiteProfile } from "@originator-profile/model";
|
|
3
2
|
|
|
4
3
|
//#region src/document-provider.d.ts
|
|
@@ -6,6 +5,9 @@ declare function documentProvider({
|
|
|
6
5
|
type,
|
|
7
6
|
content
|
|
8
7
|
}: RawTarget): Promise<Document>;
|
|
8
|
+
declare namespace content_attestation_d_exports {
|
|
9
|
+
export { sign, unsignedCa };
|
|
10
|
+
}
|
|
9
11
|
/**
|
|
10
12
|
* Content Attestation への署名
|
|
11
13
|
* @param uca 未署名 Content Attestation オブジェクト
|
|
@@ -32,6 +34,9 @@ declare function unsignedCa(uca: UnsignedContentAttestation, {
|
|
|
32
34
|
issuedAt?: Date | string;
|
|
33
35
|
expiredAt?: Date | string;
|
|
34
36
|
}): Promise<UnsignedContentAttestation>;
|
|
37
|
+
declare namespace website_profile_d_exports {
|
|
38
|
+
export { unsignedWsp };
|
|
39
|
+
}
|
|
35
40
|
/**
|
|
36
41
|
* 未署名 Website Profile の取得
|
|
37
42
|
* @param uwsp 未署名 Website Profile オブジェクト
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as documentProvider, t as content_attestation_exports } from "./content-attestation-
|
|
2
|
-
import { n as website_profile_exports } from "./website-profile-
|
|
1
|
+
import { i as documentProvider, t as content_attestation_exports } from "./content-attestation-rNiF6uH4.mjs";
|
|
2
|
+
import { n as website_profile_exports } from "./website-profile-Dhto-mS2.mjs";
|
|
3
3
|
|
|
4
4
|
export { content_attestation_exports as ContentAttestation, website_profile_exports as WebsiteProfile, documentProvider };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-
|
|
1
|
+
import { t as __export } from "./chunk-DJTHdtxa.mjs";
|
|
2
2
|
import { parseExpirationDate } from "@originator-profile/core";
|
|
3
3
|
import { fetchAndSetDigestSri } from "@originator-profile/sign";
|
|
4
4
|
import { addYears, getUnixTime } from "date-fns";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@originator-profile/opvc",
|
|
3
|
-
"version": "0.4.0-beta.
|
|
3
|
+
"version": "0.4.0-beta.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://docs.originator-profile.org",
|
|
6
6
|
"repository": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
],
|
|
22
22
|
"bin": "bin/run.js",
|
|
23
23
|
"exports": {
|
|
24
|
-
"types": "./dist/index.d.
|
|
25
|
-
"default": "./dist/index.
|
|
24
|
+
"types": "./dist/index.d.mts",
|
|
25
|
+
"default": "./dist/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"oclif": {
|
|
28
28
|
"bin": "opvc",
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"@oclif/core": "^4.4.0",
|
|
37
37
|
"@oclif/plugin-help": "^6.2.29",
|
|
38
38
|
"date-fns": "^4.1.0",
|
|
39
|
-
"http-errors-enhanced": "^
|
|
39
|
+
"http-errors-enhanced": "^4.0.0",
|
|
40
40
|
"jose": "^6.0.11",
|
|
41
41
|
"jsdom": "^27.0.0",
|
|
42
|
-
"@originator-profile/
|
|
43
|
-
"@originator-profile/
|
|
44
|
-
"@originator-profile/
|
|
45
|
-
"@originator-profile/
|
|
46
|
-
"@originator-profile/sign": "0.4.0-beta.
|
|
42
|
+
"@originator-profile/model": "0.4.0-beta.5",
|
|
43
|
+
"@originator-profile/core": "0.4.0-beta.5",
|
|
44
|
+
"@originator-profile/securing-mechanism": "0.4.0-beta.5",
|
|
45
|
+
"@originator-profile/cryptography": "0.4.0-beta.5",
|
|
46
|
+
"@originator-profile/sign": "0.4.0-beta.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^24.3.1",
|
|
50
50
|
"eslint": "^9.25.1",
|
|
51
51
|
"oclif": "^4.20.1",
|
|
52
|
-
"tsdown": "^0.
|
|
52
|
+
"tsdown": "^0.16.7",
|
|
53
53
|
"typescript": "^5.8.3",
|
|
54
54
|
"websri": "^1.0.1",
|
|
55
|
-
"@originator-profile/tsconfig": "0.4.0-beta.
|
|
56
|
-
"eslint-config-originator-profile": "0.4.0-beta.
|
|
55
|
+
"@originator-profile/tsconfig": "0.4.0-beta.5",
|
|
56
|
+
"eslint-config-originator-profile": "0.4.0-beta.5"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsdown && oclif manifest && oclif readme",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command } from "@oclif/core";
|
|
2
|
-
import * as _oclif_core_interfaces25 from "@oclif/core/interfaces";
|
|
3
|
-
|
|
4
|
-
//#region src/commands/ca/unsigned.d.ts
|
|
5
|
-
declare class CaUnsigned extends Command {
|
|
6
|
-
static summary: string;
|
|
7
|
-
static description: string;
|
|
8
|
-
static flags: {
|
|
9
|
-
input: _oclif_core_interfaces25.OptionFlag<string, _oclif_core_interfaces25.CustomOptions>;
|
|
10
|
-
"issued-at": _oclif_core_interfaces25.OptionFlag<string | undefined, _oclif_core_interfaces25.CustomOptions>;
|
|
11
|
-
"expired-at": _oclif_core_interfaces25.OptionFlag<Date | undefined, _oclif_core_interfaces25.CustomOptions>;
|
|
12
|
-
};
|
|
13
|
-
static examples: string[];
|
|
14
|
-
run(): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { CaUnsigned };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Command } from "@oclif/core";
|
|
2
|
-
import * as _oclif_core_interfaces7 from "@oclif/core/interfaces";
|
|
3
|
-
|
|
4
|
-
//#region src/commands/sign.d.ts
|
|
5
|
-
declare class VcSign extends Command {
|
|
6
|
-
static summary: string;
|
|
7
|
-
static description: string;
|
|
8
|
-
static flags: {
|
|
9
|
-
identity: _oclif_core_interfaces7.OptionFlag<{
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
use?: string | undefined;
|
|
12
|
-
key_ops?: string[] | undefined;
|
|
13
|
-
alg?: string | undefined;
|
|
14
|
-
x5u?: string | undefined;
|
|
15
|
-
x5c?: string[] | undefined;
|
|
16
|
-
x5t?: string | undefined;
|
|
17
|
-
"x5t#S256"?: string | undefined;
|
|
18
|
-
kty: string;
|
|
19
|
-
kid: string;
|
|
20
|
-
}, _oclif_core_interfaces7.CustomOptions>;
|
|
21
|
-
id: _oclif_core_interfaces7.OptionFlag<string | undefined, _oclif_core_interfaces7.CustomOptions>;
|
|
22
|
-
input: _oclif_core_interfaces7.OptionFlag<string, _oclif_core_interfaces7.CustomOptions>;
|
|
23
|
-
"issued-at": _oclif_core_interfaces7.OptionFlag<string | undefined, _oclif_core_interfaces7.CustomOptions>;
|
|
24
|
-
"expired-at": _oclif_core_interfaces7.OptionFlag<Date | undefined, _oclif_core_interfaces7.CustomOptions>;
|
|
25
|
-
};
|
|
26
|
-
static examples: string[];
|
|
27
|
-
run(): Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { VcSign };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|