@credo-ts/core 0.7.2 → 0.7.3-alpha-20261006101201
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/build/modules/dids/domain/verificationMethod/JsonWebKey2020.d.mts +24 -24
- package/build/modules/dids/methods/jwk/DidJwk.d.mts +24 -24
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts.map +1 -1
- package/build/modules/kms/KeyManagementApi.d.mts +14 -14
- package/build/modules/kms/jwk/jwa.d.mts +1 -1
- package/build/modules/kms/jwk/knownJwk.d.mts +4 -4
- package/build/modules/kms/jwk/kty/ec/P256PublicJwk.d.mts +1 -1
- package/build/modules/kms/jwk/kty/ec/P384PublicJwk.d.mts +1 -1
- package/build/modules/kms/jwk/kty/ec/P521PublicJwk.d.mts +1 -1
- package/build/modules/kms/jwk/kty/ec/Secp256k1PublicJwk.d.mts +1 -1
- package/build/modules/kms/jwk/kty/okp/Ed25519PublicJwk.d.mts +2 -2
- package/build/modules/kms/jwk/kty/okp/X25519PublicJwk.d.mts +1 -1
- package/build/modules/kms/jwk/kty/okp/okpJwk.d.mts +2 -2
- package/build/modules/kms/options/KmsCreateKeyOptions.d.mts +3 -3
- package/build/modules/kms/options/KmsSignOptions.d.mts +1 -1
- package/build/modules/kms/options/KmsVerifyOptions.d.mts +2 -2
- package/build/modules/mdoc/repository/MdocRecord.d.mts +1 -1
- package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.mts +1 -1
- package/package.json +1 -1
|
@@ -15,27 +15,7 @@ export declare function getJsonWebKey2020(options: GetJsonWebKey2020Options): {
|
|
|
15
15
|
id: string;
|
|
16
16
|
type: string;
|
|
17
17
|
controller: string;
|
|
18
|
-
publicKeyJwk: {
|
|
19
|
-
kty: "RSA";
|
|
20
|
-
n: string;
|
|
21
|
-
e: string;
|
|
22
|
-
d?: undefined;
|
|
23
|
-
p?: undefined;
|
|
24
|
-
q?: undefined;
|
|
25
|
-
dp?: undefined;
|
|
26
|
-
dq?: undefined;
|
|
27
|
-
qi?: undefined;
|
|
28
|
-
oth?: undefined;
|
|
29
|
-
kid?: string | undefined;
|
|
30
|
-
alg?: string | undefined;
|
|
31
|
-
key_ops?: string[] | undefined;
|
|
32
|
-
use?: string | undefined;
|
|
33
|
-
ext?: boolean | undefined;
|
|
34
|
-
x5c?: string[] | undefined;
|
|
35
|
-
x5t?: string | undefined;
|
|
36
|
-
'x5t#S256'?: string | undefined;
|
|
37
|
-
x5u?: string | undefined;
|
|
38
|
-
} | ({
|
|
18
|
+
publicKeyJwk: ({
|
|
39
19
|
kty: "EC";
|
|
40
20
|
crv: "P-256" | "P-384" | "P-521" | "secp256k1";
|
|
41
21
|
x: string;
|
|
@@ -105,7 +85,7 @@ export declare function getJsonWebKey2020(options: GetJsonWebKey2020Options): {
|
|
|
105
85
|
crv: "secp256k1";
|
|
106
86
|
}) | ({
|
|
107
87
|
kty: "OKP";
|
|
108
|
-
crv: "
|
|
88
|
+
crv: "X25519" | "Ed25519";
|
|
109
89
|
x: string;
|
|
110
90
|
d?: string | undefined;
|
|
111
91
|
kid?: string | undefined;
|
|
@@ -119,9 +99,29 @@ export declare function getJsonWebKey2020(options: GetJsonWebKey2020Options): {
|
|
|
119
99
|
x5u?: string | undefined;
|
|
120
100
|
} & {
|
|
121
101
|
crv: "Ed25519";
|
|
122
|
-
}) |
|
|
102
|
+
}) | {
|
|
103
|
+
kty: "RSA";
|
|
104
|
+
n: string;
|
|
105
|
+
e: string;
|
|
106
|
+
d?: undefined;
|
|
107
|
+
p?: undefined;
|
|
108
|
+
q?: undefined;
|
|
109
|
+
dp?: undefined;
|
|
110
|
+
dq?: undefined;
|
|
111
|
+
qi?: undefined;
|
|
112
|
+
oth?: undefined;
|
|
113
|
+
kid?: string | undefined;
|
|
114
|
+
alg?: string | undefined;
|
|
115
|
+
key_ops?: string[] | undefined;
|
|
116
|
+
use?: string | undefined;
|
|
117
|
+
ext?: boolean | undefined;
|
|
118
|
+
x5c?: string[] | undefined;
|
|
119
|
+
x5t?: string | undefined;
|
|
120
|
+
'x5t#S256'?: string | undefined;
|
|
121
|
+
x5u?: string | undefined;
|
|
122
|
+
} | ({
|
|
123
123
|
kty: "OKP";
|
|
124
|
-
crv: "
|
|
124
|
+
crv: "X25519" | "Ed25519";
|
|
125
125
|
x: string;
|
|
126
126
|
d?: string | undefined;
|
|
127
127
|
kid?: string | undefined;
|
|
@@ -16,27 +16,7 @@ export declare class DidJwk {
|
|
|
16
16
|
*/
|
|
17
17
|
get verificationMethodId(): string;
|
|
18
18
|
static fromPublicJwk(publicJwk: PublicJwk): DidJwk;
|
|
19
|
-
get jwkJson(): {
|
|
20
|
-
kty: "RSA";
|
|
21
|
-
n: string;
|
|
22
|
-
e: string;
|
|
23
|
-
d?: undefined;
|
|
24
|
-
p?: undefined;
|
|
25
|
-
q?: undefined;
|
|
26
|
-
dp?: undefined;
|
|
27
|
-
dq?: undefined;
|
|
28
|
-
qi?: undefined;
|
|
29
|
-
oth?: undefined;
|
|
30
|
-
kid?: string | undefined;
|
|
31
|
-
alg?: string | undefined;
|
|
32
|
-
key_ops?: string[] | undefined;
|
|
33
|
-
use?: string | undefined;
|
|
34
|
-
ext?: boolean | undefined;
|
|
35
|
-
x5c?: string[] | undefined;
|
|
36
|
-
x5t?: string | undefined;
|
|
37
|
-
'x5t#S256'?: string | undefined;
|
|
38
|
-
x5u?: string | undefined;
|
|
39
|
-
} | ({
|
|
19
|
+
get jwkJson(): ({
|
|
40
20
|
kty: "EC";
|
|
41
21
|
crv: "P-256" | "P-384" | "P-521" | "secp256k1";
|
|
42
22
|
x: string;
|
|
@@ -106,7 +86,7 @@ export declare class DidJwk {
|
|
|
106
86
|
crv: "secp256k1";
|
|
107
87
|
}) | ({
|
|
108
88
|
kty: "OKP";
|
|
109
|
-
crv: "
|
|
89
|
+
crv: "X25519" | "Ed25519";
|
|
110
90
|
x: string;
|
|
111
91
|
d?: string | undefined;
|
|
112
92
|
kid?: string | undefined;
|
|
@@ -120,9 +100,29 @@ export declare class DidJwk {
|
|
|
120
100
|
x5u?: string | undefined;
|
|
121
101
|
} & {
|
|
122
102
|
crv: "Ed25519";
|
|
123
|
-
}) |
|
|
103
|
+
}) | {
|
|
104
|
+
kty: "RSA";
|
|
105
|
+
n: string;
|
|
106
|
+
e: string;
|
|
107
|
+
d?: undefined;
|
|
108
|
+
p?: undefined;
|
|
109
|
+
q?: undefined;
|
|
110
|
+
dp?: undefined;
|
|
111
|
+
dq?: undefined;
|
|
112
|
+
qi?: undefined;
|
|
113
|
+
oth?: undefined;
|
|
114
|
+
kid?: string | undefined;
|
|
115
|
+
alg?: string | undefined;
|
|
116
|
+
key_ops?: string[] | undefined;
|
|
117
|
+
use?: string | undefined;
|
|
118
|
+
ext?: boolean | undefined;
|
|
119
|
+
x5c?: string[] | undefined;
|
|
120
|
+
x5t?: string | undefined;
|
|
121
|
+
'x5t#S256'?: string | undefined;
|
|
122
|
+
x5u?: string | undefined;
|
|
123
|
+
} | ({
|
|
124
124
|
kty: "OKP";
|
|
125
|
-
crv: "
|
|
125
|
+
crv: "X25519" | "Ed25519";
|
|
126
126
|
x: string;
|
|
127
127
|
d?: string | undefined;
|
|
128
128
|
kid?: string | undefined;
|
|
@@ -51,7 +51,7 @@ export declare class DifPresentationExchangeService {
|
|
|
51
51
|
*/
|
|
52
52
|
mdocSessionTranscript?: MdocSessionTranscriptOptions;
|
|
53
53
|
}): Promise<{
|
|
54
|
-
verifiablePresentations: (
|
|
54
|
+
verifiablePresentations: (MdocDeviceResponse | W3cJwtVerifiablePresentation | W3cJsonLdVerifiablePresentation | SdJwtVc<SdJwtVcHeader, import("@sd-jwt/sd-jwt-vc").SdJwtVcPayload>)[];
|
|
55
55
|
encodedVerifiablePresentations: (string | W3cJsonPresentation)[];
|
|
56
56
|
presentationSubmission: import("@sphereon/pex-models").PresentationSubmission;
|
|
57
57
|
presentationSubmissionLocation: PresentationSubmissionLocation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DifPresentationExchangeService.d.mts","names":[],"sources":["../../../src/modules/dif-presentation-exchange/DifPresentationExchangeService.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBA4Da;UAGgB;UAFnB;EAEmB,YAAA,sBAAsB;EAEpC,yBACX,cAAc,cACd,wBAAwB,oCACvB,QAAQ;;;;;EASJ,4BACL,uBAAuB,8BACtB;EAsBI,+BAA+B,wBAAwB;EASvD,+BAA+B,wBAAwB;EAQvD,qBACL,wBAAwB,mCACxB,eAAe,yBAAyB,0BACxC,yBAAyB;UAmBnB;EAQK,mBACX,cAAc,cACd;IACE,+BAA+B;IAC/B,wBAAwB;;;;IAIxB,iCAAiC;;;;IAIjC;;;;IAKA;;;;IAKA,wBAAwB;MACzB;
|
|
1
|
+
{"version":3,"file":"DifPresentationExchangeService.d.mts","names":[],"sources":["../../../src/modules/dif-presentation-exchange/DifPresentationExchangeService.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBA4Da;UAGgB;UAFnB;EAEmB,YAAA,sBAAsB;EAEpC,yBACX,cAAc,cACd,wBAAwB,oCACvB,QAAQ;;;;;EASJ,4BACL,uBAAuB,8BACtB;EAsBI,+BAA+B,wBAAwB;EASvD,+BAA+B,wBAAwB;EAQvD,qBACL,wBAAwB,mCACxB,eAAe,yBAAyB,0BACxC,yBAAyB;UAmBnB;EAQK,mBACX,cAAc,cACd;IACE,+BAA+B;IAC/B,wBAAwB;;;;IAIxB,iCAAiC;;;;IAIjC;;;;IAKA;;;;IAKA,wBAAwB;MACzB;;;;;;UAkKK;UA0BA;UAyCA;UAkBA;;;;;;UAuDA;UAuBA;UA8HM;;;;;UA2BA;UAqEN;UAIA"}
|
|
@@ -73,6 +73,20 @@ export declare class KeyManagementApi {
|
|
|
73
73
|
x5t?: string | undefined;
|
|
74
74
|
'x5t#S256'?: string | undefined;
|
|
75
75
|
x5u?: string | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
kty: "OKP";
|
|
78
|
+
crv: "X25519" | "Ed25519";
|
|
79
|
+
x: string;
|
|
80
|
+
d?: string | undefined;
|
|
81
|
+
kid?: string | undefined;
|
|
82
|
+
alg?: string | undefined;
|
|
83
|
+
key_ops?: string[] | undefined;
|
|
84
|
+
use?: string | undefined;
|
|
85
|
+
ext?: boolean | undefined;
|
|
86
|
+
x5c?: string[] | undefined;
|
|
87
|
+
x5t?: string | undefined;
|
|
88
|
+
'x5t#S256'?: string | undefined;
|
|
89
|
+
x5u?: string | undefined;
|
|
76
90
|
} | {
|
|
77
91
|
kty: "RSA";
|
|
78
92
|
n: string;
|
|
@@ -105,20 +119,6 @@ export declare class KeyManagementApi {
|
|
|
105
119
|
x5t?: string | undefined;
|
|
106
120
|
'x5t#S256'?: string | undefined;
|
|
107
121
|
x5u?: string | undefined;
|
|
108
|
-
} | {
|
|
109
|
-
kty: "OKP";
|
|
110
|
-
crv: "Ed25519" | "X25519";
|
|
111
|
-
x: string;
|
|
112
|
-
d?: string | undefined;
|
|
113
|
-
kid?: string | undefined;
|
|
114
|
-
alg?: string | undefined;
|
|
115
|
-
key_ops?: string[] | undefined;
|
|
116
|
-
use?: string | undefined;
|
|
117
|
-
ext?: boolean | undefined;
|
|
118
|
-
x5c?: string[] | undefined;
|
|
119
|
-
x5t?: string | undefined;
|
|
120
|
-
'x5t#S256'?: string | undefined;
|
|
121
|
-
x5u?: string | undefined;
|
|
122
122
|
}>;
|
|
123
123
|
/**
|
|
124
124
|
* Delete a key.
|
|
@@ -18,6 +18,7 @@ export declare const KnownJwaSignatureAlgorithms: {
|
|
|
18
18
|
readonly ES256K: "ES256K";
|
|
19
19
|
};
|
|
20
20
|
export declare const zKnownJwaSignatureAlgorithm: z$1.ZodEnum<{
|
|
21
|
+
Ed25519: "Ed25519";
|
|
21
22
|
HS256: "HS256";
|
|
22
23
|
HS384: "HS384";
|
|
23
24
|
HS512: "HS512";
|
|
@@ -31,7 +32,6 @@ export declare const zKnownJwaSignatureAlgorithm: z$1.ZodEnum<{
|
|
|
31
32
|
PS384: "PS384";
|
|
32
33
|
PS512: "PS512";
|
|
33
34
|
EdDSA: "EdDSA";
|
|
34
|
-
Ed25519: "Ed25519";
|
|
35
35
|
ES256K: "ES256K";
|
|
36
36
|
}>;
|
|
37
37
|
export type KnownJwaSignatureAlgorithm = z$1.output<typeof zKnownJwaSignatureAlgorithm>;
|
|
@@ -49,8 +49,8 @@ export declare const zKmsJwkPublicAsymmetric: z$1.ZodDiscriminatedUnion<[z$1.Zod
|
|
|
49
49
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
50
50
|
kty: z$1.ZodLiteral<"OKP">;
|
|
51
51
|
crv: z$1.ZodEnum<{
|
|
52
|
-
Ed25519: "Ed25519";
|
|
53
52
|
X25519: "X25519";
|
|
53
|
+
Ed25519: "Ed25519";
|
|
54
54
|
}>;
|
|
55
55
|
x: z$1.ZodString;
|
|
56
56
|
d: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -122,8 +122,8 @@ export declare const zKmsJwkPublic: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
122
122
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
123
123
|
kty: z$1.ZodLiteral<"OKP">;
|
|
124
124
|
crv: z$1.ZodEnum<{
|
|
125
|
-
Ed25519: "Ed25519";
|
|
126
125
|
X25519: "X25519";
|
|
126
|
+
Ed25519: "Ed25519";
|
|
127
127
|
}>;
|
|
128
128
|
x: z$1.ZodString;
|
|
129
129
|
d: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -198,8 +198,8 @@ export declare const zKmsJwkPrivate: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
198
198
|
d: z$1.ZodString;
|
|
199
199
|
kty: z$1.ZodLiteral<"OKP">;
|
|
200
200
|
crv: z$1.ZodEnum<{
|
|
201
|
-
Ed25519: "Ed25519";
|
|
202
201
|
X25519: "X25519";
|
|
202
|
+
Ed25519: "Ed25519";
|
|
203
203
|
}>;
|
|
204
204
|
x: z$1.ZodString;
|
|
205
205
|
kid: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -261,8 +261,8 @@ export declare const zKmsJwkPrivateAsymmetric: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
261
261
|
d: z$1.ZodString;
|
|
262
262
|
kty: z$1.ZodLiteral<"OKP">;
|
|
263
263
|
crv: z$1.ZodEnum<{
|
|
264
|
-
Ed25519: "Ed25519";
|
|
265
264
|
X25519: "X25519";
|
|
265
|
+
Ed25519: "Ed25519";
|
|
266
266
|
}>;
|
|
267
267
|
x: z$1.ZodString;
|
|
268
268
|
kid: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -11,7 +11,7 @@ export declare class P256PublicJwk implements PublicJwkType<Jwk> {
|
|
|
11
11
|
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
12
12
|
static multicodecPrefix: number;
|
|
13
13
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
14
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
14
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
15
15
|
multicodecPrefix: number;
|
|
16
16
|
constructor(jwk: Jwk);
|
|
17
17
|
get publicKey(): {
|
|
@@ -11,7 +11,7 @@ export declare class P384PublicJwk implements PublicJwkType<Jwk> {
|
|
|
11
11
|
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
12
12
|
static multicodecPrefix: number;
|
|
13
13
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
14
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
14
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
15
15
|
multicodecPrefix: number;
|
|
16
16
|
constructor(jwk: Jwk);
|
|
17
17
|
get publicKey(): {
|
|
@@ -11,7 +11,7 @@ export declare class P521PublicJwk implements PublicJwkType<Jwk> {
|
|
|
11
11
|
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
12
12
|
static multicodecPrefix: number;
|
|
13
13
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
14
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
14
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
15
15
|
multicodecPrefix: number;
|
|
16
16
|
constructor(jwk: Jwk);
|
|
17
17
|
get publicKey(): {
|
|
@@ -11,7 +11,7 @@ export declare class Secp256k1PublicJwk implements PublicJwkType<Jwk> {
|
|
|
11
11
|
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
12
12
|
static multicodecPrefix: number;
|
|
13
13
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
14
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
14
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
15
15
|
multicodecPrefix: number;
|
|
16
16
|
constructor(jwk: Jwk);
|
|
17
17
|
get publicKey(): {
|
|
@@ -11,7 +11,7 @@ export declare class Ed25519PublicJwk implements PublicJwkType<Jwk> {
|
|
|
11
11
|
static supportedEncryptionKeyAgreementAlgorithms: KnownJwaKeyAgreementAlgorithm[];
|
|
12
12
|
static multicodecPrefix: number;
|
|
13
13
|
supportedEncryptionKeyAgreementAlgorithms: ("ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW" | "ECDH-HSALSA20" | "HPKE-0" | "HPKE-3" | "HPKE-7")[];
|
|
14
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
14
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
15
15
|
multicodecPrefix: number;
|
|
16
16
|
constructor(jwk: Jwk);
|
|
17
17
|
get publicKey(): {
|
|
@@ -28,7 +28,7 @@ export declare class Ed25519PublicJwk implements PublicJwkType<Jwk> {
|
|
|
28
28
|
static fromMulticodec(multicodec: Uint8Array): Ed25519PublicJwk;
|
|
29
29
|
toX25519PublicJwk(): {
|
|
30
30
|
kty: "OKP";
|
|
31
|
-
crv: "
|
|
31
|
+
crv: "X25519" | "Ed25519";
|
|
32
32
|
x: string;
|
|
33
33
|
d?: string | undefined;
|
|
34
34
|
kid?: string | undefined;
|
|
@@ -11,7 +11,7 @@ export declare class X25519PublicJwk implements PublicJwkType<Jwk> {
|
|
|
11
11
|
static supportedSignatureAlgorithms: KnownJwaSignatureAlgorithm[];
|
|
12
12
|
static multicodecPrefix: number;
|
|
13
13
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-HSALSA20"[];
|
|
14
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
14
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
15
15
|
multicodecPrefix: number;
|
|
16
16
|
constructor(jwk: Jwk);
|
|
17
17
|
get publicKey(): {
|
|
@@ -3,8 +3,8 @@ import { z as z$1 } from "zod";
|
|
|
3
3
|
export declare const zKmsJwkPublicOkp: z$1.ZodObject<{
|
|
4
4
|
kty: z$1.ZodLiteral<"OKP">;
|
|
5
5
|
crv: z$1.ZodEnum<{
|
|
6
|
-
Ed25519: "Ed25519";
|
|
7
6
|
X25519: "X25519";
|
|
7
|
+
Ed25519: "Ed25519";
|
|
8
8
|
}>;
|
|
9
9
|
x: z$1.ZodString;
|
|
10
10
|
d: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -23,8 +23,8 @@ export declare const zKmsJwkPrivateOkp: z$1.ZodObject<{
|
|
|
23
23
|
d: z$1.ZodString;
|
|
24
24
|
kty: z$1.ZodLiteral<"OKP">;
|
|
25
25
|
crv: z$1.ZodEnum<{
|
|
26
|
-
Ed25519: "Ed25519";
|
|
27
26
|
X25519: "X25519";
|
|
27
|
+
Ed25519: "Ed25519";
|
|
28
28
|
}>;
|
|
29
29
|
x: z$1.ZodString;
|
|
30
30
|
kid: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -19,8 +19,8 @@ export type KmsCreateKeyTypeEc = z$1.output<typeof zKmsCreateKeyTypeEc>;
|
|
|
19
19
|
declare const zKmsCreateKeyTypeOkp: z$1.ZodObject<{
|
|
20
20
|
kty: z$1.ZodLiteral<"OKP">;
|
|
21
21
|
crv: z$1.ZodEnum<{
|
|
22
|
-
Ed25519: "Ed25519";
|
|
23
22
|
X25519: "X25519";
|
|
23
|
+
Ed25519: "Ed25519";
|
|
24
24
|
}>;
|
|
25
25
|
}, z$1.core.$strip>;
|
|
26
26
|
export type KmsCreateKeyTypeOkp = z$1.output<typeof zKmsCreateKeyTypeOkp>;
|
|
@@ -59,8 +59,8 @@ export declare const zKmsCreateKeyTypeAsymmetric: z$1.ZodUnion<readonly [z$1.Zod
|
|
|
59
59
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
60
60
|
kty: z$1.ZodLiteral<"OKP">;
|
|
61
61
|
crv: z$1.ZodEnum<{
|
|
62
|
-
Ed25519: "Ed25519";
|
|
63
62
|
X25519: "X25519";
|
|
63
|
+
Ed25519: "Ed25519";
|
|
64
64
|
}>;
|
|
65
65
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
66
66
|
kty: z$1.ZodLiteral<"RSA">;
|
|
@@ -78,8 +78,8 @@ export declare const zKmsCreateKeyType: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
78
78
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
79
79
|
kty: z$1.ZodLiteral<"OKP">;
|
|
80
80
|
crv: z$1.ZodEnum<{
|
|
81
|
-
Ed25519: "Ed25519";
|
|
82
81
|
X25519: "X25519";
|
|
82
|
+
Ed25519: "Ed25519";
|
|
83
83
|
}>;
|
|
84
84
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
85
85
|
kty: z$1.ZodLiteral<"RSA">;
|
|
@@ -3,6 +3,7 @@ import { z as z$1 } from "zod";
|
|
|
3
3
|
export declare const zKmsSignOptions: z$1.ZodObject<{
|
|
4
4
|
keyId: z$1.ZodString;
|
|
5
5
|
algorithm: z$1.ZodEnum<{
|
|
6
|
+
Ed25519: "Ed25519";
|
|
6
7
|
HS256: "HS256";
|
|
7
8
|
HS384: "HS384";
|
|
8
9
|
HS512: "HS512";
|
|
@@ -16,7 +17,6 @@ export declare const zKmsSignOptions: z$1.ZodObject<{
|
|
|
16
17
|
PS384: "PS384";
|
|
17
18
|
PS512: "PS512";
|
|
18
19
|
EdDSA: "EdDSA";
|
|
19
|
-
Ed25519: "Ed25519";
|
|
20
20
|
ES256K: "ES256K";
|
|
21
21
|
}>;
|
|
22
22
|
data: z$1.ZodInstanceOf<Uint8Array<ArrayBufferLike>>;
|
|
@@ -49,8 +49,8 @@ export declare const zKmsVerifyOptions: z$1.ZodObject<{
|
|
|
49
49
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
50
50
|
kty: z$1.ZodLiteral<"OKP">;
|
|
51
51
|
crv: z$1.ZodEnum<{
|
|
52
|
-
Ed25519: "Ed25519";
|
|
53
52
|
X25519: "X25519";
|
|
53
|
+
Ed25519: "Ed25519";
|
|
54
54
|
}>;
|
|
55
55
|
x: z$1.ZodString;
|
|
56
56
|
d: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -67,6 +67,7 @@ export declare const zKmsVerifyOptions: z$1.ZodObject<{
|
|
|
67
67
|
keyId: z$1.ZodOptional<z$1.ZodNever>;
|
|
68
68
|
}, z$1.core.$strip>]>;
|
|
69
69
|
algorithm: z$1.ZodEnum<{
|
|
70
|
+
Ed25519: "Ed25519";
|
|
70
71
|
HS256: "HS256";
|
|
71
72
|
HS384: "HS384";
|
|
72
73
|
HS512: "HS512";
|
|
@@ -80,7 +81,6 @@ export declare const zKmsVerifyOptions: z$1.ZodObject<{
|
|
|
80
81
|
PS384: "PS384";
|
|
81
82
|
PS512: "PS512";
|
|
82
83
|
EdDSA: "EdDSA";
|
|
83
|
-
Ed25519: "Ed25519";
|
|
84
84
|
ES256K: "ES256K";
|
|
85
85
|
}>;
|
|
86
86
|
data: z$1.ZodInstanceOf<Uint8Array<ArrayBufferLike>>;
|
|
@@ -58,7 +58,7 @@ export declare class MdocRecord extends BaseRecord<DefaultMdocRecordTags> {
|
|
|
58
58
|
static fromMdoc(mdoc: Mdoc): MdocRecord;
|
|
59
59
|
getTags(): {
|
|
60
60
|
docType: string;
|
|
61
|
-
alg: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
61
|
+
alg: "Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K";
|
|
62
62
|
multiInstanceState: CredentialMultiInstanceState;
|
|
63
63
|
};
|
|
64
64
|
clone(): this;
|
|
@@ -89,7 +89,7 @@ export declare class SdJwtVcRecord extends BaseRecord<DefaultSdJwtVcRecordTags>
|
|
|
89
89
|
vct: string;
|
|
90
90
|
extendedVctValues: string[];
|
|
91
91
|
sdAlg: string;
|
|
92
|
-
alg: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
92
|
+
alg: "Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K";
|
|
93
93
|
multiInstanceState: CredentialMultiInstanceState;
|
|
94
94
|
};
|
|
95
95
|
clone(): this;
|