@sphereon/ssi-sdk.vc-status-list 0.34.0 → 0.34.1-feature.SSISDK.17.bitstring.sl.7
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/index.cjs +281 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -8
- package/dist/index.d.ts +49 -8
- package/dist/index.js +282 -25
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/src/functions.ts +19 -10
- package/src/impl/BitstringStatusListImplementation.ts +301 -0
- package/src/impl/IStatusList.ts +3 -2
- package/src/impl/OAuthStatusList.ts +9 -6
- package/src/impl/StatusList2021.ts +3 -3
- package/src/impl/StatusListFactory.ts +2 -0
- package/src/types/BitstringStatusList.ts +4 -0
- package/src/types/index.ts +48 -4
- package/src/utils.ts +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -5,6 +5,7 @@ import { DataSource } from 'typeorm';
|
|
|
5
5
|
import { BitsPerStatus } from '@sd-jwt/jwt-status-list';
|
|
6
6
|
import { SdJwtVcPayload } from '@sd-jwt/sd-jwt-vc';
|
|
7
7
|
import { StatusListOpts } from '@sphereon/oid4vci-common';
|
|
8
|
+
import { BitstringStatusPurpose } from '@4sure-tech/vc-bitstring-status-lists';
|
|
8
9
|
import { StatusMethod } from 'credential-status';
|
|
9
10
|
|
|
10
11
|
declare enum StatusOAuth {
|
|
@@ -16,6 +17,7 @@ declare enum Status2021 {
|
|
|
16
17
|
Valid = 0,
|
|
17
18
|
Invalid = 1
|
|
18
19
|
}
|
|
20
|
+
type BitstringStatus = number;
|
|
19
21
|
type StatusList2021Args = {
|
|
20
22
|
indexingDirection: StatusListIndexingDirection;
|
|
21
23
|
statusPurpose?: StatusPurpose2021;
|
|
@@ -24,6 +26,13 @@ type OAuthStatusListArgs = {
|
|
|
24
26
|
bitsPerStatus?: BitsPerStatus;
|
|
25
27
|
expiresAt?: Date;
|
|
26
28
|
};
|
|
29
|
+
type BitstringStatusListArgs = {
|
|
30
|
+
statusPurpose: BitstringStatusPurpose;
|
|
31
|
+
bitsPerStatus: number;
|
|
32
|
+
ttl?: number;
|
|
33
|
+
validFrom?: Date;
|
|
34
|
+
validUntil?: Date;
|
|
35
|
+
};
|
|
27
36
|
type BaseCreateNewStatusListArgs = {
|
|
28
37
|
type: StatusListType;
|
|
29
38
|
id: string;
|
|
@@ -34,6 +43,7 @@ type BaseCreateNewStatusListArgs = {
|
|
|
34
43
|
keyRef?: string;
|
|
35
44
|
statusList2021?: StatusList2021Args;
|
|
36
45
|
oauthStatusList?: OAuthStatusListArgs;
|
|
46
|
+
bitstringStatusList?: BitstringStatusListArgs;
|
|
37
47
|
driverType?: StatusListDriverType;
|
|
38
48
|
};
|
|
39
49
|
type UpdateStatusList2021Args = {
|
|
@@ -43,10 +53,17 @@ type UpdateOAuthStatusListArgs = {
|
|
|
43
53
|
bitsPerStatus: BitsPerStatus;
|
|
44
54
|
expiresAt?: Date;
|
|
45
55
|
};
|
|
56
|
+
type UpdateBitstringStatusListArgs = {
|
|
57
|
+
statusPurpose: BitstringStatusPurpose;
|
|
58
|
+
bitsPerStatus: number;
|
|
59
|
+
validFrom?: Date;
|
|
60
|
+
validUntil?: Date;
|
|
61
|
+
ttl?: number;
|
|
62
|
+
};
|
|
46
63
|
interface UpdateStatusListFromEncodedListArgs {
|
|
47
64
|
type?: StatusListType;
|
|
48
65
|
statusListIndex: number | string;
|
|
49
|
-
value:
|
|
66
|
+
value: number;
|
|
50
67
|
proofFormat?: CredentialProofFormat;
|
|
51
68
|
keyRef?: string;
|
|
52
69
|
correlationId?: string;
|
|
@@ -55,12 +72,13 @@ interface UpdateStatusListFromEncodedListArgs {
|
|
|
55
72
|
id: string;
|
|
56
73
|
statusList2021?: UpdateStatusList2021Args;
|
|
57
74
|
oauthStatusList?: UpdateOAuthStatusListArgs;
|
|
75
|
+
bitstringStatusList?: UpdateBitstringStatusListArgs;
|
|
58
76
|
}
|
|
59
77
|
interface UpdateStatusListFromStatusListCredentialArgs {
|
|
60
78
|
statusListCredential: StatusListCredential;
|
|
61
79
|
keyRef?: string;
|
|
62
80
|
statusListIndex: number | string;
|
|
63
|
-
value: number | Status2021 | StatusOAuth;
|
|
81
|
+
value: number | Status2021 | StatusOAuth | BitstringStatus;
|
|
64
82
|
}
|
|
65
83
|
interface StatusListResult {
|
|
66
84
|
encodedList: string;
|
|
@@ -73,6 +91,7 @@ interface StatusListResult {
|
|
|
73
91
|
issuer: string | IIssuer;
|
|
74
92
|
statusList2021?: StatusList2021Details;
|
|
75
93
|
oauthStatusList?: OAuthStatusDetails;
|
|
94
|
+
bitstringStatusList?: BitstringStatusDetails;
|
|
76
95
|
correlationId?: string;
|
|
77
96
|
driverType?: StatusListDriverType;
|
|
78
97
|
credentialIdMode?: StatusListCredentialIdMode;
|
|
@@ -85,6 +104,13 @@ interface OAuthStatusDetails {
|
|
|
85
104
|
bitsPerStatus?: BitsPerStatus;
|
|
86
105
|
expiresAt?: Date;
|
|
87
106
|
}
|
|
107
|
+
interface BitstringStatusDetails {
|
|
108
|
+
statusPurpose: BitstringStatusPurpose;
|
|
109
|
+
bitsPerStatus: number;
|
|
110
|
+
validFrom?: Date;
|
|
111
|
+
validUntil?: Date;
|
|
112
|
+
ttl?: number;
|
|
113
|
+
}
|
|
88
114
|
interface StatusList2021EntryCredentialStatus extends ICredentialStatus {
|
|
89
115
|
type: 'StatusList2021Entry';
|
|
90
116
|
statusPurpose: StatusPurpose2021;
|
|
@@ -98,6 +124,15 @@ interface StatusListOAuthEntryCredentialStatus extends ICredentialStatus {
|
|
|
98
124
|
statusListCredential: string;
|
|
99
125
|
expiresAt?: Date;
|
|
100
126
|
}
|
|
127
|
+
interface BitstringStatusListEntryCredentialStatus extends ICredentialStatus {
|
|
128
|
+
type: 'BitstringStatusListEntry';
|
|
129
|
+
statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
|
|
130
|
+
statusListIndex: string;
|
|
131
|
+
statusListCredential: string;
|
|
132
|
+
bitsPerStatus?: number;
|
|
133
|
+
statusMessage?: Array<BitstringStatus>;
|
|
134
|
+
statusReference?: string | string[];
|
|
135
|
+
}
|
|
101
136
|
interface StatusList2021ToVerifiableCredentialArgs {
|
|
102
137
|
issuer: string | IIssuer;
|
|
103
138
|
id: string;
|
|
@@ -116,22 +151,26 @@ interface CreateStatusListArgs {
|
|
|
116
151
|
length?: number;
|
|
117
152
|
statusList2021?: StatusList2021Args;
|
|
118
153
|
oauthStatusList?: OAuthStatusListArgs;
|
|
154
|
+
bitstringStatusList?: BitstringStatusListArgs;
|
|
119
155
|
}
|
|
120
156
|
interface UpdateStatusListIndexArgs {
|
|
121
157
|
statusListCredential: StatusListCredential;
|
|
122
158
|
statusListIndex: number | string;
|
|
123
|
-
value: number | Status2021 | StatusOAuth;
|
|
159
|
+
value: number | Status2021 | StatusOAuth | BitstringStatus;
|
|
160
|
+
bitsPerStatus?: number;
|
|
124
161
|
keyRef?: string;
|
|
125
162
|
expiresAt?: Date;
|
|
126
163
|
}
|
|
127
164
|
interface CheckStatusIndexArgs {
|
|
128
165
|
statusListCredential: StatusListCredential;
|
|
129
166
|
statusListIndex: string | number;
|
|
167
|
+
bitsPerStatus?: number;
|
|
130
168
|
}
|
|
131
169
|
interface ToStatusListDetailsArgs {
|
|
132
170
|
statusListPayload: StatusListCredential;
|
|
133
171
|
correlationId?: string;
|
|
134
172
|
driverType?: StatusListDriverType;
|
|
173
|
+
bitsPerStatus?: number;
|
|
135
174
|
}
|
|
136
175
|
/**
|
|
137
176
|
* The interface definition for a plugin that can add statuslist info to a credential
|
|
@@ -254,22 +293,24 @@ declare function simpleCheckStatusFromStatusListUrl(args: {
|
|
|
254
293
|
type?: StatusListType | 'StatusList2021Entry';
|
|
255
294
|
id?: string;
|
|
256
295
|
statusListIndex: string;
|
|
257
|
-
}): Promise<number | Status2021 | StatusOAuth>;
|
|
296
|
+
}): Promise<number | Status2021 | StatusOAuth | BitstringStatus>;
|
|
258
297
|
declare function checkStatusIndexFromStatusListCredential(args: {
|
|
259
298
|
statusListCredential: StatusListCredential;
|
|
260
299
|
statusPurpose?: StatusPurpose2021;
|
|
261
|
-
type?: StatusListType | 'StatusList2021Entry';
|
|
300
|
+
type?: StatusListType | 'StatusList2021Entry' | 'BitstringStatusListEntry';
|
|
262
301
|
id?: string;
|
|
263
302
|
statusListIndex: string | number;
|
|
264
|
-
|
|
303
|
+
bitsPerStatus?: number;
|
|
304
|
+
}): Promise<number | Status2021 | StatusOAuth | BitstringStatus>;
|
|
265
305
|
declare function createNewStatusList(args: CreateNewStatusListFuncArgs, context: IAgentContext<(ICredentialPlugin | any) & IIdentifierResolution>): Promise<StatusListResult>;
|
|
266
306
|
declare function updateStatusIndexFromStatusListCredential(args: UpdateStatusListIndexArgs, context: IAgentContext<ICredentialPlugin & IIdentifierResolution>): Promise<StatusListResult>;
|
|
267
|
-
declare function statusListCredentialToDetails(
|
|
307
|
+
declare function statusListCredentialToDetails({ correlationId, driverType, statusListCredential, bitsPerStatus, }: {
|
|
268
308
|
statusListCredential: StatusListCredential;
|
|
269
309
|
correlationId?: string;
|
|
270
310
|
driverType?: StatusListDriverType;
|
|
311
|
+
bitsPerStatus?: number;
|
|
271
312
|
}): Promise<StatusListResult>;
|
|
272
313
|
declare function updateStatusListIndexFromEncodedList(args: UpdateStatusListFromEncodedListArgs, context: IAgentContext<ICredentialPlugin & IIdentifierResolution>): Promise<StatusListResult>;
|
|
273
314
|
declare function statusList2021ToVerifiableCredential(args: StatusList2021ToVerifiableCredentialArgs, context: IAgentContext<ICredentialPlugin & IIdentifierResolution>): Promise<StatusListCredential>;
|
|
274
315
|
|
|
275
|
-
export { type BaseCreateNewStatusListArgs, type CheckStatusIndexArgs, type CreateNewStatusListArgs, type CreateNewStatusListFuncArgs, type CreateStatusListArgs, type CredentialWithStatusSupport, type GetStatusListArgs, type IAddStatusToCredentialArgs, type IAddStatusToSdJwtCredentialArgs, type IIssueCredentialStatusOpts, type IRequiredContext, type IRequiredPlugins, type IStatusListPlugin, type OAuthStatusListArgs, type SignedStatusListData, Status2021, type StatusList2021Args, type StatusList2021EntryCredentialStatus, type StatusList2021ToVerifiableCredentialArgs, type StatusListOAuthEntryCredentialStatus, type StatusListResult, StatusOAuth, type ToStatusListDetailsArgs, type UpdateOAuthStatusListArgs, type UpdateStatusList2021Args, type UpdateStatusListFromEncodedListArgs, type UpdateStatusListFromStatusListCredentialArgs, type UpdateStatusListIndexArgs, checkStatusForCredential, checkStatusIndexFromStatusListCredential, createNewStatusList, fetchStatusListCredential, simpleCheckStatusFromStatusListUrl, statusList2021ToVerifiableCredential, statusListCredentialToDetails, statusPluginStatusFunction, updateStatusIndexFromStatusListCredential, updateStatusListIndexFromEncodedList, vcLibCheckStatusFunction };
|
|
316
|
+
export { type BaseCreateNewStatusListArgs, type BitstringStatus, type BitstringStatusListArgs, type BitstringStatusListEntryCredentialStatus, type CheckStatusIndexArgs, type CreateNewStatusListArgs, type CreateNewStatusListFuncArgs, type CreateStatusListArgs, type CredentialWithStatusSupport, type GetStatusListArgs, type IAddStatusToCredentialArgs, type IAddStatusToSdJwtCredentialArgs, type IIssueCredentialStatusOpts, type IRequiredContext, type IRequiredPlugins, type IStatusListPlugin, type OAuthStatusListArgs, type SignedStatusListData, Status2021, type StatusList2021Args, type StatusList2021EntryCredentialStatus, type StatusList2021ToVerifiableCredentialArgs, type StatusListOAuthEntryCredentialStatus, type StatusListResult, StatusOAuth, type ToStatusListDetailsArgs, type UpdateBitstringStatusListArgs, type UpdateOAuthStatusListArgs, type UpdateStatusList2021Args, type UpdateStatusListFromEncodedListArgs, type UpdateStatusListFromStatusListCredentialArgs, type UpdateStatusListIndexArgs, checkStatusForCredential, checkStatusIndexFromStatusListCredential, createNewStatusList, fetchStatusListCredential, simpleCheckStatusFromStatusListUrl, statusList2021ToVerifiableCredential, statusListCredentialToDetails, statusPluginStatusFunction, updateStatusIndexFromStatusListCredential, updateStatusListIndexFromEncodedList, vcLibCheckStatusFunction };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { DataSource } from 'typeorm';
|
|
|
5
5
|
import { BitsPerStatus } from '@sd-jwt/jwt-status-list';
|
|
6
6
|
import { SdJwtVcPayload } from '@sd-jwt/sd-jwt-vc';
|
|
7
7
|
import { StatusListOpts } from '@sphereon/oid4vci-common';
|
|
8
|
+
import { BitstringStatusPurpose } from '@4sure-tech/vc-bitstring-status-lists';
|
|
8
9
|
import { StatusMethod } from 'credential-status';
|
|
9
10
|
|
|
10
11
|
declare enum StatusOAuth {
|
|
@@ -16,6 +17,7 @@ declare enum Status2021 {
|
|
|
16
17
|
Valid = 0,
|
|
17
18
|
Invalid = 1
|
|
18
19
|
}
|
|
20
|
+
type BitstringStatus = number;
|
|
19
21
|
type StatusList2021Args = {
|
|
20
22
|
indexingDirection: StatusListIndexingDirection;
|
|
21
23
|
statusPurpose?: StatusPurpose2021;
|
|
@@ -24,6 +26,13 @@ type OAuthStatusListArgs = {
|
|
|
24
26
|
bitsPerStatus?: BitsPerStatus;
|
|
25
27
|
expiresAt?: Date;
|
|
26
28
|
};
|
|
29
|
+
type BitstringStatusListArgs = {
|
|
30
|
+
statusPurpose: BitstringStatusPurpose;
|
|
31
|
+
bitsPerStatus: number;
|
|
32
|
+
ttl?: number;
|
|
33
|
+
validFrom?: Date;
|
|
34
|
+
validUntil?: Date;
|
|
35
|
+
};
|
|
27
36
|
type BaseCreateNewStatusListArgs = {
|
|
28
37
|
type: StatusListType;
|
|
29
38
|
id: string;
|
|
@@ -34,6 +43,7 @@ type BaseCreateNewStatusListArgs = {
|
|
|
34
43
|
keyRef?: string;
|
|
35
44
|
statusList2021?: StatusList2021Args;
|
|
36
45
|
oauthStatusList?: OAuthStatusListArgs;
|
|
46
|
+
bitstringStatusList?: BitstringStatusListArgs;
|
|
37
47
|
driverType?: StatusListDriverType;
|
|
38
48
|
};
|
|
39
49
|
type UpdateStatusList2021Args = {
|
|
@@ -43,10 +53,17 @@ type UpdateOAuthStatusListArgs = {
|
|
|
43
53
|
bitsPerStatus: BitsPerStatus;
|
|
44
54
|
expiresAt?: Date;
|
|
45
55
|
};
|
|
56
|
+
type UpdateBitstringStatusListArgs = {
|
|
57
|
+
statusPurpose: BitstringStatusPurpose;
|
|
58
|
+
bitsPerStatus: number;
|
|
59
|
+
validFrom?: Date;
|
|
60
|
+
validUntil?: Date;
|
|
61
|
+
ttl?: number;
|
|
62
|
+
};
|
|
46
63
|
interface UpdateStatusListFromEncodedListArgs {
|
|
47
64
|
type?: StatusListType;
|
|
48
65
|
statusListIndex: number | string;
|
|
49
|
-
value:
|
|
66
|
+
value: number;
|
|
50
67
|
proofFormat?: CredentialProofFormat;
|
|
51
68
|
keyRef?: string;
|
|
52
69
|
correlationId?: string;
|
|
@@ -55,12 +72,13 @@ interface UpdateStatusListFromEncodedListArgs {
|
|
|
55
72
|
id: string;
|
|
56
73
|
statusList2021?: UpdateStatusList2021Args;
|
|
57
74
|
oauthStatusList?: UpdateOAuthStatusListArgs;
|
|
75
|
+
bitstringStatusList?: UpdateBitstringStatusListArgs;
|
|
58
76
|
}
|
|
59
77
|
interface UpdateStatusListFromStatusListCredentialArgs {
|
|
60
78
|
statusListCredential: StatusListCredential;
|
|
61
79
|
keyRef?: string;
|
|
62
80
|
statusListIndex: number | string;
|
|
63
|
-
value: number | Status2021 | StatusOAuth;
|
|
81
|
+
value: number | Status2021 | StatusOAuth | BitstringStatus;
|
|
64
82
|
}
|
|
65
83
|
interface StatusListResult {
|
|
66
84
|
encodedList: string;
|
|
@@ -73,6 +91,7 @@ interface StatusListResult {
|
|
|
73
91
|
issuer: string | IIssuer;
|
|
74
92
|
statusList2021?: StatusList2021Details;
|
|
75
93
|
oauthStatusList?: OAuthStatusDetails;
|
|
94
|
+
bitstringStatusList?: BitstringStatusDetails;
|
|
76
95
|
correlationId?: string;
|
|
77
96
|
driverType?: StatusListDriverType;
|
|
78
97
|
credentialIdMode?: StatusListCredentialIdMode;
|
|
@@ -85,6 +104,13 @@ interface OAuthStatusDetails {
|
|
|
85
104
|
bitsPerStatus?: BitsPerStatus;
|
|
86
105
|
expiresAt?: Date;
|
|
87
106
|
}
|
|
107
|
+
interface BitstringStatusDetails {
|
|
108
|
+
statusPurpose: BitstringStatusPurpose;
|
|
109
|
+
bitsPerStatus: number;
|
|
110
|
+
validFrom?: Date;
|
|
111
|
+
validUntil?: Date;
|
|
112
|
+
ttl?: number;
|
|
113
|
+
}
|
|
88
114
|
interface StatusList2021EntryCredentialStatus extends ICredentialStatus {
|
|
89
115
|
type: 'StatusList2021Entry';
|
|
90
116
|
statusPurpose: StatusPurpose2021;
|
|
@@ -98,6 +124,15 @@ interface StatusListOAuthEntryCredentialStatus extends ICredentialStatus {
|
|
|
98
124
|
statusListCredential: string;
|
|
99
125
|
expiresAt?: Date;
|
|
100
126
|
}
|
|
127
|
+
interface BitstringStatusListEntryCredentialStatus extends ICredentialStatus {
|
|
128
|
+
type: 'BitstringStatusListEntry';
|
|
129
|
+
statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
|
|
130
|
+
statusListIndex: string;
|
|
131
|
+
statusListCredential: string;
|
|
132
|
+
bitsPerStatus?: number;
|
|
133
|
+
statusMessage?: Array<BitstringStatus>;
|
|
134
|
+
statusReference?: string | string[];
|
|
135
|
+
}
|
|
101
136
|
interface StatusList2021ToVerifiableCredentialArgs {
|
|
102
137
|
issuer: string | IIssuer;
|
|
103
138
|
id: string;
|
|
@@ -116,22 +151,26 @@ interface CreateStatusListArgs {
|
|
|
116
151
|
length?: number;
|
|
117
152
|
statusList2021?: StatusList2021Args;
|
|
118
153
|
oauthStatusList?: OAuthStatusListArgs;
|
|
154
|
+
bitstringStatusList?: BitstringStatusListArgs;
|
|
119
155
|
}
|
|
120
156
|
interface UpdateStatusListIndexArgs {
|
|
121
157
|
statusListCredential: StatusListCredential;
|
|
122
158
|
statusListIndex: number | string;
|
|
123
|
-
value: number | Status2021 | StatusOAuth;
|
|
159
|
+
value: number | Status2021 | StatusOAuth | BitstringStatus;
|
|
160
|
+
bitsPerStatus?: number;
|
|
124
161
|
keyRef?: string;
|
|
125
162
|
expiresAt?: Date;
|
|
126
163
|
}
|
|
127
164
|
interface CheckStatusIndexArgs {
|
|
128
165
|
statusListCredential: StatusListCredential;
|
|
129
166
|
statusListIndex: string | number;
|
|
167
|
+
bitsPerStatus?: number;
|
|
130
168
|
}
|
|
131
169
|
interface ToStatusListDetailsArgs {
|
|
132
170
|
statusListPayload: StatusListCredential;
|
|
133
171
|
correlationId?: string;
|
|
134
172
|
driverType?: StatusListDriverType;
|
|
173
|
+
bitsPerStatus?: number;
|
|
135
174
|
}
|
|
136
175
|
/**
|
|
137
176
|
* The interface definition for a plugin that can add statuslist info to a credential
|
|
@@ -254,22 +293,24 @@ declare function simpleCheckStatusFromStatusListUrl(args: {
|
|
|
254
293
|
type?: StatusListType | 'StatusList2021Entry';
|
|
255
294
|
id?: string;
|
|
256
295
|
statusListIndex: string;
|
|
257
|
-
}): Promise<number | Status2021 | StatusOAuth>;
|
|
296
|
+
}): Promise<number | Status2021 | StatusOAuth | BitstringStatus>;
|
|
258
297
|
declare function checkStatusIndexFromStatusListCredential(args: {
|
|
259
298
|
statusListCredential: StatusListCredential;
|
|
260
299
|
statusPurpose?: StatusPurpose2021;
|
|
261
|
-
type?: StatusListType | 'StatusList2021Entry';
|
|
300
|
+
type?: StatusListType | 'StatusList2021Entry' | 'BitstringStatusListEntry';
|
|
262
301
|
id?: string;
|
|
263
302
|
statusListIndex: string | number;
|
|
264
|
-
|
|
303
|
+
bitsPerStatus?: number;
|
|
304
|
+
}): Promise<number | Status2021 | StatusOAuth | BitstringStatus>;
|
|
265
305
|
declare function createNewStatusList(args: CreateNewStatusListFuncArgs, context: IAgentContext<(ICredentialPlugin | any) & IIdentifierResolution>): Promise<StatusListResult>;
|
|
266
306
|
declare function updateStatusIndexFromStatusListCredential(args: UpdateStatusListIndexArgs, context: IAgentContext<ICredentialPlugin & IIdentifierResolution>): Promise<StatusListResult>;
|
|
267
|
-
declare function statusListCredentialToDetails(
|
|
307
|
+
declare function statusListCredentialToDetails({ correlationId, driverType, statusListCredential, bitsPerStatus, }: {
|
|
268
308
|
statusListCredential: StatusListCredential;
|
|
269
309
|
correlationId?: string;
|
|
270
310
|
driverType?: StatusListDriverType;
|
|
311
|
+
bitsPerStatus?: number;
|
|
271
312
|
}): Promise<StatusListResult>;
|
|
272
313
|
declare function updateStatusListIndexFromEncodedList(args: UpdateStatusListFromEncodedListArgs, context: IAgentContext<ICredentialPlugin & IIdentifierResolution>): Promise<StatusListResult>;
|
|
273
314
|
declare function statusList2021ToVerifiableCredential(args: StatusList2021ToVerifiableCredentialArgs, context: IAgentContext<ICredentialPlugin & IIdentifierResolution>): Promise<StatusListCredential>;
|
|
274
315
|
|
|
275
|
-
export { type BaseCreateNewStatusListArgs, type CheckStatusIndexArgs, type CreateNewStatusListArgs, type CreateNewStatusListFuncArgs, type CreateStatusListArgs, type CredentialWithStatusSupport, type GetStatusListArgs, type IAddStatusToCredentialArgs, type IAddStatusToSdJwtCredentialArgs, type IIssueCredentialStatusOpts, type IRequiredContext, type IRequiredPlugins, type IStatusListPlugin, type OAuthStatusListArgs, type SignedStatusListData, Status2021, type StatusList2021Args, type StatusList2021EntryCredentialStatus, type StatusList2021ToVerifiableCredentialArgs, type StatusListOAuthEntryCredentialStatus, type StatusListResult, StatusOAuth, type ToStatusListDetailsArgs, type UpdateOAuthStatusListArgs, type UpdateStatusList2021Args, type UpdateStatusListFromEncodedListArgs, type UpdateStatusListFromStatusListCredentialArgs, type UpdateStatusListIndexArgs, checkStatusForCredential, checkStatusIndexFromStatusListCredential, createNewStatusList, fetchStatusListCredential, simpleCheckStatusFromStatusListUrl, statusList2021ToVerifiableCredential, statusListCredentialToDetails, statusPluginStatusFunction, updateStatusIndexFromStatusListCredential, updateStatusListIndexFromEncodedList, vcLibCheckStatusFunction };
|
|
316
|
+
export { type BaseCreateNewStatusListArgs, type BitstringStatus, type BitstringStatusListArgs, type BitstringStatusListEntryCredentialStatus, type CheckStatusIndexArgs, type CreateNewStatusListArgs, type CreateNewStatusListFuncArgs, type CreateStatusListArgs, type CredentialWithStatusSupport, type GetStatusListArgs, type IAddStatusToCredentialArgs, type IAddStatusToSdJwtCredentialArgs, type IIssueCredentialStatusOpts, type IRequiredContext, type IRequiredPlugins, type IStatusListPlugin, type OAuthStatusListArgs, type SignedStatusListData, Status2021, type StatusList2021Args, type StatusList2021EntryCredentialStatus, type StatusList2021ToVerifiableCredentialArgs, type StatusListOAuthEntryCredentialStatus, type StatusListResult, StatusOAuth, type ToStatusListDetailsArgs, type UpdateBitstringStatusListArgs, type UpdateOAuthStatusListArgs, type UpdateStatusList2021Args, type UpdateStatusListFromEncodedListArgs, type UpdateStatusListFromStatusListCredentialArgs, type UpdateStatusListIndexArgs, checkStatusForCredential, checkStatusIndexFromStatusListCredential, createNewStatusList, fetchStatusListCredential, simpleCheckStatusFromStatusListUrl, statusList2021ToVerifiableCredential, statusListCredentialToDetails, statusPluginStatusFunction, updateStatusIndexFromStatusListCredential, updateStatusListIndexFromEncodedList, vcLibCheckStatusFunction };
|