@sphereon/ssi-sdk.vc-status-list 0.34.1-feature.SSISDK.17.bitstring.sl.13 → 0.34.1-feature.SSISDK.17.bitstring.sl.14

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.d.cts CHANGED
@@ -1,15 +1,61 @@
1
1
  import { IIdentifierResolution } from '@sphereon/ssi-sdk-ext.identifier-resolution';
2
- import { StatusListIndexingDirection, StatusPurpose2021, StatusListType, IIssuer, CredentialProofFormat, StatusListDriverType, StatusListCredential, ICredentialStatus, OrPromise, ICredential, IVerifiableCredential } from '@sphereon/ssi-types';
2
+ import { IIssuer, StatusListType, CredentialProofFormat, StatusListCredential, StatusListDriverType, StatusListIndexingDirection, StatusPurpose2021, ICredentialStatus, OrPromise, ICredential, IVerifiableCredential } from '@sphereon/ssi-types';
3
3
  import { IPluginMethodMap, IAgentContext, ICredentialIssuer, ICredentialVerifier, IKeyManager, CredentialPayload } from '@veramo/core';
4
4
  import { DataSource } from 'typeorm';
5
- import { BitsPerStatus } from '@sd-jwt/jwt-status-list';
5
+ import { StatusList, 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
8
  import { BitstringStatusPurpose } from '@4sure-tech/vc-bitstring-status-lists';
9
9
  import { IVcdmCredentialPlugin } from '@sphereon/ssi-sdk.credential-vcdm';
10
- import { IAddStatusListArgs, StatusListEntity, IStatusListEntryEntity, IBitstringStatusListEntryEntity } from '@sphereon/ssi-sdk.data-store';
10
+ import { BitstringStatusListArgs, IStatusListEntity, StatusListEntity, IStatusListEntryEntity, IBitstringStatusListEntryEntity, BitstringStatusListEntryCredentialStatus } from '@sphereon/ssi-sdk.data-store';
11
11
  import { StatusMethod } from 'credential-status';
12
12
 
13
+ interface DecodedStatusListPayload {
14
+ issuer: string;
15
+ id: string;
16
+ statusList: StatusList;
17
+ exp?: number;
18
+ ttl?: number;
19
+ iat: number;
20
+ }
21
+
22
+ interface IExtractedCredentialDetails {
23
+ id: string;
24
+ issuer: string | IIssuer;
25
+ encodedList: string;
26
+ decodedPayload?: DecodedStatusListPayload;
27
+ }
28
+ interface IStatusListImplementationResult {
29
+ id: string;
30
+ encodedList: string;
31
+ issuer: string | IIssuer;
32
+ type: StatusListType;
33
+ proofFormat: CredentialProofFormat;
34
+ length: number;
35
+ statusListCredential: StatusListCredential;
36
+ statuslistContentType: string;
37
+ correlationId?: string;
38
+ driverType?: StatusListDriverType;
39
+ }
40
+ interface IStatusList2021ImplementationResult extends IStatusListImplementationResult {
41
+ type: StatusListType.StatusList2021;
42
+ indexingDirection: StatusListIndexingDirection;
43
+ statusPurpose: StatusPurpose2021;
44
+ }
45
+ interface IOAuthStatusListImplementationResult extends IStatusListImplementationResult {
46
+ type: StatusListType.OAuthStatusList;
47
+ bitsPerStatus: number;
48
+ expiresAt?: Date;
49
+ }
50
+ interface IBitstringStatusListImplementationResult extends IStatusListImplementationResult {
51
+ type: StatusListType.BitstringStatusList;
52
+ statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
53
+ bitsPerStatus?: number;
54
+ validFrom?: Date;
55
+ validUntil?: Date;
56
+ ttl?: number;
57
+ }
58
+
13
59
  declare enum StatusOAuth {
14
60
  Valid = 0,
15
61
  Invalid = 1,
@@ -19,7 +65,6 @@ declare enum Status2021 {
19
65
  Valid = 0,
20
66
  Invalid = 1
21
67
  }
22
- type BitstringStatus = number;
23
68
  type StatusList2021Args = {
24
69
  indexingDirection: StatusListIndexingDirection;
25
70
  statusPurpose?: StatusPurpose2021;
@@ -28,13 +73,6 @@ type OAuthStatusListArgs = {
28
73
  bitsPerStatus: BitsPerStatus;
29
74
  expiresAt?: Date;
30
75
  };
31
- type BitstringStatusListArgs = {
32
- statusPurpose: BitstringStatusPurpose;
33
- bitsPerStatus: number;
34
- ttl?: number;
35
- validFrom?: Date;
36
- validUntil?: Date;
37
- };
38
76
  type BaseCreateNewStatusListArgs = {
39
77
  type: StatusListType;
40
78
  id: string;
@@ -80,7 +118,7 @@ interface UpdateStatusListFromStatusListCredentialArgs {
80
118
  statusListCredential: StatusListCredential;
81
119
  keyRef?: string;
82
120
  statusListIndex: number | string;
83
- value: number | Status2021 | StatusOAuth | BitstringStatus;
121
+ value: number | Status2021 | StatusOAuth;
84
122
  }
85
123
  interface StatusListResult {
86
124
  id: string;
@@ -129,15 +167,6 @@ interface StatusListOAuthEntryCredentialStatus extends ICredentialStatus {
129
167
  statusListCredential: string;
130
168
  expiresAt?: Date;
131
169
  }
132
- interface BitstringStatusListEntryCredentialStatus extends ICredentialStatus {
133
- type: 'BitstringStatusListEntry';
134
- statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
135
- statusListIndex: string;
136
- statusListCredential: string;
137
- bitsPerStatus?: number;
138
- statusMessage?: Array<BitstringStatus>;
139
- statusReference?: string | string[];
140
- }
141
170
  interface StatusList2021ToVerifiableCredentialArgs {
142
171
  issuer: string | IIssuer;
143
172
  id: string;
@@ -161,7 +190,7 @@ interface CreateStatusListArgs {
161
190
  interface UpdateStatusListIndexArgs {
162
191
  statusListCredential: StatusListCredential;
163
192
  statusListIndex: number | string;
164
- value: number | Status2021 | StatusOAuth | BitstringStatus;
193
+ value: number | Status2021 | StatusOAuth;
165
194
  bitsPerStatus?: number;
166
195
  keyRef?: string;
167
196
  expiresAt?: Date;
@@ -171,11 +200,16 @@ interface CheckStatusIndexArgs {
171
200
  statusListIndex: string | number;
172
201
  bitsPerStatus?: number;
173
202
  }
174
- interface ToStatusListDetailsArgs {
175
- statusListPayload: StatusListCredential;
203
+ interface IToDetailsFromCredentialArgs {
204
+ statusListCredential: StatusListCredential;
205
+ statusListType: StatusListType;
206
+ bitsPerStatus?: number;
176
207
  correlationId?: string;
177
208
  driverType?: StatusListDriverType;
178
- bitsPerStatus?: number;
209
+ }
210
+ interface IMergeDetailsWithEntityArgs {
211
+ extractedDetails: IExtractedCredentialDetails;
212
+ statusListEntity: IStatusListEntity;
179
213
  }
180
214
  /**
181
215
  * The interface definition for a plugin that can add statuslist info to a credential
@@ -298,7 +332,7 @@ declare function simpleCheckStatusFromStatusListUrl(args: {
298
332
  type?: StatusListType | 'StatusList2021Entry';
299
333
  id?: string;
300
334
  statusListIndex: string;
301
- }): Promise<number | Status2021 | StatusOAuth | BitstringStatus>;
335
+ }): Promise<number | Status2021 | StatusOAuth>;
302
336
  declare function checkStatusIndexFromStatusListCredential(args: {
303
337
  statusListCredential: StatusListCredential;
304
338
  statusPurpose?: StatusPurpose2021 | string | string[];
@@ -306,16 +340,12 @@ declare function checkStatusIndexFromStatusListCredential(args: {
306
340
  id?: string;
307
341
  statusListIndex: string | number;
308
342
  bitsPerStatus?: number;
309
- }): Promise<number | Status2021 | StatusOAuth | BitstringStatus>;
343
+ }): Promise<number | Status2021 | StatusOAuth>;
310
344
  declare function createNewStatusList(args: CreateNewStatusListFuncArgs, context: IAgentContext<(IVcdmCredentialPlugin | any) & IIdentifierResolution>): Promise<StatusListResult>;
311
345
  declare function updateStatusIndexFromStatusListCredential(args: UpdateStatusListIndexArgs, context: IAgentContext<IVcdmCredentialPlugin & IIdentifierResolution>): Promise<StatusListResult>;
312
- declare function statusListCredentialToDetails({ statusListType, correlationId, driverType, statusListCredential, bitsPerStatus, }: {
313
- statusListType: StatusListType;
314
- statusListCredential: StatusListCredential;
315
- correlationId?: string;
316
- driverType?: StatusListDriverType;
317
- bitsPerStatus?: number;
318
- }): Promise<StatusListResult & Partial<IAddStatusListArgs>>;
346
+ declare function extractCredentialDetails(statusListCredential: StatusListCredential): Promise<IExtractedCredentialDetails>;
347
+ declare function toStatusListDetails(args: IToDetailsFromCredentialArgs): Promise<StatusListResult & (IStatusList2021ImplementationResult | IOAuthStatusListImplementationResult | IBitstringStatusListImplementationResult)>;
348
+ declare function toStatusListDetails(args: IMergeDetailsWithEntityArgs): Promise<StatusListResult & (IStatusList2021ImplementationResult | IOAuthStatusListImplementationResult | IBitstringStatusListImplementationResult)>;
319
349
  declare function createCredentialStatusFromStatusList(args: {
320
350
  statusList: StatusListEntity;
321
351
  statusListEntry: IStatusListEntryEntity | IBitstringStatusListEntryEntity;
@@ -324,4 +354,6 @@ declare function createCredentialStatusFromStatusList(args: {
324
354
  declare function updateStatusListIndexFromEncodedList(args: UpdateStatusListFromEncodedListArgs, context: IAgentContext<IVcdmCredentialPlugin & IIdentifierResolution>): Promise<StatusListResult>;
325
355
  declare function statusList2021ToVerifiableCredential(args: StatusList2021ToVerifiableCredentialArgs, context: IAgentContext<IVcdmCredentialPlugin & IIdentifierResolution>): Promise<StatusListCredential>;
326
356
 
327
- 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, createCredentialStatusFromStatusList, createNewStatusList, fetchStatusListCredential, simpleCheckStatusFromStatusListUrl, statusList2021ToVerifiableCredential, statusListCredentialToDetails, statusPluginStatusFunction, updateStatusIndexFromStatusListCredential, updateStatusListIndexFromEncodedList, vcLibCheckStatusFunction };
357
+ declare function determineStatusListType(credential: StatusListCredential): StatusListType;
358
+
359
+ export { type BaseCreateNewStatusListArgs, type CheckStatusIndexArgs, type CreateNewStatusListArgs, type CreateNewStatusListFuncArgs, type CreateStatusListArgs, type CredentialWithStatusSupport, type GetStatusListArgs, type IAddStatusToCredentialArgs, type IAddStatusToSdJwtCredentialArgs, type IIssueCredentialStatusOpts, type IMergeDetailsWithEntityArgs, type IRequiredContext, type IRequiredPlugins, type IStatusListPlugin, type IToDetailsFromCredentialArgs, type OAuthStatusListArgs, type SignedStatusListData, Status2021, type StatusList2021Args, type StatusList2021EntryCredentialStatus, type StatusList2021ToVerifiableCredentialArgs, type StatusListOAuthEntryCredentialStatus, type StatusListResult, StatusOAuth, type UpdateBitstringStatusListArgs, type UpdateOAuthStatusListArgs, type UpdateStatusList2021Args, type UpdateStatusListFromEncodedListArgs, type UpdateStatusListFromStatusListCredentialArgs, type UpdateStatusListIndexArgs, checkStatusForCredential, checkStatusIndexFromStatusListCredential, createCredentialStatusFromStatusList, createNewStatusList, determineStatusListType, extractCredentialDetails, fetchStatusListCredential, simpleCheckStatusFromStatusListUrl, statusList2021ToVerifiableCredential, statusPluginStatusFunction, toStatusListDetails, updateStatusIndexFromStatusListCredential, updateStatusListIndexFromEncodedList, vcLibCheckStatusFunction };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,61 @@
1
1
  import { IIdentifierResolution } from '@sphereon/ssi-sdk-ext.identifier-resolution';
2
- import { StatusListIndexingDirection, StatusPurpose2021, StatusListType, IIssuer, CredentialProofFormat, StatusListDriverType, StatusListCredential, ICredentialStatus, OrPromise, ICredential, IVerifiableCredential } from '@sphereon/ssi-types';
2
+ import { IIssuer, StatusListType, CredentialProofFormat, StatusListCredential, StatusListDriverType, StatusListIndexingDirection, StatusPurpose2021, ICredentialStatus, OrPromise, ICredential, IVerifiableCredential } from '@sphereon/ssi-types';
3
3
  import { IPluginMethodMap, IAgentContext, ICredentialIssuer, ICredentialVerifier, IKeyManager, CredentialPayload } from '@veramo/core';
4
4
  import { DataSource } from 'typeorm';
5
- import { BitsPerStatus } from '@sd-jwt/jwt-status-list';
5
+ import { StatusList, 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
8
  import { BitstringStatusPurpose } from '@4sure-tech/vc-bitstring-status-lists';
9
9
  import { IVcdmCredentialPlugin } from '@sphereon/ssi-sdk.credential-vcdm';
10
- import { IAddStatusListArgs, StatusListEntity, IStatusListEntryEntity, IBitstringStatusListEntryEntity } from '@sphereon/ssi-sdk.data-store';
10
+ import { BitstringStatusListArgs, IStatusListEntity, StatusListEntity, IStatusListEntryEntity, IBitstringStatusListEntryEntity, BitstringStatusListEntryCredentialStatus } from '@sphereon/ssi-sdk.data-store';
11
11
  import { StatusMethod } from 'credential-status';
12
12
 
13
+ interface DecodedStatusListPayload {
14
+ issuer: string;
15
+ id: string;
16
+ statusList: StatusList;
17
+ exp?: number;
18
+ ttl?: number;
19
+ iat: number;
20
+ }
21
+
22
+ interface IExtractedCredentialDetails {
23
+ id: string;
24
+ issuer: string | IIssuer;
25
+ encodedList: string;
26
+ decodedPayload?: DecodedStatusListPayload;
27
+ }
28
+ interface IStatusListImplementationResult {
29
+ id: string;
30
+ encodedList: string;
31
+ issuer: string | IIssuer;
32
+ type: StatusListType;
33
+ proofFormat: CredentialProofFormat;
34
+ length: number;
35
+ statusListCredential: StatusListCredential;
36
+ statuslistContentType: string;
37
+ correlationId?: string;
38
+ driverType?: StatusListDriverType;
39
+ }
40
+ interface IStatusList2021ImplementationResult extends IStatusListImplementationResult {
41
+ type: StatusListType.StatusList2021;
42
+ indexingDirection: StatusListIndexingDirection;
43
+ statusPurpose: StatusPurpose2021;
44
+ }
45
+ interface IOAuthStatusListImplementationResult extends IStatusListImplementationResult {
46
+ type: StatusListType.OAuthStatusList;
47
+ bitsPerStatus: number;
48
+ expiresAt?: Date;
49
+ }
50
+ interface IBitstringStatusListImplementationResult extends IStatusListImplementationResult {
51
+ type: StatusListType.BitstringStatusList;
52
+ statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
53
+ bitsPerStatus?: number;
54
+ validFrom?: Date;
55
+ validUntil?: Date;
56
+ ttl?: number;
57
+ }
58
+
13
59
  declare enum StatusOAuth {
14
60
  Valid = 0,
15
61
  Invalid = 1,
@@ -19,7 +65,6 @@ declare enum Status2021 {
19
65
  Valid = 0,
20
66
  Invalid = 1
21
67
  }
22
- type BitstringStatus = number;
23
68
  type StatusList2021Args = {
24
69
  indexingDirection: StatusListIndexingDirection;
25
70
  statusPurpose?: StatusPurpose2021;
@@ -28,13 +73,6 @@ type OAuthStatusListArgs = {
28
73
  bitsPerStatus: BitsPerStatus;
29
74
  expiresAt?: Date;
30
75
  };
31
- type BitstringStatusListArgs = {
32
- statusPurpose: BitstringStatusPurpose;
33
- bitsPerStatus: number;
34
- ttl?: number;
35
- validFrom?: Date;
36
- validUntil?: Date;
37
- };
38
76
  type BaseCreateNewStatusListArgs = {
39
77
  type: StatusListType;
40
78
  id: string;
@@ -80,7 +118,7 @@ interface UpdateStatusListFromStatusListCredentialArgs {
80
118
  statusListCredential: StatusListCredential;
81
119
  keyRef?: string;
82
120
  statusListIndex: number | string;
83
- value: number | Status2021 | StatusOAuth | BitstringStatus;
121
+ value: number | Status2021 | StatusOAuth;
84
122
  }
85
123
  interface StatusListResult {
86
124
  id: string;
@@ -129,15 +167,6 @@ interface StatusListOAuthEntryCredentialStatus extends ICredentialStatus {
129
167
  statusListCredential: string;
130
168
  expiresAt?: Date;
131
169
  }
132
- interface BitstringStatusListEntryCredentialStatus extends ICredentialStatus {
133
- type: 'BitstringStatusListEntry';
134
- statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
135
- statusListIndex: string;
136
- statusListCredential: string;
137
- bitsPerStatus?: number;
138
- statusMessage?: Array<BitstringStatus>;
139
- statusReference?: string | string[];
140
- }
141
170
  interface StatusList2021ToVerifiableCredentialArgs {
142
171
  issuer: string | IIssuer;
143
172
  id: string;
@@ -161,7 +190,7 @@ interface CreateStatusListArgs {
161
190
  interface UpdateStatusListIndexArgs {
162
191
  statusListCredential: StatusListCredential;
163
192
  statusListIndex: number | string;
164
- value: number | Status2021 | StatusOAuth | BitstringStatus;
193
+ value: number | Status2021 | StatusOAuth;
165
194
  bitsPerStatus?: number;
166
195
  keyRef?: string;
167
196
  expiresAt?: Date;
@@ -171,11 +200,16 @@ interface CheckStatusIndexArgs {
171
200
  statusListIndex: string | number;
172
201
  bitsPerStatus?: number;
173
202
  }
174
- interface ToStatusListDetailsArgs {
175
- statusListPayload: StatusListCredential;
203
+ interface IToDetailsFromCredentialArgs {
204
+ statusListCredential: StatusListCredential;
205
+ statusListType: StatusListType;
206
+ bitsPerStatus?: number;
176
207
  correlationId?: string;
177
208
  driverType?: StatusListDriverType;
178
- bitsPerStatus?: number;
209
+ }
210
+ interface IMergeDetailsWithEntityArgs {
211
+ extractedDetails: IExtractedCredentialDetails;
212
+ statusListEntity: IStatusListEntity;
179
213
  }
180
214
  /**
181
215
  * The interface definition for a plugin that can add statuslist info to a credential
@@ -298,7 +332,7 @@ declare function simpleCheckStatusFromStatusListUrl(args: {
298
332
  type?: StatusListType | 'StatusList2021Entry';
299
333
  id?: string;
300
334
  statusListIndex: string;
301
- }): Promise<number | Status2021 | StatusOAuth | BitstringStatus>;
335
+ }): Promise<number | Status2021 | StatusOAuth>;
302
336
  declare function checkStatusIndexFromStatusListCredential(args: {
303
337
  statusListCredential: StatusListCredential;
304
338
  statusPurpose?: StatusPurpose2021 | string | string[];
@@ -306,16 +340,12 @@ declare function checkStatusIndexFromStatusListCredential(args: {
306
340
  id?: string;
307
341
  statusListIndex: string | number;
308
342
  bitsPerStatus?: number;
309
- }): Promise<number | Status2021 | StatusOAuth | BitstringStatus>;
343
+ }): Promise<number | Status2021 | StatusOAuth>;
310
344
  declare function createNewStatusList(args: CreateNewStatusListFuncArgs, context: IAgentContext<(IVcdmCredentialPlugin | any) & IIdentifierResolution>): Promise<StatusListResult>;
311
345
  declare function updateStatusIndexFromStatusListCredential(args: UpdateStatusListIndexArgs, context: IAgentContext<IVcdmCredentialPlugin & IIdentifierResolution>): Promise<StatusListResult>;
312
- declare function statusListCredentialToDetails({ statusListType, correlationId, driverType, statusListCredential, bitsPerStatus, }: {
313
- statusListType: StatusListType;
314
- statusListCredential: StatusListCredential;
315
- correlationId?: string;
316
- driverType?: StatusListDriverType;
317
- bitsPerStatus?: number;
318
- }): Promise<StatusListResult & Partial<IAddStatusListArgs>>;
346
+ declare function extractCredentialDetails(statusListCredential: StatusListCredential): Promise<IExtractedCredentialDetails>;
347
+ declare function toStatusListDetails(args: IToDetailsFromCredentialArgs): Promise<StatusListResult & (IStatusList2021ImplementationResult | IOAuthStatusListImplementationResult | IBitstringStatusListImplementationResult)>;
348
+ declare function toStatusListDetails(args: IMergeDetailsWithEntityArgs): Promise<StatusListResult & (IStatusList2021ImplementationResult | IOAuthStatusListImplementationResult | IBitstringStatusListImplementationResult)>;
319
349
  declare function createCredentialStatusFromStatusList(args: {
320
350
  statusList: StatusListEntity;
321
351
  statusListEntry: IStatusListEntryEntity | IBitstringStatusListEntryEntity;
@@ -324,4 +354,6 @@ declare function createCredentialStatusFromStatusList(args: {
324
354
  declare function updateStatusListIndexFromEncodedList(args: UpdateStatusListFromEncodedListArgs, context: IAgentContext<IVcdmCredentialPlugin & IIdentifierResolution>): Promise<StatusListResult>;
325
355
  declare function statusList2021ToVerifiableCredential(args: StatusList2021ToVerifiableCredentialArgs, context: IAgentContext<IVcdmCredentialPlugin & IIdentifierResolution>): Promise<StatusListCredential>;
326
356
 
327
- 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, createCredentialStatusFromStatusList, createNewStatusList, fetchStatusListCredential, simpleCheckStatusFromStatusListUrl, statusList2021ToVerifiableCredential, statusListCredentialToDetails, statusPluginStatusFunction, updateStatusIndexFromStatusListCredential, updateStatusListIndexFromEncodedList, vcLibCheckStatusFunction };
357
+ declare function determineStatusListType(credential: StatusListCredential): StatusListType;
358
+
359
+ export { type BaseCreateNewStatusListArgs, type CheckStatusIndexArgs, type CreateNewStatusListArgs, type CreateNewStatusListFuncArgs, type CreateStatusListArgs, type CredentialWithStatusSupport, type GetStatusListArgs, type IAddStatusToCredentialArgs, type IAddStatusToSdJwtCredentialArgs, type IIssueCredentialStatusOpts, type IMergeDetailsWithEntityArgs, type IRequiredContext, type IRequiredPlugins, type IStatusListPlugin, type IToDetailsFromCredentialArgs, type OAuthStatusListArgs, type SignedStatusListData, Status2021, type StatusList2021Args, type StatusList2021EntryCredentialStatus, type StatusList2021ToVerifiableCredentialArgs, type StatusListOAuthEntryCredentialStatus, type StatusListResult, StatusOAuth, type UpdateBitstringStatusListArgs, type UpdateOAuthStatusListArgs, type UpdateStatusList2021Args, type UpdateStatusListFromEncodedListArgs, type UpdateStatusListFromStatusListCredentialArgs, type UpdateStatusListIndexArgs, checkStatusForCredential, checkStatusIndexFromStatusListCredential, createCredentialStatusFromStatusList, createNewStatusList, determineStatusListType, extractCredentialDetails, fetchStatusListCredential, simpleCheckStatusFromStatusListUrl, statusList2021ToVerifiableCredential, statusPluginStatusFunction, toStatusListDetails, updateStatusIndexFromStatusListCredential, updateStatusListIndexFromEncodedList, vcLibCheckStatusFunction };