@originator-profile/model 0.6.1 → 0.7.0-beta.2

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
@@ -1,5 +1,7 @@
1
1
  # Originator Profile Model
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@originator-profile/model)](https://www.npmjs.com/package/@originator-profile/model) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@originator-profile/model)
4
+
3
5
  システムのコアとなる静的構造のためのパッケージです。
4
6
 
5
7
  ## ドキュメント
package/dist/index.d.ts CHANGED
@@ -334,8 +334,8 @@ declare const UnsignedContentAttestation: z.ZodObject<{
334
334
  type: z.ZodArray<z.ZodUnknown>;
335
335
  issuer: z.ZodString;
336
336
  credentialSubject: z.ZodObject<{
337
- id: z.ZodURL;
338
337
  type: z.ZodString;
338
+ id: z.ZodOptional<z.ZodURL>;
339
339
  }, z.core.$loose>;
340
340
  allowedUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustomStringFormat<"url-pattern">, z.ZodArray<z.ZodCustomStringFormat<"url-pattern">>]>>;
341
341
  allowedOrigin: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustomStringFormat<"origin">, z.ZodArray<z.ZodCustomStringFormat<"origin">>]>>;
package/dist/index.js CHANGED
@@ -276,7 +276,11 @@ const UnsignedContentAttestation = z.looseObject({
276
276
  error: `type must include "ContentAttestation"`
277
277
  }),
278
278
  issuer: OpId,
279
- credentialSubject: subject$5,
279
+ credentialSubject: subject$5.extend({
280
+ id: subject$5.shape.id.describe(
281
+ "CA ID. Omit to mint a new CA (the ID is assigned at signing time); provide the ID of an existing CA to sign it."
282
+ ).optional()
283
+ }),
280
284
  allowedUrl: AllowedUrl.optional(),
281
285
  allowedOrigin: AllowedOrigin.optional(),
282
286
  target: z.array(RawTarget).min(1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@originator-profile/model",
3
- "version": "0.6.1",
3
+ "version": "0.7.0-beta.2",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://docs.originator-profile.org",
6
6
  "repository": {
@@ -27,17 +27,16 @@
27
27
  "zod": "^4.3.6"
28
28
  },
29
29
  "devDependencies": {
30
- "eslint": "10.2.0",
30
+ "oxlint": "^1.73.0",
31
+ "oxlint-tsgolint": "^0.24.0",
31
32
  "pkgroll": "2.27.0",
32
33
  "typescript": "6.0.2",
33
34
  "vitest": "4.1.4",
34
- "@originator-profile/tsconfig": "0.6.1",
35
- "eslint-config-originator-profile": "0.6.1"
35
+ "@originator-profile/tsconfig": "0.7.0-beta.2"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "pkgroll --clean-dist",
39
39
  "test": "vitest run",
40
- "lint": "eslint --fix .",
41
- "type-check": "tsc --noEmit"
40
+ "lint": "oxlint --fix ."
42
41
  }
43
42
  }