@sphereon/ssi-sdk.vc-status-list 0.32.1-next.18 → 0.32.1-next.287
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/dist/functions.d.ts +13 -13
- package/dist/functions.d.ts.map +1 -1
- package/dist/functions.js +53 -109
- package/dist/functions.js.map +1 -1
- package/dist/impl/IStatusList.d.ts +26 -0
- package/dist/impl/IStatusList.d.ts.map +1 -0
- package/dist/impl/IStatusList.js +3 -0
- package/dist/impl/IStatusList.js.map +1 -0
- package/dist/impl/OAuthStatusList.d.ts +21 -0
- package/dist/impl/OAuthStatusList.d.ts.map +1 -0
- package/dist/impl/OAuthStatusList.js +155 -0
- package/dist/impl/OAuthStatusList.js.map +1 -0
- package/dist/impl/StatusList2021.d.ts +16 -0
- package/dist/impl/StatusList2021.d.ts.map +1 -0
- package/dist/impl/StatusList2021.js +186 -0
- package/dist/impl/StatusList2021.js.map +1 -0
- package/dist/impl/StatusListFactory.d.ts +11 -0
- package/dist/impl/StatusListFactory.d.ts.map +1 -0
- package/dist/impl/StatusListFactory.js +32 -0
- package/dist/impl/StatusListFactory.js.map +1 -0
- package/dist/impl/encoding/cbor.d.ts +6 -0
- package/dist/impl/encoding/cbor.d.ts.map +1 -0
- package/dist/impl/encoding/cbor.js +140 -0
- package/dist/impl/encoding/cbor.js.map +1 -0
- package/dist/impl/encoding/common.d.ts +12 -0
- package/dist/impl/encoding/common.d.ts.map +1 -0
- package/dist/impl/encoding/common.js +17 -0
- package/dist/impl/encoding/common.js.map +1 -0
- package/dist/impl/encoding/jwt.d.ts +9 -0
- package/dist/impl/encoding/jwt.d.ts.map +1 -0
- package/dist/impl/encoding/jwt.js +74 -0
- package/dist/impl/encoding/jwt.js.map +1 -0
- package/dist/types/index.d.ts +131 -33
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +12 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils.d.ts +17 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +88 -0
- package/dist/utils.js.map +1 -0
- package/package.json +17 -6
- package/src/functions.ts +73 -159
- package/src/impl/IStatusList.ts +42 -0
- package/src/impl/OAuthStatusList.ts +206 -0
- package/src/impl/StatusList2021.ts +241 -0
- package/src/impl/StatusListFactory.ts +34 -0
- package/src/impl/encoding/cbor.ts +171 -0
- package/src/impl/encoding/common.ts +20 -0
- package/src/impl/encoding/jwt.ts +80 -0
- package/src/types/index.ts +151 -37
- package/src/utils.ts +95 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -1,46 +1,87 @@
|
|
|
1
1
|
import { IIdentifierResolution } from '@sphereon/ssi-sdk-ext.identifier-resolution';
|
|
2
|
-
import { ICredential, ICredentialStatus, IIssuer, IVerifiableCredential,
|
|
3
|
-
import { CredentialPayload, IAgentContext, ICredentialIssuer, ICredentialPlugin, ICredentialVerifier,
|
|
2
|
+
import { ICredential, ICredentialStatus, IIssuer, IVerifiableCredential, OrPromise, ProofFormat, StatusListCredential, StatusListCredentialIdMode, StatusListDriverType, StatusListIndexingDirection, StatusListType, StatusPurpose2021 } from '@sphereon/ssi-types';
|
|
3
|
+
import { CredentialPayload, IAgentContext, ICredentialIssuer, ICredentialPlugin, ICredentialVerifier, IKeyManager, IPluginMethodMap } from '@veramo/core';
|
|
4
4
|
import { DataSource } from 'typeorm';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { BitsPerStatus } from '@sd-jwt/jwt-status-list/dist';
|
|
6
|
+
import { SdJwtVcPayload } from '@sd-jwt/sd-jwt-vc';
|
|
7
|
+
import { StatusListOpts } from '@sphereon/oid4vci-common';
|
|
8
|
+
export declare enum StatusOAuth {
|
|
9
|
+
Valid = 0,
|
|
10
|
+
Invalid = 1,
|
|
11
|
+
Suspended = 2
|
|
8
12
|
}
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
export declare enum Status2021 {
|
|
14
|
+
Valid = 0,
|
|
15
|
+
Invalid = 1
|
|
12
16
|
}
|
|
13
|
-
export
|
|
14
|
-
|
|
17
|
+
export type StatusList2021Args = {
|
|
18
|
+
indexingDirection: StatusListIndexingDirection;
|
|
19
|
+
statusPurpose?: StatusPurpose2021;
|
|
20
|
+
};
|
|
21
|
+
export type OAuthStatusListArgs = {
|
|
22
|
+
bitsPerStatus?: BitsPerStatus;
|
|
23
|
+
expiresAt?: Date;
|
|
24
|
+
};
|
|
25
|
+
export type BaseCreateNewStatusListArgs = {
|
|
26
|
+
type: StatusListType;
|
|
27
|
+
id: string;
|
|
28
|
+
issuer: string | IIssuer;
|
|
29
|
+
correlationId?: string;
|
|
30
|
+
length?: number;
|
|
31
|
+
proofFormat?: ProofFormat;
|
|
15
32
|
keyRef?: string;
|
|
33
|
+
statusList2021?: StatusList2021Args;
|
|
34
|
+
oauthStatusList?: OAuthStatusListArgs;
|
|
35
|
+
driverType?: StatusListDriverType;
|
|
36
|
+
};
|
|
37
|
+
export type UpdateStatusList2021Args = {
|
|
38
|
+
statusPurpose: StatusPurpose2021;
|
|
39
|
+
};
|
|
40
|
+
export type UpdateOAuthStatusListArgs = {
|
|
41
|
+
bitsPerStatus: BitsPerStatus;
|
|
42
|
+
expiresAt?: Date;
|
|
43
|
+
};
|
|
44
|
+
export interface UpdateStatusListFromEncodedListArgs {
|
|
45
|
+
type?: StatusListType;
|
|
16
46
|
statusListIndex: number | string;
|
|
17
47
|
value: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
48
|
+
proofFormat?: ProofFormat;
|
|
49
|
+
keyRef?: string;
|
|
50
|
+
correlationId?: string;
|
|
51
|
+
encodedList: string;
|
|
20
52
|
issuer: string | IIssuer;
|
|
21
53
|
id: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
54
|
+
statusList2021?: UpdateStatusList2021Args;
|
|
55
|
+
oauthStatusList?: UpdateOAuthStatusListArgs;
|
|
56
|
+
}
|
|
57
|
+
export interface UpdateStatusListFromStatusListCredentialArgs {
|
|
58
|
+
statusListCredential: StatusListCredential;
|
|
26
59
|
keyRef?: string;
|
|
60
|
+
statusListIndex: number | string;
|
|
61
|
+
value: number | Status2021 | StatusOAuth;
|
|
27
62
|
}
|
|
28
|
-
export interface
|
|
63
|
+
export interface StatusListResult {
|
|
29
64
|
encodedList: string;
|
|
65
|
+
statusListCredential: StatusListCredential;
|
|
30
66
|
length: number;
|
|
31
67
|
type: StatusListType;
|
|
32
68
|
proofFormat: ProofFormat;
|
|
33
|
-
statusPurpose: StatusPurpose2021;
|
|
34
69
|
id: string;
|
|
70
|
+
statuslistContentType: string;
|
|
35
71
|
issuer: string | IIssuer;
|
|
36
|
-
|
|
37
|
-
|
|
72
|
+
statusList2021?: StatusList2021Details;
|
|
73
|
+
oauthStatusList?: OAuthStatusDetails;
|
|
38
74
|
correlationId?: string;
|
|
39
75
|
driverType?: StatusListDriverType;
|
|
40
76
|
credentialIdMode?: StatusListCredentialIdMode;
|
|
41
77
|
}
|
|
42
|
-
|
|
43
|
-
|
|
78
|
+
interface StatusList2021Details {
|
|
79
|
+
indexingDirection: StatusListIndexingDirection;
|
|
80
|
+
statusPurpose?: StatusPurpose2021;
|
|
81
|
+
}
|
|
82
|
+
interface OAuthStatusDetails {
|
|
83
|
+
bitsPerStatus?: BitsPerStatus;
|
|
84
|
+
expiresAt?: Date;
|
|
44
85
|
}
|
|
45
86
|
export interface StatusList2021EntryCredentialStatus extends ICredentialStatus {
|
|
46
87
|
type: 'StatusList2021Entry';
|
|
@@ -48,6 +89,48 @@ export interface StatusList2021EntryCredentialStatus extends ICredentialStatus {
|
|
|
48
89
|
statusListIndex: string;
|
|
49
90
|
statusListCredential: string;
|
|
50
91
|
}
|
|
92
|
+
export interface StatusListOAuthEntryCredentialStatus extends ICredentialStatus {
|
|
93
|
+
type: 'OAuthStatusListEntry';
|
|
94
|
+
bitsPerStatus: number;
|
|
95
|
+
statusListIndex: string;
|
|
96
|
+
statusListCredential: string;
|
|
97
|
+
expiresAt?: Date;
|
|
98
|
+
}
|
|
99
|
+
export interface StatusList2021ToVerifiableCredentialArgs {
|
|
100
|
+
issuer: string | IIssuer;
|
|
101
|
+
id: string;
|
|
102
|
+
type?: StatusListType;
|
|
103
|
+
proofFormat?: ProofFormat;
|
|
104
|
+
keyRef?: string;
|
|
105
|
+
encodedList: string;
|
|
106
|
+
statusPurpose: StatusPurpose2021;
|
|
107
|
+
}
|
|
108
|
+
export interface CreateStatusListArgs {
|
|
109
|
+
issuer: string | IIssuer;
|
|
110
|
+
id: string;
|
|
111
|
+
proofFormat?: ProofFormat;
|
|
112
|
+
keyRef?: string;
|
|
113
|
+
correlationId?: string;
|
|
114
|
+
length?: number;
|
|
115
|
+
statusList2021?: StatusList2021Args;
|
|
116
|
+
oauthStatusList?: OAuthStatusListArgs;
|
|
117
|
+
}
|
|
118
|
+
export interface UpdateStatusListIndexArgs {
|
|
119
|
+
statusListCredential: StatusListCredential;
|
|
120
|
+
statusListIndex: number | string;
|
|
121
|
+
value: number | Status2021 | StatusOAuth;
|
|
122
|
+
keyRef?: string;
|
|
123
|
+
expiresAt?: Date;
|
|
124
|
+
}
|
|
125
|
+
export interface CheckStatusIndexArgs {
|
|
126
|
+
statusListCredential: StatusListCredential;
|
|
127
|
+
statusListIndex: string | number;
|
|
128
|
+
}
|
|
129
|
+
export interface ToStatusListDetailsArgs {
|
|
130
|
+
statusListPayload: StatusListCredential;
|
|
131
|
+
correlationId?: string;
|
|
132
|
+
driverType?: StatusListDriverType;
|
|
133
|
+
}
|
|
51
134
|
/**
|
|
52
135
|
* The interface definition for a plugin that can add statuslist info to a credential
|
|
53
136
|
*
|
|
@@ -64,7 +147,7 @@ export interface IStatusListPlugin extends IPluginMethodMap {
|
|
|
64
147
|
*
|
|
65
148
|
* @returns - The details of the newly created status list
|
|
66
149
|
*/
|
|
67
|
-
slCreateStatusList(args: CreateNewStatusListArgs, context: IRequiredContext): Promise<
|
|
150
|
+
slCreateStatusList(args: CreateNewStatusListArgs, context: IRequiredContext): Promise<StatusListResult>;
|
|
68
151
|
/**
|
|
69
152
|
* Ensures status list info like index and list id is added to a credential
|
|
70
153
|
*
|
|
@@ -76,22 +159,37 @@ export interface IStatusListPlugin extends IPluginMethodMap {
|
|
|
76
159
|
* @beta This API is likely to change without a BREAKING CHANGE notice
|
|
77
160
|
*/
|
|
78
161
|
slAddStatusToCredential(args: IAddStatusToCredentialArgs, context: IRequiredContext): Promise<CredentialWithStatusSupport>;
|
|
162
|
+
slAddStatusToSdJwtCredential(args: IAddStatusToSdJwtCredentialArgs, context: IRequiredContext): Promise<SdJwtVcPayload>;
|
|
79
163
|
/**
|
|
80
164
|
* Get the status list using the configured driver for the SL. Normally a correlationId or id should suffice. Optionally accepts a dbName/datasource
|
|
81
165
|
* @param args
|
|
82
166
|
* @param context
|
|
83
167
|
*/
|
|
84
|
-
slGetStatusList(args: GetStatusListArgs, context: IRequiredContext): Promise<
|
|
168
|
+
slGetStatusList(args: GetStatusListArgs, context: IRequiredContext): Promise<StatusListResult>;
|
|
169
|
+
/**
|
|
170
|
+
* Import status lists when noy yet present
|
|
171
|
+
*
|
|
172
|
+
* @param imports Array of status list information like type and size
|
|
173
|
+
* @param context - This reserved param is automatically added and handled by the framework, *do not override*
|
|
174
|
+
*/
|
|
175
|
+
slImportStatusLists(imports: Array<CreateNewStatusListArgs>, context: IRequiredContext): Promise<boolean>;
|
|
85
176
|
}
|
|
177
|
+
export type CreateNewStatusListFuncArgs = BaseCreateNewStatusListArgs;
|
|
178
|
+
export type CreateNewStatusListArgs = BaseCreateNewStatusListArgs & {
|
|
179
|
+
dbName?: string;
|
|
180
|
+
dataSource?: OrPromise<DataSource>;
|
|
181
|
+
isDefault?: boolean;
|
|
182
|
+
};
|
|
86
183
|
export type IAddStatusToCredentialArgs = Omit<IIssueCredentialStatusOpts, 'dataSource'> & {
|
|
87
184
|
credential: CredentialWithStatusSupport;
|
|
88
185
|
};
|
|
186
|
+
export type IAddStatusToSdJwtCredentialArgs = Omit<IIssueCredentialStatusOpts, 'dataSource'> & {
|
|
187
|
+
credential: SdJwtVcPayload;
|
|
188
|
+
};
|
|
89
189
|
export interface IIssueCredentialStatusOpts {
|
|
90
190
|
dataSource?: DataSource;
|
|
191
|
+
statusLists?: Array<StatusListOpts>;
|
|
91
192
|
credentialId?: string;
|
|
92
|
-
statusListId?: string;
|
|
93
|
-
statusListIndex?: number | string;
|
|
94
|
-
statusEntryCorrelationId?: string;
|
|
95
193
|
value?: string;
|
|
96
194
|
}
|
|
97
195
|
export type GetStatusListArgs = {
|
|
@@ -100,12 +198,12 @@ export type GetStatusListArgs = {
|
|
|
100
198
|
dataSource?: OrPromise<DataSource>;
|
|
101
199
|
dbName?: string;
|
|
102
200
|
};
|
|
103
|
-
export type CreateNewStatusListArgs = CreateNewStatusListFuncArgs & {
|
|
104
|
-
dataSource?: OrPromise<DataSource>;
|
|
105
|
-
dbName?: string;
|
|
106
|
-
isDefault?: boolean;
|
|
107
|
-
};
|
|
108
201
|
export type CredentialWithStatusSupport = ICredential | CredentialPayload | IVerifiableCredential;
|
|
202
|
+
export type SignedStatusListData = {
|
|
203
|
+
statusListCredential: StatusListCredential;
|
|
204
|
+
encodedList: string;
|
|
205
|
+
};
|
|
109
206
|
export type IRequiredPlugins = ICredentialPlugin & IIdentifierResolution;
|
|
110
|
-
export type IRequiredContext = IAgentContext<ICredentialIssuer & ICredentialVerifier & IIdentifierResolution>;
|
|
207
|
+
export type IRequiredContext = IAgentContext<ICredentialIssuer & ICredentialVerifier & IIdentifierResolution & IKeyManager & ICredentialPlugin>;
|
|
208
|
+
export {};
|
|
111
209
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAA;AACnF,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,qBAAqB,EAC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,iBAAiB,GAAG,qBAAqB,CAAA;AACxE,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,iBAAiB,GAAG,mBAAmB,GAAG,qBAAqB,GAAG,WAAW,GAAG,iBAAiB,CAAC,CAAA"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Status2021 = exports.StatusOAuth = void 0;
|
|
4
|
+
var StatusOAuth;
|
|
5
|
+
(function (StatusOAuth) {
|
|
6
|
+
StatusOAuth[StatusOAuth["Valid"] = 0] = "Valid";
|
|
7
|
+
StatusOAuth[StatusOAuth["Invalid"] = 1] = "Invalid";
|
|
8
|
+
StatusOAuth[StatusOAuth["Suspended"] = 2] = "Suspended";
|
|
9
|
+
})(StatusOAuth || (exports.StatusOAuth = StatusOAuth = {}));
|
|
10
|
+
var Status2021;
|
|
11
|
+
(function (Status2021) {
|
|
12
|
+
Status2021[Status2021["Valid"] = 0] = "Valid";
|
|
13
|
+
Status2021[Status2021["Invalid"] = 1] = "Invalid";
|
|
14
|
+
})(Status2021 || (exports.Status2021 = Status2021 = {}));
|
|
3
15
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AA6BA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,+CAAS,CAAA;IACT,mDAAW,CAAA;IACX,uDAAa,CAAA;AACf,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,6CAAS,CAAA;IACT,iDAAW,CAAA;AACb,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB"}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IIssuer, ProofFormat, StatusListType, StatusListType as StatusListTypeW3C, StatusListCredential } from '@sphereon/ssi-types';
|
|
2
|
+
export declare function getAssertedStatusListType(type?: StatusListType): StatusListType;
|
|
3
|
+
export declare function getAssertedValue<T>(name: string, value: T): NonNullable<T>;
|
|
4
|
+
export declare function getAssertedValues(args: {
|
|
5
|
+
issuer: string | IIssuer;
|
|
6
|
+
id: string;
|
|
7
|
+
type?: StatusListTypeW3C | StatusListType;
|
|
8
|
+
}): {
|
|
9
|
+
id: string;
|
|
10
|
+
issuer: NonNullable<string | IIssuer>;
|
|
11
|
+
type: StatusListType;
|
|
12
|
+
};
|
|
13
|
+
export declare function getAssertedProperty<T extends object>(propertyName: string, obj: T): NonNullable<any>;
|
|
14
|
+
export declare function assertValidProofType(type: StatusListType, proofFormat: ProofFormat): void;
|
|
15
|
+
export declare function determineStatusListType(credential: StatusListCredential): StatusListType;
|
|
16
|
+
export declare function determineProofFormat(credential: StatusListCredential): ProofFormat;
|
|
17
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,WAAW,EACX,cAAc,EACd,cAAc,IAAI,iBAAiB,EACnC,oBAAoB,EAErB,MAAM,qBAAqB,CAAA;AAG5B,wBAAgB,yBAAyB,CAAC,IAAI,CAAC,EAAE,cAAc,kBAM9D;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAK1E;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,cAAc,CAAA;CAAE;;;;EAK1H;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,CAKpG;AAOD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,QAKlF;AAED,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,oBAAoB,GAAG,cAAc,CA2BxF;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,oBAAoB,GAAG,WAAW,CAalF"}
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAssertedStatusListType = getAssertedStatusListType;
|
|
4
|
+
exports.getAssertedValue = getAssertedValue;
|
|
5
|
+
exports.getAssertedValues = getAssertedValues;
|
|
6
|
+
exports.getAssertedProperty = getAssertedProperty;
|
|
7
|
+
exports.assertValidProofType = assertValidProofType;
|
|
8
|
+
exports.determineStatusListType = determineStatusListType;
|
|
9
|
+
exports.determineProofFormat = determineProofFormat;
|
|
10
|
+
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
11
|
+
const jwt_decode_1 = require("jwt-decode");
|
|
12
|
+
function getAssertedStatusListType(type) {
|
|
13
|
+
const assertedType = type !== null && type !== void 0 ? type : ssi_types_1.StatusListType.StatusList2021;
|
|
14
|
+
if (![ssi_types_1.StatusListType.StatusList2021, ssi_types_1.StatusListType.OAuthStatusList].includes(assertedType)) {
|
|
15
|
+
throw Error(`StatusList type ${assertedType} is not supported (yet)`);
|
|
16
|
+
}
|
|
17
|
+
return assertedType;
|
|
18
|
+
}
|
|
19
|
+
function getAssertedValue(name, value) {
|
|
20
|
+
if (value === undefined || value === null) {
|
|
21
|
+
throw Error(`Missing required ${name} value`);
|
|
22
|
+
}
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
function getAssertedValues(args) {
|
|
26
|
+
const type = getAssertedStatusListType(args === null || args === void 0 ? void 0 : args.type);
|
|
27
|
+
const id = getAssertedValue('id', args.id);
|
|
28
|
+
const issuer = getAssertedValue('issuer', args.issuer);
|
|
29
|
+
return { id, issuer, type };
|
|
30
|
+
}
|
|
31
|
+
function getAssertedProperty(propertyName, obj) {
|
|
32
|
+
if (!(propertyName in obj)) {
|
|
33
|
+
throw Error(`The input object does not contain required property: ${propertyName}`);
|
|
34
|
+
}
|
|
35
|
+
return getAssertedValue(propertyName, obj[propertyName]);
|
|
36
|
+
}
|
|
37
|
+
const ValidProofTypeMap = new Map([
|
|
38
|
+
[ssi_types_1.StatusListType.StatusList2021, ['jwt', 'lds', 'EthereumEip712Signature2021']],
|
|
39
|
+
[ssi_types_1.StatusListType.OAuthStatusList, ['jwt', 'cbor']],
|
|
40
|
+
]);
|
|
41
|
+
function assertValidProofType(type, proofFormat) {
|
|
42
|
+
const validProofTypes = ValidProofTypeMap.get(type);
|
|
43
|
+
if (!(validProofTypes === null || validProofTypes === void 0 ? void 0 : validProofTypes.includes(proofFormat))) {
|
|
44
|
+
throw Error(`Invalid proof format '${proofFormat}' for status list type ${type}`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function determineStatusListType(credential) {
|
|
48
|
+
const proofFormat = determineProofFormat(credential);
|
|
49
|
+
switch (proofFormat) {
|
|
50
|
+
case 'jwt':
|
|
51
|
+
const payload = (0, jwt_decode_1.jwtDecode)(credential);
|
|
52
|
+
const keys = Object.keys(payload);
|
|
53
|
+
if (keys.includes('status_list')) {
|
|
54
|
+
return ssi_types_1.StatusListType.OAuthStatusList;
|
|
55
|
+
}
|
|
56
|
+
else if (keys.includes('vc')) {
|
|
57
|
+
return ssi_types_1.StatusListType.StatusList2021;
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
case 'lds':
|
|
61
|
+
const uniform = ssi_types_1.CredentialMapper.toUniformCredential(credential);
|
|
62
|
+
const type = uniform.type.find((t) => {
|
|
63
|
+
return Object.values(ssi_types_1.StatusListType).some((statusType) => t.includes(statusType));
|
|
64
|
+
});
|
|
65
|
+
if (!type) {
|
|
66
|
+
throw new Error('Invalid status list credential type');
|
|
67
|
+
}
|
|
68
|
+
return type.replace('Credential', '');
|
|
69
|
+
case 'cbor':
|
|
70
|
+
return ssi_types_1.StatusListType.OAuthStatusList;
|
|
71
|
+
}
|
|
72
|
+
throw new Error('Cannot determine status list type from credential payload');
|
|
73
|
+
}
|
|
74
|
+
function determineProofFormat(credential) {
|
|
75
|
+
const type = ssi_types_1.CredentialMapper.detectDocumentType(credential);
|
|
76
|
+
switch (type) {
|
|
77
|
+
case 0 /* DocumentFormat.JWT */:
|
|
78
|
+
return 'jwt';
|
|
79
|
+
case 4 /* DocumentFormat.MSO_MDOC */:
|
|
80
|
+
// Not really mdoc, just assume Cbor for now, I'd need to decode at least the header to what type of Cbor we have
|
|
81
|
+
return 'cbor';
|
|
82
|
+
case 1 /* DocumentFormat.JSONLD */:
|
|
83
|
+
return 'lds';
|
|
84
|
+
default:
|
|
85
|
+
throw Error('Cannot determine credential payload type');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAWA,8DAMC;AAED,4CAKC;AAED,8CAKC;AAED,kDAKC;AAOD,oDAKC;AAED,0DA2BC;AAED,oDAaC;AA9FD,mDAQ4B;AAC5B,2CAAsC;AAEtC,SAAgB,yBAAyB,CAAC,IAAqB;IAC7D,MAAM,YAAY,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,0BAAc,CAAC,cAAc,CAAA;IAC1D,IAAI,CAAC,CAAC,0BAAc,CAAC,cAAc,EAAE,0BAAc,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,YAAY,CA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AAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAmB,CAAA;QAEzD,KAAK,MAAM;YACT,OAAO,0BAAc,CAAC,eAAe,CAAA;IACzC,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAA;AAC9E,CAAC;AAED,SAAgB,oBAAoB,CAAC,UAAgC;IACnE,MAAM,IAAI,GAAmB,4BAAgB,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAA;IAC5E,QAAQ,IAAI,EAAE,CAAC;QACb;YACE,OAAO,KAAK,CAAA;QACd;YACE,iHAAiH;YACjH,OAAO,MAAM,CAAA;QACf;YACE,OAAO,KAAK,CAAA;QACd;YACE,MAAM,KAAK,CAAC,0CAA0C,CAAC,CAAA;IAC3D,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.vc-status-list",
|
|
3
3
|
"description": "Sphereon SSI-SDK plugin for Status List management, like StatusList2021.",
|
|
4
|
-
"version": "0.32.1-next.
|
|
4
|
+
"version": "0.32.1-next.287+5f85ee8f",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -10,15 +10,24 @@
|
|
|
10
10
|
"build:clean": "tsc --build --clean && tsc --build"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
15
|
-
"@
|
|
13
|
+
"@sd-jwt/core": "^0.9.2",
|
|
14
|
+
"@sd-jwt/jwt-status-list": "^0.9.1",
|
|
15
|
+
"@sd-jwt/sd-jwt-vc": "^0.9.2",
|
|
16
|
+
"@sphereon/kmp-cbor": "0.2.0-SNAPSHOT.25",
|
|
17
|
+
"@sphereon/oid4vci-common": "0.17.0",
|
|
18
|
+
"@sphereon/ssi-sdk-ext.did-utils": "0.28.0",
|
|
19
|
+
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.28.0",
|
|
20
|
+
"@sphereon/ssi-sdk-ext.jwt-service": "0.28.0",
|
|
21
|
+
"@sphereon/ssi-types": "0.32.1-next.287+5f85ee8f",
|
|
16
22
|
"@sphereon/vc-status-list": "7.0.0-next.0",
|
|
17
23
|
"@veramo/core": "4.2.0",
|
|
18
24
|
"@veramo/credential-status": "4.2.0",
|
|
25
|
+
"base64url": "^3.0.1",
|
|
19
26
|
"credential-status": "^2.0.6",
|
|
20
27
|
"debug": "^4.3.5",
|
|
21
|
-
"
|
|
28
|
+
"jwt-decode": "^4.0.0",
|
|
29
|
+
"pako": "^2.1.0",
|
|
30
|
+
"typeorm": "^0.3.21",
|
|
22
31
|
"uint8arrays": "^3.1.1"
|
|
23
32
|
},
|
|
24
33
|
"devDependencies": {
|
|
@@ -26,6 +35,8 @@
|
|
|
26
35
|
"@babel/core": "^7.24.9",
|
|
27
36
|
"@babel/preset-env": "^7.24.8",
|
|
28
37
|
"@babel/preset-typescript": "^7.24.7",
|
|
38
|
+
"@types/pako": "2.0.3",
|
|
39
|
+
"@veramo/key-manager": "4.2.0",
|
|
29
40
|
"typescript": "5.4.2"
|
|
30
41
|
},
|
|
31
42
|
"files": [
|
|
@@ -47,5 +58,5 @@
|
|
|
47
58
|
"StatusList2021"
|
|
48
59
|
],
|
|
49
60
|
"nx": {},
|
|
50
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "5f85ee8fef1e0fce3d20d150f187b00c7c70f093"
|
|
51
62
|
}
|