@sphereon/ssi-sdk.data-store 0.34.1-next.3 → 0.34.1-next.322

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.
Files changed (116) hide show
  1. package/dist/index.cjs +3377 -2924
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +357 -1203
  4. package/dist/index.d.ts +357 -1203
  5. package/dist/index.js +3300 -2847
  6. package/dist/index.js.map +1 -1
  7. package/package.json +10 -9
  8. package/src/__tests__/contact.entities.test.ts +4 -10
  9. package/src/__tests__/contact.store.test.ts +11 -6
  10. package/src/__tests__/digitalCredential.entities.test.ts +13 -6
  11. package/src/__tests__/digitalCredential.store.test.ts +6 -6
  12. package/src/__tests__/eventLogger.entities.test.ts +3 -3
  13. package/src/__tests__/eventLogger.store.test.ts +9 -4
  14. package/src/__tests__/issuanceBranding.entities.test.ts +2 -2
  15. package/src/__tests__/issuanceBranding.store.test.ts +3 -3
  16. package/src/__tests__/machineState.entities.test.ts +1 -1
  17. package/src/__tests__/machineState.store.test.ts +1 -1
  18. package/src/__tests__/pd-manager.entities.test.ts +27 -98
  19. package/src/__tests__/pd-manager.store.test.ts +151 -101
  20. package/src/__tests__/statusList.entities.test.ts +61 -4
  21. package/src/__tests__/statusList.store.test.ts +67 -4
  22. package/src/contact/ContactStore.ts +35 -35
  23. package/src/digitalCredential/DigitalCredentialStore.ts +6 -7
  24. package/src/entities/contact/BaseConfigEntity.ts +2 -2
  25. package/src/entities/contact/BaseContactEntity.ts +4 -5
  26. package/src/entities/contact/ConnectionEntity.ts +4 -4
  27. package/src/entities/contact/ContactMetadataItemEntity.ts +3 -4
  28. package/src/entities/contact/CorrelationIdentifierEntity.ts +3 -4
  29. package/src/entities/contact/DidAuthConfigEntity.ts +1 -2
  30. package/src/entities/contact/ElectronicAddressEntity.ts +15 -5
  31. package/src/entities/contact/IdentityEntity.ts +12 -11
  32. package/src/entities/contact/IdentityMetadataItemEntity.ts +3 -3
  33. package/src/entities/contact/NaturalPersonEntity.ts +5 -5
  34. package/src/entities/contact/OrganizationEntity.ts +1 -1
  35. package/src/entities/contact/PartyEntity.ts +7 -7
  36. package/src/entities/contact/PartyRelationshipEntity.ts +8 -8
  37. package/src/entities/contact/PartyTypeEntity.ts +4 -4
  38. package/src/entities/contact/PhysicalAddressEntity.ts +3 -3
  39. package/src/entities/digitalCredential/DigitalCredentialEntity.ts +4 -3
  40. package/src/entities/eventLogger/AuditEventEntity.ts +2 -2
  41. package/src/entities/issuanceBranding/BackgroundAttributesEntity.ts +2 -2
  42. package/src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts +6 -7
  43. package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +2 -2
  44. package/src/entities/issuanceBranding/CredentialClaimsEntity.ts +2 -2
  45. package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +2 -2
  46. package/src/entities/issuanceBranding/ImageAttributesEntity.ts +2 -2
  47. package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +2 -2
  48. package/src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts +3 -3
  49. package/src/entities/issuanceBranding/TextAttributesEntity.ts +1 -1
  50. package/src/entities/machineState/MachineStateInfoEntity.ts +1 -1
  51. package/src/entities/presentationDefinition/{PresentationDefinitionItemEntity.ts → DcqlQueryItemEntity.ts} +10 -14
  52. package/src/entities/statusList/BitstringStatusListEntryEntity.ts +60 -0
  53. package/src/entities/statusList/StatusList2021EntryEntity.ts +4 -3
  54. package/src/entities/statusList/StatusListEntities.ts +55 -7
  55. package/src/eventLogger/EventLoggerStore.ts +2 -2
  56. package/src/index.ts +31 -26
  57. package/src/issuanceBranding/IssuanceBrandingStore.ts +25 -25
  58. package/src/machineState/MachineStateStore.ts +7 -7
  59. package/src/migrations/generic/1-CreateContacts.ts +1 -1
  60. package/src/migrations/generic/10-CreatePresentationDefinitions.ts +1 -1
  61. package/src/migrations/generic/11-FixCredentialClaimsReferenceUuid.ts +2 -2
  62. package/src/migrations/generic/12-CreateBitstringStatusList.ts +82 -0
  63. package/src/migrations/generic/13-CreateDcqlQueryItem.ts +67 -0
  64. package/src/migrations/generic/2-CreateIssuanceBranding.ts +1 -1
  65. package/src/migrations/generic/3-CreateContacts.ts +2 -2
  66. package/src/migrations/generic/4-CreateStatusList.ts +1 -1
  67. package/src/migrations/generic/5-CreateAuditEvents.ts +2 -2
  68. package/src/migrations/generic/6-CreateDigitalCredential.ts +1 -1
  69. package/src/migrations/generic/7-CreateMachineStateStore.ts +1 -1
  70. package/src/migrations/generic/8-CreateContacts.ts +1 -1
  71. package/src/migrations/generic/9-CreateContacts.ts +1 -1
  72. package/src/migrations/generic/index.ts +10 -4
  73. package/src/migrations/postgres/1659463079428-CreateContacts.ts +1 -1
  74. package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +1 -1
  75. package/src/migrations/postgres/1690925872592-CreateContacts.ts +1 -1
  76. package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +1 -1
  77. package/src/migrations/postgres/1726588800000-CreateDcqlQueryItem.ts +25 -0
  78. package/src/migrations/postgres/1737110469001-UpdateStatusList.ts +1 -1
  79. package/src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts +67 -0
  80. package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +1 -1
  81. package/src/migrations/sqlite/1726617600000-CreateDcqlQueryItem.ts +24 -0
  82. package/src/migrations/sqlite/1741895823001-CreateBitstringStatusList.ts +145 -0
  83. package/src/presentationDefinition/PDStore.ts +45 -45
  84. package/src/statusList/IStatusListStore.ts +14 -11
  85. package/src/statusList/StatusListStore.ts +74 -36
  86. package/src/types/index.ts +0 -12
  87. package/src/types/statusList/IAbstractStatusListStore.ts +55 -5
  88. package/src/types/statusList/statusList.ts +50 -2
  89. package/src/utils/ValidatorUtils.ts +1 -1
  90. package/src/utils/contact/MappingUtils.ts +10 -10
  91. package/src/utils/digitalCredential/MappingUtils.ts +3 -21
  92. package/src/utils/eventLogger/MappingUtils.ts +2 -2
  93. package/src/utils/issuanceBranding/MappingUtils.ts +13 -13
  94. package/src/utils/presentationDefinition/MappingUtils.ts +31 -22
  95. package/src/utils/statusList/MappingUtils.ts +71 -30
  96. package/src/contact/AbstractContactStore.ts +0 -71
  97. package/src/digitalCredential/AbstractDigitalCredentialStore.ts +0 -21
  98. package/src/eventLogger/AbstractEventLoggerStore.ts +0 -9
  99. package/src/issuanceBranding/AbstractIssuanceBrandingStore.ts +0 -41
  100. package/src/machineState/IAbstractMachineStateStore.ts +0 -65
  101. package/src/presentationDefinition/AbstractPDStore.ts +0 -20
  102. package/src/types/contact/IAbstractContactStore.ts +0 -161
  103. package/src/types/contact/contact.ts +0 -295
  104. package/src/types/contact/index.ts +0 -2
  105. package/src/types/digitalCredential/IAbstractDigitalCredentialStore.ts +0 -43
  106. package/src/types/digitalCredential/enums.ts +0 -70
  107. package/src/types/digitalCredential/index.ts +0 -3
  108. package/src/types/digitalCredential/types.ts +0 -39
  109. package/src/types/eventLogger/IAbstractEventLoggerStore.ts +0 -22
  110. package/src/types/eventLogger/eventLogger.ts +0 -4
  111. package/src/types/issuanceBranding/IAbstractIssuanceBrandingStore.ts +0 -85
  112. package/src/types/issuanceBranding/issuanceBranding.ts +0 -138
  113. package/src/types/machineState/IAbstractMachineStateStore.ts +0 -68
  114. package/src/types/presentationDefinition/IAbstractPDStore.ts +0 -25
  115. package/src/types/presentationDefinition/presentationDefinition.ts +0 -19
  116. package/src/types/validation/validation.ts +0 -3
package/dist/index.d.cts CHANGED
@@ -1,926 +1,10 @@
1
- import typeorm, { BaseEntity as BaseEntity$8, FindOptionsOrder, FindOptionsWhere, DataSource, Repository, MigrationInterface, QueryRunner } from 'typeorm';
2
- import { ManagedIdentifierOptsOrResult } from '@sphereon/ssi-sdk-ext.identifier-resolution';
3
- import { IIdentifier } from '@veramo/core';
4
- import { HasherSync, DcqlQueryREST, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, StatusListType, RequireOneOf, LoggingEventType, LogLevel, System, SubSystem, ActionType, ActionSubType, InitiatorType, SystemCorrelationIdType, OrPromise, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
5
- import { AuditLoggingEvent, ActivityLoggingEvent, PartialAuditLoggingEvent, PartialActivityLoggingEvent, PartyCorrelationType, CredentialType } from '@sphereon/ssi-sdk.core';
6
- import { IPresentationDefinition } from '@sphereon/pex';
1
+ import { BaseEntity, FindOptionsWhere, DataSource, Repository, MigrationInterface, QueryRunner } from 'typeorm';
2
+ import { CorrelationIdentifierType, IMetadataEntity, ElectronicAddressType, PartyTypeType, PartyOrigin, PhysicalAddressType, IdentityOrigin, ConnectionType, DigitalCredential, DocumentType, RegulationType, CredentialDocumentFormat, CredentialCorrelationType, CredentialStateType, AbstractContactStore, GetPartyArgs, Party, GetPartiesArgs, AddPartyArgs, UpdatePartyArgs, RemovePartyArgs, GetIdentityArgs, Identity, GetIdentitiesArgs, AddIdentityArgs, UpdateIdentityArgs, RemoveIdentityArgs, AddRelationshipArgs, PartyRelationship, GetRelationshipArgs, GetRelationshipsArgs, UpdateRelationshipArgs, RemoveRelationshipArgs, AddPartyTypeArgs, PartyType, GetPartyTypeArgs, GetPartyTypesArgs, UpdatePartyTypeArgs, RemovePartyTypeArgs, GetElectronicAddressArgs, ElectronicAddress, GetElectronicAddressesArgs, AddElectronicAddressArgs, UpdateElectronicAddressArgs, RemoveElectronicAddressArgs, GetPhysicalAddressArgs, PhysicalAddress, GetPhysicalAddressesArgs, AddPhysicalAddressArgs, UpdatePhysicalAddressArgs, RemovePhysicalAddressArgs, AbstractDigitalCredentialStore, AddCredentialArgs, GetCredentialArgs, GetCredentialsArgs, GetCredentialsResponse, RemoveCredentialArgs, UpdateCredentialStateArgs, AbstractIssuanceBrandingStore, IAddCredentialBrandingArgs, ICredentialBranding, IGetCredentialBrandingArgs, IRemoveCredentialBrandingArgs, IUpdateCredentialBrandingArgs, IAddCredentialLocaleBrandingArgs, IGetCredentialLocaleBrandingArgs, ICredentialLocaleBranding, IRemoveCredentialLocaleBrandingArgs, IUpdateCredentialLocaleBrandingArgs, IAddIssuerBrandingArgs, IIssuerBranding, IGetIssuerBrandingArgs, IRemoveIssuerBrandingArgs, IUpdateIssuerBrandingArgs, IAddIssuerLocaleBrandingArgs, IGetIssuerLocaleBrandingArgs, IIssuerLocaleBranding, IRemoveIssuerLocaleBrandingArgs, IUpdateIssuerLocaleBrandingArgs, AbstractEventLoggerStore, GetAuditEventsArgs, StoreAuditEventArgs, GetActivityEventsArgs, StoreActivityEventArgs, IAbstractMachineStateStore, StoreMachineStatePersistArgs, StoreMachineStateInfo, StoreMachineStatesFindActiveArgs, StoreFindMachineStatesArgs, StoreMachineStateGetArgs, StoreMachineStateDeleteArgs, StoreMachineStateDeleteExpiredArgs, AbstractPDStore, GetDefinitionArgs, DcqlQueryItem, HasDefinitionArgs, HasDefinitionsArgs, GetDefinitionsArgs, NonPersistedDcqlQueryItem, DeleteDefinitionArgs, DeleteDefinitionsArgs, DcqlQueryItemFilter, NonPersistedParty, NonPersistedContact, Contact, NonPersistedNaturalPerson, NonPersistedOrganization, NonPersistedConnection, Connection, NonPersistedCorrelationIdentifier, CorrelationIdentifier, NonPersistedDidAuthConfig, NonPersistedElectronicAddress, NonPersistedPhysicalAddress, NonPersistedIdentity, NonPersistedMetadataItem, MetadataTypes, MetadataItem, NaturalPerson, NonPersistedOpenIdConfig, Organization, NonPersistedPartyRelationship, NonPersistedPartyType, ConnectionConfig, OpenIdConfig, DidAuthConfig, NonPersistedConnectionConfig, NonPersistedDigitalCredential, NonPersistedAuditLoggingEvent, NonPersistedActivityLoggingEvent, ILocaleBranding, IBasicIssuerLocaleBranding, IBasicBackgroundAttributes, IBasicCredentialBranding, IBasicCredentialLocaleBranding, IBasicImageAttributes, IBasicImageDimensions, IBasicIssuerBranding, IBasicTextAttributes, IBasicCredentialClaim, PartialDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types';
3
+ export { AbstractEventLoggerStore } from '@sphereon/ssi-sdk.data-store-types';
4
+ import { CredentialRole, LoggingEventType, LogLevel, System, SubSystem, ActionType, ActionSubType, InitiatorType, SystemCorrelationIdType, StatusListType, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, RequireOneOf, ICredentialStatus, OrPromise, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
5
+ import { PartyCorrelationType, CredentialType, AuditLoggingEvent, ActivityLoggingEvent } from '@sphereon/ssi-sdk.core';
7
6
 
8
- interface ILocaleBranding {
9
- id: string;
10
- alias?: string;
11
- locale?: string;
12
- logo?: IImageAttributes;
13
- description?: string;
14
- background?: IBackgroundAttributes;
15
- text?: ITextAttributes;
16
- createdAt: Date;
17
- lastUpdatedAt: Date;
18
- }
19
- interface IImageAttributes {
20
- id: string;
21
- uri?: string;
22
- dataUri?: string;
23
- mediaType?: string;
24
- alt?: string;
25
- dimensions?: IImageDimensions;
26
- }
27
- interface IBasicImageAttributes extends Omit<IImageAttributes, 'id' | 'dimensions'> {
28
- dimensions?: IBasicImageDimensions;
29
- }
30
- interface IPartialImageAttributes extends Partial<Omit<IImageAttributes, 'dimensions'>> {
31
- dimensions?: IPartialImageDimensions;
32
- }
33
- interface IBackgroundAttributes {
34
- id: string;
35
- color?: string;
36
- image?: IImageAttributes;
37
- }
38
- interface IBasicBackgroundAttributes extends Omit<IBackgroundAttributes, 'id' | 'image'> {
39
- image?: IBasicImageAttributes;
40
- }
41
- interface IPartialBackgroundAttributes extends Partial<Omit<IBackgroundAttributes, 'image'>> {
42
- image?: IPartialImageAttributes;
43
- }
44
- interface ITextAttributes {
45
- id: string;
46
- color?: string;
47
- }
48
- interface IBasicTextAttributes extends Omit<ITextAttributes, 'id'> {
49
- }
50
- interface IPartialTextAttributes extends Partial<ITextAttributes> {
51
- }
52
- interface IImageDimensions {
53
- id: string;
54
- width: number;
55
- height: number;
56
- }
57
- interface IBasicImageDimensions extends Omit<IImageDimensions, 'id'> {
58
- }
59
- interface IPartialImageDimensions extends Partial<IImageDimensions> {
60
- }
61
- interface ICredentialClaim {
62
- id: string;
63
- key: string;
64
- name: string;
65
- }
66
- interface IBasicCredentialClaim extends Omit<ICredentialClaim, 'id'> {
67
- }
68
- interface IPartialCredentialClaim extends Partial<ICredentialClaim> {
69
- }
70
- interface ICredentialLocaleBranding extends ILocaleBranding {
71
- claims?: Array<ICredentialClaim>;
72
- }
73
- interface IBasicCredentialLocaleBranding extends Omit<ICredentialLocaleBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'logo' | 'background' | 'text' | 'claims'> {
74
- logo?: IBasicImageAttributes;
75
- background?: IBasicBackgroundAttributes;
76
- text?: IBasicTextAttributes;
77
- claims?: Array<IBasicCredentialClaim>;
78
- }
79
- interface IPartialCredentialLocaleBranding extends Partial<Omit<ICredentialLocaleBranding, 'logo' | 'background' | 'text' | 'claims'>> {
80
- logo?: IPartialImageAttributes;
81
- background?: IPartialBackgroundAttributes;
82
- text?: IPartialTextAttributes;
83
- claims?: IPartialCredentialClaim;
84
- }
85
- interface ICredentialBranding {
86
- id: string;
87
- issuerCorrelationId: string;
88
- vcHash: string;
89
- localeBranding: Array<ICredentialLocaleBranding>;
90
- createdAt: Date;
91
- lastUpdatedAt: Date;
92
- }
93
- interface IBasicCredentialBranding extends Omit<ICredentialBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'localeBranding'> {
94
- localeBranding: Array<IBasicCredentialLocaleBranding>;
95
- }
96
- interface IPartialCredentialBranding extends Partial<Omit<ICredentialBranding, 'localeBranding'>> {
97
- localeBranding?: IPartialCredentialLocaleBranding;
98
- }
99
- interface IIssuerLocaleBranding extends ILocaleBranding {
100
- clientUri?: string;
101
- tosUri?: string;
102
- policyUri?: string;
103
- contacts?: Array<string>;
104
- }
105
- interface IBasicIssuerLocaleBranding extends Omit<IIssuerLocaleBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'logo' | 'background' | 'text'> {
106
- logo?: IBasicImageAttributes;
107
- background?: IBasicBackgroundAttributes;
108
- text?: IBasicTextAttributes;
109
- }
110
- interface IPartialIssuerLocaleBranding extends Partial<Omit<IIssuerLocaleBranding, 'logo' | 'background' | 'text' | 'contacts'>> {
111
- logo?: IPartialImageAttributes;
112
- background?: IPartialBackgroundAttributes;
113
- text?: IPartialTextAttributes;
114
- contacts?: string;
115
- }
116
- interface IIssuerBranding {
117
- id: string;
118
- issuerCorrelationId: string;
119
- localeBranding: Array<IIssuerLocaleBranding>;
120
- createdAt: Date;
121
- lastUpdatedAt: Date;
122
- }
123
- interface IBasicIssuerBranding extends Omit<IIssuerBranding, 'id' | 'createdAt' | 'lastUpdatedAt' | 'localeBranding'> {
124
- localeBranding: Array<IBasicIssuerLocaleBranding>;
125
- }
126
- interface IPartialIssuerBranding extends Partial<Omit<IIssuerBranding, 'localeBranding'>> {
127
- localeBranding?: IPartialIssuerLocaleBranding;
128
- }
129
- interface ICredentialBrandingFilter extends IPartialCredentialBranding {
130
- }
131
- interface ICredentialLocaleBrandingFilter extends IPartialCredentialLocaleBranding {
132
- credentialBranding?: IPartialCredentialBranding;
133
- }
134
- interface IIssuerBrandingFilter extends IPartialIssuerBranding {
135
- }
136
- interface IIssuerLocaleBrandingFilter extends IPartialIssuerLocaleBranding {
137
- issuerBranding?: IPartialIssuerBranding;
138
- }
139
-
140
- type FindCredentialBrandingArgs = Array<ICredentialBrandingFilter>;
141
- type FindCredentialLocaleBrandingArgs = Array<ICredentialLocaleBrandingFilter>;
142
- type FindIssuerBrandingArgs = Array<IIssuerBrandingFilter>;
143
- type FindIssuerLocaleBrandingArgs = Array<IIssuerLocaleBrandingFilter>;
144
- interface IAddCredentialBrandingArgs {
145
- vcHash: string;
146
- issuerCorrelationId: string;
147
- localeBranding: Array<IBasicCredentialLocaleBranding>;
148
- }
149
- interface IGetCredentialBrandingArgs {
150
- filter?: FindCredentialBrandingArgs;
151
- }
152
- interface IUpdateCredentialBrandingArgs {
153
- credentialBranding: Omit<ICredentialBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
154
- }
155
- interface IRemoveCredentialBrandingArgs {
156
- filter: FindCredentialBrandingArgs;
157
- }
158
- interface IAddCredentialLocaleBrandingArgs {
159
- credentialBrandingId: string;
160
- localeBranding: Array<IBasicCredentialLocaleBranding>;
161
- }
162
- interface IUpdateCredentialLocaleBrandingArgs {
163
- localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
164
- }
165
- interface IRemoveCredentialLocaleBrandingArgs {
166
- filter: FindCredentialLocaleBrandingArgs;
167
- }
168
- interface IGetCredentialLocaleBrandingArgs {
169
- filter?: FindCredentialLocaleBrandingArgs;
170
- }
171
- interface IAddIssuerBrandingArgs {
172
- issuerCorrelationId: string;
173
- localeBranding: Array<IBasicIssuerLocaleBranding>;
174
- }
175
- interface IGetIssuerBrandingArgs {
176
- filter?: FindIssuerBrandingArgs;
177
- }
178
- interface IUpdateIssuerBrandingArgs {
179
- issuerBranding: Omit<IIssuerBranding, 'localeBranding' | 'createdAt' | 'lastUpdatedAt'>;
180
- }
181
- interface IRemoveIssuerBrandingArgs {
182
- filter: FindIssuerBrandingArgs;
183
- }
184
- interface IAddIssuerLocaleBrandingArgs {
185
- issuerBrandingId: string;
186
- localeBranding: Array<IBasicIssuerLocaleBranding>;
187
- }
188
- interface IUpdateIssuerLocaleBrandingArgs {
189
- localeBranding: Omit<ILocaleBranding, 'createdAt' | 'lastUpdatedAt'>;
190
- }
191
- interface IRemoveIssuerLocaleBrandingArgs {
192
- filter: FindIssuerLocaleBrandingArgs;
193
- }
194
- interface IGetIssuerLocaleBrandingArgs {
195
- filter?: FindIssuerLocaleBrandingArgs;
196
- }
197
-
198
- declare enum DocumentType {
199
- VC = "VC",
200
- VP = "VP",
201
- P = "P",
202
- C = "C"
203
- }
204
- declare enum RegulationType {
205
- PID = "PID",
206
- QEAA = "QEAA",
207
- EAA = "EAA",
208
- NON_REGULATED = "NON_REGULATED"
209
- }
210
- declare enum CredentialDocumentFormat {
211
- JSON_LD = "JSON_LD",
212
- JWT = "JWT",
213
- SD_JWT = "SD_JWT",
214
- MSO_MDOC = "MSO_MDOC"
215
- }
216
- declare namespace CredentialDocumentFormat {
217
- function fromSpecValue(credentialFormat: string): CredentialDocumentFormat;
218
- function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "vc+sd-jwt" | "mso_mdoc" | "ldp_vc" | "ldp_vp" | "jwt_vc_json" | "jwt_vp_json";
219
- }
220
- declare enum CredentialCorrelationType {
221
- DID = "DID",
222
- X509_SAN = "X509_SAN",
223
- KID = "KID",
224
- URL = "URL"
225
- }
226
- declare enum CredentialRole {
227
- ISSUER = "ISSUER",
228
- VERIFIER = "VERIFIER",
229
- HOLDER = "HOLDER",
230
- FEDERATION_TRUST_ANCHOR = "FEDERATION_TRUST_ANCHOR"
231
- }
232
- declare enum CredentialStateType {
233
- REVOKED = "REVOKED",
234
- VERIFIED = "VERIFIED",
235
- EXPIRED = "EXPIRED"
236
- }
237
-
238
- /**
239
- * DigitalCredential
240
- *
241
- * @public
242
- */
243
- type DigitalCredential = {
244
- id: string;
245
- parentId?: string;
246
- documentType: DocumentType;
247
- documentFormat: CredentialDocumentFormat;
248
- credentialRole: CredentialRole;
249
- regulationType: RegulationType;
250
- rawDocument: string;
251
- uniformDocument: string;
252
- credentialId?: string;
253
- hash: string;
254
- kmsKeyRef?: string;
255
- identifierMethod?: string;
256
- issuerCorrelationType: CredentialCorrelationType;
257
- subjectCorrelationType?: CredentialCorrelationType;
258
- rpCorrelationType?: CredentialCorrelationType;
259
- isIssuerSigned?: boolean;
260
- issuerCorrelationId: string;
261
- subjectCorrelationId?: string;
262
- rpCorrelationId?: string;
263
- verifiedState?: CredentialStateType;
264
- tenantId?: string;
265
- createdAt: Date;
266
- presentedAt?: Date;
267
- lastUpdatedAt: Date;
268
- validUntil?: Date;
269
- validFrom?: Date;
270
- verifiedAt?: Date;
271
- revokedAt?: Date;
272
- };
273
- type NonPersistedDigitalCredential = Omit<DigitalCredential, 'id' | 'regulationType'> & {
274
- regulationType?: RegulationType;
275
- };
276
-
277
- declare class DigitalCredentialEntity extends BaseEntity$8 implements DigitalCredential {
278
- id: string;
279
- parentId?: string;
280
- documentType: DocumentType;
281
- regulationType: RegulationType;
282
- documentFormat: CredentialDocumentFormat;
283
- credentialRole: CredentialRole;
284
- rawDocument: string;
285
- uniformDocument: string;
286
- credentialId: string;
287
- hash: string;
288
- kmsKeyRef: string;
289
- identifierMethod: string;
290
- issuerCorrelationType: CredentialCorrelationType;
291
- subjectCorrelationType?: CredentialCorrelationType;
292
- rpCorrelationType?: CredentialCorrelationType;
293
- isIssuerSigned?: boolean;
294
- issuerCorrelationId: string;
295
- subjectCorrelationId?: string;
296
- rpCorrelationId?: string;
297
- verifiedState?: CredentialStateType;
298
- tenantId?: string;
299
- createdAt: Date;
300
- presentedAt?: Date;
301
- lastUpdatedAt: Date;
302
- validUntil?: Date;
303
- validFrom?: Date;
304
- verifiedAt?: Date;
305
- revokedAt?: Date;
306
- }
307
-
308
- type GetCredentialArgs = {
309
- id: string;
310
- } | {
311
- hash: string;
312
- };
313
- type FindDigitalCredentialArgs = Array<Partial<DigitalCredential>>;
314
- type GetCredentialsArgs = {
315
- filter?: FindDigitalCredentialArgs;
316
- offset?: number;
317
- limit?: number;
318
- order?: string | FindOptionsOrder<DigitalCredentialEntity>;
319
- };
320
- type GetCredentialsResponse = {
321
- data: Array<DigitalCredential>;
322
- total: number;
323
- };
324
- type AddCredentialArgs = {
325
- rawDocument: string;
326
- kmsKeyRef?: string;
327
- identifierMethod?: string;
328
- regulationType?: RegulationType;
329
- parentId?: string;
330
- issuerCorrelationType: CredentialCorrelationType;
331
- subjectCorrelationType?: CredentialCorrelationType;
332
- issuerCorrelationId: string;
333
- subjectCorrelationId?: string;
334
- credentialRole: CredentialRole;
335
- tenantId?: string;
336
- state?: CredentialStateType;
337
- verifiedAt?: Date;
338
- revokedAt?: Date;
339
- opts?: {
340
- maxTimeSkewInMS?: number;
341
- hasher?: HasherSync;
342
- };
343
- };
344
- type UpdateCredentialStateArgs = GetCredentialArgs & {
345
- verifiedState: CredentialStateType;
346
- verifiedAt?: Date;
347
- revokedAt?: Date;
348
- };
349
- type RemoveCredentialArgs = GetCredentialArgs;
350
-
351
- type MetadataTypes = string | number | Date | boolean | undefined;
352
- interface IMetadataEntity {
353
- label: string;
354
- stringValue?: string;
355
- numberValue?: number;
356
- dateValue?: Date;
357
- boolValue?: boolean;
358
- }
359
- type Party = {
360
- id: string;
361
- uri?: string;
362
- roles: Array<CredentialRole>;
363
- ownerId?: string;
364
- tenantId?: string;
365
- identities: Array<Identity>;
366
- electronicAddresses: Array<ElectronicAddress>;
367
- physicalAddresses: Array<PhysicalAddress>;
368
- contact: Contact;
369
- partyType: PartyType;
370
- /**
371
- * TODO: Integrate branding logic here in the future. What we should do is make the issuance branding plugin part of the contact-manager and retrieve any branding there is.
372
- *
373
- * Currently, we are only defining the branding type within the SDK without implementing the associated logic. This is because:
374
- * 1. We are combining two types from the SSI-SDK to create a new type that will be used across multiple places in the wallets (web & mobile).
375
- * 2. While it makes sense to have this combined type in the SDK, the logic to support database connections for these types is complex. The types belong to different modules, and we don't use them together currently.
376
- * 3. Implementing the full logic now would require significant changes and cross-module interactions, which we don't have the time to address at present.
377
- *
378
- * For now, we are defining the type here and will use it in the mobile wallet has the logic for it. This is a temporary solution until we have the resources to integrate the branding logic fully.
379
- */
380
- branding?: IIssuerLocaleBranding;
381
- relationships: Array<PartyRelationship>;
382
- createdAt: Date;
383
- lastUpdatedAt: Date;
384
- };
385
- type NonPersistedParty = Omit<Party, 'id' | 'identities' | 'electronicAddresses' | 'physicalAddresses' | 'contact' | 'roles' | 'partyType' | 'relationships' | 'createdAt' | 'lastUpdatedAt'> & {
386
- identities?: Array<NonPersistedIdentity>;
387
- electronicAddresses?: Array<NonPersistedElectronicAddress>;
388
- physicalAddresses?: Array<NonPersistedPhysicalAddress>;
389
- contact: NonPersistedContact;
390
- partyType: NonPersistedPartyType;
391
- relationships?: Array<NonPersistedPartyRelationship>;
392
- };
393
- type PartialParty = Partial<Omit<Party, 'identities' | 'electronicAddresses' | 'physicalAddresses' | 'contact' | 'partyType' | 'relationships'>> & {
394
- identities?: PartialIdentity;
395
- electronicAddresses?: PartialElectronicAddress;
396
- physicalAddresses?: PartialPhysicalAddress;
397
- contact?: PartialContact;
398
- partyType?: PartialPartyType;
399
- relationships?: PartialPartyRelationship;
400
- };
401
- type Identity = {
402
- id: string;
403
- alias: string;
404
- ownerId?: string;
405
- tenantId?: string;
406
- origin: IdentityOrigin;
407
- roles: Array<CredentialRole>;
408
- identifier: CorrelationIdentifier;
409
- connection?: Connection;
410
- metadata?: Array<MetadataItem<MetadataTypes>>;
411
- createdAt: Date;
412
- lastUpdatedAt: Date;
413
- };
414
- type NonPersistedIdentity = Omit<Identity, 'id' | 'identifier' | 'connection' | 'metadata' | 'origin' | 'createdAt' | 'lastUpdatedAt'> & {
415
- origin: IdentityOrigin;
416
- identifier: NonPersistedCorrelationIdentifier;
417
- connection?: NonPersistedConnection;
418
- metadata?: Array<NonPersistedMetadataItem<MetadataTypes>>;
419
- };
420
- type PartialIdentity = Partial<Omit<Identity, 'identifier' | 'connection' | 'metadata' | 'origin' | 'roles'>> & {
421
- identifier?: PartialCorrelationIdentifier;
422
- connection?: PartialConnection;
423
- metadata?: PartialMetadataItem<MetadataTypes>;
424
- origin?: IdentityOrigin;
425
- roles?: CredentialRole;
426
- partyId?: string;
427
- };
428
- type MetadataItem<T extends MetadataTypes> = {
429
- id: string;
430
- label: string;
431
- value: T;
432
- };
433
- type NonPersistedMetadataItem<T extends MetadataTypes> = Omit<MetadataItem<T>, 'id'>;
434
- type PartialMetadataItem<T extends MetadataTypes> = Partial<MetadataItem<T>>;
435
- type CorrelationIdentifier = {
436
- id: string;
437
- ownerId?: string;
438
- tenantId?: string;
439
- type: CorrelationIdentifierType;
440
- correlationId: string;
441
- };
442
- type NonPersistedCorrelationIdentifier = Omit<CorrelationIdentifier, 'id'>;
443
- type PartialCorrelationIdentifier = Partial<CorrelationIdentifier>;
444
- type Connection = {
445
- id: string;
446
- ownerId?: string;
447
- tenantId?: string;
448
- type: ConnectionType;
449
- config: ConnectionConfig;
450
- };
451
- type NonPersistedConnection = Omit<Connection, 'id' | 'config'> & {
452
- config: NonPersistedConnectionConfig;
453
- };
454
- type PartialConnection = Partial<Omit<Connection, 'config'>> & {
455
- config: PartialConnectionConfig;
456
- };
457
- type OpenIdConfig = {
458
- id: string;
459
- clientId: string;
460
- clientSecret: string;
461
- ownerId?: string;
462
- tenantId?: string;
463
- scopes: Array<string>;
464
- issuer: string;
465
- redirectUrl: string;
466
- dangerouslyAllowInsecureHttpRequests: boolean;
467
- clientAuthMethod: 'basic' | 'post' | undefined;
468
- };
469
- type NonPersistedOpenIdConfig = Omit<OpenIdConfig, 'id'>;
470
- type PartialOpenIdConfig = Partial<OpenIdConfig>;
471
- type DidAuthConfig = {
472
- id: string;
473
- idOpts: ManagedIdentifierOptsOrResult;
474
- stateId: string;
475
- ownerId?: string;
476
- tenantId?: string;
477
- redirectUrl: string;
478
- sessionId: string;
479
- };
480
- type NonPersistedDidAuthConfig = Omit<DidAuthConfig, 'id'>;
481
- type PartialDidAuthConfig = Partial<Omit<DidAuthConfig, 'identifier'>> & {
482
- identifier: Partial<IIdentifier>;
483
- };
484
- type ConnectionConfig = OpenIdConfig | DidAuthConfig;
485
- type NonPersistedConnectionConfig = NonPersistedDidAuthConfig | NonPersistedOpenIdConfig;
486
- type PartialConnectionConfig = PartialOpenIdConfig | PartialDidAuthConfig;
487
- type NaturalPerson = {
488
- id: string;
489
- firstName: string;
490
- lastName: string;
491
- middleName?: string;
492
- displayName: string;
493
- metadata?: Array<MetadataItem<MetadataTypes>>;
494
- ownerId?: string;
495
- tenantId?: string;
496
- createdAt: Date;
497
- lastUpdatedAt: Date;
498
- };
499
- type NonPersistedNaturalPerson = Omit<NaturalPerson, 'id' | 'createdAt' | 'lastUpdatedAt'>;
500
- type PartialNaturalPerson = Partial<Omit<NaturalPerson, 'metadata'>> & {
501
- metadata?: PartialMetadataItem<MetadataTypes>;
502
- };
503
- type Organization = {
504
- id: string;
505
- legalName: string;
506
- displayName: string;
507
- metadata?: Array<MetadataItem<MetadataTypes>>;
508
- ownerId?: string;
509
- tenantId?: string;
510
- createdAt: Date;
511
- lastUpdatedAt: Date;
512
- };
513
- type NonPersistedOrganization = Omit<Organization, 'id' | 'createdAt' | 'lastUpdatedAt'>;
514
- type PartialOrganization = Partial<Omit<Organization, 'metadata'>> & {
515
- metadata?: PartialMetadataItem<MetadataTypes>;
516
- };
517
- type Contact = NaturalPerson | Organization;
518
- type NonPersistedContact = NonPersistedNaturalPerson | NonPersistedOrganization;
519
- type PartialContact = PartialNaturalPerson | PartialOrganization;
520
- type PartyType = {
521
- id: string;
522
- type: PartyTypeType;
523
- origin: PartyOrigin;
524
- name: string;
525
- tenantId: string;
526
- description?: string;
527
- createdAt: Date;
528
- lastUpdatedAt: Date;
529
- };
530
- type NonPersistedPartyType = Omit<PartyType, 'id' | 'createdAt' | 'lastUpdatedAt'> & {
531
- id?: string;
532
- };
533
- type PartialPartyType = Partial<PartyType>;
534
- type PartyRelationship = {
535
- id: string;
536
- leftId: string;
537
- rightId: string;
538
- ownerId?: string;
539
- tenantId?: string;
540
- createdAt: Date;
541
- lastUpdatedAt: Date;
542
- };
543
- type NonPersistedPartyRelationship = Omit<PartyRelationship, 'id' | 'createdAt' | 'lastUpdatedAt'>;
544
- type PartialPartyRelationship = Partial<PartyRelationship>;
545
- type ElectronicAddress = {
546
- id: string;
547
- type: ElectronicAddressType;
548
- electronicAddress: string;
549
- ownerId?: string;
550
- tenantId?: string;
551
- createdAt: Date;
552
- lastUpdatedAt: Date;
553
- };
554
- type NonPersistedElectronicAddress = Omit<ElectronicAddress, 'id' | 'createdAt' | 'lastUpdatedAt'>;
555
- type PartialElectronicAddress = Partial<ElectronicAddress> & {
556
- partyId?: string;
557
- };
558
- type PhysicalAddress = {
559
- id: string;
560
- type: PhysicalAddressType;
561
- streetName: string;
562
- streetNumber: string;
563
- postalCode: string;
564
- cityName: string;
565
- provinceName: string;
566
- countryCode: string;
567
- buildingName?: string;
568
- ownerId?: string;
569
- tenantId?: string;
570
- createdAt: Date;
571
- lastUpdatedAt: Date;
572
- };
573
- type NonPersistedPhysicalAddress = Omit<PhysicalAddress, 'id' | 'createdAt' | 'lastUpdatedAt'>;
574
- type PartialPhysicalAddress = Partial<PhysicalAddress> & {
575
- partyId?: string;
576
- };
577
- type ElectronicAddressType = 'email' | 'phone';
578
- type PhysicalAddressType = 'home' | 'visit' | 'postal';
579
- declare enum ConnectionType {
580
- OPENID_CONNECT = "OIDC",
581
- SIOPv2 = "SIOPv2",
582
- SIOPv2_OpenID4VP = "SIOPv2+OpenID4VP"
583
- }
584
- declare enum CorrelationIdentifierType {
585
- DID = "did",
586
- URL = "url"
587
- }
588
- declare enum PartyTypeType {
589
- NATURAL_PERSON = "naturalPerson",
590
- ORGANIZATION = "organization"
591
- }
592
- declare enum PartyOrigin {
593
- INTERNAL = "INTERNAL",
594
- EXTERNAL = "EXTERNAL"
595
- }
596
- declare enum IdentityOrigin {
597
- INTERNAL = "INTERNAL",
598
- EXTERNAL = "EXTERNAL"
599
- }
600
-
601
- type FindPartyArgs = Array<PartialParty>;
602
- type FindIdentityArgs = Array<PartialIdentity>;
603
- type FindPartyTypeArgs = Array<PartialPartyType>;
604
- type FindRelationshipArgs = Array<PartialPartyRelationship>;
605
- type FindElectronicAddressArgs = Array<PartialElectronicAddress>;
606
- type FindPhysicalAddressArgs = Array<PartialPhysicalAddress>;
607
- type GetPartyArgs = {
608
- partyId: string;
609
- };
610
- type GetPartiesArgs = {
611
- filter?: FindPartyArgs;
612
- };
613
- type AddPartyArgs = {
614
- uri?: string;
615
- partyType: NonPersistedPartyType;
616
- contact: NonPersistedContact;
617
- identities?: Array<NonPersistedIdentity>;
618
- electronicAddresses?: Array<NonPersistedElectronicAddress>;
619
- physicalAddresses?: Array<NonPersistedPhysicalAddress>;
620
- };
621
- type UpdatePartyArgs = {
622
- party: Omit<Party, 'identities' | 'electronicAddresses' | 'partyType' | 'createdAt' | 'lastUpdatedAt'>;
623
- };
624
- type RemovePartyArgs = {
625
- partyId: string;
626
- };
627
- type GetIdentityArgs = {
628
- identityId: string;
629
- };
630
- type GetIdentitiesArgs = {
631
- filter?: FindIdentityArgs;
632
- };
633
- type AddIdentityArgs = {
634
- partyId: string;
635
- identity: NonPersistedIdentity;
636
- };
637
- type UpdateIdentityArgs = {
638
- identity: Identity;
639
- };
640
- type RemoveIdentityArgs = {
641
- identityId: string;
642
- };
643
- type RemoveRelationshipArgs = {
644
- relationshipId: string;
645
- };
646
- type AddRelationshipArgs = {
647
- leftId: string;
648
- rightId: string;
649
- };
650
- type GetRelationshipArgs = {
651
- relationshipId: string;
652
- };
653
- type GetRelationshipsArgs = {
654
- filter: FindRelationshipArgs;
655
- };
656
- type UpdateRelationshipArgs = {
657
- relationship: Omit<PartyRelationship, 'createdAt' | 'lastUpdatedAt'>;
658
- };
659
- type AddPartyTypeArgs = {
660
- type: PartyTypeType;
661
- origin: PartyOrigin;
662
- name: string;
663
- tenantId: string;
664
- description?: string;
665
- };
666
- type GetPartyTypeArgs = {
667
- partyTypeId: string;
668
- };
669
- type GetPartyTypesArgs = {
670
- filter?: FindPartyTypeArgs;
671
- };
672
- type UpdatePartyTypeArgs = {
673
- partyType: Omit<PartyType, 'createdAt' | 'lastUpdatedAt'>;
674
- };
675
- type RemovePartyTypeArgs = {
676
- partyTypeId: string;
677
- };
678
- type GetElectronicAddressArgs = {
679
- electronicAddressId: string;
680
- };
681
- type GetElectronicAddressesArgs = {
682
- filter?: FindElectronicAddressArgs;
683
- };
684
- type AddElectronicAddressArgs = {
685
- partyId: string;
686
- electronicAddress: NonPersistedElectronicAddress;
687
- };
688
- type UpdateElectronicAddressArgs = {
689
- electronicAddress: ElectronicAddress;
690
- };
691
- type RemoveElectronicAddressArgs = {
692
- electronicAddressId: string;
693
- };
694
- type GetPhysicalAddressArgs = {
695
- physicalAddressId: string;
696
- };
697
- type GetPhysicalAddressesArgs = {
698
- filter?: FindPhysicalAddressArgs;
699
- };
700
- type AddPhysicalAddressArgs = {
701
- partyId: string;
702
- physicalAddress: NonPersistedPhysicalAddress;
703
- };
704
- type UpdatePhysicalAddressArgs = {
705
- physicalAddress: PhysicalAddress;
706
- };
707
- type RemovePhysicalAddressArgs = {
708
- physicalAddressId: string;
709
- };
710
-
711
- type PresentationDefinitionItem = {
712
- id: string;
713
- definitionId: string;
714
- tenantId?: string;
715
- version: string;
716
- name?: string;
717
- purpose?: string;
718
- definitionPayload: IPresentationDefinition;
719
- dcqlPayload?: DcqlQueryREST;
720
- createdAt: Date;
721
- lastUpdatedAt: Date;
722
- };
723
- type NonPersistedPresentationDefinitionItem = Omit<PresentationDefinitionItem, 'id' | 'createdAt' | 'lastUpdatedAt'>;
724
- type PartialPresentationDefinitionItem = Partial<PresentationDefinitionItem>;
725
- type PresentationDefinitionItemFilter = Partial<Omit<PresentationDefinitionItem, 'definitionPayload' | 'dcqlPayload'>>;
726
-
727
- type FindDefinitionArgs = Array<PresentationDefinitionItemFilter>;
728
- type GetDefinitionArgs = {
729
- itemId: string;
730
- };
731
- type HasDefinitionArgs = GetDefinitionArgs;
732
- type GetDefinitionsArgs = {
733
- filter?: FindDefinitionArgs;
734
- };
735
- type HasDefinitionsArgs = GetDefinitionsArgs;
736
- type AddDefinitionArgs = NonPersistedPresentationDefinitionItem;
737
- type UpdateDefinitionArgs = PresentationDefinitionItem;
738
- type DeleteDefinitionArgs = {
739
- itemId: string;
740
- };
741
- type DeleteDefinitionsArgs = GetDefinitionsArgs;
742
-
743
- type ValidationConstraint = {
744
- [x: string]: string;
745
- };
746
-
747
- declare class StatusListEntryEntity extends BaseEntity$8 {
748
- statusListId: string;
749
- statusListIndex: number;
750
- statusList: StatusListEntity;
751
- credentialId?: string;
752
- credentialHash?: string;
753
- entryCorrelationId?: string;
754
- value?: string;
755
- }
756
-
757
- declare const BaseEntity$7: typeof typeorm.BaseEntity;
758
-
759
- declare abstract class StatusListEntity extends BaseEntity$7 {
760
- id: string;
761
- correlationId: string;
762
- length: number;
763
- issuer: string | IIssuer;
764
- driverType: StatusListDriverType;
765
- credentialIdMode: StatusListCredentialIdMode;
766
- proofFormat: CredentialProofFormat;
767
- statusListCredential?: StatusListCredential;
768
- statusListEntries: StatusListEntryEntity[];
769
- }
770
- declare class StatusList2021Entity extends StatusListEntity {
771
- indexingDirection: StatusListIndexingDirection;
772
- statusPurpose: StatusPurpose2021;
773
- }
774
- declare class OAuthStatusListEntity extends StatusListEntity {
775
- bitsPerStatus: number;
776
- expiresAt?: Date;
777
- }
778
-
779
- interface IStatusListEntity {
780
- id: string;
781
- correlationId: string;
782
- driverType: StatusListDriverType;
783
- credentialIdMode: StatusListCredentialIdMode;
784
- length: number;
785
- issuer: string | IIssuer;
786
- type: StatusListType;
787
- proofFormat: CredentialProofFormat;
788
- statusListCredential?: StatusListCredential;
789
- }
790
- interface IStatusList2021Entity extends IStatusListEntity {
791
- indexingDirection: StatusListIndexingDirection;
792
- statusPurpose: StatusPurpose2021;
793
- }
794
- interface IOAuthStatusListEntity extends IStatusListEntity {
795
- bitsPerStatus: number;
796
- expiresAt?: Date;
797
- }
798
- type IStatusListEntryEntity = RequireOneOf<{
799
- statusList: StatusListEntity;
800
- statusListId: string;
801
- value?: string;
802
- statusListIndex: number;
803
- credentialHash?: string;
804
- credentialId?: string;
805
- correlationId?: string;
806
- }, 'statusList' | 'statusListId'>;
807
-
808
- type FindStatusListArgs = FindOptionsWhere<IStatusList2021Entity | IOAuthStatusListEntity>[];
809
- type FindStatusListEntryArgs = FindOptionsWhere<IStatusListEntryEntity>[] | FindOptionsWhere<IStatusListEntryEntity>;
810
- interface IStatusListEntryAvailableArgs {
811
- statusListId?: string;
812
- correlationId?: string;
813
- statusListIndex: number | number[];
814
- }
815
- interface IGetStatusListEntryByIndexArgs {
816
- statusListId?: string;
817
- statusListCorrelationId?: string;
818
- statusListIndex?: number;
819
- entryCorrelationId?: string;
820
- errorOnNotFound?: boolean;
821
- }
822
- interface IGetStatusListEntryByCredentialIdArgs {
823
- statusListId?: string;
824
- statusListCorrelationId?: string;
825
- entryCorrelationId?: string;
826
- credentialId: string;
827
- errorOnNotFound?: boolean;
828
- }
829
- interface IGetStatusListEntriesArgs {
830
- statusListId: string;
831
- filter?: FindStatusListEntryArgs;
832
- }
833
- type IAddStatusListEntryArgs = IStatusListEntryEntity;
834
- interface IGetStatusListArgs {
835
- id?: string;
836
- correlationId?: string;
837
- }
838
- type IRemoveStatusListArgs = IGetStatusListArgs;
839
- interface IGetStatusListsArgs {
840
- filter?: FindStatusListArgs;
841
- }
842
- type IAddStatusListArgs = IStatusListEntity;
843
- type IUpdateStatusListIndexArgs = IStatusListEntity;
844
-
845
- type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id' | 'type'>;
846
- type NonPersistedActivityLoggingEvent = Omit<ActivityLoggingEvent, 'id' | 'type'>;
847
-
848
- type FindAuditLoggingEventArgs = Array<PartialAuditLoggingEvent>;
849
- type FindActivityLoggingEventArgs = Array<PartialActivityLoggingEvent>;
850
- type StoreAuditEventArgs = {
851
- event: NonPersistedAuditLoggingEvent;
852
- };
853
- type StoreActivityEventArgs = {
854
- event: NonPersistedActivityLoggingEvent;
855
- };
856
- type GetAuditEventsArgs = {
857
- filter?: FindAuditLoggingEventArgs;
858
- };
859
- type GetActivityEventsArgs = {
860
- filter?: FindActivityLoggingEventArgs;
861
- };
862
-
863
- type StoreMachineStatePersistArgs = Omit<StoreMachineStateInfo, 'createdAt' | 'updatedAt'>;
864
- type StoreMachineStatesFindActiveArgs = Partial<Pick<StoreMachineStateInfo, 'machineName' | 'tenantId' | 'instanceId'>>;
865
- type FindMachineStatesFilterArgs = Array<Partial<Omit<StoreMachineStateInfo, 'state'>>>;
866
- type StoreFindMachineStatesArgs = {
867
- filter: FindMachineStatesFilterArgs;
868
- };
869
- type StoreMachineStateGetArgs = Pick<StoreMachineStateInfo, 'instanceId' | 'tenantId'>;
870
- type StoreMachineStateDeleteArgs = StoreMachineStateGetArgs;
871
- type StoreMachineStateDeleteExpiredArgs = {
872
- machineName?: string;
873
- tenantId?: string;
874
- deleteDoneStates?: boolean;
875
- };
876
- interface StoreMachineStateInfo {
877
- /**
878
- * Unique instance ID of the machine
879
- */
880
- instanceId: string;
881
- /**
882
- * Session Id of the machine. Not necessarily unique
883
- */
884
- sessionId?: string;
885
- /**
886
- * Machine name
887
- */
888
- machineName: string;
889
- /**
890
- * The latest state name. Can be empty for a newly initialize machine
891
- */
892
- latestStateName?: string;
893
- /**
894
- * event types like SET_TOC, SET_FIRSTNAME, .... Will be xstate.init on a newly initialized machine
895
- */
896
- latestEventType: string;
897
- /**
898
- * Serialized Machine state
899
- */
900
- state: string;
901
- /**
902
- * Represents the creation date
903
- */
904
- createdAt: Date;
905
- /**
906
- * Represents the expiration date
907
- */
908
- expiresAt?: Date;
909
- /**
910
- * Represents the update date
911
- */
912
- updatedAt: Date;
913
- /**
914
- * Represents a counter for tracking updates.
915
- */
916
- updatedCount: number;
917
- completedAt?: Date;
918
- tenantId?: string;
919
- }
920
-
921
- declare const BaseEntity$6: typeof typeorm.BaseEntity;
922
-
923
- declare class CorrelationIdentifierEntity extends BaseEntity$6 {
7
+ declare class CorrelationIdentifierEntity extends BaseEntity {
924
8
  id: string;
925
9
  type: CorrelationIdentifierType;
926
10
  correlationId: string;
@@ -930,7 +14,7 @@ declare class CorrelationIdentifierEntity extends BaseEntity$6 {
930
14
  validate(): Promise<void>;
931
15
  }
932
16
 
933
- declare class IdentityMetadataItemEntity extends BaseEntity$8 implements IMetadataEntity {
17
+ declare class IdentityMetadataItemEntity extends BaseEntity implements IMetadataEntity {
934
18
  id: string;
935
19
  label: string;
936
20
  valueType: string;
@@ -942,23 +26,7 @@ declare class IdentityMetadataItemEntity extends BaseEntity$8 implements IMetada
942
26
  validate(): Promise<void>;
943
27
  }
944
28
 
945
- declare class PartyTypeEntity {
946
- id: string;
947
- type: PartyTypeType;
948
- origin: PartyOrigin;
949
- name: string;
950
- description?: string;
951
- tenantId: string;
952
- parties: Array<PartyEntity>;
953
- createdAt: Date;
954
- lastUpdatedAt: Date;
955
- updateUpdatedDate(): void;
956
- validate(): Promise<void>;
957
- }
958
-
959
- declare const BaseEntity$5: typeof typeorm.BaseEntity;
960
-
961
- declare class ContactMetadataItemEntity extends BaseEntity$5 implements IMetadataEntity {
29
+ declare class ContactMetadataItemEntity extends BaseEntity implements IMetadataEntity {
962
30
  id: string;
963
31
  label: string;
964
32
  valueType: string;
@@ -970,9 +38,7 @@ declare class ContactMetadataItemEntity extends BaseEntity$5 implements IMetadat
970
38
  validate(): Promise<void>;
971
39
  }
972
40
 
973
- declare const BaseEntity$4: typeof typeorm.BaseEntity;
974
-
975
- declare abstract class BaseContactEntity extends BaseEntity$4 {
41
+ declare abstract class BaseContactEntity extends BaseEntity {
976
42
  id: string;
977
43
  createdAt: Date;
978
44
  lastUpdatedAt: Date;
@@ -981,6 +47,20 @@ declare abstract class BaseContactEntity extends BaseEntity$4 {
981
47
  updateUpdatedDate(): void;
982
48
  }
983
49
 
50
+ declare class ElectronicAddressEntity extends BaseEntity {
51
+ id: string;
52
+ type: ElectronicAddressType;
53
+ electronicAddress: string;
54
+ party: PartyEntity;
55
+ partyId?: string;
56
+ ownerId?: string;
57
+ tenantId?: string;
58
+ createdAt: Date;
59
+ lastUpdatedAt: Date;
60
+ updateUpdatedDate(): void;
61
+ validate(): Promise<void>;
62
+ }
63
+
984
64
  declare class PartyRelationshipEntity {
985
65
  id: string;
986
66
  left: PartyEntity;
@@ -995,23 +75,21 @@ declare class PartyRelationshipEntity {
995
75
  checkRelationshipSides(): Promise<void>;
996
76
  }
997
77
 
998
- declare const BaseEntity$3: typeof typeorm.BaseEntity;
999
-
1000
- declare class ElectronicAddressEntity extends BaseEntity$3 {
78
+ declare class PartyTypeEntity {
1001
79
  id: string;
1002
- type: ElectronicAddressType;
1003
- electronicAddress: string;
1004
- party: PartyEntity;
1005
- partyId?: string;
1006
- ownerId?: string;
1007
- tenantId?: string;
80
+ type: PartyTypeType;
81
+ origin: PartyOrigin;
82
+ name: string;
83
+ description?: string;
84
+ tenantId: string;
85
+ parties: Array<PartyEntity>;
1008
86
  createdAt: Date;
1009
87
  lastUpdatedAt: Date;
1010
88
  updateUpdatedDate(): void;
1011
89
  validate(): Promise<void>;
1012
90
  }
1013
91
 
1014
- declare class PhysicalAddressEntity extends BaseEntity$8 {
92
+ declare class PhysicalAddressEntity extends BaseEntity {
1015
93
  id: string;
1016
94
  type: PhysicalAddressType;
1017
95
  streetName: string;
@@ -1031,7 +109,7 @@ declare class PhysicalAddressEntity extends BaseEntity$8 {
1031
109
  validate(): Promise<void>;
1032
110
  }
1033
111
 
1034
- declare class PartyEntity extends BaseEntity$8 {
112
+ declare class PartyEntity extends BaseEntity {
1035
113
  id: string;
1036
114
  uri?: string;
1037
115
  ownerId?: string;
@@ -1048,7 +126,7 @@ declare class PartyEntity extends BaseEntity$8 {
1048
126
  validate(): Promise<void>;
1049
127
  }
1050
128
 
1051
- declare class IdentityEntity extends BaseEntity$8 {
129
+ declare class IdentityEntity extends BaseEntity {
1052
130
  id: string;
1053
131
  alias: string;
1054
132
  origin: IdentityOrigin;
@@ -1066,9 +144,7 @@ declare class IdentityEntity extends BaseEntity$8 {
1066
144
  validate(): Promise<void>;
1067
145
  }
1068
146
 
1069
- declare const BaseEntity$2: typeof typeorm.BaseEntity;
1070
-
1071
- declare class ConnectionEntity extends BaseEntity$2 {
147
+ declare class ConnectionEntity extends BaseEntity {
1072
148
  id: string;
1073
149
  type: ConnectionType;
1074
150
  tenantId?: string;
@@ -1077,20 +153,98 @@ declare class ConnectionEntity extends BaseEntity$2 {
1077
153
  identity: IdentityEntity;
1078
154
  }
1079
155
 
1080
- declare const BaseEntity$1: typeof typeorm.BaseEntity;
1081
-
1082
- declare abstract class BaseConfigEntity extends BaseEntity$1 {
156
+ declare abstract class BaseConfigEntity extends BaseEntity {
1083
157
  id: string;
1084
158
  connection?: ConnectionEntity;
1085
159
  }
1086
160
 
1087
- declare class ImageDimensionsEntity extends BaseEntity$8 {
161
+ declare class DidAuthConfigEntity extends BaseConfigEntity {
162
+ identifier: string;
163
+ redirectUrl: string;
164
+ sessionId: string;
165
+ ownerId?: string;
166
+ tenantId?: string;
167
+ }
168
+
169
+ declare class OpenIdConfigEntity extends BaseConfigEntity {
170
+ clientId: string;
171
+ clientSecret: string;
172
+ scopes: Array<string>;
173
+ issuer: string;
174
+ redirectUrl: string;
175
+ dangerouslyAllowInsecureHttpRequests: boolean;
176
+ clientAuthMethod: 'basic' | 'post' | undefined;
177
+ ownerId?: string;
178
+ tenantId?: string;
179
+ }
180
+
181
+ declare class DigitalCredentialEntity extends BaseEntity implements DigitalCredential {
182
+ id: string;
183
+ parentId?: string;
184
+ documentType: DocumentType;
185
+ regulationType: RegulationType;
186
+ documentFormat: CredentialDocumentFormat;
187
+ credentialRole: CredentialRole;
188
+ rawDocument: string;
189
+ uniformDocument: string;
190
+ credentialId: string;
191
+ hash: string;
192
+ kmsKeyRef: string;
193
+ identifierMethod: string;
194
+ issuerCorrelationType: CredentialCorrelationType;
195
+ subjectCorrelationType?: CredentialCorrelationType;
196
+ rpCorrelationType?: CredentialCorrelationType;
197
+ isIssuerSigned?: boolean;
198
+ issuerCorrelationId: string;
199
+ subjectCorrelationId?: string;
200
+ rpCorrelationId?: string;
201
+ verifiedState?: CredentialStateType;
202
+ tenantId?: string;
203
+ createdAt: Date;
204
+ presentedAt?: Date;
205
+ lastUpdatedAt: Date;
206
+ validUntil?: Date;
207
+ validFrom?: Date;
208
+ verifiedAt?: Date;
209
+ revokedAt?: Date;
210
+ }
211
+
212
+ declare class AuditEventEntity extends BaseEntity {
213
+ id: string;
214
+ timestamp: Date;
215
+ type: LoggingEventType;
216
+ level: LogLevel;
217
+ correlationId: string;
218
+ system: System;
219
+ subSystemType: SubSystem;
220
+ actionType: ActionType;
221
+ actionSubType: ActionSubType;
222
+ initiatorType: InitiatorType;
223
+ systemCorrelationIdType?: SystemCorrelationIdType;
224
+ systemCorrelationId?: string;
225
+ systemAlias?: string;
226
+ partyCorrelationType?: PartyCorrelationType;
227
+ partyCorrelationId?: string;
228
+ partyAlias?: string;
229
+ description: string;
230
+ credentialType?: CredentialType;
231
+ credentialHash?: string;
232
+ parentCredentialHash?: string;
233
+ originalCredential?: string;
234
+ sharePurpose?: string;
235
+ data?: string;
236
+ diagnosticData?: string;
237
+ createdAt: Date;
238
+ lastUpdatedAt: Date;
239
+ }
240
+
241
+ declare class ImageDimensionsEntity extends BaseEntity {
1088
242
  id: string;
1089
243
  width: number;
1090
244
  height: number;
1091
245
  }
1092
246
 
1093
- declare class ImageAttributesEntity extends BaseEntity$8 {
247
+ declare class ImageAttributesEntity extends BaseEntity {
1094
248
  id: string;
1095
249
  uri?: string;
1096
250
  dataUri?: string;
@@ -1100,21 +254,19 @@ declare class ImageAttributesEntity extends BaseEntity$8 {
1100
254
  validate(): Promise<undefined>;
1101
255
  }
1102
256
 
1103
- declare class BackgroundAttributesEntity extends BaseEntity$8 {
257
+ declare class BackgroundAttributesEntity extends BaseEntity {
1104
258
  id: string;
1105
259
  color?: string;
1106
260
  image?: ImageAttributesEntity;
1107
261
  validate(): Promise<undefined>;
1108
262
  }
1109
263
 
1110
- declare class TextAttributesEntity extends BaseEntity$8 {
264
+ declare class TextAttributesEntity extends BaseEntity {
1111
265
  id: string;
1112
266
  color?: string;
1113
267
  validate(): Promise<undefined>;
1114
268
  }
1115
269
 
1116
- declare const BaseEntity: typeof typeorm.BaseEntity;
1117
-
1118
270
  declare class BaseLocaleBrandingEntity extends BaseEntity {
1119
271
  id: string;
1120
272
  alias?: string;
@@ -1129,27 +281,7 @@ declare class BaseLocaleBrandingEntity extends BaseEntity {
1129
281
  validate(): Promise<undefined>;
1130
282
  }
1131
283
 
1132
- declare class DidAuthConfigEntity extends BaseConfigEntity {
1133
- identifier: string;
1134
- redirectUrl: string;
1135
- sessionId: string;
1136
- ownerId?: string;
1137
- tenantId?: string;
1138
- }
1139
-
1140
- declare class OpenIdConfigEntity extends BaseConfigEntity {
1141
- clientId: string;
1142
- clientSecret: string;
1143
- scopes: Array<string>;
1144
- issuer: string;
1145
- redirectUrl: string;
1146
- dangerouslyAllowInsecureHttpRequests: boolean;
1147
- clientAuthMethod: 'basic' | 'post' | undefined;
1148
- ownerId?: string;
1149
- tenantId?: string;
1150
- }
1151
-
1152
- declare class CredentialClaimsEntity extends BaseEntity$8 {
284
+ declare class CredentialClaimsEntity extends BaseEntity {
1153
285
  id: string;
1154
286
  key: string;
1155
287
  name: string;
@@ -1163,7 +295,7 @@ declare class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity {
1163
295
  credentialBrandingId: string;
1164
296
  }
1165
297
 
1166
- declare class CredentialBrandingEntity extends BaseEntity$8 {
298
+ declare class CredentialBrandingEntity extends BaseEntity {
1167
299
  id: string;
1168
300
  vcHash: string;
1169
301
  issuerCorrelationId: string;
@@ -1174,16 +306,6 @@ declare class CredentialBrandingEntity extends BaseEntity$8 {
1174
306
  validate(): Promise<undefined>;
1175
307
  }
1176
308
 
1177
- declare class IssuerBrandingEntity extends BaseEntity$8 {
1178
- id: string;
1179
- issuerCorrelationId: string;
1180
- localeBranding: Array<IssuerLocaleBrandingEntity>;
1181
- createdAt: Date;
1182
- lastUpdatedAt: Date;
1183
- updateUpdatedDate(): void;
1184
- validate(): Promise<undefined>;
1185
- }
1186
-
1187
309
  declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
1188
310
  issuerBranding: IssuerBrandingEntity;
1189
311
  clientUri?: string;
@@ -1193,6 +315,16 @@ declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
1193
315
  issuerBrandingId: string;
1194
316
  }
1195
317
 
318
+ declare class IssuerBrandingEntity extends BaseEntity {
319
+ id: string;
320
+ issuerCorrelationId: string;
321
+ localeBranding: Array<IssuerLocaleBrandingEntity>;
322
+ createdAt: Date;
323
+ lastUpdatedAt: Date;
324
+ updateUpdatedDate(): void;
325
+ validate(): Promise<undefined>;
326
+ }
327
+
1196
328
  /**
1197
329
  * @class MachineStateInfoEntity
1198
330
  * Represents a machine state. It allows to continue a machine at a later point in time at the point it was left of
@@ -1210,7 +342,7 @@ declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
1210
342
  * @param {Date} [completedAt] - The date and time when the machine state was completed. (optional)
1211
343
  * @param {string} [tenantId] - The ID of the tenant associated with the machine state. (optional)
1212
344
  */
1213
- declare class MachineStateInfoEntity extends BaseEntity$8 {
345
+ declare class MachineStateInfoEntity extends BaseEntity {
1214
346
  instanceId: string;
1215
347
  sessionId?: string;
1216
348
  machineName: string;
@@ -1225,92 +357,212 @@ declare class MachineStateInfoEntity extends BaseEntity$8 {
1225
357
  tenantId?: string;
1226
358
  }
1227
359
 
1228
- declare class AuditEventEntity extends BaseEntity$8 {
360
+ declare class Oid4vcStateEntity<StateType> extends BaseEntity {
1229
361
  id: string;
1230
- timestamp: Date;
1231
- type: LoggingEventType;
1232
- level: LogLevel;
1233
- correlationId: string;
1234
- system: System;
1235
- subSystemType: SubSystem;
1236
- actionType: ActionType;
1237
- actionSubType: ActionSubType;
1238
- initiatorType: InitiatorType;
1239
- systemCorrelationIdType?: SystemCorrelationIdType;
1240
- systemCorrelationId?: string;
1241
- systemAlias?: string;
1242
- partyCorrelationType?: PartyCorrelationType;
1243
- partyCorrelationId?: string;
1244
- partyAlias?: string;
1245
- description: string;
1246
- credentialType?: CredentialType;
1247
- credentialHash?: string;
1248
- parentCredentialHash?: string;
1249
- originalCredential?: string;
1250
- sharePurpose?: string;
1251
- data?: string;
1252
- diagnosticData?: string;
362
+ lookups?: Array<string>;
363
+ stateId?: string;
364
+ correlationId?: string;
365
+ state: StateType;
1253
366
  createdAt: Date;
1254
- lastUpdatedAt: Date;
367
+ updatedAt: Date;
368
+ expiresAt?: Date;
369
+ tenantId?: string;
1255
370
  }
1256
371
 
1257
- declare class PresentationDefinitionItemEntity extends BaseEntity$8 {
372
+ declare class DcqlQueryItemEntity extends BaseEntity {
1258
373
  id: string;
1259
- definitionId: string;
374
+ queryId: string;
1260
375
  version: string;
1261
376
  tenantId?: string;
1262
377
  purpose?: string;
1263
378
  name?: string;
1264
- definitionPayload: string;
1265
- dcqlPayload: string;
379
+ query: string;
1266
380
  createdAt: Date;
1267
381
  lastUpdatedAt: Date;
1268
382
  updateUpdatedDate(): void;
1269
383
  }
1270
384
 
1271
- declare class Oid4vcStateEntity<StateType> extends BaseEntity$8 {
385
+ declare class StatusListEntryEntity extends BaseEntity {
386
+ statusListId: string;
387
+ statusListIndex: number;
388
+ statusList: StatusListEntity;
389
+ credentialId?: string;
390
+ credentialHash?: string;
391
+ entryCorrelationId?: string;
392
+ value?: string;
393
+ }
394
+
395
+ declare abstract class StatusListEntity extends BaseEntity {
1272
396
  id: string;
1273
- lookups?: Array<string>;
1274
- stateId?: string;
1275
- correlationId?: string;
1276
- state: StateType;
1277
- createdAt: Date;
1278
- updatedAt: Date;
397
+ correlationId: string;
398
+ length: number;
399
+ type: StatusListType;
400
+ issuer: string | IIssuer;
401
+ driverType: StatusListDriverType;
402
+ credentialIdMode: StatusListCredentialIdMode;
403
+ proofFormat: CredentialProofFormat;
404
+ statusListCredential?: StatusListCredential;
405
+ }
406
+ declare class StatusList2021Entity extends StatusListEntity {
407
+ indexingDirection: StatusListIndexingDirection;
408
+ statusPurpose: StatusPurpose2021;
409
+ statusListEntries: StatusListEntryEntity[];
410
+ }
411
+ declare class OAuthStatusListEntity extends StatusListEntity {
412
+ bitsPerStatus: number;
1279
413
  expiresAt?: Date;
1280
- tenantId?: string;
1281
414
  }
415
+ declare class BitstringStatusListEntity extends StatusListEntity {
416
+ statusPurpose: string | string[];
417
+ bitsPerStatus?: number;
418
+ validFrom?: Date;
419
+ validUntil?: Date;
420
+ ttl?: number;
421
+ statusListEntries: BitstringStatusListEntryEntity[];
422
+ }
423
+
424
+ interface IStatusListEntity {
425
+ id: string;
426
+ correlationId: string;
427
+ driverType: StatusListDriverType;
428
+ credentialIdMode: StatusListCredentialIdMode;
429
+ length: number;
430
+ issuer: string | IIssuer;
431
+ type: StatusListType;
432
+ proofFormat: CredentialProofFormat;
433
+ statusListCredential?: StatusListCredential;
434
+ bitsPerStatus?: number;
435
+ }
436
+ interface IStatusList2021Entity extends IStatusListEntity {
437
+ indexingDirection: StatusListIndexingDirection;
438
+ statusPurpose: StatusPurpose2021;
439
+ }
440
+ interface IOAuthStatusListEntity extends IStatusListEntity {
441
+ bitsPerStatus: number;
442
+ expiresAt?: Date;
443
+ }
444
+ interface IBitstringStatusListEntity extends IStatusListEntity {
445
+ statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
446
+ bitsPerStatus?: number;
447
+ validFrom?: Date;
448
+ validUntil?: Date;
449
+ ttl?: number;
450
+ }
451
+ type IStatusListEntryEntity = RequireOneOf<{
452
+ statusList: StatusListEntity;
453
+ statusListId: string;
454
+ value?: string;
455
+ statusListIndex: number;
456
+ credentialHash?: string;
457
+ credentialId?: string;
458
+ correlationId?: string;
459
+ }, 'statusList' | 'statusListId'>;
460
+ type BitstringStatusPurpose = 'revocation' | 'suspension' | 'refresh' | 'message' | string;
461
+ type BitstringStatusMessage = {
462
+ status: string;
463
+ message?: string;
464
+ [x: string]: any;
465
+ };
466
+ interface BitstringStatusListEntryCredentialStatus extends ICredentialStatus {
467
+ type: 'BitstringStatusListEntry';
468
+ statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
469
+ statusListIndex: string;
470
+ statusListCredential: string;
471
+ bitsPerStatus?: number;
472
+ statusMessage?: Array<BitstringStatusMessage>;
473
+ statusReference?: string | Array<string>;
474
+ }
475
+ type BitstringStatusListArgs = {
476
+ statusPurpose: BitstringStatusPurpose;
477
+ bitsPerStatus: number;
478
+ ttl?: number;
479
+ validFrom?: Date;
480
+ validUntil?: Date;
481
+ };
482
+ interface IBitstringStatusListEntryEntity {
483
+ statusListId: string;
484
+ statusListIndex: number;
485
+ credentialId?: string;
486
+ credentialHash?: string;
487
+ entryCorrelationId?: string;
488
+ statusPurpose: string;
489
+ bitsPerStatus?: number;
490
+ statusMessage?: Array<BitstringStatusMessage>;
491
+ statusReference?: string | Array<string>;
492
+ }
493
+
494
+ type FindStatusListArgs = FindOptionsWhere<IStatusList2021Entity | IOAuthStatusListEntity>[];
495
+ type FindStatusListEntryArgs = FindOptionsWhere<IStatusListEntryEntity>[] | FindOptionsWhere<IStatusListEntryEntity>;
496
+ interface IStatusListEntryAvailableArgs {
497
+ statusListId?: string;
498
+ correlationId?: string;
499
+ statusListIndex: number | number[];
500
+ }
501
+ interface IGetStatusListEntryByIndexArgs {
502
+ statusListId?: string;
503
+ statusListCorrelationId?: string;
504
+ statusListIndex?: number;
505
+ entryCorrelationId?: string;
506
+ errorOnNotFound?: boolean;
507
+ }
508
+ interface IGetStatusListEntryByCredentialIdArgs {
509
+ statusListId?: string;
510
+ statusListCorrelationId?: string;
511
+ entryCorrelationId?: string;
512
+ credentialId: string;
513
+ errorOnNotFound?: boolean;
514
+ }
515
+ interface IGetStatusListEntriesArgs {
516
+ statusListId: string;
517
+ filter?: FindStatusListEntryArgs;
518
+ }
519
+ type IAddStatusListEntryArgs = IStatusListEntryEntity | IBitstringStatusListEntryEntity;
520
+ interface IGetStatusListArgs {
521
+ id?: string;
522
+ correlationId?: string;
523
+ }
524
+ type IRemoveStatusListArgs = IGetStatusListArgs;
525
+ interface IGetStatusListsArgs {
526
+ filter?: FindStatusListArgs;
527
+ }
528
+ interface IBaseStatusListArgs {
529
+ id: string;
530
+ correlationId: string;
531
+ driverType: StatusListDriverType;
532
+ credentialIdMode: StatusListCredentialIdMode;
533
+ length: number;
534
+ issuer: string | IIssuer;
535
+ type: StatusListType;
536
+ proofFormat: CredentialProofFormat;
537
+ statusListCredential?: StatusListCredential;
538
+ bitsPerStatus?: number;
539
+ }
540
+ type IStatusList2021Args = IBaseStatusListArgs & {
541
+ type: StatusListType.StatusList2021;
542
+ indexingDirection: StatusListIndexingDirection;
543
+ statusPurpose: StatusPurpose2021;
544
+ };
545
+ type IOAuthStatusListArgs = IBaseStatusListArgs & {
546
+ type: StatusListType.OAuthStatusList;
547
+ bitsPerStatus: number;
548
+ expiresAt?: Date;
549
+ };
550
+ type IBitstringStatusListArgs = IBaseStatusListArgs & {
551
+ type: StatusListType.BitstringStatusList;
552
+ statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
553
+ bitsPerStatus?: number;
554
+ validFrom?: Date;
555
+ validUntil?: Date;
556
+ ttl?: number;
557
+ };
558
+ type IAddStatusListArgs = IStatusList2021Args | IOAuthStatusListArgs | IBitstringStatusListArgs;
559
+ type IUpdateStatusListIndexArgs = IAddStatusListArgs;
1282
560
 
1283
- declare abstract class AbstractContactStore {
1284
- abstract getParty(args: GetPartyArgs): Promise<Party>;
1285
- abstract getParties(args?: GetPartiesArgs): Promise<Array<Party>>;
1286
- abstract addParty(args: AddPartyArgs): Promise<Party>;
1287
- abstract updateParty(args: UpdatePartyArgs): Promise<Party>;
1288
- abstract removeParty(args: RemovePartyArgs): Promise<void>;
1289
- abstract getIdentity(args: GetIdentityArgs): Promise<Identity>;
1290
- abstract getIdentities(args?: GetIdentitiesArgs): Promise<Array<Identity>>;
1291
- abstract addIdentity(args: AddIdentityArgs): Promise<Identity>;
1292
- abstract updateIdentity(args: UpdateIdentityArgs): Promise<Identity>;
1293
- abstract removeIdentity(args: RemoveIdentityArgs): Promise<void>;
1294
- abstract getRelationship(args: GetRelationshipArgs): Promise<PartyRelationship>;
1295
- abstract getRelationships(args?: GetRelationshipsArgs): Promise<Array<PartyRelationship>>;
1296
- abstract addRelationship(args: AddRelationshipArgs): Promise<PartyRelationship>;
1297
- abstract updateRelationship(args: UpdateRelationshipArgs): Promise<PartyRelationship>;
1298
- abstract removeRelationship(args: RemoveRelationshipArgs): Promise<void>;
1299
- abstract getPartyType(args: GetPartyTypeArgs): Promise<PartyType>;
1300
- abstract getPartyTypes(args?: GetPartyTypesArgs): Promise<Array<PartyType>>;
1301
- abstract addPartyType(args: AddPartyTypeArgs): Promise<PartyType>;
1302
- abstract updatePartyType(args: UpdatePartyTypeArgs): Promise<PartyType>;
1303
- abstract removePartyType(args: RemovePartyTypeArgs): Promise<void>;
1304
- abstract getElectronicAddress(args: GetElectronicAddressArgs): Promise<ElectronicAddress>;
1305
- abstract getElectronicAddresses(args?: GetElectronicAddressesArgs): Promise<Array<ElectronicAddress>>;
1306
- abstract addElectronicAddress(args: AddElectronicAddressArgs): Promise<ElectronicAddress>;
1307
- abstract updateElectronicAddress(args: UpdateElectronicAddressArgs): Promise<ElectronicAddress>;
1308
- abstract removeElectronicAddress(args: RemoveElectronicAddressArgs): Promise<void>;
1309
- abstract getPhysicalAddress(args: GetPhysicalAddressArgs): Promise<PhysicalAddress>;
1310
- abstract getPhysicalAddresses(args?: GetPhysicalAddressesArgs): Promise<Array<PhysicalAddress>>;
1311
- abstract addPhysicalAddress(args: AddPhysicalAddressArgs): Promise<PhysicalAddress>;
1312
- abstract updatePhysicalAddress(args: UpdatePhysicalAddressArgs): Promise<PhysicalAddress>;
1313
- abstract removePhysicalAddress(args: RemovePhysicalAddressArgs): Promise<void>;
561
+ declare class BitstringStatusListEntryEntity extends StatusListEntryEntity {
562
+ statusPurpose: string;
563
+ bitsPerStatus?: number;
564
+ statusMessage?: Array<BitstringStatusMessage>;
565
+ statusReference?: string | string[];
1314
566
  }
1315
567
 
1316
568
  declare class ContactStore extends AbstractContactStore {
@@ -1357,14 +609,6 @@ declare class ContactStore extends AbstractContactStore {
1357
609
  private buildMetadataCondition;
1358
610
  }
1359
611
 
1360
- declare abstract class AbstractDigitalCredentialStore {
1361
- abstract getCredential(args: GetCredentialArgs): Promise<DigitalCredential>;
1362
- abstract getCredentials(args?: GetCredentialsArgs): Promise<GetCredentialsResponse>;
1363
- abstract addCredential(args: AddCredentialArgs): Promise<DigitalCredential>;
1364
- abstract updateCredentialState(args: UpdateCredentialStateArgs): Promise<DigitalCredential>;
1365
- abstract removeCredential(args: RemoveCredentialArgs): Promise<boolean>;
1366
- }
1367
-
1368
612
  declare class DigitalCredentialStore extends AbstractDigitalCredentialStore {
1369
613
  private readonly dbConnection;
1370
614
  private dcRepo;
@@ -1379,25 +623,6 @@ declare class DigitalCredentialStore extends AbstractDigitalCredentialStore {
1379
623
  private assertValidDigitalCredential;
1380
624
  }
1381
625
 
1382
- declare abstract class AbstractIssuanceBrandingStore {
1383
- abstract addCredentialBranding(args: IAddCredentialBrandingArgs): Promise<ICredentialBranding>;
1384
- abstract getCredentialBranding(args?: IGetCredentialBrandingArgs): Promise<Array<ICredentialBranding>>;
1385
- abstract updateCredentialBranding(args: IUpdateCredentialBrandingArgs): Promise<ICredentialBranding>;
1386
- abstract removeCredentialBranding(args: IRemoveCredentialBrandingArgs): Promise<void>;
1387
- abstract addCredentialLocaleBranding(args: IAddCredentialLocaleBrandingArgs): Promise<ICredentialBranding>;
1388
- abstract getCredentialLocaleBranding(args?: IGetCredentialLocaleBrandingArgs): Promise<Array<ICredentialLocaleBranding>>;
1389
- abstract updateCredentialLocaleBranding(args: IUpdateCredentialLocaleBrandingArgs): Promise<ICredentialLocaleBranding>;
1390
- abstract removeCredentialLocaleBranding(args: IRemoveCredentialLocaleBrandingArgs): Promise<void>;
1391
- abstract addIssuerBranding(args: IAddIssuerBrandingArgs): Promise<IIssuerBranding>;
1392
- abstract getIssuerBranding(args?: IGetIssuerBrandingArgs): Promise<Array<IIssuerBranding>>;
1393
- abstract updateIssuerBranding(args: IUpdateIssuerBrandingArgs): Promise<IIssuerBranding>;
1394
- abstract removeIssuerBranding(args: IRemoveIssuerBrandingArgs): Promise<void>;
1395
- abstract addIssuerLocaleBranding(args: IAddIssuerLocaleBrandingArgs): Promise<IIssuerBranding>;
1396
- abstract getIssuerLocaleBranding(args?: IGetIssuerLocaleBrandingArgs): Promise<Array<IIssuerLocaleBranding>>;
1397
- abstract updateIssuerLocaleBranding(args: IUpdateIssuerLocaleBrandingArgs): Promise<IIssuerLocaleBranding>;
1398
- abstract removeIssuerLocaleBranding(args: IRemoveIssuerLocaleBrandingArgs): Promise<void>;
1399
- }
1400
-
1401
626
  declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
1402
627
  private readonly dbConnection;
1403
628
  constructor(dbConnection: OrPromise<DataSource>);
@@ -1422,20 +647,19 @@ declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
1422
647
  }
1423
648
 
1424
649
  interface IStatusListStore {
1425
- getStatusList(args: IGetStatusListArgs): Promise<IStatusListEntity>;
1426
- getStatusLists(args: IGetStatusListsArgs): Promise<Array<IStatusListEntity>>;
650
+ getStatusList(args: IGetStatusListArgs): Promise<IStatusListEntity | IBitstringStatusListEntity>;
651
+ getStatusLists(args: IGetStatusListsArgs): Promise<Array<IStatusListEntity | IBitstringStatusListEntity>>;
1427
652
  removeStatusList(args: IRemoveStatusListArgs): Promise<boolean>;
1428
- addStatusList(args: IAddStatusListArgs): Promise<IStatusListEntity>;
1429
- updateStatusList(args: IUpdateStatusListIndexArgs): Promise<IStatusListEntity>;
653
+ addStatusList(args: IAddStatusListArgs): Promise<IStatusListEntity | IBitstringStatusListEntity>;
654
+ updateStatusList(args: IUpdateStatusListIndexArgs): Promise<IStatusListEntity | IBitstringStatusListEntity>;
1430
655
  availableStatusListEntries(args: IStatusListEntryAvailableArgs): Promise<number[]>;
1431
- addStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity>;
1432
- updateStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity>;
1433
- getStatusListEntryByIndex(args: IGetStatusListEntryByIndexArgs): Promise<StatusListEntryEntity | undefined>;
1434
- getStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<StatusListEntryEntity | undefined>;
656
+ addStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity | IBitstringStatusListEntryEntity>;
657
+ updateStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity | IBitstringStatusListEntryEntity>;
658
+ getStatusListEntryByIndex(args: IGetStatusListEntryByIndexArgs): Promise<StatusListEntryEntity | BitstringStatusListEntryEntity | undefined>;
659
+ getStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<StatusListEntryEntity | BitstringStatusListEntryEntity | undefined>;
1435
660
  removeStatusListEntryByIndex(args: IGetStatusListEntryByIndexArgs): Promise<boolean>;
1436
661
  removeStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<boolean>;
1437
- getStatusListEntries(args: IGetStatusListEntriesArgs): Promise<IStatusListEntryEntity[]>;
1438
- getStatusList(args: IGetStatusListArgs): Promise<IStatusListEntity>;
662
+ getStatusListEntries(args: IGetStatusListEntriesArgs): Promise<Array<IStatusListEntryEntity | IBitstringStatusListEntryEntity>>;
1439
663
  }
1440
664
 
1441
665
  declare class StatusListStore implements IStatusListStore {
@@ -1451,29 +675,22 @@ declare class StatusListStore implements IStatusListStore {
1451
675
  * @param args
1452
676
  */
1453
677
  availableStatusListEntries(args: IStatusListEntryAvailableArgs): Promise<number[]>;
1454
- addStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity>;
1455
- updateStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity>;
1456
- getStatusListEntryByIndex({ statusListId, statusListCorrelationId, statusListIndex, entryCorrelationId, errorOnNotFound, }: IGetStatusListEntryByIndexArgs): Promise<StatusListEntryEntity | undefined>;
1457
- getStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<StatusListEntryEntity | undefined>;
678
+ addStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity | IBitstringStatusListEntryEntity>;
679
+ updateStatusListEntry(args: IAddStatusListEntryArgs): Promise<IStatusListEntryEntity | IBitstringStatusListEntryEntity>;
680
+ getStatusListEntryByIndex({ statusListId, statusListCorrelationId, statusListIndex, entryCorrelationId, errorOnNotFound, }: IGetStatusListEntryByIndexArgs): Promise<StatusListEntryEntity | BitstringStatusListEntryEntity | undefined>;
681
+ getStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<StatusListEntryEntity | BitstringStatusListEntryEntity | undefined>;
1458
682
  removeStatusListEntryByCredentialId(args: IGetStatusListEntryByCredentialIdArgs): Promise<boolean>;
1459
683
  removeStatusListEntryByIndex(args: IGetStatusListEntryByIndexArgs): Promise<boolean>;
1460
- getStatusListEntries(args: IGetStatusListEntriesArgs): Promise<StatusListEntryEntity[]>;
1461
- getStatusList(args: IGetStatusListArgs): Promise<IStatusListEntity>;
684
+ getStatusListEntries(args: IGetStatusListEntriesArgs): Promise<Array<IStatusListEntryEntity | IBitstringStatusListEntryEntity>>;
1462
685
  private getStatusListEntity;
1463
- getStatusLists(args: IGetStatusListsArgs): Promise<Array<IStatusListEntity>>;
686
+ getStatusList(args: IGetStatusListArgs): Promise<IStatusListEntity | IBitstringStatusListEntity>;
687
+ getStatusLists(args: IGetStatusListsArgs): Promise<Array<IStatusListEntity | IBitstringStatusListEntity>>;
1464
688
  addStatusList(args: IAddStatusListArgs): Promise<IStatusListEntity>;
1465
- updateStatusList(args: IUpdateStatusListIndexArgs): Promise<IStatusListEntity>;
689
+ updateStatusList(args: IUpdateStatusListIndexArgs): Promise<IStatusListEntity | IBitstringStatusListEntity>;
1466
690
  removeStatusList(args: IRemoveStatusListArgs): Promise<boolean>;
1467
691
  private getDS;
1468
692
  getStatusListRepo(type?: StatusListType): Promise<Repository<StatusListEntity>>;
1469
- getStatusListEntryRepo(): Promise<Repository<StatusListEntryEntity>>;
1470
- }
1471
-
1472
- declare abstract class AbstractEventLoggerStore {
1473
- abstract getAuditEvents(args: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>>;
1474
- abstract getActivityEvents(args: GetActivityEventsArgs): Promise<Array<ActivityLoggingEvent>>;
1475
- abstract storeAuditEvent(args: StoreAuditEventArgs): Promise<AuditLoggingEvent>;
1476
- abstract storeActivityEvent(args: StoreActivityEventArgs): Promise<ActivityLoggingEvent>;
693
+ getStatusListEntryRepo(type?: StatusListType): Promise<Repository<StatusListEntryEntity | BitstringStatusListEntryEntity>>;
1477
694
  }
1478
695
 
1479
696
  declare class EventLoggerStore extends AbstractEventLoggerStore {
@@ -1485,57 +702,6 @@ declare class EventLoggerStore extends AbstractEventLoggerStore {
1485
702
  storeActivityEvent: (args: StoreActivityEventArgs) => Promise<ActivityLoggingEvent>;
1486
703
  }
1487
704
 
1488
- /**
1489
- * Represents an abstract class for storing machine states.
1490
- * This class provides methods for persisting, retrieving, and deleting machine states.
1491
- *
1492
- * @interface
1493
- */
1494
- declare abstract class IAbstractMachineStateStore {
1495
- /**
1496
- * Persists the machine state.
1497
- *
1498
- * @param {StoreMachineStatePersistArgs} state - The object containing the machine state to persist.
1499
- * @return {Promise<StoreMachineStateInfo>} - A Promise that resolves to the information about the persisted machine state.
1500
- */
1501
- abstract persistMachineState(state: StoreMachineStatePersistArgs): Promise<StoreMachineStateInfo>;
1502
- /**
1503
- * Finds active machine states based on the given arguments.
1504
- *
1505
- * @param {StoreMachineStatesFindActiveArgs} args - The arguments for finding active machine states.
1506
- * @return {Promise<Array<StoreMachineStateInfo>>} - A promise that resolves with an array of active machine states.
1507
- */
1508
- abstract findActiveMachineStates(args: StoreMachineStatesFindActiveArgs): Promise<Array<StoreMachineStateInfo>>;
1509
- /**
1510
- * Retrieves the state of a particular machine.
1511
- *
1512
- * @param {StoreMachineStateGetArgs} args - The arguments for retrieving the machine state.
1513
- * @returns {Promise<StoreMachineStateInfo>} - A promise that resolves to the machine state information.
1514
- */
1515
- abstract getMachineState(args: StoreMachineStateGetArgs): Promise<StoreMachineStateInfo>;
1516
- /**
1517
- * Finds the machine states based on the given arguments.
1518
- *
1519
- * @param {StoreFindMachineStatesArgs} [args] - The arguments to filter the machine states.
1520
- * @returns {Promise<Array<StoreMachineStateInfo>>} - A promise that resolves to an array of machine state information.
1521
- */
1522
- abstract findMachineStates(args?: StoreFindMachineStatesArgs): Promise<Array<StoreMachineStateInfo>>;
1523
- /**
1524
- * Deletes a machine state.
1525
- *
1526
- * @param {StoreMachineStateDeleteArgs} args - The arguments for deleting the machine state.
1527
- * @return {Promise<boolean>} - A promise that resolves to a boolean indicating if the machine state was successfully deleted or not.
1528
- */
1529
- abstract deleteMachineState(args: StoreMachineStateDeleteArgs): Promise<boolean>;
1530
- /**
1531
- * Deletes expired machine states from the database.
1532
- *
1533
- * @param {StoreMachineStateDeleteExpiredArgs} args - The arguments for deleting expired machine states.
1534
- * @return {Promise<number>} - A promise that resolves to the number of deleted machine states.
1535
- */
1536
- abstract deleteExpiredMachineStates(args: StoreMachineStateDeleteExpiredArgs): Promise<number>;
1537
- }
1538
-
1539
705
  /**
1540
706
  * Represents a data store for managing machine states.
1541
707
  */
@@ -1552,29 +718,18 @@ declare class MachineStateStore extends IAbstractMachineStateStore {
1552
718
  static machineStateInfoEntityFrom: (machineStateInfo: StoreMachineStateInfo | StoreMachineStatePersistArgs) => MachineStateInfoEntity;
1553
719
  }
1554
720
 
1555
- declare abstract class AbstractPDStore {
1556
- abstract hasDefinition(args: GetDefinitionArgs): Promise<boolean>;
1557
- abstract hasDefinitions(args: GetDefinitionsArgs): Promise<boolean>;
1558
- abstract getDefinition(args: GetDefinitionArgs): Promise<PresentationDefinitionItem>;
1559
- abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<PresentationDefinitionItem>>;
1560
- abstract addDefinition(args: AddDefinitionArgs): Promise<PresentationDefinitionItem>;
1561
- abstract updateDefinition(args: UpdateDefinitionArgs): Promise<PresentationDefinitionItem>;
1562
- abstract deleteDefinition(args: DeleteDefinitionArgs): Promise<void>;
1563
- abstract deleteDefinitions(args: DeleteDefinitionsArgs): Promise<number>;
1564
- }
1565
-
1566
721
  declare class PDStore extends AbstractPDStore {
1567
722
  private readonly dbConnection;
1568
723
  constructor(dbConnection: OrPromise<DataSource>);
1569
- getDefinition: (args: GetDefinitionArgs) => Promise<PresentationDefinitionItem>;
724
+ getDefinition: (args: GetDefinitionArgs) => Promise<DcqlQueryItem>;
1570
725
  hasDefinition: (args: HasDefinitionArgs) => Promise<boolean>;
1571
726
  hasDefinitions: (args: HasDefinitionsArgs) => Promise<boolean>;
1572
- getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<PresentationDefinitionItem>>;
1573
- addDefinition: (item: NonPersistedPresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1574
- updateDefinition: (item: PresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
727
+ getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<DcqlQueryItem>>;
728
+ addDefinition: (item: NonPersistedDcqlQueryItem) => Promise<DcqlQueryItem>;
729
+ updateDefinition: (item: DcqlQueryItem) => Promise<DcqlQueryItem>;
1575
730
  deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
1576
731
  deleteDefinitions: (args: DeleteDefinitionsArgs) => Promise<number>;
1577
- findIds: (pdRepository: Repository<PresentationDefinitionItemEntity>, filter: Array<PresentationDefinitionItemFilter> | undefined) => Promise<Array<PresentationDefinitionItemEntity>>;
732
+ findIds: (pdRepository: Repository<DcqlQueryItemEntity>, filter: Array<DcqlQueryItemFilter> | undefined) => Promise<Array<DcqlQueryItemEntity>>;
1578
733
  }
1579
734
 
1580
735
  declare class CreateContacts1659463079429 implements MigrationInterface {
@@ -1583,37 +738,37 @@ declare class CreateContacts1659463079429 implements MigrationInterface {
1583
738
  down(queryRunner: QueryRunner): Promise<void>;
1584
739
  }
1585
740
 
1586
- declare class CreateIssuanceBranding1659463079429 implements MigrationInterface {
741
+ declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
1587
742
  name: string;
1588
743
  up(queryRunner: QueryRunner): Promise<void>;
1589
744
  down(queryRunner: QueryRunner): Promise<void>;
1590
745
  }
1591
746
 
1592
- declare class CreateStatusList1693866470000 implements MigrationInterface {
747
+ declare class FixCredentialClaimsReferencesUuid1741895822987 implements MigrationInterface {
1593
748
  name: string;
1594
749
  up(queryRunner: QueryRunner): Promise<void>;
1595
750
  down(queryRunner: QueryRunner): Promise<void>;
1596
751
  }
1597
752
 
1598
- declare class CreateAuditEvents1701635835330 implements MigrationInterface {
753
+ declare class AddBitstringStatusListEnum1741895823000 implements MigrationInterface {
1599
754
  name: string;
1600
755
  up(queryRunner: QueryRunner): Promise<void>;
1601
756
  down(queryRunner: QueryRunner): Promise<void>;
1602
757
  }
1603
758
 
1604
- declare class CreateDigitalCredential1708525189000 implements MigrationInterface {
759
+ declare class CreateAuditEvents1701635835330 implements MigrationInterface {
1605
760
  name: string;
1606
761
  up(queryRunner: QueryRunner): Promise<void>;
1607
762
  down(queryRunner: QueryRunner): Promise<void>;
1608
763
  }
1609
764
 
1610
- declare class CreateMachineStateStore1708098041262 implements MigrationInterface {
765
+ declare class CreateDigitalCredential1708525189000 implements MigrationInterface {
1611
766
  name: string;
1612
767
  up(queryRunner: QueryRunner): Promise<void>;
1613
768
  down(queryRunner: QueryRunner): Promise<void>;
1614
769
  }
1615
770
 
1616
- declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
771
+ declare class CreateMachineStateStore1708098041262 implements MigrationInterface {
1617
772
  name: string;
1618
773
  up(queryRunner: QueryRunner): Promise<void>;
1619
774
  down(queryRunner: QueryRunner): Promise<void>;
@@ -1627,8 +782,8 @@ declare class CreatePresentationDefinitions1716533767523 implements MigrationInt
1627
782
  * @public
1628
783
  */
1629
784
  declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
1630
- declare const DataStoreIssuanceBrandingMigrations: (typeof CreateIssuanceBranding1659463079429)[];
1631
- declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693866470000)[];
785
+ declare const DataStoreIssuanceBrandingMigrations: (typeof FixCredentialClaimsReferencesUuid1741895822987)[];
786
+ declare const DataStoreStatusListMigrations: (typeof AddBitstringStatusListEnum1741895823000)[];
1632
787
  declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
1633
788
  declare const DataStoreDigitalCredentialMigrations: (typeof CreateDigitalCredential1708525189000)[];
1634
789
  declare const DataStoreMachineStateMigrations: (typeof CreateMachineStateStore1708098041262)[];
@@ -1690,7 +845,6 @@ declare const isDidAuthConfig: (config: NonPersistedConnectionConfig | BaseConfi
1690
845
 
1691
846
  declare function isHex(input: string): boolean;
1692
847
  declare function parseRawDocument(raw: string): OriginalVerifiableCredential | OriginalVerifiablePresentation;
1693
- declare function ensureRawDocument(input: string | object): string;
1694
848
  declare const nonPersistedDigitalCredentialEntityFromAddArgs: (addCredentialArgs: AddCredentialArgs) => NonPersistedDigitalCredential;
1695
849
  declare const digitalCredentialFrom: (credentialEntity: DigitalCredentialEntity) => DigitalCredential;
1696
850
  declare const digitalCredentialsFrom: (credentialEntities: Array<DigitalCredentialEntity>) => DigitalCredential[];
@@ -1713,18 +867,18 @@ declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBr
1713
867
  declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
1714
868
  declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
1715
869
 
1716
- declare const presentationDefinitionItemFrom: (entity: PresentationDefinitionItemEntity) => PresentationDefinitionItem;
1717
- declare const presentationDefinitionEntityItemFrom: (item: NonPersistedPresentationDefinitionItem) => PresentationDefinitionItemEntity;
1718
- declare function isPresentationDefinitionEqual(base: PartialPresentationDefinitionItem, compare: PartialPresentationDefinitionItem): boolean;
870
+ declare const dcqlQueryItemFrom: (entity: DcqlQueryItemEntity) => DcqlQueryItem;
871
+ declare const dcqlQueryEntityItemFrom: (item: NonPersistedDcqlQueryItem) => DcqlQueryItemEntity;
872
+ declare function isPresentationDefinitionEqual(base: PartialDcqlQueryItem, compare: PartialDcqlQueryItem): boolean;
1719
873
 
1720
874
  declare const DataStoreContactEntities: (typeof BaseConfigEntity | typeof ConnectionEntity | typeof PartyEntity | typeof IdentityMetadataItemEntity | typeof CorrelationIdentifierEntity | typeof PartyRelationshipEntity | typeof PartyTypeEntity | typeof BaseContactEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ContactMetadataItemEntity)[];
1721
875
  declare const DataStoreOid4vcStateEntities: (typeof Oid4vcStateEntity)[];
1722
876
  declare const DataStoreIssuanceBrandingEntities: (typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity)[];
1723
- declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
877
+ declare const DataStorePresentationDefinitionEntities: (typeof DcqlQueryItemEntity)[];
1724
878
  declare const DataStoreStatusListEntities: (typeof StatusListEntity | typeof StatusListEntryEntity)[];
1725
879
  declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
1726
880
  declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
1727
881
  declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
1728
- declare const DataStoreEntities: (typeof BaseConfigEntity | typeof ConnectionEntity | typeof PartyEntity | typeof IdentityMetadataItemEntity | typeof CorrelationIdentifierEntity | typeof PartyRelationshipEntity | typeof PartyTypeEntity | typeof BaseContactEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ContactMetadataItemEntity | typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity | typeof PresentationDefinitionItemEntity | typeof StatusListEntity | typeof StatusListEntryEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity | typeof MachineStateInfoEntity)[];
882
+ declare const DataStoreEntities: (typeof BaseConfigEntity | typeof ConnectionEntity | typeof PartyEntity | typeof IdentityMetadataItemEntity | typeof CorrelationIdentifierEntity | typeof PartyRelationshipEntity | typeof PartyTypeEntity | typeof BaseContactEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ContactMetadataItemEntity | typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity | typeof DcqlQueryItemEntity | typeof StatusListEntity | typeof StatusListEntryEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity | typeof MachineStateInfoEntity)[];
1729
883
 
1730
- export { AbstractContactStore, AbstractDigitalCredentialStore, AbstractEventLoggerStore, AbstractIssuanceBrandingStore, AbstractPDStore, type AddCredentialArgs, type AddDefinitionArgs, type AddElectronicAddressArgs, type AddIdentityArgs, type AddPartyArgs, type AddPartyTypeArgs, type AddPhysicalAddressArgs, type AddRelationshipArgs, AuditEventEntity, BackgroundAttributesEntity, BaseConfigEntity, BaseContactEntity, BaseLocaleBrandingEntity, type Connection, type ConnectionConfig, ConnectionEntity, ConnectionType, type Contact, ContactMetadataItemEntity, ContactStore, type CorrelationIdentifier, CorrelationIdentifierEntity, CorrelationIdentifierType, CredentialBrandingEntity, CredentialClaimsEntity, CredentialCorrelationType, CredentialDocumentFormat, CredentialLocaleBrandingEntity, CredentialRole, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, type DeleteDefinitionArgs, type DeleteDefinitionsArgs, type DidAuthConfig, DidAuthConfigEntity, type DigitalCredential, DigitalCredentialEntity, DigitalCredentialStore, DocumentType, type ElectronicAddress, ElectronicAddressEntity, type ElectronicAddressType, EventLoggerStore, type FindActivityLoggingEventArgs, type FindAuditLoggingEventArgs, type FindCredentialBrandingArgs, type FindCredentialLocaleBrandingArgs, type FindDefinitionArgs, type FindDigitalCredentialArgs, type FindElectronicAddressArgs, type FindIdentityArgs, type FindIssuerBrandingArgs, type FindIssuerLocaleBrandingArgs, type FindMachineStatesFilterArgs, type FindPartyArgs, type FindPartyTypeArgs, type FindPhysicalAddressArgs, type FindRelationshipArgs, type FindStatusListArgs, type FindStatusListEntryArgs, type GetActivityEventsArgs, type GetAuditEventsArgs, type GetCredentialArgs, type GetCredentialsArgs, type GetCredentialsResponse, type GetDefinitionArgs, type GetDefinitionsArgs, type GetElectronicAddressArgs, type GetElectronicAddressesArgs, type GetIdentitiesArgs, type GetIdentityArgs, type GetPartiesArgs, type GetPartyArgs, type GetPartyTypeArgs, type GetPartyTypesArgs, type GetPhysicalAddressArgs, type GetPhysicalAddressesArgs, type GetRelationshipArgs, type GetRelationshipsArgs, type HasDefinitionArgs, type HasDefinitionsArgs, IAbstractMachineStateStore, type IAddCredentialBrandingArgs, type IAddCredentialLocaleBrandingArgs, type IAddIssuerBrandingArgs, type IAddIssuerLocaleBrandingArgs, type IAddStatusListArgs, type IAddStatusListEntryArgs, type IBackgroundAttributes, type IBasicBackgroundAttributes, type IBasicCredentialBranding, type IBasicCredentialClaim, type IBasicCredentialLocaleBranding, type IBasicImageAttributes, type IBasicImageDimensions, type IBasicIssuerBranding, type IBasicIssuerLocaleBranding, type IBasicTextAttributes, type ICredentialBranding, type ICredentialBrandingFilter, type ICredentialClaim, type ICredentialLocaleBranding, type ICredentialLocaleBrandingFilter, type IGetCredentialBrandingArgs, type IGetCredentialLocaleBrandingArgs, type IGetIssuerBrandingArgs, type IGetIssuerLocaleBrandingArgs, type IGetStatusListArgs, type IGetStatusListEntriesArgs, type IGetStatusListEntryByCredentialIdArgs, type IGetStatusListEntryByIndexArgs, type IGetStatusListsArgs, type IImageAttributes, type IImageDimensions, type IIssuerBranding, type IIssuerBrandingFilter, type IIssuerLocaleBranding, type IIssuerLocaleBrandingFilter, type ILocaleBranding, type IMetadataEntity, type IOAuthStatusListEntity, type IPartialBackgroundAttributes, type IPartialCredentialBranding, type IPartialCredentialClaim, type IPartialCredentialLocaleBranding, type IPartialImageAttributes, type IPartialImageDimensions, type IPartialIssuerBranding, type IPartialIssuerLocaleBranding, type IPartialTextAttributes, type IRemoveCredentialBrandingArgs, type IRemoveCredentialLocaleBrandingArgs, type IRemoveIssuerBrandingArgs, type IRemoveIssuerLocaleBrandingArgs, type IRemoveStatusListArgs, type IStatusList2021Entity, type IStatusListEntity, type IStatusListEntryAvailableArgs, type IStatusListEntryEntity, type ITextAttributes, type IUpdateCredentialBrandingArgs, type IUpdateCredentialLocaleBrandingArgs, type IUpdateIssuerBrandingArgs, type IUpdateIssuerLocaleBrandingArgs, type IUpdateStatusListIndexArgs, type Identity, IdentityEntity, IdentityMetadataItemEntity, IdentityOrigin, ImageAttributesEntity, ImageDimensionsEntity, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, type NonPersistedPresentationDefinitionItem, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type PartialPresentationDefinitionItem, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, type PresentationDefinitionItem, PresentationDefinitionItemEntity, type PresentationDefinitionItemFilter, RegulationType, type RemoveCredentialArgs, type RemoveElectronicAddressArgs, type RemoveIdentityArgs, type RemovePartyArgs, type RemovePartyTypeArgs, type RemovePhysicalAddressArgs, type RemoveRelationshipArgs, StatusList2021Entity, StatusListEntity, StatusListEntryEntity, StatusListStore, type StoreActivityEventArgs, type StoreAuditEventArgs, type StoreFindMachineStatesArgs, type StoreMachineStateDeleteArgs, type StoreMachineStateDeleteExpiredArgs, type StoreMachineStateGetArgs, type StoreMachineStateInfo, type StoreMachineStatePersistArgs, type StoreMachineStatesFindActiveArgs, TextAttributesEntity, type UpdateCredentialStateArgs, type UpdateDefinitionArgs, type UpdateElectronicAddressArgs, type UpdateIdentityArgs, type UpdatePartyArgs, type UpdatePartyTypeArgs, type UpdatePhysicalAddressArgs, type UpdateRelationshipArgs, type ValidationConstraint, activityEventEntityFrom, activityEventFrom, auditEventEntityFrom, auditEventFrom, backgroundAttributesEntityFrom, configFrom, connectionEntityFrom, connectionFrom, contactEntityFrom, contactFrom, contactMetadataItemEntityFrom, correlationIdentifierEntityFrom, correlationIdentifierFrom, credentialBrandingEntityFrom, credentialBrandingFrom, credentialClaimsEntityFrom, credentialLocaleBrandingEntityFrom, didAuthConfigEntityFrom, didAuthConfigFrom, digitalCredentialFrom, digitalCredentialsFrom, electronicAddressEntityFrom, electronicAddressFrom, ensureRawDocument, identityEntityFrom, identityFrom, identityMetadataItemEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, isDidAuthConfig, isHex, isNaturalPerson, isOpenIdConfig, isOrganization, isPresentationDefinitionEqual, issuerBrandingEntityFrom, issuerBrandingFrom, issuerLocaleBrandingEntityFrom, localeBrandingFrom, metadataItemFrom, naturalPersonEntityFrom, naturalPersonFrom, nonPersistedDigitalCredentialEntityFromAddArgs, openIdConfigEntityFrom, openIdConfigFrom, organizationEntityFrom, organizationFrom, parseRawDocument, partyEntityFrom, partyFrom, partyRelationshipEntityFrom, partyRelationshipFrom, partyTypeEntityFrom, partyTypeFrom, physicalAddressEntityFrom, physicalAddressFrom, presentationDefinitionEntityItemFrom, presentationDefinitionItemFrom, textAttributesEntityFrom };
884
+ export { AuditEventEntity, BackgroundAttributesEntity, BaseConfigEntity, BaseContactEntity, BaseLocaleBrandingEntity, type BitstringStatusListArgs, BitstringStatusListEntity, type BitstringStatusListEntryCredentialStatus, BitstringStatusListEntryEntity, type BitstringStatusMessage, type BitstringStatusPurpose, ConnectionEntity, ContactMetadataItemEntity, ContactStore, CorrelationIdentifierEntity, CredentialBrandingEntity, CredentialClaimsEntity, CredentialLocaleBrandingEntity, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, DcqlQueryItemEntity, DidAuthConfigEntity, DigitalCredentialEntity, DigitalCredentialStore, ElectronicAddressEntity, EventLoggerStore, type FindStatusListArgs, type FindStatusListEntryArgs, type IAddStatusListArgs, type IAddStatusListEntryArgs, type IBitstringStatusListArgs, type IBitstringStatusListEntity, type IBitstringStatusListEntryEntity, type IGetStatusListArgs, type IGetStatusListEntriesArgs, type IGetStatusListEntryByCredentialIdArgs, type IGetStatusListEntryByIndexArgs, type IGetStatusListsArgs, type IOAuthStatusListArgs, type IOAuthStatusListEntity, type IRemoveStatusListArgs, type IStatusList2021Args, type IStatusList2021Entity, type IStatusListEntity, type IStatusListEntryAvailableArgs, type IStatusListEntryEntity, type IUpdateStatusListIndexArgs, IdentityEntity, IdentityMetadataItemEntity, ImageAttributesEntity, ImageDimensionsEntity, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, OAuthStatusListEntity, Oid4vcStateEntity, OpenIdConfigEntity, PDStore, PartyEntity, PhysicalAddressEntity, StatusList2021Entity, StatusListEntity, StatusListEntryEntity, StatusListStore, TextAttributesEntity, activityEventEntityFrom, activityEventFrom, auditEventEntityFrom, auditEventFrom, backgroundAttributesEntityFrom, configFrom, connectionEntityFrom, connectionFrom, contactEntityFrom, contactFrom, contactMetadataItemEntityFrom, correlationIdentifierEntityFrom, correlationIdentifierFrom, credentialBrandingEntityFrom, credentialBrandingFrom, credentialClaimsEntityFrom, credentialLocaleBrandingEntityFrom, dcqlQueryEntityItemFrom, dcqlQueryItemFrom, didAuthConfigEntityFrom, didAuthConfigFrom, digitalCredentialFrom, digitalCredentialsFrom, electronicAddressEntityFrom, electronicAddressFrom, identityEntityFrom, identityFrom, identityMetadataItemEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, isDidAuthConfig, isHex, isNaturalPerson, isOpenIdConfig, isOrganization, isPresentationDefinitionEqual, issuerBrandingEntityFrom, issuerBrandingFrom, issuerLocaleBrandingEntityFrom, localeBrandingFrom, metadataItemFrom, naturalPersonEntityFrom, naturalPersonFrom, nonPersistedDigitalCredentialEntityFromAddArgs, openIdConfigEntityFrom, openIdConfigFrom, organizationEntityFrom, organizationFrom, parseRawDocument, partyEntityFrom, partyFrom, partyRelationshipEntityFrom, partyRelationshipFrom, partyTypeEntityFrom, partyTypeFrom, physicalAddressEntityFrom, physicalAddressFrom, textAttributesEntityFrom };