@openeudi/openid4vp 0.9.2 → 0.10.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 +41 -15
- package/dist/index.cjs +168 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +168 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -16,7 +16,8 @@ interface AuthorizationRequest {
|
|
|
16
16
|
state: string;
|
|
17
17
|
}
|
|
18
18
|
interface SignedAuthorizationRequestInput {
|
|
19
|
-
|
|
19
|
+
clientIdPrefix?: 'x509_san_dns' | 'x509_hash';
|
|
20
|
+
hostname?: string;
|
|
20
21
|
requestUri: string;
|
|
21
22
|
responseUri: string;
|
|
22
23
|
nonce: string;
|
|
@@ -54,7 +55,10 @@ declare function createAuthorizationRequest(input: AuthorizationRequestInput, qu
|
|
|
54
55
|
* carrying only `client_id` + `request_uri`, plus the JWS string the caller
|
|
55
56
|
* must host at `requestUri` with Content-Type `application/oauth-authz-req+jwt`.
|
|
56
57
|
*
|
|
57
|
-
* Client Identifier Prefix
|
|
58
|
+
* Client Identifier Prefix defaults to `x509_san_dns`; pass
|
|
59
|
+
* `clientIdPrefix: 'x509_hash'` to use the leaf certificate's SHA-256 hash
|
|
60
|
+
* instead (OpenID4VP 1.0 §5.9.3). `hostname` is required only for
|
|
61
|
+
* `x509_san_dns`.
|
|
58
62
|
*/
|
|
59
63
|
declare function createSignedAuthorizationRequest(input: SignedAuthorizationRequestInput, query: DcqlQuery): Promise<SignedAuthorizationRequest>;
|
|
60
64
|
|
|
@@ -611,7 +615,7 @@ declare class LotlFetchError extends OpenID4VPError {
|
|
|
611
615
|
declare class LotlSignatureError extends OpenID4VPError {
|
|
612
616
|
readonly code: "lotl_signature_invalid";
|
|
613
617
|
}
|
|
614
|
-
type SignedRequestBuildErrorCode = 'empty_cert_chain' | 'hostname_cert_mismatch' | 'signing_key_cert_mismatch' | 'missing_encryption_jwk' | 'missing_encryption_alg' | 'missing_vp_formats' | 'unsupported_signing_alg' | 'empty_supported_enc_values';
|
|
618
|
+
type SignedRequestBuildErrorCode = 'empty_cert_chain' | 'hostname_cert_mismatch' | 'signing_key_cert_mismatch' | 'missing_encryption_jwk' | 'missing_encryption_alg' | 'missing_vp_formats' | 'unsupported_signing_alg' | 'empty_supported_enc_values' | 'missing_hostname';
|
|
615
619
|
declare class SignedRequestBuildError extends OpenID4VPError {
|
|
616
620
|
readonly code: SignedRequestBuildErrorCode;
|
|
617
621
|
constructor(code: SignedRequestBuildErrorCode, message: string);
|
|
@@ -680,6 +684,6 @@ declare class LotlTrustStore implements TrustStore {
|
|
|
680
684
|
private refresh;
|
|
681
685
|
}
|
|
682
686
|
|
|
683
|
-
declare const VERSION = "0.
|
|
687
|
+
declare const VERSION = "0.10.0";
|
|
684
688
|
|
|
685
689
|
export { type AuthorizationRequest, type AuthorizationRequestInput, type AuthorizationResponse, type Cache, CertificateChainError, type ChainErrorReason, CompositeTrustStore, type CredentialClaims, type CredentialFormat, DecryptionFailedError, type EncryptedResponse, ExpiredCredentialError, type Fetcher, HAIP_DOCTYPE_NAMESPACES, type HaipQueryInput, type HaipValidationCode, HaipValidationError, type ICredentialParser, InMemoryCache, InvalidSignatureError, type IssuerInfo, type LotlAnchorMetadata, LotlFetchError, LotlSignatureError, LotlTrustStore, type LotlTrustStoreOptions, MalformedCredentialError, MdocParser, MissingDecryptionKeyError, MissingVerifierEncryptionKeyError, MultipleCredentialsNotSupportedError, NonceValidationError, OpenID4VPError, type ParseOptions, type PresentationResult, RevocationCheckFailedError, RevokedCertificateError, SdJwtParser, type SignedAuthorizationRequest, type SignedAuthorizationRequestInput, SignedRequestBuildError, type SignedRequestBuildErrorCode, StaticTrustStore, type TrustAnchor, TrustAnchorNotFoundError, type TrustStore, type TrustStoreHint, type TrustStoreInput, UnsupportedFormatError, UnsupportedJweError, VERSION, type VerifyAuthorizationResponseOptions, type VerifyOptions, type VerifyResult, buildHaipQuery, buildOid4vpSessionTranscript, buildOpenID4VPHandoverSessionTranscript, createAuthorizationRequest, createSignedAuthorizationRequest, decryptAuthorizationResponse, isHaipQuery, parsePresentation, validateHaipQuery, verifyAuthorizationResponse, verifyPresentation };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ interface AuthorizationRequest {
|
|
|
16
16
|
state: string;
|
|
17
17
|
}
|
|
18
18
|
interface SignedAuthorizationRequestInput {
|
|
19
|
-
|
|
19
|
+
clientIdPrefix?: 'x509_san_dns' | 'x509_hash';
|
|
20
|
+
hostname?: string;
|
|
20
21
|
requestUri: string;
|
|
21
22
|
responseUri: string;
|
|
22
23
|
nonce: string;
|
|
@@ -54,7 +55,10 @@ declare function createAuthorizationRequest(input: AuthorizationRequestInput, qu
|
|
|
54
55
|
* carrying only `client_id` + `request_uri`, plus the JWS string the caller
|
|
55
56
|
* must host at `requestUri` with Content-Type `application/oauth-authz-req+jwt`.
|
|
56
57
|
*
|
|
57
|
-
* Client Identifier Prefix
|
|
58
|
+
* Client Identifier Prefix defaults to `x509_san_dns`; pass
|
|
59
|
+
* `clientIdPrefix: 'x509_hash'` to use the leaf certificate's SHA-256 hash
|
|
60
|
+
* instead (OpenID4VP 1.0 §5.9.3). `hostname` is required only for
|
|
61
|
+
* `x509_san_dns`.
|
|
58
62
|
*/
|
|
59
63
|
declare function createSignedAuthorizationRequest(input: SignedAuthorizationRequestInput, query: DcqlQuery): Promise<SignedAuthorizationRequest>;
|
|
60
64
|
|
|
@@ -611,7 +615,7 @@ declare class LotlFetchError extends OpenID4VPError {
|
|
|
611
615
|
declare class LotlSignatureError extends OpenID4VPError {
|
|
612
616
|
readonly code: "lotl_signature_invalid";
|
|
613
617
|
}
|
|
614
|
-
type SignedRequestBuildErrorCode = 'empty_cert_chain' | 'hostname_cert_mismatch' | 'signing_key_cert_mismatch' | 'missing_encryption_jwk' | 'missing_encryption_alg' | 'missing_vp_formats' | 'unsupported_signing_alg' | 'empty_supported_enc_values';
|
|
618
|
+
type SignedRequestBuildErrorCode = 'empty_cert_chain' | 'hostname_cert_mismatch' | 'signing_key_cert_mismatch' | 'missing_encryption_jwk' | 'missing_encryption_alg' | 'missing_vp_formats' | 'unsupported_signing_alg' | 'empty_supported_enc_values' | 'missing_hostname';
|
|
615
619
|
declare class SignedRequestBuildError extends OpenID4VPError {
|
|
616
620
|
readonly code: SignedRequestBuildErrorCode;
|
|
617
621
|
constructor(code: SignedRequestBuildErrorCode, message: string);
|
|
@@ -680,6 +684,6 @@ declare class LotlTrustStore implements TrustStore {
|
|
|
680
684
|
private refresh;
|
|
681
685
|
}
|
|
682
686
|
|
|
683
|
-
declare const VERSION = "0.
|
|
687
|
+
declare const VERSION = "0.10.0";
|
|
684
688
|
|
|
685
689
|
export { type AuthorizationRequest, type AuthorizationRequestInput, type AuthorizationResponse, type Cache, CertificateChainError, type ChainErrorReason, CompositeTrustStore, type CredentialClaims, type CredentialFormat, DecryptionFailedError, type EncryptedResponse, ExpiredCredentialError, type Fetcher, HAIP_DOCTYPE_NAMESPACES, type HaipQueryInput, type HaipValidationCode, HaipValidationError, type ICredentialParser, InMemoryCache, InvalidSignatureError, type IssuerInfo, type LotlAnchorMetadata, LotlFetchError, LotlSignatureError, LotlTrustStore, type LotlTrustStoreOptions, MalformedCredentialError, MdocParser, MissingDecryptionKeyError, MissingVerifierEncryptionKeyError, MultipleCredentialsNotSupportedError, NonceValidationError, OpenID4VPError, type ParseOptions, type PresentationResult, RevocationCheckFailedError, RevokedCertificateError, SdJwtParser, type SignedAuthorizationRequest, type SignedAuthorizationRequestInput, SignedRequestBuildError, type SignedRequestBuildErrorCode, StaticTrustStore, type TrustAnchor, TrustAnchorNotFoundError, type TrustStore, type TrustStoreHint, type TrustStoreInput, UnsupportedFormatError, UnsupportedJweError, VERSION, type VerifyAuthorizationResponseOptions, type VerifyOptions, type VerifyResult, buildHaipQuery, buildOid4vpSessionTranscript, buildOpenID4VPHandoverSessionTranscript, createAuthorizationRequest, createSignedAuthorizationRequest, decryptAuthorizationResponse, isHaipQuery, parsePresentation, validateHaipQuery, verifyAuthorizationResponse, verifyPresentation };
|