-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtypes.d.ts
64 lines (59 loc) · 1004 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
export type CardData = {
securityCode: string;
number: string;
type: string;
expirationMonth: string;
expirationYear: string;
};
export type KeyId = {
flx: {
path: string;
data: string;
origin: string;
jwk: {
kty: string;
e: string;
use: string;
n: string;
kid: string;
};
};
ctx: {
data: {
targetOrigins: string[];
mfOrigin: string;
};
type: string;
}[];
iss: string;
exp: number;
iat: number;
jti: string;
};
export type DecodedJwtData = {
data: {
expirationYear: string;
number: string;
expirationMonth: string;
type: string;
};
iss: string;
exp: number;
type: string;
iat: number;
jti: string;
};
// encryption payload
export type Payload = {
data: CardData;
context: string;
index: number;
};
// encryption header
export type Header = {
kid: string;
alg: string;
enc: string;
};
// Useful for readability
export type InitializationVector = Uint8Array;