@originator-profile/securing-mechanism 0.7.0-beta.4 → 0.7.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/dist/index.d.ts +5 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -155,10 +155,12 @@ declare function signJwtVc<T extends SignableVc>(vc: T, signer: KeyMaterial | Jw
|
|
|
155
155
|
expiredAt: Date;
|
|
156
156
|
}): Promise<string>;
|
|
157
157
|
|
|
158
|
-
/**
|
|
158
|
+
/** VC ペイロードの妥当性確認のためのバリデーター */
|
|
159
159
|
declare function VcValidator<V extends UnverifiedVc>(schema: ZodType): (vc: V) => VcValidationResult<V, VcValidationFailure<V>>;
|
|
160
|
-
/**
|
|
160
|
+
/** VC ペイロードの妥当性確認 */
|
|
161
161
|
type VcValidator<V extends UnverifiedVc> = ReturnType<typeof VcValidator<V>>;
|
|
162
|
+
/** スキーマに基づく VC ペイロードのバリデーターを生成するファクトリー */
|
|
163
|
+
type VcValidatorFactory = typeof VcValidator;
|
|
162
164
|
|
|
163
165
|
/**
|
|
164
166
|
* JWT VC の検証者の作成
|
|
@@ -171,4 +173,4 @@ declare function JwtVcVerifier<T extends OpVc>(keys: Keys, issuer: string | stri
|
|
|
171
173
|
type JwtVcVerifier<T extends OpVc> = ReturnType<typeof JwtVcVerifier<T>>;
|
|
172
174
|
|
|
173
175
|
export { JwtVcDecoder, JwtVcVerifier, SchemaValidationError, VcDecodeFailed, VcValidateFailed, VcValidator, VcVerifyFailed, isJwtSigner, signJwtVc, toUnverifiedJwtVc, toVerifiedJwtVc };
|
|
174
|
-
export type { JwtSigner, JwtVcDecodingFailure, JwtVcDecodingResult, JwtVcValidationResult, JwtVcVerificationFailure, JwtVcVerificationResult, KeyMaterial, SchemaIssue, UndecodedJwtVc, UndecodedVc, UnverifiedJwtVc, UnverifiedVc, VcDecodingFailure, VcDecodingResult, VcValidationFailure, VcValidationResult, VcVerificationFailure, VcVerificationResult, VerifiedJwtVc, VerifiedVc };
|
|
176
|
+
export type { JwtSigner, JwtVcDecodingFailure, JwtVcDecodingResult, JwtVcValidationResult, JwtVcVerificationFailure, JwtVcVerificationResult, KeyMaterial, SchemaIssue, UndecodedJwtVc, UndecodedVc, UnverifiedJwtVc, UnverifiedVc, VcDecodingFailure, VcDecodingResult, VcValidationFailure, VcValidationResult, VcValidatorFactory, VcVerificationFailure, VcVerificationResult, VerifiedJwtVc, VerifiedVc };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@originator-profile/securing-mechanism",
|
|
3
|
-
"version": "0.7.0-beta.
|
|
3
|
+
"version": "0.7.0-beta.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://docs.originator-profile.org",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"jose": "^6.2.2",
|
|
27
27
|
"zod": "^4.3.6",
|
|
28
|
-
"@originator-profile/cryptography": "0.7.0-beta.
|
|
29
|
-
"@originator-profile/model": "0.7.0-beta.
|
|
28
|
+
"@originator-profile/cryptography": "0.7.0-beta.5",
|
|
29
|
+
"@originator-profile/model": "0.7.0-beta.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"date-fns": "4.1.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"pkgroll": "2.27.0",
|
|
36
36
|
"typescript": "6.0.2",
|
|
37
37
|
"vitest": "4.1.4",
|
|
38
|
-
"@originator-profile/tsconfig": "0.7.0-beta.
|
|
38
|
+
"@originator-profile/tsconfig": "0.7.0-beta.5"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "pkgroll --clean-dist",
|