@sphereon/ssi-types 0.30.1-unstable.4 → 0.30.1

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/src/types/vc.ts CHANGED
@@ -1,87 +1,87 @@
1
- import {
2
- MdocDeviceResponse,
3
- MdocDocument,
4
- MdocOid4vpIssuerSigned,
5
- MdocOid4vpMdocVpToken,
6
- WrappedMdocCredential,
7
- WrappedMdocPresentation,
8
- } from './mso_mdoc'
9
- import { SdJwtDecodedVerifiableCredential, WrappedSdJwtVerifiableCredential, WrappedSdJwtVerifiablePresentation } from './sd-jwt-vc'
10
- import {
11
- JwtDecodedVerifiableCredential,
12
- JwtDecodedVerifiablePresentation,
13
- W3CVerifiableCredential,
14
- W3CVerifiablePresentation,
15
- WrappedW3CVerifiableCredential,
16
- WrappedW3CVerifiablePresentation,
17
- } from './w3c-vc'
18
-
19
- export type WrappedVerifiableCredential = WrappedW3CVerifiableCredential | WrappedSdJwtVerifiableCredential | WrappedMdocCredential
20
-
21
- export type WrappedVerifiablePresentation = WrappedW3CVerifiablePresentation | WrappedSdJwtVerifiablePresentation | WrappedMdocPresentation
22
-
23
- export enum OriginalType {
24
- // W3C
25
- JSONLD = 'json-ld',
26
- JWT_ENCODED = 'jwt-encoded',
27
- JWT_DECODED = 'jwt-decoded',
28
-
29
- // SD-JWT
30
- SD_JWT_VC_ENCODED = 'sd-jwt-vc-encoded',
31
- SD_JWT_VC_DECODED = 'sd-jwt-vc-decoded',
32
-
33
- // MSO MDOCS
34
- MSO_MDOC_ENCODED = 'mso_mdoc-encoded',
35
- MSO_MDOC_DECODED = 'mso_mdoc-decoded',
36
- }
37
-
38
- export type CredentialFormat =
39
- // W3C
40
- | 'jwt_vc'
41
- | 'ldp_vc'
42
- // SD-JWT
43
- | 'vc+sd-jwt'
44
- // Remaining
45
- | 'jwt'
46
- | 'ldp'
47
- | 'mso_mdoc'
48
- | string
49
-
50
- export type PresentationFormat =
51
- // W3C
52
- | 'jwt_vp'
53
- | 'ldp_vp'
54
- // SD-JWT
55
- | 'vc+sd-jwt'
56
- // Remaining
57
- | 'jwt'
58
- | 'ldp'
59
- | 'mso_mdoc'
60
- | string
61
-
62
- export type ClaimFormat = CredentialFormat | PresentationFormat
63
-
64
- export type OriginalVerifiableCredential =
65
- | W3CVerifiableCredential
66
- | JwtDecodedVerifiableCredential
67
- | SdJwtDecodedVerifiableCredential
68
- | MdocOid4vpIssuerSigned
69
- | MdocDocument
70
- export type OriginalVerifiablePresentation =
71
- | W3CVerifiablePresentation
72
- | JwtDecodedVerifiablePresentation
73
- | SdJwtDecodedVerifiableCredential
74
- | MdocOid4vpMdocVpToken
75
- | MdocDeviceResponse
76
- export type Original = OriginalVerifiablePresentation | OriginalVerifiableCredential
77
-
78
- export const enum DocumentFormat {
79
- // W3C
80
- JWT,
81
- JSONLD,
82
- // SD-JWT
83
- SD_JWT_VC,
84
- // Remaining
85
- EIP712,
86
- MSO_MDOC,
87
- }
1
+ import {
2
+ MdocDeviceResponse,
3
+ MdocDocument,
4
+ MdocOid4vpIssuerSigned,
5
+ MdocOid4vpMdocVpToken,
6
+ WrappedMdocCredential,
7
+ WrappedMdocPresentation,
8
+ } from './mso_mdoc'
9
+ import { SdJwtDecodedVerifiableCredential, WrappedSdJwtVerifiableCredential, WrappedSdJwtVerifiablePresentation } from './sd-jwt-vc'
10
+ import {
11
+ JwtDecodedVerifiableCredential,
12
+ JwtDecodedVerifiablePresentation,
13
+ W3CVerifiableCredential,
14
+ W3CVerifiablePresentation,
15
+ WrappedW3CVerifiableCredential,
16
+ WrappedW3CVerifiablePresentation,
17
+ } from './w3c-vc'
18
+
19
+ export type WrappedVerifiableCredential = WrappedW3CVerifiableCredential | WrappedSdJwtVerifiableCredential | WrappedMdocCredential
20
+
21
+ export type WrappedVerifiablePresentation = WrappedW3CVerifiablePresentation | WrappedSdJwtVerifiablePresentation | WrappedMdocPresentation
22
+
23
+ export enum OriginalType {
24
+ // W3C
25
+ JSONLD = 'json-ld',
26
+ JWT_ENCODED = 'jwt-encoded',
27
+ JWT_DECODED = 'jwt-decoded',
28
+
29
+ // SD-JWT
30
+ SD_JWT_VC_ENCODED = 'sd-jwt-vc-encoded',
31
+ SD_JWT_VC_DECODED = 'sd-jwt-vc-decoded',
32
+
33
+ // MSO MDOCS
34
+ MSO_MDOC_ENCODED = 'mso_mdoc-encoded',
35
+ MSO_MDOC_DECODED = 'mso_mdoc-decoded',
36
+ }
37
+
38
+ export type CredentialFormat =
39
+ // W3C
40
+ | 'jwt_vc'
41
+ | 'ldp_vc'
42
+ // SD-JWT
43
+ | 'vc+sd-jwt'
44
+ // Remaining
45
+ | 'jwt'
46
+ | 'ldp'
47
+ | 'mso_mdoc'
48
+ | string
49
+
50
+ export type PresentationFormat =
51
+ // W3C
52
+ | 'jwt_vp'
53
+ | 'ldp_vp'
54
+ // SD-JWT
55
+ | 'vc+sd-jwt'
56
+ // Remaining
57
+ | 'jwt'
58
+ | 'ldp'
59
+ | 'mso_mdoc'
60
+ | string
61
+
62
+ export type ClaimFormat = CredentialFormat | PresentationFormat
63
+
64
+ export type OriginalVerifiableCredential =
65
+ | W3CVerifiableCredential
66
+ | JwtDecodedVerifiableCredential
67
+ | SdJwtDecodedVerifiableCredential
68
+ | MdocOid4vpIssuerSigned
69
+ | MdocDocument
70
+ export type OriginalVerifiablePresentation =
71
+ | W3CVerifiablePresentation
72
+ | JwtDecodedVerifiablePresentation
73
+ | SdJwtDecodedVerifiableCredential
74
+ | MdocOid4vpMdocVpToken
75
+ | MdocDeviceResponse
76
+ export type Original = OriginalVerifiablePresentation | OriginalVerifiableCredential
77
+
78
+ export const enum DocumentFormat {
79
+ // W3C
80
+ JWT,
81
+ JSONLD,
82
+ // SD-JWT
83
+ SD_JWT_VC,
84
+ // Remaining
85
+ EIP712,
86
+ MSO_MDOC,
87
+ }