@credo-ts/core 0.7.1 → 0.7.2-alpha-20260917151259
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/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
|
@@ -16,27 +16,7 @@ declare function getJsonWebKey2020(options: GetJsonWebKey2020Options): {
|
|
|
16
16
|
id: string;
|
|
17
17
|
type: string;
|
|
18
18
|
controller: string;
|
|
19
|
-
publicKeyJwk: {
|
|
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
|
+
publicKeyJwk: ({
|
|
40
20
|
kty: "EC";
|
|
41
21
|
crv: "P-256" | "P-384" | "P-521" | "secp256k1";
|
|
42
22
|
x: string;
|
|
@@ -106,7 +86,7 @@ declare function getJsonWebKey2020(options: GetJsonWebKey2020Options): {
|
|
|
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 @@ declare function getJsonWebKey2020(options: GetJsonWebKey2020Options): {
|
|
|
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;
|
|
@@ -17,27 +17,7 @@ declare class DidJwk {
|
|
|
17
17
|
*/
|
|
18
18
|
get verificationMethodId(): string;
|
|
19
19
|
static fromPublicJwk(publicJwk: PublicJwk): DidJwk;
|
|
20
|
-
get jwkJson(): {
|
|
21
|
-
kty: "RSA";
|
|
22
|
-
n: string;
|
|
23
|
-
e: string;
|
|
24
|
-
d?: undefined;
|
|
25
|
-
p?: undefined;
|
|
26
|
-
q?: undefined;
|
|
27
|
-
dp?: undefined;
|
|
28
|
-
dq?: undefined;
|
|
29
|
-
qi?: undefined;
|
|
30
|
-
oth?: undefined;
|
|
31
|
-
kid?: string | undefined;
|
|
32
|
-
alg?: string | undefined;
|
|
33
|
-
key_ops?: string[] | undefined;
|
|
34
|
-
use?: string | undefined;
|
|
35
|
-
ext?: boolean | undefined;
|
|
36
|
-
x5c?: string[] | undefined;
|
|
37
|
-
x5t?: string | undefined;
|
|
38
|
-
'x5t#S256'?: string | undefined;
|
|
39
|
-
x5u?: string | undefined;
|
|
40
|
-
} | ({
|
|
20
|
+
get jwkJson(): ({
|
|
41
21
|
kty: "EC";
|
|
42
22
|
crv: "P-256" | "P-384" | "P-521" | "secp256k1";
|
|
43
23
|
x: string;
|
|
@@ -107,7 +87,7 @@ declare class DidJwk {
|
|
|
107
87
|
crv: "secp256k1";
|
|
108
88
|
}) | ({
|
|
109
89
|
kty: "OKP";
|
|
110
|
-
crv: "
|
|
90
|
+
crv: "X25519" | "Ed25519";
|
|
111
91
|
x: string;
|
|
112
92
|
d?: string | undefined;
|
|
113
93
|
kid?: string | undefined;
|
|
@@ -121,9 +101,29 @@ declare class DidJwk {
|
|
|
121
101
|
x5u?: string | undefined;
|
|
122
102
|
} & {
|
|
123
103
|
crv: "Ed25519";
|
|
124
|
-
}) |
|
|
104
|
+
}) | {
|
|
105
|
+
kty: "RSA";
|
|
106
|
+
n: string;
|
|
107
|
+
e: string;
|
|
108
|
+
d?: undefined;
|
|
109
|
+
p?: undefined;
|
|
110
|
+
q?: undefined;
|
|
111
|
+
dp?: undefined;
|
|
112
|
+
dq?: undefined;
|
|
113
|
+
qi?: undefined;
|
|
114
|
+
oth?: undefined;
|
|
115
|
+
kid?: string | undefined;
|
|
116
|
+
alg?: string | undefined;
|
|
117
|
+
key_ops?: string[] | undefined;
|
|
118
|
+
use?: string | undefined;
|
|
119
|
+
ext?: boolean | undefined;
|
|
120
|
+
x5c?: string[] | undefined;
|
|
121
|
+
x5t?: string | undefined;
|
|
122
|
+
'x5t#S256'?: string | undefined;
|
|
123
|
+
x5u?: string | undefined;
|
|
124
|
+
} | ({
|
|
125
125
|
kty: "OKP";
|
|
126
|
-
crv: "
|
|
126
|
+
crv: "X25519" | "Ed25519";
|
|
127
127
|
x: string;
|
|
128
128
|
d?: string | undefined;
|
|
129
129
|
kid?: string | undefined;
|
|
@@ -74,6 +74,20 @@ declare class KeyManagementApi {
|
|
|
74
74
|
x5t?: string | undefined;
|
|
75
75
|
'x5t#S256'?: string | undefined;
|
|
76
76
|
x5u?: string | undefined;
|
|
77
|
+
} | {
|
|
78
|
+
kty: "OKP";
|
|
79
|
+
crv: "X25519" | "Ed25519";
|
|
80
|
+
x: string;
|
|
81
|
+
d?: string | undefined;
|
|
82
|
+
kid?: string | undefined;
|
|
83
|
+
alg?: string | undefined;
|
|
84
|
+
key_ops?: string[] | undefined;
|
|
85
|
+
use?: string | undefined;
|
|
86
|
+
ext?: boolean | undefined;
|
|
87
|
+
x5c?: string[] | undefined;
|
|
88
|
+
x5t?: string | undefined;
|
|
89
|
+
'x5t#S256'?: string | undefined;
|
|
90
|
+
x5u?: string | undefined;
|
|
77
91
|
} | {
|
|
78
92
|
kty: "RSA";
|
|
79
93
|
n: string;
|
|
@@ -106,20 +120,6 @@ declare class KeyManagementApi {
|
|
|
106
120
|
x5t?: string | undefined;
|
|
107
121
|
'x5t#S256'?: string | undefined;
|
|
108
122
|
x5u?: string | undefined;
|
|
109
|
-
} | {
|
|
110
|
-
kty: "OKP";
|
|
111
|
-
crv: "Ed25519" | "X25519";
|
|
112
|
-
x: string;
|
|
113
|
-
d?: string | 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
123
|
}>;
|
|
124
124
|
/**
|
|
125
125
|
* Delete a key.
|
|
@@ -19,6 +19,7 @@ declare const KnownJwaSignatureAlgorithms: {
|
|
|
19
19
|
readonly ES256K: "ES256K";
|
|
20
20
|
};
|
|
21
21
|
declare const zKnownJwaSignatureAlgorithm: z.ZodEnum<{
|
|
22
|
+
Ed25519: "Ed25519";
|
|
22
23
|
HS256: "HS256";
|
|
23
24
|
HS384: "HS384";
|
|
24
25
|
HS512: "HS512";
|
|
@@ -32,7 +33,6 @@ declare const zKnownJwaSignatureAlgorithm: z.ZodEnum<{
|
|
|
32
33
|
PS384: "PS384";
|
|
33
34
|
PS512: "PS512";
|
|
34
35
|
EdDSA: "EdDSA";
|
|
35
|
-
Ed25519: "Ed25519";
|
|
36
36
|
ES256K: "ES256K";
|
|
37
37
|
}>;
|
|
38
38
|
type KnownJwaSignatureAlgorithm = z.output<typeof zKnownJwaSignatureAlgorithm>;
|
|
@@ -50,8 +50,8 @@ declare const zKmsJwkPublicAsymmetric: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
50
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
51
51
|
kty: z.ZodLiteral<"OKP">;
|
|
52
52
|
crv: z.ZodEnum<{
|
|
53
|
-
Ed25519: "Ed25519";
|
|
54
53
|
X25519: "X25519";
|
|
54
|
+
Ed25519: "Ed25519";
|
|
55
55
|
}>;
|
|
56
56
|
x: z.ZodString;
|
|
57
57
|
d: z.ZodOptional<z.ZodString>;
|
|
@@ -123,8 +123,8 @@ declare const zKmsJwkPublic: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
123
123
|
}, z.core.$strip>, z.ZodObject<{
|
|
124
124
|
kty: z.ZodLiteral<"OKP">;
|
|
125
125
|
crv: z.ZodEnum<{
|
|
126
|
-
Ed25519: "Ed25519";
|
|
127
126
|
X25519: "X25519";
|
|
127
|
+
Ed25519: "Ed25519";
|
|
128
128
|
}>;
|
|
129
129
|
x: z.ZodString;
|
|
130
130
|
d: z.ZodOptional<z.ZodString>;
|
|
@@ -199,8 +199,8 @@ declare const zKmsJwkPrivate: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
199
199
|
d: z.ZodString;
|
|
200
200
|
kty: z.ZodLiteral<"OKP">;
|
|
201
201
|
crv: z.ZodEnum<{
|
|
202
|
-
Ed25519: "Ed25519";
|
|
203
202
|
X25519: "X25519";
|
|
203
|
+
Ed25519: "Ed25519";
|
|
204
204
|
}>;
|
|
205
205
|
x: z.ZodString;
|
|
206
206
|
kid: z.ZodOptional<z.ZodString>;
|
|
@@ -262,8 +262,8 @@ declare const zKmsJwkPrivateAsymmetric: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
262
262
|
d: z.ZodString;
|
|
263
263
|
kty: z.ZodLiteral<"OKP">;
|
|
264
264
|
crv: z.ZodEnum<{
|
|
265
|
-
Ed25519: "Ed25519";
|
|
266
265
|
X25519: "X25519";
|
|
266
|
+
Ed25519: "Ed25519";
|
|
267
267
|
}>;
|
|
268
268
|
x: z.ZodString;
|
|
269
269
|
kid: z.ZodOptional<z.ZodString>;
|
|
@@ -12,7 +12,7 @@ declare class P256PublicJwk implements PublicJwkType<Jwk> {
|
|
|
12
12
|
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
13
13
|
static multicodecPrefix: number;
|
|
14
14
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
15
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
15
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
16
16
|
multicodecPrefix: number;
|
|
17
17
|
constructor(jwk: Jwk);
|
|
18
18
|
get publicKey(): {
|
|
@@ -12,7 +12,7 @@ declare class P384PublicJwk implements PublicJwkType<Jwk> {
|
|
|
12
12
|
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
13
13
|
static multicodecPrefix: number;
|
|
14
14
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
15
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
15
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
16
16
|
multicodecPrefix: number;
|
|
17
17
|
constructor(jwk: Jwk);
|
|
18
18
|
get publicKey(): {
|
|
@@ -12,7 +12,7 @@ declare class P521PublicJwk implements PublicJwkType<Jwk> {
|
|
|
12
12
|
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
13
13
|
static multicodecPrefix: number;
|
|
14
14
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
15
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
15
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
16
16
|
multicodecPrefix: number;
|
|
17
17
|
constructor(jwk: Jwk);
|
|
18
18
|
get publicKey(): {
|
|
@@ -12,7 +12,7 @@ declare class Secp256k1PublicJwk implements PublicJwkType<Jwk> {
|
|
|
12
12
|
static supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
13
13
|
static multicodecPrefix: number;
|
|
14
14
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-ES"[];
|
|
15
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
15
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
16
16
|
multicodecPrefix: number;
|
|
17
17
|
constructor(jwk: Jwk);
|
|
18
18
|
get publicKey(): {
|
|
@@ -12,7 +12,7 @@ declare class Ed25519PublicJwk implements PublicJwkType<Jwk> {
|
|
|
12
12
|
static supportedEncryptionKeyAgreementAlgorithms: KnownJwaKeyAgreementAlgorithm[];
|
|
13
13
|
static multicodecPrefix: number;
|
|
14
14
|
supportedEncryptionKeyAgreementAlgorithms: ("ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW" | "ECDH-HSALSA20" | "HPKE-0" | "HPKE-3" | "HPKE-7")[];
|
|
15
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
15
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
16
16
|
multicodecPrefix: number;
|
|
17
17
|
constructor(jwk: Jwk);
|
|
18
18
|
get publicKey(): {
|
|
@@ -29,7 +29,7 @@ declare class Ed25519PublicJwk implements PublicJwkType<Jwk> {
|
|
|
29
29
|
static fromMulticodec(multicodec: Uint8Array): Ed25519PublicJwk;
|
|
30
30
|
toX25519PublicJwk(): {
|
|
31
31
|
kty: "OKP";
|
|
32
|
-
crv: "
|
|
32
|
+
crv: "X25519" | "Ed25519";
|
|
33
33
|
x: string;
|
|
34
34
|
d?: string | undefined;
|
|
35
35
|
kid?: string | undefined;
|
|
@@ -12,7 +12,7 @@ declare class X25519PublicJwk implements PublicJwkType<Jwk> {
|
|
|
12
12
|
static supportedSignatureAlgorithms: KnownJwaSignatureAlgorithm[];
|
|
13
13
|
static multicodecPrefix: number;
|
|
14
14
|
supportedEncryptionKeyAgreementAlgorithms: "ECDH-HSALSA20"[];
|
|
15
|
-
supportedSignatureAlgorithms: ("HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
15
|
+
supportedSignatureAlgorithms: ("Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K")[];
|
|
16
16
|
multicodecPrefix: number;
|
|
17
17
|
constructor(jwk: Jwk);
|
|
18
18
|
get publicKey(): {
|
|
@@ -4,8 +4,8 @@ import { z } from "zod";
|
|
|
4
4
|
declare const zKmsJwkPublicOkp: z.ZodObject<{
|
|
5
5
|
kty: z.ZodLiteral<"OKP">;
|
|
6
6
|
crv: z.ZodEnum<{
|
|
7
|
-
Ed25519: "Ed25519";
|
|
8
7
|
X25519: "X25519";
|
|
8
|
+
Ed25519: "Ed25519";
|
|
9
9
|
}>;
|
|
10
10
|
x: z.ZodString;
|
|
11
11
|
d: z.ZodOptional<z.ZodString>;
|
|
@@ -24,8 +24,8 @@ declare const zKmsJwkPrivateOkp: z.ZodObject<{
|
|
|
24
24
|
d: z.ZodString;
|
|
25
25
|
kty: z.ZodLiteral<"OKP">;
|
|
26
26
|
crv: z.ZodEnum<{
|
|
27
|
-
Ed25519: "Ed25519";
|
|
28
27
|
X25519: "X25519";
|
|
28
|
+
Ed25519: "Ed25519";
|
|
29
29
|
}>;
|
|
30
30
|
x: z.ZodString;
|
|
31
31
|
kid: z.ZodOptional<z.ZodString>;
|
|
@@ -20,8 +20,8 @@ type KmsCreateKeyTypeEc = z.output<typeof zKmsCreateKeyTypeEc>;
|
|
|
20
20
|
declare const zKmsCreateKeyTypeOkp: z.ZodObject<{
|
|
21
21
|
kty: z.ZodLiteral<"OKP">;
|
|
22
22
|
crv: z.ZodEnum<{
|
|
23
|
-
Ed25519: "Ed25519";
|
|
24
23
|
X25519: "X25519";
|
|
24
|
+
Ed25519: "Ed25519";
|
|
25
25
|
}>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
type KmsCreateKeyTypeOkp = z.output<typeof zKmsCreateKeyTypeOkp>;
|
|
@@ -60,8 +60,8 @@ declare const zKmsCreateKeyTypeAsymmetric: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
60
60
|
}, z.core.$strip>, z.ZodObject<{
|
|
61
61
|
kty: z.ZodLiteral<"OKP">;
|
|
62
62
|
crv: z.ZodEnum<{
|
|
63
|
-
Ed25519: "Ed25519";
|
|
64
63
|
X25519: "X25519";
|
|
64
|
+
Ed25519: "Ed25519";
|
|
65
65
|
}>;
|
|
66
66
|
}, z.core.$strip>, z.ZodObject<{
|
|
67
67
|
kty: z.ZodLiteral<"RSA">;
|
|
@@ -79,8 +79,8 @@ declare const zKmsCreateKeyType: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
79
79
|
}, z.core.$strip>, z.ZodObject<{
|
|
80
80
|
kty: z.ZodLiteral<"OKP">;
|
|
81
81
|
crv: z.ZodEnum<{
|
|
82
|
-
Ed25519: "Ed25519";
|
|
83
82
|
X25519: "X25519";
|
|
83
|
+
Ed25519: "Ed25519";
|
|
84
84
|
}>;
|
|
85
85
|
}, z.core.$strip>, z.ZodObject<{
|
|
86
86
|
kty: z.ZodLiteral<"RSA">;
|
|
@@ -4,6 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
declare const zKmsSignOptions: z.ZodObject<{
|
|
5
5
|
keyId: z.ZodString;
|
|
6
6
|
algorithm: z.ZodEnum<{
|
|
7
|
+
Ed25519: "Ed25519";
|
|
7
8
|
HS256: "HS256";
|
|
8
9
|
HS384: "HS384";
|
|
9
10
|
HS512: "HS512";
|
|
@@ -17,7 +18,6 @@ declare const zKmsSignOptions: z.ZodObject<{
|
|
|
17
18
|
PS384: "PS384";
|
|
18
19
|
PS512: "PS512";
|
|
19
20
|
EdDSA: "EdDSA";
|
|
20
|
-
Ed25519: "Ed25519";
|
|
21
21
|
ES256K: "ES256K";
|
|
22
22
|
}>;
|
|
23
23
|
data: z.ZodInstanceOf<Uint8Array<ArrayBufferLike>>;
|
|
@@ -50,8 +50,8 @@ declare const zKmsVerifyOptions: z.ZodObject<{
|
|
|
50
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
51
51
|
kty: z.ZodLiteral<"OKP">;
|
|
52
52
|
crv: z.ZodEnum<{
|
|
53
|
-
Ed25519: "Ed25519";
|
|
54
53
|
X25519: "X25519";
|
|
54
|
+
Ed25519: "Ed25519";
|
|
55
55
|
}>;
|
|
56
56
|
x: z.ZodString;
|
|
57
57
|
d: z.ZodOptional<z.ZodString>;
|
|
@@ -68,6 +68,7 @@ declare const zKmsVerifyOptions: z.ZodObject<{
|
|
|
68
68
|
keyId: z.ZodOptional<z.ZodNever>;
|
|
69
69
|
}, z.core.$strip>]>;
|
|
70
70
|
algorithm: z.ZodEnum<{
|
|
71
|
+
Ed25519: "Ed25519";
|
|
71
72
|
HS256: "HS256";
|
|
72
73
|
HS384: "HS384";
|
|
73
74
|
HS512: "HS512";
|
|
@@ -81,7 +82,6 @@ declare const zKmsVerifyOptions: z.ZodObject<{
|
|
|
81
82
|
PS384: "PS384";
|
|
82
83
|
PS512: "PS512";
|
|
83
84
|
EdDSA: "EdDSA";
|
|
84
|
-
Ed25519: "Ed25519";
|
|
85
85
|
ES256K: "ES256K";
|
|
86
86
|
}>;
|
|
87
87
|
data: z.ZodInstanceOf<Uint8Array<ArrayBufferLike>>;
|
|
@@ -59,7 +59,7 @@ declare class MdocRecord extends BaseRecord<DefaultMdocRecordTags> {
|
|
|
59
59
|
static fromMdoc(mdoc: Mdoc): MdocRecord;
|
|
60
60
|
getTags(): {
|
|
61
61
|
docType: string;
|
|
62
|
-
alg: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
62
|
+
alg: "Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K";
|
|
63
63
|
multiInstanceState: CredentialMultiInstanceState;
|
|
64
64
|
};
|
|
65
65
|
clone(): this;
|
|
@@ -90,7 +90,7 @@ declare class SdJwtVcRecord extends BaseRecord<DefaultSdJwtVcRecordTags> {
|
|
|
90
90
|
vct: string;
|
|
91
91
|
extendedVctValues: string[];
|
|
92
92
|
sdAlg: string;
|
|
93
|
-
alg: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "
|
|
93
|
+
alg: "Ed25519" | "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | "ES256K";
|
|
94
94
|
multiInstanceState: CredentialMultiInstanceState;
|
|
95
95
|
};
|
|
96
96
|
clone(): this;
|