@sphereon/ssi-sdk.vc-status-list 0.34.1-feature.SSISDK.17.bitstring.sl.8 → 0.34.1-feature.disable.test.8

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