@originator-profile/opvc 0.4.0-beta.4 → 0.4.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/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.4/packages/opvc/src/commands/ca/sign.ts)_
125
+ _See code: [src/commands/ca/sign.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0/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.4/packages/opvc/src/commands/ca/unsigned.ts)_
210
+ _See code: [src/commands/ca/unsigned.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0/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.4/packages/opvc/src/commands/key-gen/index.ts)_
248
+ _See code: [src/commands/key-gen/index.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0/packages/opvc/src/commands/key-gen/index.ts)_
249
249
 
250
250
  ## `opvc sign`
251
251
 
@@ -363,11 +363,20 @@ 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": "プライバシーポリシー"
369
373
  },
370
- "description": "この文章はこの Web メディアに関する補足情報です。"
374
+ "description": [
375
+ {
376
+ "encodingFormat": "text/plain",
377
+ "text": "この文章はこの Web メディアに関する補足情報です。"
378
+ }
379
+ ]
371
380
  }
372
381
  }
373
382
 
@@ -403,7 +412,7 @@ FLAG DESCRIPTIONS
403
412
  }
404
413
  ```
405
414
 
406
- _See code: [src/commands/sign.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.4/packages/opvc/src/commands/sign.ts)_
415
+ _See code: [src/commands/sign.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0/packages/opvc/src/commands/sign.ts)_
407
416
 
408
417
  ## `opvc wsp:unsigned`
409
418
 
@@ -468,7 +477,7 @@ FLAG DESCRIPTIONS
468
477
  }
469
478
  ```
470
479
 
471
- _See code: [src/commands/wsp/unsigned.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0-beta.4/packages/opvc/src/commands/wsp/unsigned.ts)_
480
+ _See code: [src/commands/wsp/unsigned.ts](https://github.com/originator-profile/originator-profile/blob/v0.4.0/packages/opvc/src/commands/wsp/unsigned.ts)_
472
481
  <!-- commandsstop -->
473
482
  <!-- prettier-ignore-end -->
474
483
 
@@ -1,12 +1,12 @@
1
1
  import { Command } from "@oclif/core";
2
- import * as _oclif_core_interfaces17 from "@oclif/core/interfaces";
2
+ import * as _oclif_core_interfaces15 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: _oclif_core_interfaces17.OptionFlag<{
9
+ identity: _oclif_core_interfaces15.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
- }, _oclif_core_interfaces17.CustomOptions>;
21
- input: _oclif_core_interfaces17.OptionFlag<string, _oclif_core_interfaces17.CustomOptions>;
22
- "issued-at": _oclif_core_interfaces17.OptionFlag<string | undefined, _oclif_core_interfaces17.CustomOptions>;
23
- "expired-at": _oclif_core_interfaces17.OptionFlag<Date | undefined, _oclif_core_interfaces17.CustomOptions>;
20
+ }, _oclif_core_interfaces15.CustomOptions>;
21
+ input: _oclif_core_interfaces15.OptionFlag<string, _oclif_core_interfaces15.CustomOptions>;
22
+ "issued-at": _oclif_core_interfaces15.OptionFlag<string | undefined, _oclif_core_interfaces15.CustomOptions>;
23
+ "expired-at": _oclif_core_interfaces15.OptionFlag<Date | undefined, _oclif_core_interfaces15.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-C3xuevcl.js";
2
- import { r as privateKey, t as expirationDate } from "../../flags-BkTs_ozN.js";
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,5 +1,5 @@
1
- import { r as unsignedCa } from "../../content-attestation-C3xuevcl.js";
2
- import { t as expirationDate } from "../../flags-BkTs_ozN.js";
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 _oclif_core_interfaces5 from "@oclif/core/interfaces";
2
+ import * as _oclif_core_interfaces23 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: _oclif_core_interfaces5.OptionFlag<string, _oclif_core_interfaces5.CustomOptions>;
8
+ output: _oclif_core_interfaces23.OptionFlag<string, _oclif_core_interfaces23.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_interfaces0 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_interfaces0.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_interfaces0.CustomOptions>;
21
+ id: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
22
+ input: _oclif_core_interfaces0.OptionFlag<string, _oclif_core_interfaces0.CustomOptions>;
23
+ "issued-at": _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
24
+ "expired-at": _oclif_core_interfaces0.OptionFlag<Date | undefined, _oclif_core_interfaces0.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-BkTs_ozN.js";
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,11 +60,18 @@ 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: "プライバシーポリシー"
66
70
  },
67
- description: "この文章はこの Web メディアに関する補足情報です。"
71
+ description: [{
72
+ encodingFormat: "text/plain",
73
+ text: "この文章はこの Web メディアに関する補足情報です。"
74
+ }]
68
75
  }
69
76
  };
70
77
  const exampleWebsiteProfile = {
@@ -0,0 +1,17 @@
1
+ import { Command } from "@oclif/core";
2
+ import * as _oclif_core_interfaces9 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_interfaces9.OptionFlag<string, _oclif_core_interfaces9.CustomOptions>;
10
+ "issued-at": _oclif_core_interfaces9.OptionFlag<string | undefined, _oclif_core_interfaces9.CustomOptions>;
11
+ "expired-at": _oclif_core_interfaces9.OptionFlag<Date | undefined, _oclif_core_interfaces9.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-DrsvsZ7c.js";
2
- import { t as expirationDate } from "../../flags-BkTs_ozN.js";
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-B_d9r8Q2.js";
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-C3xuevcl.js";
2
- import { n as website_profile_exports } from "./website-profile-DrsvsZ7c.js";
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-B_d9r8Q2.js";
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.4",
3
+ "version": "0.4.0",
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.ts",
25
- "default": "./dist/index.js"
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": "^3.0.2",
39
+ "http-errors-enhanced": "^4.0.0",
40
40
  "jose": "^6.0.11",
41
41
  "jsdom": "^27.0.0",
42
- "@originator-profile/core": "0.4.0-beta.4",
43
- "@originator-profile/securing-mechanism": "0.4.0-beta.4",
44
- "@originator-profile/cryptography": "0.4.0-beta.4",
45
- "@originator-profile/model": "0.4.0-beta.4",
46
- "@originator-profile/sign": "0.4.0-beta.4"
42
+ "@originator-profile/core": "0.4.0",
43
+ "@originator-profile/cryptography": "0.4.0",
44
+ "@originator-profile/model": "0.4.0",
45
+ "@originator-profile/securing-mechanism": "0.4.0",
46
+ "@originator-profile/sign": "0.4.0"
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.15.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.4",
56
- "eslint-config-originator-profile": "0.4.0-beta.4"
55
+ "eslint-config-originator-profile": "0.4.0",
56
+ "@originator-profile/tsconfig": "0.4.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsdown && oclif manifest && oclif readme",
@@ -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 };
@@ -1,17 +0,0 @@
1
- import { Command } from "@oclif/core";
2
- import * as _oclif_core_interfaces0 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_interfaces0.OptionFlag<string, _oclif_core_interfaces0.CustomOptions>;
10
- "issued-at": _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
11
- "expired-at": _oclif_core_interfaces0.OptionFlag<Date | undefined, _oclif_core_interfaces0.CustomOptions>;
12
- };
13
- static examples: string[];
14
- run(): Promise<void>;
15
- }
16
- //#endregion
17
- export { WspUnsigned };
File without changes
File without changes
File without changes