@sphereon/ssi-sdk.data-store 0.34.1-feature.FIDES.1.274 → 0.34.1-feature.IDK.11.48

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 (113) hide show
  1. package/dist/index.cjs +3844 -3819
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +1270 -339
  4. package/dist/index.d.ts +1270 -339
  5. package/dist/index.js +3791 -3766
  6. package/dist/index.js.map +1 -1
  7. package/package.json +8 -9
  8. package/src/__tests__/contact.entities.test.ts +10 -4
  9. package/src/__tests__/contact.store.test.ts +6 -11
  10. package/src/__tests__/digitalCredential.entities.test.ts +6 -13
  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 +4 -9
  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 +98 -27
  19. package/src/__tests__/pd-manager.store.test.ts +101 -151
  20. package/src/__tests__/statusList.entities.test.ts +4 -4
  21. package/src/__tests__/statusList.store.test.ts +3 -3
  22. package/src/contact/AbstractContactStore.ts +71 -0
  23. package/src/contact/ContactStore.ts +35 -35
  24. package/src/digitalCredential/AbstractDigitalCredentialStore.ts +21 -0
  25. package/src/digitalCredential/DigitalCredentialStore.ts +7 -6
  26. package/src/entities/contact/BaseConfigEntity.ts +2 -2
  27. package/src/entities/contact/BaseContactEntity.ts +5 -4
  28. package/src/entities/contact/ConnectionEntity.ts +4 -4
  29. package/src/entities/contact/ContactMetadataItemEntity.ts +4 -3
  30. package/src/entities/contact/CorrelationIdentifierEntity.ts +4 -3
  31. package/src/entities/contact/DidAuthConfigEntity.ts +2 -1
  32. package/src/entities/contact/ElectronicAddressEntity.ts +5 -15
  33. package/src/entities/contact/IdentityEntity.ts +11 -12
  34. package/src/entities/contact/IdentityMetadataItemEntity.ts +3 -3
  35. package/src/entities/contact/NaturalPersonEntity.ts +5 -5
  36. package/src/entities/contact/OrganizationEntity.ts +1 -1
  37. package/src/entities/contact/PartyEntity.ts +7 -7
  38. package/src/entities/contact/PartyRelationshipEntity.ts +8 -8
  39. package/src/entities/contact/PartyTypeEntity.ts +4 -4
  40. package/src/entities/contact/PhysicalAddressEntity.ts +3 -3
  41. package/src/entities/digitalCredential/DigitalCredentialEntity.ts +3 -4
  42. package/src/entities/eventLogger/AuditEventEntity.ts +2 -2
  43. package/src/entities/issuanceBranding/BackgroundAttributesEntity.ts +2 -2
  44. package/src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts +7 -6
  45. package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +2 -2
  46. package/src/entities/issuanceBranding/CredentialClaimsEntity.ts +2 -2
  47. package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +2 -2
  48. package/src/entities/issuanceBranding/ImageAttributesEntity.ts +2 -2
  49. package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +2 -2
  50. package/src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts +3 -3
  51. package/src/entities/issuanceBranding/TextAttributesEntity.ts +1 -1
  52. package/src/entities/machineState/MachineStateInfoEntity.ts +1 -1
  53. package/src/entities/presentationDefinition/{DcqlQueryItemEntity.ts → PresentationDefinitionItemEntity.ts} +14 -10
  54. package/src/entities/statusList/BitstringStatusListEntryEntity.ts +1 -1
  55. package/src/entities/statusList/StatusListEntities.ts +4 -3
  56. package/src/eventLogger/AbstractEventLoggerStore.ts +9 -0
  57. package/src/eventLogger/EventLoggerStore.ts +2 -2
  58. package/src/index.ts +26 -21
  59. package/src/issuanceBranding/AbstractIssuanceBrandingStore.ts +41 -0
  60. package/src/issuanceBranding/IssuanceBrandingStore.ts +25 -25
  61. package/src/machineState/IAbstractMachineStateStore.ts +65 -0
  62. package/src/machineState/MachineStateStore.ts +7 -7
  63. package/src/migrations/generic/1-CreateContacts.ts +1 -1
  64. package/src/migrations/generic/10-CreatePresentationDefinitions.ts +1 -1
  65. package/src/migrations/generic/11-FixCredentialClaimsReferenceUuid.ts +2 -2
  66. package/src/migrations/generic/12-CreateBitstringStatusList.ts +2 -32
  67. package/src/migrations/generic/2-CreateIssuanceBranding.ts +1 -1
  68. package/src/migrations/generic/3-CreateContacts.ts +2 -2
  69. package/src/migrations/generic/4-CreateStatusList.ts +1 -1
  70. package/src/migrations/generic/5-CreateAuditEvents.ts +2 -2
  71. package/src/migrations/generic/6-CreateDigitalCredential.ts +1 -1
  72. package/src/migrations/generic/7-CreateMachineStateStore.ts +1 -1
  73. package/src/migrations/generic/8-CreateContacts.ts +1 -1
  74. package/src/migrations/generic/9-CreateContacts.ts +1 -1
  75. package/src/migrations/generic/index.ts +5 -10
  76. package/src/migrations/postgres/1659463079428-CreateContacts.ts +1 -1
  77. package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +1 -1
  78. package/src/migrations/postgres/1690925872592-CreateContacts.ts +1 -1
  79. package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +1 -1
  80. package/src/migrations/postgres/1737110469001-UpdateStatusList.ts +1 -1
  81. package/src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts +2 -15
  82. package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +1 -1
  83. package/src/presentationDefinition/AbstractPDStore.ts +20 -0
  84. package/src/presentationDefinition/PDStore.ts +45 -45
  85. package/src/statusList/IStatusListStore.ts +1 -1
  86. package/src/statusList/StatusListStore.ts +3 -3
  87. package/src/types/contact/IAbstractContactStore.ts +161 -0
  88. package/src/types/contact/contact.ts +295 -0
  89. package/src/types/contact/index.ts +2 -0
  90. package/src/types/digitalCredential/IAbstractDigitalCredentialStore.ts +43 -0
  91. package/src/types/digitalCredential/enums.ts +70 -0
  92. package/src/types/digitalCredential/index.ts +3 -0
  93. package/src/types/digitalCredential/types.ts +39 -0
  94. package/src/types/eventLogger/IAbstractEventLoggerStore.ts +22 -0
  95. package/src/types/eventLogger/eventLogger.ts +4 -0
  96. package/src/types/index.ts +12 -0
  97. package/src/types/issuanceBranding/IAbstractIssuanceBrandingStore.ts +85 -0
  98. package/src/types/issuanceBranding/issuanceBranding.ts +138 -0
  99. package/src/types/machineState/IAbstractMachineStateStore.ts +68 -0
  100. package/src/types/presentationDefinition/IAbstractPDStore.ts +25 -0
  101. package/src/types/presentationDefinition/presentationDefinition.ts +19 -0
  102. package/src/types/statusList/IAbstractStatusListStore.ts +9 -9
  103. package/src/types/validation/validation.ts +3 -0
  104. package/src/utils/ValidatorUtils.ts +1 -1
  105. package/src/utils/contact/MappingUtils.ts +10 -10
  106. package/src/utils/digitalCredential/MappingUtils.ts +21 -3
  107. package/src/utils/eventLogger/MappingUtils.ts +2 -2
  108. package/src/utils/issuanceBranding/MappingUtils.ts +13 -13
  109. package/src/utils/presentationDefinition/MappingUtils.ts +22 -31
  110. package/src/utils/statusList/MappingUtils.ts +1 -1
  111. package/src/migrations/generic/13-CreateDcqlQueryItem.ts +0 -67
  112. package/src/migrations/postgres/1726588800000-CreateDcqlQueryItem.ts +0 -25
  113. package/src/migrations/sqlite/1726617600000-CreateDcqlQueryItem.ts +0 -24
package/dist/index.d.ts CHANGED
@@ -1,10 +1,1012 @@
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';
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, StatusListType, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, RequireOneOf, ICredentialStatus, 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';
6
7
 
7
- declare class CorrelationIdentifierEntity extends BaseEntity {
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 class BitstringStatusListEntryEntity extends StatusListEntryEntity {
758
+ statusPurpose: string;
759
+ bitsPerStatus?: number;
760
+ statusMessage?: Array<BitstringStatusMessage>;
761
+ statusReference?: string | string[];
762
+ }
763
+
764
+ declare const BaseEntity$7: typeof typeorm.BaseEntity;
765
+ declare abstract class StatusListEntity extends BaseEntity$7 {
766
+ id: string;
767
+ correlationId: string;
768
+ length: number;
769
+ type: StatusListType;
770
+ issuer: string | IIssuer;
771
+ driverType: StatusListDriverType;
772
+ credentialIdMode: StatusListCredentialIdMode;
773
+ proofFormat: CredentialProofFormat;
774
+ statusListCredential?: StatusListCredential;
775
+ }
776
+ declare class StatusList2021Entity extends StatusListEntity {
777
+ indexingDirection: StatusListIndexingDirection;
778
+ statusPurpose: StatusPurpose2021;
779
+ statusListEntries: StatusListEntryEntity[];
780
+ }
781
+ declare class OAuthStatusListEntity extends StatusListEntity {
782
+ bitsPerStatus: number;
783
+ expiresAt?: Date;
784
+ }
785
+ declare class BitstringStatusListEntity extends StatusListEntity {
786
+ statusPurpose: string | string[];
787
+ bitsPerStatus?: number;
788
+ validFrom?: Date;
789
+ validUntil?: Date;
790
+ ttl?: number;
791
+ statusListEntries: BitstringStatusListEntryEntity[];
792
+ }
793
+
794
+ interface IStatusListEntity {
795
+ id: string;
796
+ correlationId: string;
797
+ driverType: StatusListDriverType;
798
+ credentialIdMode: StatusListCredentialIdMode;
799
+ length: number;
800
+ issuer: string | IIssuer;
801
+ type: StatusListType;
802
+ proofFormat: CredentialProofFormat;
803
+ statusListCredential?: StatusListCredential;
804
+ bitsPerStatus?: number;
805
+ }
806
+ interface IStatusList2021Entity extends IStatusListEntity {
807
+ indexingDirection: StatusListIndexingDirection;
808
+ statusPurpose: StatusPurpose2021;
809
+ }
810
+ interface IOAuthStatusListEntity extends IStatusListEntity {
811
+ bitsPerStatus: number;
812
+ expiresAt?: Date;
813
+ }
814
+ interface IBitstringStatusListEntity extends IStatusListEntity {
815
+ statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
816
+ bitsPerStatus?: number;
817
+ validFrom?: Date;
818
+ validUntil?: Date;
819
+ ttl?: number;
820
+ }
821
+ type IStatusListEntryEntity = RequireOneOf<{
822
+ statusList: StatusListEntity;
823
+ statusListId: string;
824
+ value?: string;
825
+ statusListIndex: number;
826
+ credentialHash?: string;
827
+ credentialId?: string;
828
+ correlationId?: string;
829
+ }, 'statusList' | 'statusListId'>;
830
+ type BitstringStatusPurpose = 'revocation' | 'suspension' | 'refresh' | 'message' | string;
831
+ type BitstringStatusMessage = {
832
+ status: string;
833
+ message?: string;
834
+ [x: string]: any;
835
+ };
836
+ interface BitstringStatusListEntryCredentialStatus extends ICredentialStatus {
837
+ type: 'BitstringStatusListEntry';
838
+ statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
839
+ statusListIndex: string;
840
+ statusListCredential: string;
841
+ bitsPerStatus?: number;
842
+ statusMessage?: Array<BitstringStatusMessage>;
843
+ statusReference?: string | Array<string>;
844
+ }
845
+ type BitstringStatusListArgs = {
846
+ statusPurpose: BitstringStatusPurpose;
847
+ bitsPerStatus: number;
848
+ ttl?: number;
849
+ validFrom?: Date;
850
+ validUntil?: Date;
851
+ };
852
+ interface IBitstringStatusListEntryEntity {
853
+ statusListId: string;
854
+ statusListIndex: number;
855
+ credentialId?: string;
856
+ credentialHash?: string;
857
+ entryCorrelationId?: string;
858
+ statusPurpose: string;
859
+ bitsPerStatus?: number;
860
+ statusMessage?: Array<BitstringStatusMessage>;
861
+ statusReference?: string | Array<string>;
862
+ }
863
+
864
+ type FindStatusListArgs = FindOptionsWhere<IStatusList2021Entity | IOAuthStatusListEntity>[];
865
+ type FindStatusListEntryArgs = FindOptionsWhere<IStatusListEntryEntity>[] | FindOptionsWhere<IStatusListEntryEntity>;
866
+ interface IStatusListEntryAvailableArgs {
867
+ statusListId?: string;
868
+ correlationId?: string;
869
+ statusListIndex: number | number[];
870
+ }
871
+ interface IGetStatusListEntryByIndexArgs {
872
+ statusListId?: string;
873
+ statusListCorrelationId?: string;
874
+ statusListIndex?: number;
875
+ entryCorrelationId?: string;
876
+ errorOnNotFound?: boolean;
877
+ }
878
+ interface IGetStatusListEntryByCredentialIdArgs {
879
+ statusListId?: string;
880
+ statusListCorrelationId?: string;
881
+ entryCorrelationId?: string;
882
+ credentialId: string;
883
+ errorOnNotFound?: boolean;
884
+ }
885
+ interface IGetStatusListEntriesArgs {
886
+ statusListId: string;
887
+ filter?: FindStatusListEntryArgs;
888
+ }
889
+ type IAddStatusListEntryArgs = IStatusListEntryEntity | IBitstringStatusListEntryEntity;
890
+ interface IGetStatusListArgs {
891
+ id?: string;
892
+ correlationId?: string;
893
+ }
894
+ type IRemoveStatusListArgs = IGetStatusListArgs;
895
+ interface IGetStatusListsArgs {
896
+ filter?: FindStatusListArgs;
897
+ }
898
+ interface IBaseStatusListArgs {
899
+ id: string;
900
+ correlationId: string;
901
+ driverType: StatusListDriverType;
902
+ credentialIdMode: StatusListCredentialIdMode;
903
+ length: number;
904
+ issuer: string | IIssuer;
905
+ type: StatusListType;
906
+ proofFormat: CredentialProofFormat;
907
+ statusListCredential?: StatusListCredential;
908
+ bitsPerStatus?: number;
909
+ }
910
+ type IStatusList2021Args = IBaseStatusListArgs & {
911
+ type: StatusListType.StatusList2021;
912
+ indexingDirection: StatusListIndexingDirection;
913
+ statusPurpose: StatusPurpose2021;
914
+ };
915
+ type IOAuthStatusListArgs = IBaseStatusListArgs & {
916
+ type: StatusListType.OAuthStatusList;
917
+ bitsPerStatus: number;
918
+ expiresAt?: Date;
919
+ };
920
+ type IBitstringStatusListArgs = IBaseStatusListArgs & {
921
+ type: StatusListType.BitstringStatusList;
922
+ statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
923
+ bitsPerStatus?: number;
924
+ validFrom?: Date;
925
+ validUntil?: Date;
926
+ ttl?: number;
927
+ };
928
+ type IAddStatusListArgs = IStatusList2021Args | IOAuthStatusListArgs | IBitstringStatusListArgs;
929
+ type IUpdateStatusListIndexArgs = IAddStatusListArgs;
930
+
931
+ type NonPersistedAuditLoggingEvent = Omit<AuditLoggingEvent, 'id' | 'type'>;
932
+ type NonPersistedActivityLoggingEvent = Omit<ActivityLoggingEvent, 'id' | 'type'>;
933
+
934
+ type FindAuditLoggingEventArgs = Array<PartialAuditLoggingEvent>;
935
+ type FindActivityLoggingEventArgs = Array<PartialActivityLoggingEvent>;
936
+ type StoreAuditEventArgs = {
937
+ event: NonPersistedAuditLoggingEvent;
938
+ };
939
+ type StoreActivityEventArgs = {
940
+ event: NonPersistedActivityLoggingEvent;
941
+ };
942
+ type GetAuditEventsArgs = {
943
+ filter?: FindAuditLoggingEventArgs;
944
+ };
945
+ type GetActivityEventsArgs = {
946
+ filter?: FindActivityLoggingEventArgs;
947
+ };
948
+
949
+ type StoreMachineStatePersistArgs = Omit<StoreMachineStateInfo, 'createdAt' | 'updatedAt'>;
950
+ type StoreMachineStatesFindActiveArgs = Partial<Pick<StoreMachineStateInfo, 'machineName' | 'tenantId' | 'instanceId'>>;
951
+ type FindMachineStatesFilterArgs = Array<Partial<Omit<StoreMachineStateInfo, 'state'>>>;
952
+ type StoreFindMachineStatesArgs = {
953
+ filter: FindMachineStatesFilterArgs;
954
+ };
955
+ type StoreMachineStateGetArgs = Pick<StoreMachineStateInfo, 'instanceId' | 'tenantId'>;
956
+ type StoreMachineStateDeleteArgs = StoreMachineStateGetArgs;
957
+ type StoreMachineStateDeleteExpiredArgs = {
958
+ machineName?: string;
959
+ tenantId?: string;
960
+ deleteDoneStates?: boolean;
961
+ };
962
+ interface StoreMachineStateInfo {
963
+ /**
964
+ * Unique instance ID of the machine
965
+ */
966
+ instanceId: string;
967
+ /**
968
+ * Session Id of the machine. Not necessarily unique
969
+ */
970
+ sessionId?: string;
971
+ /**
972
+ * Machine name
973
+ */
974
+ machineName: string;
975
+ /**
976
+ * The latest state name. Can be empty for a newly initialize machine
977
+ */
978
+ latestStateName?: string;
979
+ /**
980
+ * event types like SET_TOC, SET_FIRSTNAME, .... Will be xstate.init on a newly initialized machine
981
+ */
982
+ latestEventType: string;
983
+ /**
984
+ * Serialized Machine state
985
+ */
986
+ state: string;
987
+ /**
988
+ * Represents the creation date
989
+ */
990
+ createdAt: Date;
991
+ /**
992
+ * Represents the expiration date
993
+ */
994
+ expiresAt?: Date;
995
+ /**
996
+ * Represents the update date
997
+ */
998
+ updatedAt: Date;
999
+ /**
1000
+ * Represents a counter for tracking updates.
1001
+ */
1002
+ updatedCount: number;
1003
+ completedAt?: Date;
1004
+ tenantId?: string;
1005
+ }
1006
+
1007
+ declare const BaseEntity$6: typeof typeorm.BaseEntity;
1008
+
1009
+ declare class CorrelationIdentifierEntity extends BaseEntity$6 {
8
1010
  id: string;
9
1011
  type: CorrelationIdentifierType;
10
1012
  correlationId: string;
@@ -14,7 +1016,7 @@ declare class CorrelationIdentifierEntity extends BaseEntity {
14
1016
  validate(): Promise<void>;
15
1017
  }
16
1018
 
17
- declare class IdentityMetadataItemEntity extends BaseEntity implements IMetadataEntity {
1019
+ declare class IdentityMetadataItemEntity extends BaseEntity$8 implements IMetadataEntity {
18
1020
  id: string;
19
1021
  label: string;
20
1022
  valueType: string;
@@ -26,7 +1028,23 @@ declare class IdentityMetadataItemEntity extends BaseEntity implements IMetadata
26
1028
  validate(): Promise<void>;
27
1029
  }
28
1030
 
29
- declare class ContactMetadataItemEntity extends BaseEntity implements IMetadataEntity {
1031
+ declare class PartyTypeEntity {
1032
+ id: string;
1033
+ type: PartyTypeType;
1034
+ origin: PartyOrigin;
1035
+ name: string;
1036
+ description?: string;
1037
+ tenantId: string;
1038
+ parties: Array<PartyEntity>;
1039
+ createdAt: Date;
1040
+ lastUpdatedAt: Date;
1041
+ updateUpdatedDate(): void;
1042
+ validate(): Promise<void>;
1043
+ }
1044
+
1045
+ declare const BaseEntity$5: typeof typeorm.BaseEntity;
1046
+
1047
+ declare class ContactMetadataItemEntity extends BaseEntity$5 implements IMetadataEntity {
30
1048
  id: string;
31
1049
  label: string;
32
1050
  valueType: string;
@@ -38,7 +1056,9 @@ declare class ContactMetadataItemEntity extends BaseEntity implements IMetadataE
38
1056
  validate(): Promise<void>;
39
1057
  }
40
1058
 
41
- declare abstract class BaseContactEntity extends BaseEntity {
1059
+ declare const BaseEntity$4: typeof typeorm.BaseEntity;
1060
+
1061
+ declare abstract class BaseContactEntity extends BaseEntity$4 {
42
1062
  id: string;
43
1063
  createdAt: Date;
44
1064
  lastUpdatedAt: Date;
@@ -47,20 +1067,6 @@ declare abstract class BaseContactEntity extends BaseEntity {
47
1067
  updateUpdatedDate(): void;
48
1068
  }
49
1069
 
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
-
64
1070
  declare class PartyRelationshipEntity {
65
1071
  id: string;
66
1072
  left: PartyEntity;
@@ -75,21 +1081,23 @@ declare class PartyRelationshipEntity {
75
1081
  checkRelationshipSides(): Promise<void>;
76
1082
  }
77
1083
 
78
- declare class PartyTypeEntity {
1084
+ declare const BaseEntity$3: typeof typeorm.BaseEntity;
1085
+
1086
+ declare class ElectronicAddressEntity extends BaseEntity$3 {
79
1087
  id: string;
80
- type: PartyTypeType;
81
- origin: PartyOrigin;
82
- name: string;
83
- description?: string;
84
- tenantId: string;
85
- parties: Array<PartyEntity>;
1088
+ type: ElectronicAddressType;
1089
+ electronicAddress: string;
1090
+ party: PartyEntity;
1091
+ partyId?: string;
1092
+ ownerId?: string;
1093
+ tenantId?: string;
86
1094
  createdAt: Date;
87
1095
  lastUpdatedAt: Date;
88
1096
  updateUpdatedDate(): void;
89
1097
  validate(): Promise<void>;
90
1098
  }
91
1099
 
92
- declare class PhysicalAddressEntity extends BaseEntity {
1100
+ declare class PhysicalAddressEntity extends BaseEntity$8 {
93
1101
  id: string;
94
1102
  type: PhysicalAddressType;
95
1103
  streetName: string;
@@ -109,7 +1117,7 @@ declare class PhysicalAddressEntity extends BaseEntity {
109
1117
  validate(): Promise<void>;
110
1118
  }
111
1119
 
112
- declare class PartyEntity extends BaseEntity {
1120
+ declare class PartyEntity extends BaseEntity$8 {
113
1121
  id: string;
114
1122
  uri?: string;
115
1123
  ownerId?: string;
@@ -126,7 +1134,7 @@ declare class PartyEntity extends BaseEntity {
126
1134
  validate(): Promise<void>;
127
1135
  }
128
1136
 
129
- declare class IdentityEntity extends BaseEntity {
1137
+ declare class IdentityEntity extends BaseEntity$8 {
130
1138
  id: string;
131
1139
  alias: string;
132
1140
  origin: IdentityOrigin;
@@ -144,7 +1152,9 @@ declare class IdentityEntity extends BaseEntity {
144
1152
  validate(): Promise<void>;
145
1153
  }
146
1154
 
147
- declare class ConnectionEntity extends BaseEntity {
1155
+ declare const BaseEntity$2: typeof typeorm.BaseEntity;
1156
+
1157
+ declare class ConnectionEntity extends BaseEntity$2 {
148
1158
  id: string;
149
1159
  type: ConnectionType;
150
1160
  tenantId?: string;
@@ -153,98 +1163,20 @@ declare class ConnectionEntity extends BaseEntity {
153
1163
  identity: IdentityEntity;
154
1164
  }
155
1165
 
156
- declare abstract class BaseConfigEntity extends BaseEntity {
157
- id: string;
158
- connection?: ConnectionEntity;
159
- }
160
-
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
- }
1166
+ declare const BaseEntity$1: typeof typeorm.BaseEntity;
211
1167
 
212
- declare class AuditEventEntity extends BaseEntity {
1168
+ declare abstract class BaseConfigEntity extends BaseEntity$1 {
213
1169
  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;
1170
+ connection?: ConnectionEntity;
239
1171
  }
240
1172
 
241
- declare class ImageDimensionsEntity extends BaseEntity {
1173
+ declare class ImageDimensionsEntity extends BaseEntity$8 {
242
1174
  id: string;
243
1175
  width: number;
244
1176
  height: number;
245
1177
  }
246
1178
 
247
- declare class ImageAttributesEntity extends BaseEntity {
1179
+ declare class ImageAttributesEntity extends BaseEntity$8 {
248
1180
  id: string;
249
1181
  uri?: string;
250
1182
  dataUri?: string;
@@ -254,19 +1186,21 @@ declare class ImageAttributesEntity extends BaseEntity {
254
1186
  validate(): Promise<undefined>;
255
1187
  }
256
1188
 
257
- declare class BackgroundAttributesEntity extends BaseEntity {
1189
+ declare class BackgroundAttributesEntity extends BaseEntity$8 {
258
1190
  id: string;
259
1191
  color?: string;
260
1192
  image?: ImageAttributesEntity;
261
1193
  validate(): Promise<undefined>;
262
1194
  }
263
1195
 
264
- declare class TextAttributesEntity extends BaseEntity {
1196
+ declare class TextAttributesEntity extends BaseEntity$8 {
265
1197
  id: string;
266
1198
  color?: string;
267
1199
  validate(): Promise<undefined>;
268
1200
  }
269
1201
 
1202
+ declare const BaseEntity: typeof typeorm.BaseEntity;
1203
+
270
1204
  declare class BaseLocaleBrandingEntity extends BaseEntity {
271
1205
  id: string;
272
1206
  alias?: string;
@@ -281,7 +1215,27 @@ declare class BaseLocaleBrandingEntity extends BaseEntity {
281
1215
  validate(): Promise<undefined>;
282
1216
  }
283
1217
 
284
- declare class CredentialClaimsEntity extends BaseEntity {
1218
+ declare class DidAuthConfigEntity extends BaseConfigEntity {
1219
+ identifier: string;
1220
+ redirectUrl: string;
1221
+ sessionId: string;
1222
+ ownerId?: string;
1223
+ tenantId?: string;
1224
+ }
1225
+
1226
+ declare class OpenIdConfigEntity extends BaseConfigEntity {
1227
+ clientId: string;
1228
+ clientSecret: string;
1229
+ scopes: Array<string>;
1230
+ issuer: string;
1231
+ redirectUrl: string;
1232
+ dangerouslyAllowInsecureHttpRequests: boolean;
1233
+ clientAuthMethod: 'basic' | 'post' | undefined;
1234
+ ownerId?: string;
1235
+ tenantId?: string;
1236
+ }
1237
+
1238
+ declare class CredentialClaimsEntity extends BaseEntity$8 {
285
1239
  id: string;
286
1240
  key: string;
287
1241
  name: string;
@@ -295,7 +1249,7 @@ declare class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity {
295
1249
  credentialBrandingId: string;
296
1250
  }
297
1251
 
298
- declare class CredentialBrandingEntity extends BaseEntity {
1252
+ declare class CredentialBrandingEntity extends BaseEntity$8 {
299
1253
  id: string;
300
1254
  vcHash: string;
301
1255
  issuerCorrelationId: string;
@@ -306,16 +1260,7 @@ declare class CredentialBrandingEntity extends BaseEntity {
306
1260
  validate(): Promise<undefined>;
307
1261
  }
308
1262
 
309
- declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
310
- issuerBranding: IssuerBrandingEntity;
311
- clientUri?: string;
312
- tosUri?: string;
313
- policyUri?: string;
314
- contacts?: Array<string>;
315
- issuerBrandingId: string;
316
- }
317
-
318
- declare class IssuerBrandingEntity extends BaseEntity {
1263
+ declare class IssuerBrandingEntity extends BaseEntity$8 {
319
1264
  id: string;
320
1265
  issuerCorrelationId: string;
321
1266
  localeBranding: Array<IssuerLocaleBrandingEntity>;
@@ -325,6 +1270,15 @@ declare class IssuerBrandingEntity extends BaseEntity {
325
1270
  validate(): Promise<undefined>;
326
1271
  }
327
1272
 
1273
+ declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
1274
+ issuerBranding: IssuerBrandingEntity;
1275
+ clientUri?: string;
1276
+ tosUri?: string;
1277
+ policyUri?: string;
1278
+ contacts?: Array<string>;
1279
+ issuerBrandingId: string;
1280
+ }
1281
+
328
1282
  /**
329
1283
  * @class MachineStateInfoEntity
330
1284
  * Represents a machine state. It allows to continue a machine at a later point in time at the point it was left of
@@ -342,7 +1296,7 @@ declare class IssuerBrandingEntity extends BaseEntity {
342
1296
  * @param {Date} [completedAt] - The date and time when the machine state was completed. (optional)
343
1297
  * @param {string} [tenantId] - The ID of the tenant associated with the machine state. (optional)
344
1298
  */
345
- declare class MachineStateInfoEntity extends BaseEntity {
1299
+ declare class MachineStateInfoEntity extends BaseEntity$8 {
346
1300
  instanceId: string;
347
1301
  sessionId?: string;
348
1302
  machineName: string;
@@ -357,212 +1311,92 @@ declare class MachineStateInfoEntity extends BaseEntity {
357
1311
  tenantId?: string;
358
1312
  }
359
1313
 
360
- declare class Oid4vcStateEntity<StateType> extends BaseEntity {
1314
+ declare class AuditEventEntity extends BaseEntity$8 {
361
1315
  id: string;
362
- lookups?: Array<string>;
363
- stateId?: string;
364
- correlationId?: string;
365
- state: StateType;
1316
+ timestamp: Date;
1317
+ type: LoggingEventType;
1318
+ level: LogLevel;
1319
+ correlationId: string;
1320
+ system: System;
1321
+ subSystemType: SubSystem;
1322
+ actionType: ActionType;
1323
+ actionSubType: ActionSubType;
1324
+ initiatorType: InitiatorType;
1325
+ systemCorrelationIdType?: SystemCorrelationIdType;
1326
+ systemCorrelationId?: string;
1327
+ systemAlias?: string;
1328
+ partyCorrelationType?: PartyCorrelationType;
1329
+ partyCorrelationId?: string;
1330
+ partyAlias?: string;
1331
+ description: string;
1332
+ credentialType?: CredentialType;
1333
+ credentialHash?: string;
1334
+ parentCredentialHash?: string;
1335
+ originalCredential?: string;
1336
+ sharePurpose?: string;
1337
+ data?: string;
1338
+ diagnosticData?: string;
366
1339
  createdAt: Date;
367
- updatedAt: Date;
368
- expiresAt?: Date;
369
- tenantId?: string;
1340
+ lastUpdatedAt: Date;
370
1341
  }
371
1342
 
372
- declare class DcqlQueryItemEntity extends BaseEntity {
1343
+ declare class PresentationDefinitionItemEntity extends BaseEntity$8 {
373
1344
  id: string;
374
- queryId: string;
1345
+ definitionId: string;
375
1346
  version: string;
376
1347
  tenantId?: string;
377
1348
  purpose?: string;
378
1349
  name?: string;
379
- query: string;
1350
+ definitionPayload: string;
1351
+ dcqlPayload: string;
380
1352
  createdAt: Date;
381
1353
  lastUpdatedAt: Date;
382
1354
  updateUpdatedDate(): void;
383
1355
  }
384
1356
 
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 {
396
- id: string;
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;
413
- expiresAt?: Date;
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 {
1357
+ declare class Oid4vcStateEntity<StateType> extends BaseEntity$8 {
425
1358
  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;
1359
+ lookups?: Array<string>;
1360
+ stateId?: string;
522
1361
  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;
1362
+ state: StateType;
1363
+ createdAt: Date;
1364
+ updatedAt: Date;
548
1365
  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;
1366
+ tenantId?: string;
1367
+ }
560
1368
 
561
- declare class BitstringStatusListEntryEntity extends StatusListEntryEntity {
562
- statusPurpose: string;
563
- bitsPerStatus?: number;
564
- statusMessage?: Array<BitstringStatusMessage>;
565
- statusReference?: string | string[];
1369
+ declare abstract class AbstractContactStore {
1370
+ abstract getParty(args: GetPartyArgs): Promise<Party>;
1371
+ abstract getParties(args?: GetPartiesArgs): Promise<Array<Party>>;
1372
+ abstract addParty(args: AddPartyArgs): Promise<Party>;
1373
+ abstract updateParty(args: UpdatePartyArgs): Promise<Party>;
1374
+ abstract removeParty(args: RemovePartyArgs): Promise<void>;
1375
+ abstract getIdentity(args: GetIdentityArgs): Promise<Identity>;
1376
+ abstract getIdentities(args?: GetIdentitiesArgs): Promise<Array<Identity>>;
1377
+ abstract addIdentity(args: AddIdentityArgs): Promise<Identity>;
1378
+ abstract updateIdentity(args: UpdateIdentityArgs): Promise<Identity>;
1379
+ abstract removeIdentity(args: RemoveIdentityArgs): Promise<void>;
1380
+ abstract getRelationship(args: GetRelationshipArgs): Promise<PartyRelationship>;
1381
+ abstract getRelationships(args?: GetRelationshipsArgs): Promise<Array<PartyRelationship>>;
1382
+ abstract addRelationship(args: AddRelationshipArgs): Promise<PartyRelationship>;
1383
+ abstract updateRelationship(args: UpdateRelationshipArgs): Promise<PartyRelationship>;
1384
+ abstract removeRelationship(args: RemoveRelationshipArgs): Promise<void>;
1385
+ abstract getPartyType(args: GetPartyTypeArgs): Promise<PartyType>;
1386
+ abstract getPartyTypes(args?: GetPartyTypesArgs): Promise<Array<PartyType>>;
1387
+ abstract addPartyType(args: AddPartyTypeArgs): Promise<PartyType>;
1388
+ abstract updatePartyType(args: UpdatePartyTypeArgs): Promise<PartyType>;
1389
+ abstract removePartyType(args: RemovePartyTypeArgs): Promise<void>;
1390
+ abstract getElectronicAddress(args: GetElectronicAddressArgs): Promise<ElectronicAddress>;
1391
+ abstract getElectronicAddresses(args?: GetElectronicAddressesArgs): Promise<Array<ElectronicAddress>>;
1392
+ abstract addElectronicAddress(args: AddElectronicAddressArgs): Promise<ElectronicAddress>;
1393
+ abstract updateElectronicAddress(args: UpdateElectronicAddressArgs): Promise<ElectronicAddress>;
1394
+ abstract removeElectronicAddress(args: RemoveElectronicAddressArgs): Promise<void>;
1395
+ abstract getPhysicalAddress(args: GetPhysicalAddressArgs): Promise<PhysicalAddress>;
1396
+ abstract getPhysicalAddresses(args?: GetPhysicalAddressesArgs): Promise<Array<PhysicalAddress>>;
1397
+ abstract addPhysicalAddress(args: AddPhysicalAddressArgs): Promise<PhysicalAddress>;
1398
+ abstract updatePhysicalAddress(args: UpdatePhysicalAddressArgs): Promise<PhysicalAddress>;
1399
+ abstract removePhysicalAddress(args: RemovePhysicalAddressArgs): Promise<void>;
566
1400
  }
567
1401
 
568
1402
  declare class ContactStore extends AbstractContactStore {
@@ -609,6 +1443,14 @@ declare class ContactStore extends AbstractContactStore {
609
1443
  private buildMetadataCondition;
610
1444
  }
611
1445
 
1446
+ declare abstract class AbstractDigitalCredentialStore {
1447
+ abstract getCredential(args: GetCredentialArgs): Promise<DigitalCredential>;
1448
+ abstract getCredentials(args?: GetCredentialsArgs): Promise<GetCredentialsResponse>;
1449
+ abstract addCredential(args: AddCredentialArgs): Promise<DigitalCredential>;
1450
+ abstract updateCredentialState(args: UpdateCredentialStateArgs): Promise<DigitalCredential>;
1451
+ abstract removeCredential(args: RemoveCredentialArgs): Promise<boolean>;
1452
+ }
1453
+
612
1454
  declare class DigitalCredentialStore extends AbstractDigitalCredentialStore {
613
1455
  private readonly dbConnection;
614
1456
  private dcRepo;
@@ -623,6 +1465,25 @@ declare class DigitalCredentialStore extends AbstractDigitalCredentialStore {
623
1465
  private assertValidDigitalCredential;
624
1466
  }
625
1467
 
1468
+ declare abstract class AbstractIssuanceBrandingStore {
1469
+ abstract addCredentialBranding(args: IAddCredentialBrandingArgs): Promise<ICredentialBranding>;
1470
+ abstract getCredentialBranding(args?: IGetCredentialBrandingArgs): Promise<Array<ICredentialBranding>>;
1471
+ abstract updateCredentialBranding(args: IUpdateCredentialBrandingArgs): Promise<ICredentialBranding>;
1472
+ abstract removeCredentialBranding(args: IRemoveCredentialBrandingArgs): Promise<void>;
1473
+ abstract addCredentialLocaleBranding(args: IAddCredentialLocaleBrandingArgs): Promise<ICredentialBranding>;
1474
+ abstract getCredentialLocaleBranding(args?: IGetCredentialLocaleBrandingArgs): Promise<Array<ICredentialLocaleBranding>>;
1475
+ abstract updateCredentialLocaleBranding(args: IUpdateCredentialLocaleBrandingArgs): Promise<ICredentialLocaleBranding>;
1476
+ abstract removeCredentialLocaleBranding(args: IRemoveCredentialLocaleBrandingArgs): Promise<void>;
1477
+ abstract addIssuerBranding(args: IAddIssuerBrandingArgs): Promise<IIssuerBranding>;
1478
+ abstract getIssuerBranding(args?: IGetIssuerBrandingArgs): Promise<Array<IIssuerBranding>>;
1479
+ abstract updateIssuerBranding(args: IUpdateIssuerBrandingArgs): Promise<IIssuerBranding>;
1480
+ abstract removeIssuerBranding(args: IRemoveIssuerBrandingArgs): Promise<void>;
1481
+ abstract addIssuerLocaleBranding(args: IAddIssuerLocaleBrandingArgs): Promise<IIssuerBranding>;
1482
+ abstract getIssuerLocaleBranding(args?: IGetIssuerLocaleBrandingArgs): Promise<Array<IIssuerLocaleBranding>>;
1483
+ abstract updateIssuerLocaleBranding(args: IUpdateIssuerLocaleBrandingArgs): Promise<IIssuerLocaleBranding>;
1484
+ abstract removeIssuerLocaleBranding(args: IRemoveIssuerLocaleBrandingArgs): Promise<void>;
1485
+ }
1486
+
626
1487
  declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
627
1488
  private readonly dbConnection;
628
1489
  constructor(dbConnection: OrPromise<DataSource>);
@@ -693,6 +1554,13 @@ declare class StatusListStore implements IStatusListStore {
693
1554
  getStatusListEntryRepo(type?: StatusListType): Promise<Repository<StatusListEntryEntity | BitstringStatusListEntryEntity>>;
694
1555
  }
695
1556
 
1557
+ declare abstract class AbstractEventLoggerStore {
1558
+ abstract getAuditEvents(args: GetAuditEventsArgs): Promise<Array<AuditLoggingEvent>>;
1559
+ abstract getActivityEvents(args: GetActivityEventsArgs): Promise<Array<ActivityLoggingEvent>>;
1560
+ abstract storeAuditEvent(args: StoreAuditEventArgs): Promise<AuditLoggingEvent>;
1561
+ abstract storeActivityEvent(args: StoreActivityEventArgs): Promise<ActivityLoggingEvent>;
1562
+ }
1563
+
696
1564
  declare class EventLoggerStore extends AbstractEventLoggerStore {
697
1565
  private readonly dbConnection;
698
1566
  constructor(dbConnection: OrPromise<DataSource>);
@@ -702,6 +1570,57 @@ declare class EventLoggerStore extends AbstractEventLoggerStore {
702
1570
  storeActivityEvent: (args: StoreActivityEventArgs) => Promise<ActivityLoggingEvent>;
703
1571
  }
704
1572
 
1573
+ /**
1574
+ * Represents an abstract class for storing machine states.
1575
+ * This class provides methods for persisting, retrieving, and deleting machine states.
1576
+ *
1577
+ * @interface
1578
+ */
1579
+ declare abstract class IAbstractMachineStateStore {
1580
+ /**
1581
+ * Persists the machine state.
1582
+ *
1583
+ * @param {StoreMachineStatePersistArgs} state - The object containing the machine state to persist.
1584
+ * @return {Promise<StoreMachineStateInfo>} - A Promise that resolves to the information about the persisted machine state.
1585
+ */
1586
+ abstract persistMachineState(state: StoreMachineStatePersistArgs): Promise<StoreMachineStateInfo>;
1587
+ /**
1588
+ * Finds active machine states based on the given arguments.
1589
+ *
1590
+ * @param {StoreMachineStatesFindActiveArgs} args - The arguments for finding active machine states.
1591
+ * @return {Promise<Array<StoreMachineStateInfo>>} - A promise that resolves with an array of active machine states.
1592
+ */
1593
+ abstract findActiveMachineStates(args: StoreMachineStatesFindActiveArgs): Promise<Array<StoreMachineStateInfo>>;
1594
+ /**
1595
+ * Retrieves the state of a particular machine.
1596
+ *
1597
+ * @param {StoreMachineStateGetArgs} args - The arguments for retrieving the machine state.
1598
+ * @returns {Promise<StoreMachineStateInfo>} - A promise that resolves to the machine state information.
1599
+ */
1600
+ abstract getMachineState(args: StoreMachineStateGetArgs): Promise<StoreMachineStateInfo>;
1601
+ /**
1602
+ * Finds the machine states based on the given arguments.
1603
+ *
1604
+ * @param {StoreFindMachineStatesArgs} [args] - The arguments to filter the machine states.
1605
+ * @returns {Promise<Array<StoreMachineStateInfo>>} - A promise that resolves to an array of machine state information.
1606
+ */
1607
+ abstract findMachineStates(args?: StoreFindMachineStatesArgs): Promise<Array<StoreMachineStateInfo>>;
1608
+ /**
1609
+ * Deletes a machine state.
1610
+ *
1611
+ * @param {StoreMachineStateDeleteArgs} args - The arguments for deleting the machine state.
1612
+ * @return {Promise<boolean>} - A promise that resolves to a boolean indicating if the machine state was successfully deleted or not.
1613
+ */
1614
+ abstract deleteMachineState(args: StoreMachineStateDeleteArgs): Promise<boolean>;
1615
+ /**
1616
+ * Deletes expired machine states from the database.
1617
+ *
1618
+ * @param {StoreMachineStateDeleteExpiredArgs} args - The arguments for deleting expired machine states.
1619
+ * @return {Promise<number>} - A promise that resolves to the number of deleted machine states.
1620
+ */
1621
+ abstract deleteExpiredMachineStates(args: StoreMachineStateDeleteExpiredArgs): Promise<number>;
1622
+ }
1623
+
705
1624
  /**
706
1625
  * Represents a data store for managing machine states.
707
1626
  */
@@ -718,18 +1637,29 @@ declare class MachineStateStore extends IAbstractMachineStateStore {
718
1637
  static machineStateInfoEntityFrom: (machineStateInfo: StoreMachineStateInfo | StoreMachineStatePersistArgs) => MachineStateInfoEntity;
719
1638
  }
720
1639
 
1640
+ declare abstract class AbstractPDStore {
1641
+ abstract hasDefinition(args: GetDefinitionArgs): Promise<boolean>;
1642
+ abstract hasDefinitions(args: GetDefinitionsArgs): Promise<boolean>;
1643
+ abstract getDefinition(args: GetDefinitionArgs): Promise<PresentationDefinitionItem>;
1644
+ abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<PresentationDefinitionItem>>;
1645
+ abstract addDefinition(args: AddDefinitionArgs): Promise<PresentationDefinitionItem>;
1646
+ abstract updateDefinition(args: UpdateDefinitionArgs): Promise<PresentationDefinitionItem>;
1647
+ abstract deleteDefinition(args: DeleteDefinitionArgs): Promise<void>;
1648
+ abstract deleteDefinitions(args: DeleteDefinitionsArgs): Promise<number>;
1649
+ }
1650
+
721
1651
  declare class PDStore extends AbstractPDStore {
722
1652
  private readonly dbConnection;
723
1653
  constructor(dbConnection: OrPromise<DataSource>);
724
- getDefinition: (args: GetDefinitionArgs) => Promise<DcqlQueryItem>;
1654
+ getDefinition: (args: GetDefinitionArgs) => Promise<PresentationDefinitionItem>;
725
1655
  hasDefinition: (args: HasDefinitionArgs) => Promise<boolean>;
726
1656
  hasDefinitions: (args: HasDefinitionsArgs) => Promise<boolean>;
727
- getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<DcqlQueryItem>>;
728
- addDefinition: (item: NonPersistedDcqlQueryItem) => Promise<DcqlQueryItem>;
729
- updateDefinition: (item: DcqlQueryItem) => Promise<DcqlQueryItem>;
1657
+ getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<PresentationDefinitionItem>>;
1658
+ addDefinition: (item: NonPersistedPresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1659
+ updateDefinition: (item: PresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
730
1660
  deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
731
1661
  deleteDefinitions: (args: DeleteDefinitionsArgs) => Promise<number>;
732
- findIds: (pdRepository: Repository<DcqlQueryItemEntity>, filter: Array<DcqlQueryItemFilter> | undefined) => Promise<Array<DcqlQueryItemEntity>>;
1662
+ findIds: (pdRepository: Repository<PresentationDefinitionItemEntity>, filter: Array<PresentationDefinitionItemFilter> | undefined) => Promise<Array<PresentationDefinitionItemEntity>>;
733
1663
  }
734
1664
 
735
1665
  declare class CreateContacts1659463079429 implements MigrationInterface {
@@ -738,37 +1668,37 @@ declare class CreateContacts1659463079429 implements MigrationInterface {
738
1668
  down(queryRunner: QueryRunner): Promise<void>;
739
1669
  }
740
1670
 
741
- declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
1671
+ declare class CreateIssuanceBranding1659463079429 implements MigrationInterface {
742
1672
  name: string;
743
1673
  up(queryRunner: QueryRunner): Promise<void>;
744
1674
  down(queryRunner: QueryRunner): Promise<void>;
745
1675
  }
746
1676
 
747
- declare class FixCredentialClaimsReferencesUuid1741895822987 implements MigrationInterface {
1677
+ declare class CreateStatusList1693866470000 implements MigrationInterface {
748
1678
  name: string;
749
1679
  up(queryRunner: QueryRunner): Promise<void>;
750
1680
  down(queryRunner: QueryRunner): Promise<void>;
751
1681
  }
752
1682
 
753
- declare class AddBitstringStatusListEnum1741895823000 implements MigrationInterface {
1683
+ declare class CreateAuditEvents1701635835330 implements MigrationInterface {
754
1684
  name: string;
755
1685
  up(queryRunner: QueryRunner): Promise<void>;
756
1686
  down(queryRunner: QueryRunner): Promise<void>;
757
1687
  }
758
1688
 
759
- declare class CreateAuditEvents1701635835330 implements MigrationInterface {
1689
+ declare class CreateDigitalCredential1708525189000 implements MigrationInterface {
760
1690
  name: string;
761
1691
  up(queryRunner: QueryRunner): Promise<void>;
762
1692
  down(queryRunner: QueryRunner): Promise<void>;
763
1693
  }
764
1694
 
765
- declare class CreateDigitalCredential1708525189000 implements MigrationInterface {
1695
+ declare class CreateMachineStateStore1708098041262 implements MigrationInterface {
766
1696
  name: string;
767
1697
  up(queryRunner: QueryRunner): Promise<void>;
768
1698
  down(queryRunner: QueryRunner): Promise<void>;
769
1699
  }
770
1700
 
771
- declare class CreateMachineStateStore1708098041262 implements MigrationInterface {
1701
+ declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
772
1702
  name: string;
773
1703
  up(queryRunner: QueryRunner): Promise<void>;
774
1704
  down(queryRunner: QueryRunner): Promise<void>;
@@ -782,8 +1712,8 @@ declare class CreateMachineStateStore1708098041262 implements MigrationInterface
782
1712
  * @public
783
1713
  */
784
1714
  declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
785
- declare const DataStoreIssuanceBrandingMigrations: (typeof FixCredentialClaimsReferencesUuid1741895822987)[];
786
- declare const DataStoreStatusListMigrations: (typeof AddBitstringStatusListEnum1741895823000)[];
1715
+ declare const DataStoreIssuanceBrandingMigrations: (typeof CreateIssuanceBranding1659463079429)[];
1716
+ declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693866470000)[];
787
1717
  declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
788
1718
  declare const DataStoreDigitalCredentialMigrations: (typeof CreateDigitalCredential1708525189000)[];
789
1719
  declare const DataStoreMachineStateMigrations: (typeof CreateMachineStateStore1708098041262)[];
@@ -845,6 +1775,7 @@ declare const isDidAuthConfig: (config: NonPersistedConnectionConfig | BaseConfi
845
1775
 
846
1776
  declare function isHex(input: string): boolean;
847
1777
  declare function parseRawDocument(raw: string): OriginalVerifiableCredential | OriginalVerifiablePresentation;
1778
+ declare function ensureRawDocument(input: string | object): string;
848
1779
  declare const nonPersistedDigitalCredentialEntityFromAddArgs: (addCredentialArgs: AddCredentialArgs) => NonPersistedDigitalCredential;
849
1780
  declare const digitalCredentialFrom: (credentialEntity: DigitalCredentialEntity) => DigitalCredential;
850
1781
  declare const digitalCredentialsFrom: (credentialEntities: Array<DigitalCredentialEntity>) => DigitalCredential[];
@@ -867,18 +1798,18 @@ declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBr
867
1798
  declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
868
1799
  declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
869
1800
 
870
- declare const dcqlQueryItemFrom: (entity: DcqlQueryItemEntity) => DcqlQueryItem;
871
- declare const dcqlQueryEntityItemFrom: (item: NonPersistedDcqlQueryItem) => DcqlQueryItemEntity;
872
- declare function isPresentationDefinitionEqual(base: PartialDcqlQueryItem, compare: PartialDcqlQueryItem): boolean;
1801
+ declare const presentationDefinitionItemFrom: (entity: PresentationDefinitionItemEntity) => PresentationDefinitionItem;
1802
+ declare const presentationDefinitionEntityItemFrom: (item: NonPersistedPresentationDefinitionItem) => PresentationDefinitionItemEntity;
1803
+ declare function isPresentationDefinitionEqual(base: PartialPresentationDefinitionItem, compare: PartialPresentationDefinitionItem): boolean;
873
1804
 
874
1805
  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)[];
875
1806
  declare const DataStoreOid4vcStateEntities: (typeof Oid4vcStateEntity)[];
876
1807
  declare const DataStoreIssuanceBrandingEntities: (typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity)[];
877
- declare const DataStorePresentationDefinitionEntities: (typeof DcqlQueryItemEntity)[];
1808
+ declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
878
1809
  declare const DataStoreStatusListEntities: (typeof StatusListEntity | typeof StatusListEntryEntity)[];
879
1810
  declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
880
1811
  declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
881
1812
  declare const DataStoreMachineStateEntities: (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)[];
1813
+ 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)[];
883
1814
 
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 };
1815
+ 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 BitstringStatusListArgs, BitstringStatusListEntity, type BitstringStatusListEntryCredentialStatus, BitstringStatusListEntryEntity, type BitstringStatusMessage, type BitstringStatusPurpose, 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 IBitstringStatusListArgs, type IBitstringStatusListEntity, type IBitstringStatusListEntryEntity, 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 IOAuthStatusListArgs, 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 IStatusList2021Args, 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 };