@sphereon/ssi-sdk.data-store 0.34.1-next.88 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3776 -3801
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +339 -1270
- package/dist/index.d.ts +339 -1270
- package/dist/index.js +3707 -3732
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
- package/src/__tests__/contact.entities.test.ts +4 -10
- package/src/__tests__/contact.store.test.ts +11 -6
- package/src/__tests__/digitalCredential.entities.test.ts +13 -6
- package/src/__tests__/digitalCredential.store.test.ts +6 -6
- package/src/__tests__/eventLogger.entities.test.ts +3 -3
- package/src/__tests__/eventLogger.store.test.ts +9 -4
- package/src/__tests__/issuanceBranding.entities.test.ts +2 -2
- package/src/__tests__/issuanceBranding.store.test.ts +3 -3
- package/src/__tests__/machineState.entities.test.ts +1 -1
- package/src/__tests__/machineState.store.test.ts +1 -1
- package/src/__tests__/pd-manager.entities.test.ts +27 -98
- package/src/__tests__/pd-manager.store.test.ts +151 -101
- package/src/__tests__/statusList.entities.test.ts +4 -4
- package/src/__tests__/statusList.store.test.ts +3 -3
- package/src/contact/ContactStore.ts +35 -35
- package/src/digitalCredential/DigitalCredentialStore.ts +6 -7
- package/src/entities/contact/BaseConfigEntity.ts +2 -2
- package/src/entities/contact/BaseContactEntity.ts +4 -5
- package/src/entities/contact/ConnectionEntity.ts +4 -4
- package/src/entities/contact/ContactMetadataItemEntity.ts +3 -4
- package/src/entities/contact/CorrelationIdentifierEntity.ts +3 -4
- package/src/entities/contact/DidAuthConfigEntity.ts +1 -2
- package/src/entities/contact/ElectronicAddressEntity.ts +15 -5
- package/src/entities/contact/IdentityEntity.ts +12 -11
- package/src/entities/contact/IdentityMetadataItemEntity.ts +3 -3
- package/src/entities/contact/NaturalPersonEntity.ts +5 -5
- package/src/entities/contact/OrganizationEntity.ts +1 -1
- package/src/entities/contact/PartyEntity.ts +7 -7
- package/src/entities/contact/PartyRelationshipEntity.ts +8 -8
- package/src/entities/contact/PartyTypeEntity.ts +4 -4
- package/src/entities/contact/PhysicalAddressEntity.ts +3 -3
- package/src/entities/digitalCredential/DigitalCredentialEntity.ts +4 -3
- package/src/entities/eventLogger/AuditEventEntity.ts +2 -2
- package/src/entities/issuanceBranding/BackgroundAttributesEntity.ts +2 -2
- package/src/entities/issuanceBranding/BaseLocaleBrandingEntity.ts +6 -7
- package/src/entities/issuanceBranding/CredentialBrandingEntity.ts +2 -2
- package/src/entities/issuanceBranding/CredentialClaimsEntity.ts +2 -2
- package/src/entities/issuanceBranding/CredentialLocaleBrandingEntity.ts +2 -2
- package/src/entities/issuanceBranding/ImageAttributesEntity.ts +2 -2
- package/src/entities/issuanceBranding/IssuerBrandingEntity.ts +2 -2
- package/src/entities/issuanceBranding/IssuerLocaleBrandingEntity.ts +3 -3
- package/src/entities/issuanceBranding/TextAttributesEntity.ts +1 -1
- package/src/entities/machineState/MachineStateInfoEntity.ts +1 -1
- package/src/entities/presentationDefinition/{PresentationDefinitionItemEntity.ts → DcqlQueryItemEntity.ts} +10 -14
- package/src/entities/statusList/BitstringStatusListEntryEntity.ts +1 -1
- package/src/entities/statusList/StatusListEntities.ts +3 -4
- package/src/eventLogger/EventLoggerStore.ts +2 -2
- package/src/index.ts +21 -26
- package/src/issuanceBranding/IssuanceBrandingStore.ts +25 -25
- package/src/machineState/MachineStateStore.ts +7 -7
- package/src/migrations/generic/1-CreateContacts.ts +1 -1
- package/src/migrations/generic/10-CreatePresentationDefinitions.ts +1 -1
- package/src/migrations/generic/11-FixCredentialClaimsReferenceUuid.ts +2 -2
- package/src/migrations/generic/12-CreateBitstringStatusList.ts +32 -2
- package/src/migrations/generic/13-CreateDcqlQueryItem.ts +67 -0
- package/src/migrations/generic/2-CreateIssuanceBranding.ts +1 -1
- package/src/migrations/generic/3-CreateContacts.ts +2 -2
- package/src/migrations/generic/4-CreateStatusList.ts +1 -1
- package/src/migrations/generic/5-CreateAuditEvents.ts +2 -2
- package/src/migrations/generic/6-CreateDigitalCredential.ts +1 -1
- package/src/migrations/generic/7-CreateMachineStateStore.ts +1 -1
- package/src/migrations/generic/8-CreateContacts.ts +1 -1
- package/src/migrations/generic/9-CreateContacts.ts +1 -1
- package/src/migrations/generic/index.ts +10 -5
- package/src/migrations/postgres/1659463079428-CreateContacts.ts +1 -1
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +1 -1
- package/src/migrations/postgres/1690925872592-CreateContacts.ts +1 -1
- package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +1 -1
- package/src/migrations/postgres/1726588800000-CreateDcqlQueryItem.ts +25 -0
- package/src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts +14 -2
- package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +1 -1
- package/src/migrations/sqlite/1726617600000-CreateDcqlQueryItem.ts +24 -0
- package/src/presentationDefinition/PDStore.ts +45 -45
- package/src/statusList/IStatusListStore.ts +1 -1
- package/src/statusList/StatusListStore.ts +3 -3
- package/src/types/index.ts +0 -12
- package/src/types/statusList/IAbstractStatusListStore.ts +9 -9
- package/src/utils/ValidatorUtils.ts +1 -1
- package/src/utils/contact/MappingUtils.ts +10 -10
- package/src/utils/digitalCredential/MappingUtils.ts +3 -21
- package/src/utils/eventLogger/MappingUtils.ts +2 -2
- package/src/utils/issuanceBranding/MappingUtils.ts +13 -13
- package/src/utils/presentationDefinition/MappingUtils.ts +31 -22
- package/src/utils/statusList/MappingUtils.ts +1 -1
- package/src/contact/AbstractContactStore.ts +0 -71
- package/src/digitalCredential/AbstractDigitalCredentialStore.ts +0 -21
- package/src/eventLogger/AbstractEventLoggerStore.ts +0 -9
- package/src/issuanceBranding/AbstractIssuanceBrandingStore.ts +0 -41
- package/src/machineState/IAbstractMachineStateStore.ts +0 -65
- package/src/presentationDefinition/AbstractPDStore.ts +0 -20
- package/src/types/contact/IAbstractContactStore.ts +0 -161
- package/src/types/contact/contact.ts +0 -295
- package/src/types/contact/index.ts +0 -2
- package/src/types/digitalCredential/IAbstractDigitalCredentialStore.ts +0 -43
- package/src/types/digitalCredential/enums.ts +0 -70
- package/src/types/digitalCredential/index.ts +0 -3
- package/src/types/digitalCredential/types.ts +0 -39
- package/src/types/eventLogger/IAbstractEventLoggerStore.ts +0 -22
- package/src/types/eventLogger/eventLogger.ts +0 -4
- package/src/types/issuanceBranding/IAbstractIssuanceBrandingStore.ts +0 -85
- package/src/types/issuanceBranding/issuanceBranding.ts +0 -138
- package/src/types/machineState/IAbstractMachineStateStore.ts +0 -68
- package/src/types/presentationDefinition/IAbstractPDStore.ts +0 -25
- package/src/types/presentationDefinition/presentationDefinition.ts +0 -19
- package/src/types/validation/validation.ts +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,1012 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { IPresentationDefinition } from '@sphereon/pex';
|
|
1
|
+
import { BaseEntity, FindOptionsWhere, DataSource, Repository, MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
import { CorrelationIdentifierType, IMetadataEntity, ElectronicAddressType, PartyTypeType, PartyOrigin, PhysicalAddressType, IdentityOrigin, ConnectionType, DigitalCredential, DocumentType, RegulationType, CredentialDocumentFormat, CredentialCorrelationType, CredentialStateType, AbstractContactStore, GetPartyArgs, Party, GetPartiesArgs, AddPartyArgs, UpdatePartyArgs, RemovePartyArgs, GetIdentityArgs, Identity, GetIdentitiesArgs, AddIdentityArgs, UpdateIdentityArgs, RemoveIdentityArgs, AddRelationshipArgs, PartyRelationship, GetRelationshipArgs, GetRelationshipsArgs, UpdateRelationshipArgs, RemoveRelationshipArgs, AddPartyTypeArgs, PartyType, GetPartyTypeArgs, GetPartyTypesArgs, UpdatePartyTypeArgs, RemovePartyTypeArgs, GetElectronicAddressArgs, ElectronicAddress, GetElectronicAddressesArgs, AddElectronicAddressArgs, UpdateElectronicAddressArgs, RemoveElectronicAddressArgs, GetPhysicalAddressArgs, PhysicalAddress, GetPhysicalAddressesArgs, AddPhysicalAddressArgs, UpdatePhysicalAddressArgs, RemovePhysicalAddressArgs, AbstractDigitalCredentialStore, AddCredentialArgs, GetCredentialArgs, GetCredentialsArgs, GetCredentialsResponse, RemoveCredentialArgs, UpdateCredentialStateArgs, AbstractIssuanceBrandingStore, IAddCredentialBrandingArgs, ICredentialBranding, IGetCredentialBrandingArgs, IRemoveCredentialBrandingArgs, IUpdateCredentialBrandingArgs, IAddCredentialLocaleBrandingArgs, IGetCredentialLocaleBrandingArgs, ICredentialLocaleBranding, IRemoveCredentialLocaleBrandingArgs, IUpdateCredentialLocaleBrandingArgs, IAddIssuerBrandingArgs, IIssuerBranding, IGetIssuerBrandingArgs, IRemoveIssuerBrandingArgs, IUpdateIssuerBrandingArgs, IAddIssuerLocaleBrandingArgs, IGetIssuerLocaleBrandingArgs, IIssuerLocaleBranding, IRemoveIssuerLocaleBrandingArgs, IUpdateIssuerLocaleBrandingArgs, AbstractEventLoggerStore, GetAuditEventsArgs, StoreAuditEventArgs, GetActivityEventsArgs, StoreActivityEventArgs, IAbstractMachineStateStore, StoreMachineStatePersistArgs, StoreMachineStateInfo, StoreMachineStatesFindActiveArgs, StoreFindMachineStatesArgs, StoreMachineStateGetArgs, StoreMachineStateDeleteArgs, StoreMachineStateDeleteExpiredArgs, AbstractPDStore, GetDefinitionArgs, DcqlQueryItem, HasDefinitionArgs, HasDefinitionsArgs, GetDefinitionsArgs, NonPersistedDcqlQueryItem, DeleteDefinitionArgs, DeleteDefinitionsArgs, DcqlQueryItemFilter, NonPersistedParty, NonPersistedContact, Contact, NonPersistedNaturalPerson, NonPersistedOrganization, NonPersistedConnection, Connection, NonPersistedCorrelationIdentifier, CorrelationIdentifier, NonPersistedDidAuthConfig, NonPersistedElectronicAddress, NonPersistedPhysicalAddress, NonPersistedIdentity, NonPersistedMetadataItem, MetadataTypes, MetadataItem, NaturalPerson, NonPersistedOpenIdConfig, Organization, NonPersistedPartyRelationship, NonPersistedPartyType, ConnectionConfig, OpenIdConfig, DidAuthConfig, NonPersistedConnectionConfig, NonPersistedDigitalCredential, NonPersistedAuditLoggingEvent, NonPersistedActivityLoggingEvent, ILocaleBranding, IBasicIssuerLocaleBranding, IBasicBackgroundAttributes, IBasicCredentialBranding, IBasicCredentialLocaleBranding, IBasicImageAttributes, IBasicImageDimensions, IBasicIssuerBranding, IBasicTextAttributes, IBasicCredentialClaim, PartialDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types';
|
|
3
|
+
export { AbstractEventLoggerStore } from '@sphereon/ssi-sdk.data-store-types';
|
|
4
|
+
import { CredentialRole, LoggingEventType, LogLevel, System, SubSystem, ActionType, ActionSubType, InitiatorType, SystemCorrelationIdType, StatusListType, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, RequireOneOf, ICredentialStatus, OrPromise, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
|
|
5
|
+
import { PartyCorrelationType, CredentialType, AuditLoggingEvent, ActivityLoggingEvent } from '@sphereon/ssi-sdk.core';
|
|
7
6
|
|
|
8
|
-
|
|
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): "dc+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 {
|
|
7
|
+
declare class CorrelationIdentifierEntity extends BaseEntity {
|
|
1010
8
|
id: string;
|
|
1011
9
|
type: CorrelationIdentifierType;
|
|
1012
10
|
correlationId: string;
|
|
@@ -1016,7 +14,7 @@ declare class CorrelationIdentifierEntity extends BaseEntity$6 {
|
|
|
1016
14
|
validate(): Promise<void>;
|
|
1017
15
|
}
|
|
1018
16
|
|
|
1019
|
-
declare class IdentityMetadataItemEntity extends BaseEntity
|
|
17
|
+
declare class IdentityMetadataItemEntity extends BaseEntity implements IMetadataEntity {
|
|
1020
18
|
id: string;
|
|
1021
19
|
label: string;
|
|
1022
20
|
valueType: string;
|
|
@@ -1028,23 +26,7 @@ declare class IdentityMetadataItemEntity extends BaseEntity$8 implements IMetada
|
|
|
1028
26
|
validate(): Promise<void>;
|
|
1029
27
|
}
|
|
1030
28
|
|
|
1031
|
-
declare class
|
|
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 {
|
|
29
|
+
declare class ContactMetadataItemEntity extends BaseEntity implements IMetadataEntity {
|
|
1048
30
|
id: string;
|
|
1049
31
|
label: string;
|
|
1050
32
|
valueType: string;
|
|
@@ -1056,9 +38,7 @@ declare class ContactMetadataItemEntity extends BaseEntity$5 implements IMetadat
|
|
|
1056
38
|
validate(): Promise<void>;
|
|
1057
39
|
}
|
|
1058
40
|
|
|
1059
|
-
declare
|
|
1060
|
-
|
|
1061
|
-
declare abstract class BaseContactEntity extends BaseEntity$4 {
|
|
41
|
+
declare abstract class BaseContactEntity extends BaseEntity {
|
|
1062
42
|
id: string;
|
|
1063
43
|
createdAt: Date;
|
|
1064
44
|
lastUpdatedAt: Date;
|
|
@@ -1067,6 +47,20 @@ declare abstract class BaseContactEntity extends BaseEntity$4 {
|
|
|
1067
47
|
updateUpdatedDate(): void;
|
|
1068
48
|
}
|
|
1069
49
|
|
|
50
|
+
declare class ElectronicAddressEntity extends BaseEntity {
|
|
51
|
+
id: string;
|
|
52
|
+
type: ElectronicAddressType;
|
|
53
|
+
electronicAddress: string;
|
|
54
|
+
party: PartyEntity;
|
|
55
|
+
partyId?: string;
|
|
56
|
+
ownerId?: string;
|
|
57
|
+
tenantId?: string;
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
lastUpdatedAt: Date;
|
|
60
|
+
updateUpdatedDate(): void;
|
|
61
|
+
validate(): Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
|
|
1070
64
|
declare class PartyRelationshipEntity {
|
|
1071
65
|
id: string;
|
|
1072
66
|
left: PartyEntity;
|
|
@@ -1081,23 +75,21 @@ declare class PartyRelationshipEntity {
|
|
|
1081
75
|
checkRelationshipSides(): Promise<void>;
|
|
1082
76
|
}
|
|
1083
77
|
|
|
1084
|
-
declare
|
|
1085
|
-
|
|
1086
|
-
declare class ElectronicAddressEntity extends BaseEntity$3 {
|
|
78
|
+
declare class PartyTypeEntity {
|
|
1087
79
|
id: string;
|
|
1088
|
-
type:
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
80
|
+
type: PartyTypeType;
|
|
81
|
+
origin: PartyOrigin;
|
|
82
|
+
name: string;
|
|
83
|
+
description?: string;
|
|
84
|
+
tenantId: string;
|
|
85
|
+
parties: Array<PartyEntity>;
|
|
1094
86
|
createdAt: Date;
|
|
1095
87
|
lastUpdatedAt: Date;
|
|
1096
88
|
updateUpdatedDate(): void;
|
|
1097
89
|
validate(): Promise<void>;
|
|
1098
90
|
}
|
|
1099
91
|
|
|
1100
|
-
declare class PhysicalAddressEntity extends BaseEntity
|
|
92
|
+
declare class PhysicalAddressEntity extends BaseEntity {
|
|
1101
93
|
id: string;
|
|
1102
94
|
type: PhysicalAddressType;
|
|
1103
95
|
streetName: string;
|
|
@@ -1117,7 +109,7 @@ declare class PhysicalAddressEntity extends BaseEntity$8 {
|
|
|
1117
109
|
validate(): Promise<void>;
|
|
1118
110
|
}
|
|
1119
111
|
|
|
1120
|
-
declare class PartyEntity extends BaseEntity
|
|
112
|
+
declare class PartyEntity extends BaseEntity {
|
|
1121
113
|
id: string;
|
|
1122
114
|
uri?: string;
|
|
1123
115
|
ownerId?: string;
|
|
@@ -1134,7 +126,7 @@ declare class PartyEntity extends BaseEntity$8 {
|
|
|
1134
126
|
validate(): Promise<void>;
|
|
1135
127
|
}
|
|
1136
128
|
|
|
1137
|
-
declare class IdentityEntity extends BaseEntity
|
|
129
|
+
declare class IdentityEntity extends BaseEntity {
|
|
1138
130
|
id: string;
|
|
1139
131
|
alias: string;
|
|
1140
132
|
origin: IdentityOrigin;
|
|
@@ -1152,9 +144,7 @@ declare class IdentityEntity extends BaseEntity$8 {
|
|
|
1152
144
|
validate(): Promise<void>;
|
|
1153
145
|
}
|
|
1154
146
|
|
|
1155
|
-
declare
|
|
1156
|
-
|
|
1157
|
-
declare class ConnectionEntity extends BaseEntity$2 {
|
|
147
|
+
declare class ConnectionEntity extends BaseEntity {
|
|
1158
148
|
id: string;
|
|
1159
149
|
type: ConnectionType;
|
|
1160
150
|
tenantId?: string;
|
|
@@ -1163,20 +153,98 @@ declare class ConnectionEntity extends BaseEntity$2 {
|
|
|
1163
153
|
identity: IdentityEntity;
|
|
1164
154
|
}
|
|
1165
155
|
|
|
1166
|
-
declare
|
|
1167
|
-
|
|
1168
|
-
declare abstract class BaseConfigEntity extends BaseEntity$1 {
|
|
156
|
+
declare abstract class BaseConfigEntity extends BaseEntity {
|
|
1169
157
|
id: string;
|
|
1170
158
|
connection?: ConnectionEntity;
|
|
1171
159
|
}
|
|
1172
160
|
|
|
1173
|
-
declare class
|
|
161
|
+
declare class DidAuthConfigEntity extends BaseConfigEntity {
|
|
162
|
+
identifier: string;
|
|
163
|
+
redirectUrl: string;
|
|
164
|
+
sessionId: string;
|
|
165
|
+
ownerId?: string;
|
|
166
|
+
tenantId?: string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare class OpenIdConfigEntity extends BaseConfigEntity {
|
|
170
|
+
clientId: string;
|
|
171
|
+
clientSecret: string;
|
|
172
|
+
scopes: Array<string>;
|
|
173
|
+
issuer: string;
|
|
174
|
+
redirectUrl: string;
|
|
175
|
+
dangerouslyAllowInsecureHttpRequests: boolean;
|
|
176
|
+
clientAuthMethod: 'basic' | 'post' | undefined;
|
|
177
|
+
ownerId?: string;
|
|
178
|
+
tenantId?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare class DigitalCredentialEntity extends BaseEntity implements DigitalCredential {
|
|
182
|
+
id: string;
|
|
183
|
+
parentId?: string;
|
|
184
|
+
documentType: DocumentType;
|
|
185
|
+
regulationType: RegulationType;
|
|
186
|
+
documentFormat: CredentialDocumentFormat;
|
|
187
|
+
credentialRole: CredentialRole;
|
|
188
|
+
rawDocument: string;
|
|
189
|
+
uniformDocument: string;
|
|
190
|
+
credentialId: string;
|
|
191
|
+
hash: string;
|
|
192
|
+
kmsKeyRef: string;
|
|
193
|
+
identifierMethod: string;
|
|
194
|
+
issuerCorrelationType: CredentialCorrelationType;
|
|
195
|
+
subjectCorrelationType?: CredentialCorrelationType;
|
|
196
|
+
rpCorrelationType?: CredentialCorrelationType;
|
|
197
|
+
isIssuerSigned?: boolean;
|
|
198
|
+
issuerCorrelationId: string;
|
|
199
|
+
subjectCorrelationId?: string;
|
|
200
|
+
rpCorrelationId?: string;
|
|
201
|
+
verifiedState?: CredentialStateType;
|
|
202
|
+
tenantId?: string;
|
|
203
|
+
createdAt: Date;
|
|
204
|
+
presentedAt?: Date;
|
|
205
|
+
lastUpdatedAt: Date;
|
|
206
|
+
validUntil?: Date;
|
|
207
|
+
validFrom?: Date;
|
|
208
|
+
verifiedAt?: Date;
|
|
209
|
+
revokedAt?: Date;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
declare class AuditEventEntity extends BaseEntity {
|
|
213
|
+
id: string;
|
|
214
|
+
timestamp: Date;
|
|
215
|
+
type: LoggingEventType;
|
|
216
|
+
level: LogLevel;
|
|
217
|
+
correlationId: string;
|
|
218
|
+
system: System;
|
|
219
|
+
subSystemType: SubSystem;
|
|
220
|
+
actionType: ActionType;
|
|
221
|
+
actionSubType: ActionSubType;
|
|
222
|
+
initiatorType: InitiatorType;
|
|
223
|
+
systemCorrelationIdType?: SystemCorrelationIdType;
|
|
224
|
+
systemCorrelationId?: string;
|
|
225
|
+
systemAlias?: string;
|
|
226
|
+
partyCorrelationType?: PartyCorrelationType;
|
|
227
|
+
partyCorrelationId?: string;
|
|
228
|
+
partyAlias?: string;
|
|
229
|
+
description: string;
|
|
230
|
+
credentialType?: CredentialType;
|
|
231
|
+
credentialHash?: string;
|
|
232
|
+
parentCredentialHash?: string;
|
|
233
|
+
originalCredential?: string;
|
|
234
|
+
sharePurpose?: string;
|
|
235
|
+
data?: string;
|
|
236
|
+
diagnosticData?: string;
|
|
237
|
+
createdAt: Date;
|
|
238
|
+
lastUpdatedAt: Date;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
declare class ImageDimensionsEntity extends BaseEntity {
|
|
1174
242
|
id: string;
|
|
1175
243
|
width: number;
|
|
1176
244
|
height: number;
|
|
1177
245
|
}
|
|
1178
246
|
|
|
1179
|
-
declare class ImageAttributesEntity extends BaseEntity
|
|
247
|
+
declare class ImageAttributesEntity extends BaseEntity {
|
|
1180
248
|
id: string;
|
|
1181
249
|
uri?: string;
|
|
1182
250
|
dataUri?: string;
|
|
@@ -1186,21 +254,19 @@ declare class ImageAttributesEntity extends BaseEntity$8 {
|
|
|
1186
254
|
validate(): Promise<undefined>;
|
|
1187
255
|
}
|
|
1188
256
|
|
|
1189
|
-
declare class BackgroundAttributesEntity extends BaseEntity
|
|
257
|
+
declare class BackgroundAttributesEntity extends BaseEntity {
|
|
1190
258
|
id: string;
|
|
1191
259
|
color?: string;
|
|
1192
260
|
image?: ImageAttributesEntity;
|
|
1193
261
|
validate(): Promise<undefined>;
|
|
1194
262
|
}
|
|
1195
263
|
|
|
1196
|
-
declare class TextAttributesEntity extends BaseEntity
|
|
264
|
+
declare class TextAttributesEntity extends BaseEntity {
|
|
1197
265
|
id: string;
|
|
1198
266
|
color?: string;
|
|
1199
267
|
validate(): Promise<undefined>;
|
|
1200
268
|
}
|
|
1201
269
|
|
|
1202
|
-
declare const BaseEntity: typeof typeorm.BaseEntity;
|
|
1203
|
-
|
|
1204
270
|
declare class BaseLocaleBrandingEntity extends BaseEntity {
|
|
1205
271
|
id: string;
|
|
1206
272
|
alias?: string;
|
|
@@ -1215,27 +281,7 @@ declare class BaseLocaleBrandingEntity extends BaseEntity {
|
|
|
1215
281
|
validate(): Promise<undefined>;
|
|
1216
282
|
}
|
|
1217
283
|
|
|
1218
|
-
declare class
|
|
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 {
|
|
284
|
+
declare class CredentialClaimsEntity extends BaseEntity {
|
|
1239
285
|
id: string;
|
|
1240
286
|
key: string;
|
|
1241
287
|
name: string;
|
|
@@ -1249,7 +295,7 @@ declare class CredentialLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
|
1249
295
|
credentialBrandingId: string;
|
|
1250
296
|
}
|
|
1251
297
|
|
|
1252
|
-
declare class CredentialBrandingEntity extends BaseEntity
|
|
298
|
+
declare class CredentialBrandingEntity extends BaseEntity {
|
|
1253
299
|
id: string;
|
|
1254
300
|
vcHash: string;
|
|
1255
301
|
issuerCorrelationId: string;
|
|
@@ -1260,16 +306,6 @@ declare class CredentialBrandingEntity extends BaseEntity$8 {
|
|
|
1260
306
|
validate(): Promise<undefined>;
|
|
1261
307
|
}
|
|
1262
308
|
|
|
1263
|
-
declare class IssuerBrandingEntity extends BaseEntity$8 {
|
|
1264
|
-
id: string;
|
|
1265
|
-
issuerCorrelationId: string;
|
|
1266
|
-
localeBranding: Array<IssuerLocaleBrandingEntity>;
|
|
1267
|
-
createdAt: Date;
|
|
1268
|
-
lastUpdatedAt: Date;
|
|
1269
|
-
updateUpdatedDate(): void;
|
|
1270
|
-
validate(): Promise<undefined>;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
309
|
declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
1274
310
|
issuerBranding: IssuerBrandingEntity;
|
|
1275
311
|
clientUri?: string;
|
|
@@ -1279,6 +315,16 @@ declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
|
1279
315
|
issuerBrandingId: string;
|
|
1280
316
|
}
|
|
1281
317
|
|
|
318
|
+
declare class IssuerBrandingEntity extends BaseEntity {
|
|
319
|
+
id: string;
|
|
320
|
+
issuerCorrelationId: string;
|
|
321
|
+
localeBranding: Array<IssuerLocaleBrandingEntity>;
|
|
322
|
+
createdAt: Date;
|
|
323
|
+
lastUpdatedAt: Date;
|
|
324
|
+
updateUpdatedDate(): void;
|
|
325
|
+
validate(): Promise<undefined>;
|
|
326
|
+
}
|
|
327
|
+
|
|
1282
328
|
/**
|
|
1283
329
|
* @class MachineStateInfoEntity
|
|
1284
330
|
* Represents a machine state. It allows to continue a machine at a later point in time at the point it was left of
|
|
@@ -1296,7 +342,7 @@ declare class IssuerLocaleBrandingEntity extends BaseLocaleBrandingEntity {
|
|
|
1296
342
|
* @param {Date} [completedAt] - The date and time when the machine state was completed. (optional)
|
|
1297
343
|
* @param {string} [tenantId] - The ID of the tenant associated with the machine state. (optional)
|
|
1298
344
|
*/
|
|
1299
|
-
declare class MachineStateInfoEntity extends BaseEntity
|
|
345
|
+
declare class MachineStateInfoEntity extends BaseEntity {
|
|
1300
346
|
instanceId: string;
|
|
1301
347
|
sessionId?: string;
|
|
1302
348
|
machineName: string;
|
|
@@ -1311,92 +357,212 @@ declare class MachineStateInfoEntity extends BaseEntity$8 {
|
|
|
1311
357
|
tenantId?: string;
|
|
1312
358
|
}
|
|
1313
359
|
|
|
1314
|
-
declare class
|
|
360
|
+
declare class Oid4vcStateEntity<StateType> extends BaseEntity {
|
|
1315
361
|
id: string;
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
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;
|
|
362
|
+
lookups?: Array<string>;
|
|
363
|
+
stateId?: string;
|
|
364
|
+
correlationId?: string;
|
|
365
|
+
state: StateType;
|
|
1339
366
|
createdAt: Date;
|
|
1340
|
-
|
|
367
|
+
updatedAt: Date;
|
|
368
|
+
expiresAt?: Date;
|
|
369
|
+
tenantId?: string;
|
|
1341
370
|
}
|
|
1342
371
|
|
|
1343
|
-
declare class
|
|
372
|
+
declare class DcqlQueryItemEntity extends BaseEntity {
|
|
1344
373
|
id: string;
|
|
1345
|
-
|
|
374
|
+
queryId: string;
|
|
1346
375
|
version: string;
|
|
1347
376
|
tenantId?: string;
|
|
1348
377
|
purpose?: string;
|
|
1349
378
|
name?: string;
|
|
1350
|
-
|
|
1351
|
-
dcqlPayload: string;
|
|
379
|
+
query: string;
|
|
1352
380
|
createdAt: Date;
|
|
1353
381
|
lastUpdatedAt: Date;
|
|
1354
382
|
updateUpdatedDate(): void;
|
|
1355
383
|
}
|
|
1356
384
|
|
|
1357
|
-
declare class
|
|
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 {
|
|
1358
396
|
id: string;
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
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;
|
|
1365
413
|
expiresAt?: Date;
|
|
1366
|
-
tenantId?: string;
|
|
1367
414
|
}
|
|
415
|
+
declare class BitstringStatusListEntity extends StatusListEntity {
|
|
416
|
+
statusPurpose: string | string[];
|
|
417
|
+
bitsPerStatus?: number;
|
|
418
|
+
validFrom?: Date;
|
|
419
|
+
validUntil?: Date;
|
|
420
|
+
ttl?: number;
|
|
421
|
+
statusListEntries: BitstringStatusListEntryEntity[];
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
interface IStatusListEntity {
|
|
425
|
+
id: string;
|
|
426
|
+
correlationId: string;
|
|
427
|
+
driverType: StatusListDriverType;
|
|
428
|
+
credentialIdMode: StatusListCredentialIdMode;
|
|
429
|
+
length: number;
|
|
430
|
+
issuer: string | IIssuer;
|
|
431
|
+
type: StatusListType;
|
|
432
|
+
proofFormat: CredentialProofFormat;
|
|
433
|
+
statusListCredential?: StatusListCredential;
|
|
434
|
+
bitsPerStatus?: number;
|
|
435
|
+
}
|
|
436
|
+
interface IStatusList2021Entity extends IStatusListEntity {
|
|
437
|
+
indexingDirection: StatusListIndexingDirection;
|
|
438
|
+
statusPurpose: StatusPurpose2021;
|
|
439
|
+
}
|
|
440
|
+
interface IOAuthStatusListEntity extends IStatusListEntity {
|
|
441
|
+
bitsPerStatus: number;
|
|
442
|
+
expiresAt?: Date;
|
|
443
|
+
}
|
|
444
|
+
interface IBitstringStatusListEntity extends IStatusListEntity {
|
|
445
|
+
statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
|
|
446
|
+
bitsPerStatus?: number;
|
|
447
|
+
validFrom?: Date;
|
|
448
|
+
validUntil?: Date;
|
|
449
|
+
ttl?: number;
|
|
450
|
+
}
|
|
451
|
+
type IStatusListEntryEntity = RequireOneOf<{
|
|
452
|
+
statusList: StatusListEntity;
|
|
453
|
+
statusListId: string;
|
|
454
|
+
value?: string;
|
|
455
|
+
statusListIndex: number;
|
|
456
|
+
credentialHash?: string;
|
|
457
|
+
credentialId?: string;
|
|
458
|
+
correlationId?: string;
|
|
459
|
+
}, 'statusList' | 'statusListId'>;
|
|
460
|
+
type BitstringStatusPurpose = 'revocation' | 'suspension' | 'refresh' | 'message' | string;
|
|
461
|
+
type BitstringStatusMessage = {
|
|
462
|
+
status: string;
|
|
463
|
+
message?: string;
|
|
464
|
+
[x: string]: any;
|
|
465
|
+
};
|
|
466
|
+
interface BitstringStatusListEntryCredentialStatus extends ICredentialStatus {
|
|
467
|
+
type: 'BitstringStatusListEntry';
|
|
468
|
+
statusPurpose: BitstringStatusPurpose | Array<BitstringStatusPurpose>;
|
|
469
|
+
statusListIndex: string;
|
|
470
|
+
statusListCredential: string;
|
|
471
|
+
bitsPerStatus?: number;
|
|
472
|
+
statusMessage?: Array<BitstringStatusMessage>;
|
|
473
|
+
statusReference?: string | Array<string>;
|
|
474
|
+
}
|
|
475
|
+
type BitstringStatusListArgs = {
|
|
476
|
+
statusPurpose: BitstringStatusPurpose;
|
|
477
|
+
bitsPerStatus: number;
|
|
478
|
+
ttl?: number;
|
|
479
|
+
validFrom?: Date;
|
|
480
|
+
validUntil?: Date;
|
|
481
|
+
};
|
|
482
|
+
interface IBitstringStatusListEntryEntity {
|
|
483
|
+
statusListId: string;
|
|
484
|
+
statusListIndex: number;
|
|
485
|
+
credentialId?: string;
|
|
486
|
+
credentialHash?: string;
|
|
487
|
+
entryCorrelationId?: string;
|
|
488
|
+
statusPurpose: string;
|
|
489
|
+
bitsPerStatus?: number;
|
|
490
|
+
statusMessage?: Array<BitstringStatusMessage>;
|
|
491
|
+
statusReference?: string | Array<string>;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
type FindStatusListArgs = FindOptionsWhere<IStatusList2021Entity | IOAuthStatusListEntity>[];
|
|
495
|
+
type FindStatusListEntryArgs = FindOptionsWhere<IStatusListEntryEntity>[] | FindOptionsWhere<IStatusListEntryEntity>;
|
|
496
|
+
interface IStatusListEntryAvailableArgs {
|
|
497
|
+
statusListId?: string;
|
|
498
|
+
correlationId?: string;
|
|
499
|
+
statusListIndex: number | number[];
|
|
500
|
+
}
|
|
501
|
+
interface IGetStatusListEntryByIndexArgs {
|
|
502
|
+
statusListId?: string;
|
|
503
|
+
statusListCorrelationId?: string;
|
|
504
|
+
statusListIndex?: number;
|
|
505
|
+
entryCorrelationId?: string;
|
|
506
|
+
errorOnNotFound?: boolean;
|
|
507
|
+
}
|
|
508
|
+
interface IGetStatusListEntryByCredentialIdArgs {
|
|
509
|
+
statusListId?: string;
|
|
510
|
+
statusListCorrelationId?: string;
|
|
511
|
+
entryCorrelationId?: string;
|
|
512
|
+
credentialId: string;
|
|
513
|
+
errorOnNotFound?: boolean;
|
|
514
|
+
}
|
|
515
|
+
interface IGetStatusListEntriesArgs {
|
|
516
|
+
statusListId: string;
|
|
517
|
+
filter?: FindStatusListEntryArgs;
|
|
518
|
+
}
|
|
519
|
+
type IAddStatusListEntryArgs = IStatusListEntryEntity | IBitstringStatusListEntryEntity;
|
|
520
|
+
interface IGetStatusListArgs {
|
|
521
|
+
id?: string;
|
|
522
|
+
correlationId?: string;
|
|
523
|
+
}
|
|
524
|
+
type IRemoveStatusListArgs = IGetStatusListArgs;
|
|
525
|
+
interface IGetStatusListsArgs {
|
|
526
|
+
filter?: FindStatusListArgs;
|
|
527
|
+
}
|
|
528
|
+
interface IBaseStatusListArgs {
|
|
529
|
+
id: string;
|
|
530
|
+
correlationId: string;
|
|
531
|
+
driverType: StatusListDriverType;
|
|
532
|
+
credentialIdMode: StatusListCredentialIdMode;
|
|
533
|
+
length: number;
|
|
534
|
+
issuer: string | IIssuer;
|
|
535
|
+
type: StatusListType;
|
|
536
|
+
proofFormat: CredentialProofFormat;
|
|
537
|
+
statusListCredential?: StatusListCredential;
|
|
538
|
+
bitsPerStatus?: number;
|
|
539
|
+
}
|
|
540
|
+
type IStatusList2021Args = IBaseStatusListArgs & {
|
|
541
|
+
type: StatusListType.StatusList2021;
|
|
542
|
+
indexingDirection: StatusListIndexingDirection;
|
|
543
|
+
statusPurpose: StatusPurpose2021;
|
|
544
|
+
};
|
|
545
|
+
type IOAuthStatusListArgs = IBaseStatusListArgs & {
|
|
546
|
+
type: StatusListType.OAuthStatusList;
|
|
547
|
+
bitsPerStatus: number;
|
|
548
|
+
expiresAt?: Date;
|
|
549
|
+
};
|
|
550
|
+
type IBitstringStatusListArgs = IBaseStatusListArgs & {
|
|
551
|
+
type: StatusListType.BitstringStatusList;
|
|
552
|
+
statusPurpose: BitstringStatusPurpose | BitstringStatusPurpose[];
|
|
553
|
+
bitsPerStatus?: number;
|
|
554
|
+
validFrom?: Date;
|
|
555
|
+
validUntil?: Date;
|
|
556
|
+
ttl?: number;
|
|
557
|
+
};
|
|
558
|
+
type IAddStatusListArgs = IStatusList2021Args | IOAuthStatusListArgs | IBitstringStatusListArgs;
|
|
559
|
+
type IUpdateStatusListIndexArgs = IAddStatusListArgs;
|
|
1368
560
|
|
|
1369
|
-
declare
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
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>;
|
|
561
|
+
declare class BitstringStatusListEntryEntity extends StatusListEntryEntity {
|
|
562
|
+
statusPurpose: string;
|
|
563
|
+
bitsPerStatus?: number;
|
|
564
|
+
statusMessage?: Array<BitstringStatusMessage>;
|
|
565
|
+
statusReference?: string | string[];
|
|
1400
566
|
}
|
|
1401
567
|
|
|
1402
568
|
declare class ContactStore extends AbstractContactStore {
|
|
@@ -1443,14 +609,6 @@ declare class ContactStore extends AbstractContactStore {
|
|
|
1443
609
|
private buildMetadataCondition;
|
|
1444
610
|
}
|
|
1445
611
|
|
|
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
|
-
|
|
1454
612
|
declare class DigitalCredentialStore extends AbstractDigitalCredentialStore {
|
|
1455
613
|
private readonly dbConnection;
|
|
1456
614
|
private dcRepo;
|
|
@@ -1465,25 +623,6 @@ declare class DigitalCredentialStore extends AbstractDigitalCredentialStore {
|
|
|
1465
623
|
private assertValidDigitalCredential;
|
|
1466
624
|
}
|
|
1467
625
|
|
|
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
|
-
|
|
1487
626
|
declare class IssuanceBrandingStore extends AbstractIssuanceBrandingStore {
|
|
1488
627
|
private readonly dbConnection;
|
|
1489
628
|
constructor(dbConnection: OrPromise<DataSource>);
|
|
@@ -1554,13 +693,6 @@ declare class StatusListStore implements IStatusListStore {
|
|
|
1554
693
|
getStatusListEntryRepo(type?: StatusListType): Promise<Repository<StatusListEntryEntity | BitstringStatusListEntryEntity>>;
|
|
1555
694
|
}
|
|
1556
695
|
|
|
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
|
-
|
|
1564
696
|
declare class EventLoggerStore extends AbstractEventLoggerStore {
|
|
1565
697
|
private readonly dbConnection;
|
|
1566
698
|
constructor(dbConnection: OrPromise<DataSource>);
|
|
@@ -1570,57 +702,6 @@ declare class EventLoggerStore extends AbstractEventLoggerStore {
|
|
|
1570
702
|
storeActivityEvent: (args: StoreActivityEventArgs) => Promise<ActivityLoggingEvent>;
|
|
1571
703
|
}
|
|
1572
704
|
|
|
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
|
-
|
|
1624
705
|
/**
|
|
1625
706
|
* Represents a data store for managing machine states.
|
|
1626
707
|
*/
|
|
@@ -1637,29 +718,18 @@ declare class MachineStateStore extends IAbstractMachineStateStore {
|
|
|
1637
718
|
static machineStateInfoEntityFrom: (machineStateInfo: StoreMachineStateInfo | StoreMachineStatePersistArgs) => MachineStateInfoEntity;
|
|
1638
719
|
}
|
|
1639
720
|
|
|
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
|
-
|
|
1651
721
|
declare class PDStore extends AbstractPDStore {
|
|
1652
722
|
private readonly dbConnection;
|
|
1653
723
|
constructor(dbConnection: OrPromise<DataSource>);
|
|
1654
|
-
getDefinition: (args: GetDefinitionArgs) => Promise<
|
|
724
|
+
getDefinition: (args: GetDefinitionArgs) => Promise<DcqlQueryItem>;
|
|
1655
725
|
hasDefinition: (args: HasDefinitionArgs) => Promise<boolean>;
|
|
1656
726
|
hasDefinitions: (args: HasDefinitionsArgs) => Promise<boolean>;
|
|
1657
|
-
getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<
|
|
1658
|
-
addDefinition: (item:
|
|
1659
|
-
updateDefinition: (item:
|
|
727
|
+
getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<DcqlQueryItem>>;
|
|
728
|
+
addDefinition: (item: NonPersistedDcqlQueryItem) => Promise<DcqlQueryItem>;
|
|
729
|
+
updateDefinition: (item: DcqlQueryItem) => Promise<DcqlQueryItem>;
|
|
1660
730
|
deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
|
|
1661
731
|
deleteDefinitions: (args: DeleteDefinitionsArgs) => Promise<number>;
|
|
1662
|
-
findIds: (pdRepository: Repository<
|
|
732
|
+
findIds: (pdRepository: Repository<DcqlQueryItemEntity>, filter: Array<DcqlQueryItemFilter> | undefined) => Promise<Array<DcqlQueryItemEntity>>;
|
|
1663
733
|
}
|
|
1664
734
|
|
|
1665
735
|
declare class CreateContacts1659463079429 implements MigrationInterface {
|
|
@@ -1668,37 +738,37 @@ declare class CreateContacts1659463079429 implements MigrationInterface {
|
|
|
1668
738
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1669
739
|
}
|
|
1670
740
|
|
|
1671
|
-
declare class
|
|
741
|
+
declare class CreatePresentationDefinitions1716533767523 implements MigrationInterface {
|
|
1672
742
|
name: string;
|
|
1673
743
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1674
744
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1675
745
|
}
|
|
1676
746
|
|
|
1677
|
-
declare class
|
|
747
|
+
declare class FixCredentialClaimsReferencesUuid1741895822987 implements MigrationInterface {
|
|
1678
748
|
name: string;
|
|
1679
749
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1680
750
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1681
751
|
}
|
|
1682
752
|
|
|
1683
|
-
declare class
|
|
753
|
+
declare class AddBitstringStatusListEnum1741895823000 implements MigrationInterface {
|
|
1684
754
|
name: string;
|
|
1685
755
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1686
756
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1687
757
|
}
|
|
1688
758
|
|
|
1689
|
-
declare class
|
|
759
|
+
declare class CreateAuditEvents1701635835330 implements MigrationInterface {
|
|
1690
760
|
name: string;
|
|
1691
761
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1692
762
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1693
763
|
}
|
|
1694
764
|
|
|
1695
|
-
declare class
|
|
765
|
+
declare class CreateDigitalCredential1708525189000 implements MigrationInterface {
|
|
1696
766
|
name: string;
|
|
1697
767
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1698
768
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
1699
769
|
}
|
|
1700
770
|
|
|
1701
|
-
declare class
|
|
771
|
+
declare class CreateMachineStateStore1708098041262 implements MigrationInterface {
|
|
1702
772
|
name: string;
|
|
1703
773
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
1704
774
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
@@ -1712,8 +782,8 @@ declare class CreatePresentationDefinitions1716533767523 implements MigrationInt
|
|
|
1712
782
|
* @public
|
|
1713
783
|
*/
|
|
1714
784
|
declare const DataStoreContactMigrations: (typeof CreateContacts1659463079429)[];
|
|
1715
|
-
declare const DataStoreIssuanceBrandingMigrations: (typeof
|
|
1716
|
-
declare const DataStoreStatusListMigrations: (typeof
|
|
785
|
+
declare const DataStoreIssuanceBrandingMigrations: (typeof FixCredentialClaimsReferencesUuid1741895822987)[];
|
|
786
|
+
declare const DataStoreStatusListMigrations: (typeof AddBitstringStatusListEnum1741895823000)[];
|
|
1717
787
|
declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
|
|
1718
788
|
declare const DataStoreDigitalCredentialMigrations: (typeof CreateDigitalCredential1708525189000)[];
|
|
1719
789
|
declare const DataStoreMachineStateMigrations: (typeof CreateMachineStateStore1708098041262)[];
|
|
@@ -1775,7 +845,6 @@ declare const isDidAuthConfig: (config: NonPersistedConnectionConfig | BaseConfi
|
|
|
1775
845
|
|
|
1776
846
|
declare function isHex(input: string): boolean;
|
|
1777
847
|
declare function parseRawDocument(raw: string): OriginalVerifiableCredential | OriginalVerifiablePresentation;
|
|
1778
|
-
declare function ensureRawDocument(input: string | object): string;
|
|
1779
848
|
declare const nonPersistedDigitalCredentialEntityFromAddArgs: (addCredentialArgs: AddCredentialArgs) => NonPersistedDigitalCredential;
|
|
1780
849
|
declare const digitalCredentialFrom: (credentialEntity: DigitalCredentialEntity) => DigitalCredential;
|
|
1781
850
|
declare const digitalCredentialsFrom: (credentialEntities: Array<DigitalCredentialEntity>) => DigitalCredential[];
|
|
@@ -1798,18 +867,18 @@ declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBr
|
|
|
1798
867
|
declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
|
|
1799
868
|
declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
|
|
1800
869
|
|
|
1801
|
-
declare const
|
|
1802
|
-
declare const
|
|
1803
|
-
declare function isPresentationDefinitionEqual(base:
|
|
870
|
+
declare const dcqlQueryItemFrom: (entity: DcqlQueryItemEntity) => DcqlQueryItem;
|
|
871
|
+
declare const dcqlQueryEntityItemFrom: (item: NonPersistedDcqlQueryItem) => DcqlQueryItemEntity;
|
|
872
|
+
declare function isPresentationDefinitionEqual(base: PartialDcqlQueryItem, compare: PartialDcqlQueryItem): boolean;
|
|
1804
873
|
|
|
1805
874
|
declare const DataStoreContactEntities: (typeof BaseConfigEntity | typeof ConnectionEntity | typeof PartyEntity | typeof IdentityMetadataItemEntity | typeof CorrelationIdentifierEntity | typeof PartyRelationshipEntity | typeof PartyTypeEntity | typeof BaseContactEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ContactMetadataItemEntity)[];
|
|
1806
875
|
declare const DataStoreOid4vcStateEntities: (typeof Oid4vcStateEntity)[];
|
|
1807
876
|
declare const DataStoreIssuanceBrandingEntities: (typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity)[];
|
|
1808
|
-
declare const DataStorePresentationDefinitionEntities: (typeof
|
|
877
|
+
declare const DataStorePresentationDefinitionEntities: (typeof DcqlQueryItemEntity)[];
|
|
1809
878
|
declare const DataStoreStatusListEntities: (typeof StatusListEntity | typeof StatusListEntryEntity)[];
|
|
1810
879
|
declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
|
|
1811
880
|
declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
|
|
1812
881
|
declare const DataStoreMachineStateEntities: (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
|
|
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)[];
|
|
1814
883
|
|
|
1815
|
-
export {
|
|
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 };
|