@sphereon/ssi-sdk.data-store 0.34.1-fix.171 → 0.34.1-fix.223

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/index.cjs +105 -174
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +32 -33
  4. package/dist/index.d.ts +32 -33
  5. package/dist/index.js +105 -174
  6. package/dist/index.js.map +1 -1
  7. package/package.json +7 -7
  8. package/src/__tests__/pd-manager.entities.test.ts +21 -69
  9. package/src/__tests__/pd-manager.store.test.ts +111 -194
  10. package/src/entities/presentationDefinition/{PresentationDefinitionItemEntity.ts → DcqlQueryItemEntity.ts} +8 -12
  11. package/src/index.ts +3 -3
  12. package/src/migrations/generic/{13-UpdatePresentationDefinitionItemNullable.ts → 13-CreateDcqlQueryItem.ts} +8 -8
  13. package/src/migrations/generic/index.ts +2 -5
  14. package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +1 -1
  15. package/src/migrations/postgres/1726588800000-CreateDcqlQueryItem.ts +25 -0
  16. package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +1 -1
  17. package/src/migrations/sqlite/1726617600000-CreateDcqlQueryItem.ts +24 -0
  18. package/src/presentationDefinition/AbstractPDStore.ts +5 -5
  19. package/src/presentationDefinition/PDStore.ts +40 -45
  20. package/src/types/presentationDefinition/IAbstractPDStore.ts +5 -5
  21. package/src/types/presentationDefinition/presentationDefinition.ts +8 -9
  22. package/src/utils/presentationDefinition/MappingUtils.ts +21 -41
  23. package/src/migrations/postgres/1756975509000-UpdatePresentationDefinitionItemNullable.ts +0 -15
  24. package/src/migrations/sqlite/1756975340000-UpdatePresentationDefinitionItemNullable.ts +0 -77
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import typeorm, { BaseEntity as BaseEntity$8, FindOptionsWhere, FindOptionsOrder, DataSource, Repository, MigrationInterface, QueryRunner } from 'typeorm';
2
2
  import { ManagedIdentifierOptsOrResult } from '@sphereon/ssi-sdk-ext.identifier-resolution';
3
3
  import { IIdentifier } from '@veramo/core';
4
- import { CredentialRole, DcqlQueryPayload, StatusListType, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, RequireOneOf, ICredentialStatus, HasherSync, LoggingEventType, LogLevel, System, SubSystem, ActionType, ActionSubType, InitiatorType, SystemCorrelationIdType, OrPromise, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
4
+ import { CredentialRole, StatusListType, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, RequireOneOf, ICredentialStatus, HasherSync, LoggingEventType, LogLevel, System, SubSystem, ActionType, ActionSubType, InitiatorType, SystemCorrelationIdType, OrPromise, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
5
5
  import { AuditLoggingEvent, ActivityLoggingEvent, PartialAuditLoggingEvent, PartialActivityLoggingEvent, PartyCorrelationType, CredentialType } from '@sphereon/ssi-sdk.core';
6
- import { IPresentationDefinition } from '@sphereon/pex';
6
+ import { DcqlQuery } from 'dcql';
7
7
 
8
8
  interface ILocaleBranding {
9
9
  id: string;
@@ -555,33 +555,33 @@ type RemovePhysicalAddressArgs = {
555
555
  physicalAddressId: string;
556
556
  };
557
557
 
558
- type PresentationDefinitionItem = {
558
+ type DcqlQueryItem = {
559
559
  id: string;
560
- definitionId: string;
560
+ queryId: string;
561
561
  tenantId?: string;
562
562
  version: string;
563
563
  name?: string;
564
564
  purpose?: string;
565
- definitionPayload?: IPresentationDefinition;
566
- dcqlPayload?: DcqlQueryPayload;
565
+ query: DcqlQuery;
567
566
  createdAt: Date;
568
567
  lastUpdatedAt: Date;
569
568
  };
570
- type NonPersistedPresentationDefinitionItem = Omit<PresentationDefinitionItem, 'id' | 'createdAt' | 'lastUpdatedAt'>;
571
- type PartialPresentationDefinitionItem = Partial<PresentationDefinitionItem>;
572
- type PresentationDefinitionItemFilter = Partial<Omit<PresentationDefinitionItem, 'definitionPayload' | 'dcqlPayload'>>;
569
+ type ImportDcqlQueryItem = Omit<DcqlQueryItem, 'id' | 'tenantId' | 'version' | 'createdAt' | 'lastUpdatedAt'>;
570
+ type NonPersistedDcqlQueryItem = Omit<DcqlQueryItem, 'id' | 'createdAt' | 'lastUpdatedAt'>;
571
+ type PartialDcqlQueryItem = Partial<DcqlQueryItem>;
572
+ type DcqlQueryItemFilter = Partial<Omit<DcqlQueryItem, 'query'>>;
573
573
 
574
- type FindDefinitionArgs = Array<PresentationDefinitionItemFilter>;
574
+ type FindDcqlQueryArgs = Array<DcqlQueryItemFilter>;
575
575
  type GetDefinitionArgs = {
576
576
  itemId: string;
577
577
  };
578
578
  type HasDefinitionArgs = GetDefinitionArgs;
579
579
  type GetDefinitionsArgs = {
580
- filter?: FindDefinitionArgs;
580
+ filter?: FindDcqlQueryArgs;
581
581
  };
582
582
  type HasDefinitionsArgs = GetDefinitionsArgs;
583
- type AddDefinitionArgs = NonPersistedPresentationDefinitionItem;
584
- type UpdateDefinitionArgs = PresentationDefinitionItem;
583
+ type AddDefinitionArgs = NonPersistedDcqlQueryItem;
584
+ type UpdateDefinitionArgs = DcqlQueryItem;
585
585
  type DeleteDefinitionArgs = {
586
586
  itemId: string;
587
587
  };
@@ -871,7 +871,7 @@ declare enum CredentialDocumentFormat {
871
871
  }
872
872
  declare namespace CredentialDocumentFormat {
873
873
  function fromSpecValue(credentialFormat: string): CredentialDocumentFormat;
874
- function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "dc+sd-jwt" | "mso_mdoc" | "ldp_vc" | "ldp_vp" | "jwt_vc_json" | "jwt_vp_json";
874
+ function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "mso_mdoc" | "dc+sd-jwt" | "jwt_vc_json" | "ldp_vc" | "ldp_vp" | "jwt_vp_json";
875
875
  }
876
876
  declare enum CredentialCorrelationType {
877
877
  DID = "DID",
@@ -1334,15 +1334,14 @@ declare class AuditEventEntity extends BaseEntity$8 {
1334
1334
  lastUpdatedAt: Date;
1335
1335
  }
1336
1336
 
1337
- declare class PresentationDefinitionItemEntity extends BaseEntity$8 {
1337
+ declare class DcqlQueryItemEntity extends BaseEntity$8 {
1338
1338
  id: string;
1339
- definitionId: string;
1339
+ queryId: string;
1340
1340
  version: string;
1341
1341
  tenantId?: string;
1342
1342
  purpose?: string;
1343
1343
  name?: string;
1344
- definitionPayload: string;
1345
- dcqlPayload: string;
1344
+ query: string;
1346
1345
  createdAt: Date;
1347
1346
  lastUpdatedAt: Date;
1348
1347
  updateUpdatedDate(): void;
@@ -1634,10 +1633,10 @@ declare class MachineStateStore extends IAbstractMachineStateStore {
1634
1633
  declare abstract class AbstractPDStore {
1635
1634
  abstract hasDefinition(args: GetDefinitionArgs): Promise<boolean>;
1636
1635
  abstract hasDefinitions(args: GetDefinitionsArgs): Promise<boolean>;
1637
- abstract getDefinition(args: GetDefinitionArgs): Promise<PresentationDefinitionItem>;
1638
- abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<PresentationDefinitionItem>>;
1639
- abstract addDefinition(args: AddDefinitionArgs): Promise<PresentationDefinitionItem>;
1640
- abstract updateDefinition(args: UpdateDefinitionArgs): Promise<PresentationDefinitionItem>;
1636
+ abstract getDefinition(args: GetDefinitionArgs): Promise<DcqlQueryItem>;
1637
+ abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<DcqlQueryItem>>;
1638
+ abstract addDefinition(args: AddDefinitionArgs): Promise<DcqlQueryItem>;
1639
+ abstract updateDefinition(args: UpdateDefinitionArgs): Promise<DcqlQueryItem>;
1641
1640
  abstract deleteDefinition(args: DeleteDefinitionArgs): Promise<void>;
1642
1641
  abstract deleteDefinitions(args: DeleteDefinitionsArgs): Promise<number>;
1643
1642
  }
@@ -1645,15 +1644,15 @@ declare abstract class AbstractPDStore {
1645
1644
  declare class PDStore extends AbstractPDStore {
1646
1645
  private readonly dbConnection;
1647
1646
  constructor(dbConnection: OrPromise<DataSource>);
1648
- getDefinition: (args: GetDefinitionArgs) => Promise<PresentationDefinitionItem>;
1647
+ getDefinition: (args: GetDefinitionArgs) => Promise<DcqlQueryItem>;
1649
1648
  hasDefinition: (args: HasDefinitionArgs) => Promise<boolean>;
1650
1649
  hasDefinitions: (args: HasDefinitionsArgs) => Promise<boolean>;
1651
- getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<PresentationDefinitionItem>>;
1652
- addDefinition: (item: NonPersistedPresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1653
- updateDefinition: (item: PresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1650
+ getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<DcqlQueryItem>>;
1651
+ addDefinition: (item: NonPersistedDcqlQueryItem) => Promise<DcqlQueryItem>;
1652
+ updateDefinition: (item: DcqlQueryItem) => Promise<DcqlQueryItem>;
1654
1653
  deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
1655
1654
  deleteDefinitions: (args: DeleteDefinitionsArgs) => Promise<number>;
1656
- findIds: (pdRepository: Repository<PresentationDefinitionItemEntity>, filter: Array<PresentationDefinitionItemFilter> | undefined) => Promise<Array<PresentationDefinitionItemEntity>>;
1655
+ findIds: (pdRepository: Repository<DcqlQueryItemEntity>, filter: Array<DcqlQueryItemFilter> | undefined) => Promise<Array<DcqlQueryItemEntity>>;
1657
1656
  }
1658
1657
 
1659
1658
  declare class CreateContacts1659463079429 implements MigrationInterface {
@@ -1792,18 +1791,18 @@ declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBr
1792
1791
  declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
1793
1792
  declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
1794
1793
 
1795
- declare const presentationDefinitionItemFrom: (entity: PresentationDefinitionItemEntity) => PresentationDefinitionItem;
1796
- declare const presentationDefinitionEntityItemFrom: (item: NonPersistedPresentationDefinitionItem) => PresentationDefinitionItemEntity;
1797
- declare function isPresentationDefinitionEqual(base: PartialPresentationDefinitionItem, compare: PartialPresentationDefinitionItem): boolean;
1794
+ declare const dcqlQueryItemFrom: (entity: DcqlQueryItemEntity) => DcqlQueryItem;
1795
+ declare const dcqlQueryEntityItemFrom: (item: NonPersistedDcqlQueryItem) => DcqlQueryItemEntity;
1796
+ declare function isPresentationDefinitionEqual(base: PartialDcqlQueryItem, compare: PartialDcqlQueryItem): boolean;
1798
1797
 
1799
1798
  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)[];
1800
1799
  declare const DataStoreOid4vcStateEntities: (typeof Oid4vcStateEntity)[];
1801
1800
  declare const DataStoreIssuanceBrandingEntities: (typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity)[];
1802
- declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
1801
+ declare const DataStorePresentationDefinitionEntities: (typeof DcqlQueryItemEntity)[];
1803
1802
  declare const DataStoreStatusListEntities: (typeof StatusListEntity | typeof StatusListEntryEntity)[];
1804
1803
  declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
1805
1804
  declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
1806
1805
  declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
1807
- declare const DataStoreEntities: (typeof BaseConfigEntity | typeof ConnectionEntity | typeof PartyEntity | typeof IdentityMetadataItemEntity | typeof CorrelationIdentifierEntity | typeof PartyRelationshipEntity | typeof PartyTypeEntity | typeof BaseContactEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ContactMetadataItemEntity | typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity | typeof PresentationDefinitionItemEntity | typeof StatusListEntity | typeof StatusListEntryEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity | typeof MachineStateInfoEntity)[];
1806
+ 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)[];
1808
1807
 
1809
- export { AbstractContactStore, AbstractDigitalCredentialStore, AbstractEventLoggerStore, AbstractIssuanceBrandingStore, AbstractPDStore, type AddCredentialArgs, type AddDefinitionArgs, type AddElectronicAddressArgs, type AddIdentityArgs, type AddPartyArgs, type AddPartyTypeArgs, type AddPhysicalAddressArgs, type AddRelationshipArgs, AuditEventEntity, BackgroundAttributesEntity, BaseConfigEntity, BaseContactEntity, BaseLocaleBrandingEntity, type BitstringStatusListArgs, BitstringStatusListEntity, type BitstringStatusListEntryCredentialStatus, BitstringStatusListEntryEntity, type BitstringStatusMessage, type BitstringStatusPurpose, type Connection, type ConnectionConfig, ConnectionEntity, ConnectionType, type Contact, ContactMetadataItemEntity, ContactStore, type CorrelationIdentifier, CorrelationIdentifierEntity, CorrelationIdentifierType, CredentialBrandingEntity, CredentialClaimsEntity, CredentialCorrelationType, CredentialDocumentFormat, CredentialLocaleBrandingEntity, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, type DeleteDefinitionArgs, type DeleteDefinitionsArgs, type DidAuthConfig, DidAuthConfigEntity, type DigitalCredential, DigitalCredentialEntity, DigitalCredentialStore, DocumentType, type ElectronicAddress, ElectronicAddressEntity, type ElectronicAddressType, EventLoggerStore, type FindActivityLoggingEventArgs, type FindAuditLoggingEventArgs, type FindCredentialBrandingArgs, type FindCredentialLocaleBrandingArgs, type FindDefinitionArgs, type FindDigitalCredentialArgs, type FindElectronicAddressArgs, type FindIdentityArgs, type FindIssuerBrandingArgs, type FindIssuerLocaleBrandingArgs, type FindMachineStatesFilterArgs, type FindPartyArgs, type FindPartyTypeArgs, type FindPhysicalAddressArgs, type FindRelationshipArgs, type FindStatusListArgs, type FindStatusListEntryArgs, type GetActivityEventsArgs, type GetAuditEventsArgs, type GetCredentialArgs, type GetCredentialsArgs, type GetCredentialsResponse, type GetDefinitionArgs, type GetDefinitionsArgs, type GetElectronicAddressArgs, type GetElectronicAddressesArgs, type GetIdentitiesArgs, type GetIdentityArgs, type GetPartiesArgs, type GetPartyArgs, type GetPartyTypeArgs, type GetPartyTypesArgs, type GetPhysicalAddressArgs, type GetPhysicalAddressesArgs, type GetRelationshipArgs, type GetRelationshipsArgs, type HasDefinitionArgs, type HasDefinitionsArgs, IAbstractMachineStateStore, type IAddCredentialBrandingArgs, type IAddCredentialLocaleBrandingArgs, type IAddIssuerBrandingArgs, type IAddIssuerLocaleBrandingArgs, type IAddStatusListArgs, type IAddStatusListEntryArgs, type IBackgroundAttributes, type IBasicBackgroundAttributes, type IBasicCredentialBranding, type IBasicCredentialClaim, type IBasicCredentialLocaleBranding, type IBasicImageAttributes, type IBasicImageDimensions, type IBasicIssuerBranding, type IBasicIssuerLocaleBranding, type IBasicTextAttributes, type IBitstringStatusListArgs, type IBitstringStatusListEntity, type IBitstringStatusListEntryEntity, type ICredentialBranding, type ICredentialBrandingFilter, type ICredentialClaim, type ICredentialLocaleBranding, type ICredentialLocaleBrandingFilter, type IGetCredentialBrandingArgs, type IGetCredentialLocaleBrandingArgs, type IGetIssuerBrandingArgs, type IGetIssuerLocaleBrandingArgs, type IGetStatusListArgs, type IGetStatusListEntriesArgs, type IGetStatusListEntryByCredentialIdArgs, type IGetStatusListEntryByIndexArgs, type IGetStatusListsArgs, type IImageAttributes, type IImageDimensions, type IIssuerBranding, type IIssuerBrandingFilter, type IIssuerLocaleBranding, type IIssuerLocaleBrandingFilter, type ILocaleBranding, type IMetadataEntity, type IOAuthStatusListArgs, type IOAuthStatusListEntity, type IPartialBackgroundAttributes, type IPartialCredentialBranding, type IPartialCredentialClaim, type IPartialCredentialLocaleBranding, type IPartialImageAttributes, type IPartialImageDimensions, type IPartialIssuerBranding, type IPartialIssuerLocaleBranding, type IPartialTextAttributes, type IRemoveCredentialBrandingArgs, type IRemoveCredentialLocaleBrandingArgs, type IRemoveIssuerBrandingArgs, type IRemoveIssuerLocaleBrandingArgs, type IRemoveStatusListArgs, type IStatusList2021Args, type IStatusList2021Entity, type IStatusListEntity, type IStatusListEntryAvailableArgs, type IStatusListEntryEntity, type ITextAttributes, type IUpdateCredentialBrandingArgs, type IUpdateCredentialLocaleBrandingArgs, type IUpdateIssuerBrandingArgs, type IUpdateIssuerLocaleBrandingArgs, type IUpdateStatusListIndexArgs, type Identity, IdentityEntity, IdentityMetadataItemEntity, IdentityOrigin, ImageAttributesEntity, ImageDimensionsEntity, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, type NonPersistedPresentationDefinitionItem, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type PartialPresentationDefinitionItem, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, type PresentationDefinitionItem, PresentationDefinitionItemEntity, type PresentationDefinitionItemFilter, RegulationType, type RemoveCredentialArgs, type RemoveElectronicAddressArgs, type RemoveIdentityArgs, type RemovePartyArgs, type RemovePartyTypeArgs, type RemovePhysicalAddressArgs, type RemoveRelationshipArgs, StatusList2021Entity, StatusListEntity, StatusListEntryEntity, StatusListStore, type StoreActivityEventArgs, type StoreAuditEventArgs, type StoreFindMachineStatesArgs, type StoreMachineStateDeleteArgs, type StoreMachineStateDeleteExpiredArgs, type StoreMachineStateGetArgs, type StoreMachineStateInfo, type StoreMachineStatePersistArgs, type StoreMachineStatesFindActiveArgs, TextAttributesEntity, type UpdateCredentialStateArgs, type UpdateDefinitionArgs, type UpdateElectronicAddressArgs, type UpdateIdentityArgs, type UpdatePartyArgs, type UpdatePartyTypeArgs, type UpdatePhysicalAddressArgs, type UpdateRelationshipArgs, type ValidationConstraint, activityEventEntityFrom, activityEventFrom, auditEventEntityFrom, auditEventFrom, backgroundAttributesEntityFrom, configFrom, connectionEntityFrom, connectionFrom, contactEntityFrom, contactFrom, contactMetadataItemEntityFrom, correlationIdentifierEntityFrom, correlationIdentifierFrom, credentialBrandingEntityFrom, credentialBrandingFrom, credentialClaimsEntityFrom, credentialLocaleBrandingEntityFrom, didAuthConfigEntityFrom, didAuthConfigFrom, digitalCredentialFrom, digitalCredentialsFrom, electronicAddressEntityFrom, electronicAddressFrom, ensureRawDocument, identityEntityFrom, identityFrom, identityMetadataItemEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, isDidAuthConfig, isHex, isNaturalPerson, isOpenIdConfig, isOrganization, isPresentationDefinitionEqual, issuerBrandingEntityFrom, issuerBrandingFrom, issuerLocaleBrandingEntityFrom, localeBrandingFrom, metadataItemFrom, naturalPersonEntityFrom, naturalPersonFrom, nonPersistedDigitalCredentialEntityFromAddArgs, openIdConfigEntityFrom, openIdConfigFrom, organizationEntityFrom, organizationFrom, parseRawDocument, partyEntityFrom, partyFrom, partyRelationshipEntityFrom, partyRelationshipFrom, partyTypeEntityFrom, partyTypeFrom, physicalAddressEntityFrom, physicalAddressFrom, presentationDefinitionEntityItemFrom, presentationDefinitionItemFrom, textAttributesEntityFrom };
1808
+ export { AbstractContactStore, AbstractDigitalCredentialStore, AbstractEventLoggerStore, AbstractIssuanceBrandingStore, AbstractPDStore, type AddCredentialArgs, type AddDefinitionArgs, type AddElectronicAddressArgs, type AddIdentityArgs, type AddPartyArgs, type AddPartyTypeArgs, type AddPhysicalAddressArgs, type AddRelationshipArgs, AuditEventEntity, BackgroundAttributesEntity, BaseConfigEntity, BaseContactEntity, BaseLocaleBrandingEntity, type BitstringStatusListArgs, BitstringStatusListEntity, type BitstringStatusListEntryCredentialStatus, BitstringStatusListEntryEntity, type BitstringStatusMessage, type BitstringStatusPurpose, type Connection, type ConnectionConfig, ConnectionEntity, ConnectionType, type Contact, ContactMetadataItemEntity, ContactStore, type CorrelationIdentifier, CorrelationIdentifierEntity, CorrelationIdentifierType, CredentialBrandingEntity, CredentialClaimsEntity, CredentialCorrelationType, CredentialDocumentFormat, CredentialLocaleBrandingEntity, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, type DcqlQueryItem, DcqlQueryItemEntity, type DcqlQueryItemFilter, type DeleteDefinitionArgs, type DeleteDefinitionsArgs, type DidAuthConfig, DidAuthConfigEntity, type DigitalCredential, DigitalCredentialEntity, DigitalCredentialStore, DocumentType, type ElectronicAddress, ElectronicAddressEntity, type ElectronicAddressType, EventLoggerStore, type FindActivityLoggingEventArgs, type FindAuditLoggingEventArgs, type FindCredentialBrandingArgs, type FindCredentialLocaleBrandingArgs, type FindDcqlQueryArgs, type FindDigitalCredentialArgs, type FindElectronicAddressArgs, type FindIdentityArgs, type FindIssuerBrandingArgs, type FindIssuerLocaleBrandingArgs, type FindMachineStatesFilterArgs, type FindPartyArgs, type FindPartyTypeArgs, type FindPhysicalAddressArgs, type FindRelationshipArgs, type FindStatusListArgs, type FindStatusListEntryArgs, type GetActivityEventsArgs, type GetAuditEventsArgs, type GetCredentialArgs, type GetCredentialsArgs, type GetCredentialsResponse, type GetDefinitionArgs, type GetDefinitionsArgs, type GetElectronicAddressArgs, type GetElectronicAddressesArgs, type GetIdentitiesArgs, type GetIdentityArgs, type GetPartiesArgs, type GetPartyArgs, type GetPartyTypeArgs, type GetPartyTypesArgs, type GetPhysicalAddressArgs, type GetPhysicalAddressesArgs, type GetRelationshipArgs, type GetRelationshipsArgs, type HasDefinitionArgs, type HasDefinitionsArgs, IAbstractMachineStateStore, type IAddCredentialBrandingArgs, type IAddCredentialLocaleBrandingArgs, type IAddIssuerBrandingArgs, type IAddIssuerLocaleBrandingArgs, type IAddStatusListArgs, type IAddStatusListEntryArgs, type IBackgroundAttributes, type IBasicBackgroundAttributes, type IBasicCredentialBranding, type IBasicCredentialClaim, type IBasicCredentialLocaleBranding, type IBasicImageAttributes, type IBasicImageDimensions, type IBasicIssuerBranding, type IBasicIssuerLocaleBranding, type IBasicTextAttributes, type IBitstringStatusListArgs, type IBitstringStatusListEntity, type IBitstringStatusListEntryEntity, type ICredentialBranding, type ICredentialBrandingFilter, type ICredentialClaim, type ICredentialLocaleBranding, type ICredentialLocaleBrandingFilter, type IGetCredentialBrandingArgs, type IGetCredentialLocaleBrandingArgs, type IGetIssuerBrandingArgs, type IGetIssuerLocaleBrandingArgs, type IGetStatusListArgs, type IGetStatusListEntriesArgs, type IGetStatusListEntryByCredentialIdArgs, type IGetStatusListEntryByIndexArgs, type IGetStatusListsArgs, type IImageAttributes, type IImageDimensions, type IIssuerBranding, type IIssuerBrandingFilter, type IIssuerLocaleBranding, type IIssuerLocaleBrandingFilter, type ILocaleBranding, type IMetadataEntity, type IOAuthStatusListArgs, type IOAuthStatusListEntity, type IPartialBackgroundAttributes, type IPartialCredentialBranding, type IPartialCredentialClaim, type IPartialCredentialLocaleBranding, type IPartialImageAttributes, type IPartialImageDimensions, type IPartialIssuerBranding, type IPartialIssuerLocaleBranding, type IPartialTextAttributes, type IRemoveCredentialBrandingArgs, type IRemoveCredentialLocaleBrandingArgs, type IRemoveIssuerBrandingArgs, type IRemoveIssuerLocaleBrandingArgs, type IRemoveStatusListArgs, type IStatusList2021Args, type IStatusList2021Entity, type IStatusListEntity, type IStatusListEntryAvailableArgs, type IStatusListEntryEntity, type ITextAttributes, type IUpdateCredentialBrandingArgs, type IUpdateCredentialLocaleBrandingArgs, type IUpdateIssuerBrandingArgs, type IUpdateIssuerLocaleBrandingArgs, type IUpdateStatusListIndexArgs, type Identity, IdentityEntity, IdentityMetadataItemEntity, IdentityOrigin, ImageAttributesEntity, ImageDimensionsEntity, type ImportDcqlQueryItem, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDcqlQueryItem, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDcqlQueryItem, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, RegulationType, type RemoveCredentialArgs, type RemoveElectronicAddressArgs, type RemoveIdentityArgs, type RemovePartyArgs, type RemovePartyTypeArgs, type RemovePhysicalAddressArgs, type RemoveRelationshipArgs, StatusList2021Entity, StatusListEntity, StatusListEntryEntity, StatusListStore, type StoreActivityEventArgs, type StoreAuditEventArgs, type StoreFindMachineStatesArgs, type StoreMachineStateDeleteArgs, type StoreMachineStateDeleteExpiredArgs, type StoreMachineStateGetArgs, type StoreMachineStateInfo, type StoreMachineStatePersistArgs, type StoreMachineStatesFindActiveArgs, TextAttributesEntity, type UpdateCredentialStateArgs, type UpdateDefinitionArgs, type UpdateElectronicAddressArgs, type UpdateIdentityArgs, type UpdatePartyArgs, type UpdatePartyTypeArgs, type UpdatePhysicalAddressArgs, type UpdateRelationshipArgs, type ValidationConstraint, activityEventEntityFrom, activityEventFrom, auditEventEntityFrom, auditEventFrom, backgroundAttributesEntityFrom, configFrom, connectionEntityFrom, connectionFrom, contactEntityFrom, contactFrom, contactMetadataItemEntityFrom, correlationIdentifierEntityFrom, correlationIdentifierFrom, credentialBrandingEntityFrom, credentialBrandingFrom, credentialClaimsEntityFrom, credentialLocaleBrandingEntityFrom, dcqlQueryEntityItemFrom, dcqlQueryItemFrom, didAuthConfigEntityFrom, didAuthConfigFrom, digitalCredentialFrom, digitalCredentialsFrom, electronicAddressEntityFrom, electronicAddressFrom, ensureRawDocument, identityEntityFrom, identityFrom, identityMetadataItemEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, isDidAuthConfig, isHex, isNaturalPerson, isOpenIdConfig, isOrganization, isPresentationDefinitionEqual, issuerBrandingEntityFrom, issuerBrandingFrom, issuerLocaleBrandingEntityFrom, localeBrandingFrom, metadataItemFrom, naturalPersonEntityFrom, naturalPersonFrom, nonPersistedDigitalCredentialEntityFromAddArgs, openIdConfigEntityFrom, openIdConfigFrom, organizationEntityFrom, organizationFrom, parseRawDocument, partyEntityFrom, partyFrom, partyRelationshipEntityFrom, partyRelationshipFrom, partyTypeEntityFrom, partyTypeFrom, physicalAddressEntityFrom, physicalAddressFrom, textAttributesEntityFrom };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import typeorm, { BaseEntity as BaseEntity$8, FindOptionsWhere, FindOptionsOrder, DataSource, Repository, MigrationInterface, QueryRunner } from 'typeorm';
2
2
  import { ManagedIdentifierOptsOrResult } from '@sphereon/ssi-sdk-ext.identifier-resolution';
3
3
  import { IIdentifier } from '@veramo/core';
4
- import { CredentialRole, DcqlQueryPayload, StatusListType, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, RequireOneOf, ICredentialStatus, HasherSync, LoggingEventType, LogLevel, System, SubSystem, ActionType, ActionSubType, InitiatorType, SystemCorrelationIdType, OrPromise, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
4
+ import { CredentialRole, StatusListType, IIssuer, StatusListDriverType, StatusListCredentialIdMode, CredentialProofFormat, StatusListCredential, StatusListIndexingDirection, StatusPurpose2021, RequireOneOf, ICredentialStatus, HasherSync, LoggingEventType, LogLevel, System, SubSystem, ActionType, ActionSubType, InitiatorType, SystemCorrelationIdType, OrPromise, OriginalVerifiableCredential, OriginalVerifiablePresentation } from '@sphereon/ssi-types';
5
5
  import { AuditLoggingEvent, ActivityLoggingEvent, PartialAuditLoggingEvent, PartialActivityLoggingEvent, PartyCorrelationType, CredentialType } from '@sphereon/ssi-sdk.core';
6
- import { IPresentationDefinition } from '@sphereon/pex';
6
+ import { DcqlQuery } from 'dcql';
7
7
 
8
8
  interface ILocaleBranding {
9
9
  id: string;
@@ -555,33 +555,33 @@ type RemovePhysicalAddressArgs = {
555
555
  physicalAddressId: string;
556
556
  };
557
557
 
558
- type PresentationDefinitionItem = {
558
+ type DcqlQueryItem = {
559
559
  id: string;
560
- definitionId: string;
560
+ queryId: string;
561
561
  tenantId?: string;
562
562
  version: string;
563
563
  name?: string;
564
564
  purpose?: string;
565
- definitionPayload?: IPresentationDefinition;
566
- dcqlPayload?: DcqlQueryPayload;
565
+ query: DcqlQuery;
567
566
  createdAt: Date;
568
567
  lastUpdatedAt: Date;
569
568
  };
570
- type NonPersistedPresentationDefinitionItem = Omit<PresentationDefinitionItem, 'id' | 'createdAt' | 'lastUpdatedAt'>;
571
- type PartialPresentationDefinitionItem = Partial<PresentationDefinitionItem>;
572
- type PresentationDefinitionItemFilter = Partial<Omit<PresentationDefinitionItem, 'definitionPayload' | 'dcqlPayload'>>;
569
+ type ImportDcqlQueryItem = Omit<DcqlQueryItem, 'id' | 'tenantId' | 'version' | 'createdAt' | 'lastUpdatedAt'>;
570
+ type NonPersistedDcqlQueryItem = Omit<DcqlQueryItem, 'id' | 'createdAt' | 'lastUpdatedAt'>;
571
+ type PartialDcqlQueryItem = Partial<DcqlQueryItem>;
572
+ type DcqlQueryItemFilter = Partial<Omit<DcqlQueryItem, 'query'>>;
573
573
 
574
- type FindDefinitionArgs = Array<PresentationDefinitionItemFilter>;
574
+ type FindDcqlQueryArgs = Array<DcqlQueryItemFilter>;
575
575
  type GetDefinitionArgs = {
576
576
  itemId: string;
577
577
  };
578
578
  type HasDefinitionArgs = GetDefinitionArgs;
579
579
  type GetDefinitionsArgs = {
580
- filter?: FindDefinitionArgs;
580
+ filter?: FindDcqlQueryArgs;
581
581
  };
582
582
  type HasDefinitionsArgs = GetDefinitionsArgs;
583
- type AddDefinitionArgs = NonPersistedPresentationDefinitionItem;
584
- type UpdateDefinitionArgs = PresentationDefinitionItem;
583
+ type AddDefinitionArgs = NonPersistedDcqlQueryItem;
584
+ type UpdateDefinitionArgs = DcqlQueryItem;
585
585
  type DeleteDefinitionArgs = {
586
586
  itemId: string;
587
587
  };
@@ -871,7 +871,7 @@ declare enum CredentialDocumentFormat {
871
871
  }
872
872
  declare namespace CredentialDocumentFormat {
873
873
  function fromSpecValue(credentialFormat: string): CredentialDocumentFormat;
874
- function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "dc+sd-jwt" | "mso_mdoc" | "ldp_vc" | "ldp_vp" | "jwt_vc_json" | "jwt_vp_json";
874
+ function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "mso_mdoc" | "dc+sd-jwt" | "jwt_vc_json" | "ldp_vc" | "ldp_vp" | "jwt_vp_json";
875
875
  }
876
876
  declare enum CredentialCorrelationType {
877
877
  DID = "DID",
@@ -1334,15 +1334,14 @@ declare class AuditEventEntity extends BaseEntity$8 {
1334
1334
  lastUpdatedAt: Date;
1335
1335
  }
1336
1336
 
1337
- declare class PresentationDefinitionItemEntity extends BaseEntity$8 {
1337
+ declare class DcqlQueryItemEntity extends BaseEntity$8 {
1338
1338
  id: string;
1339
- definitionId: string;
1339
+ queryId: string;
1340
1340
  version: string;
1341
1341
  tenantId?: string;
1342
1342
  purpose?: string;
1343
1343
  name?: string;
1344
- definitionPayload: string;
1345
- dcqlPayload: string;
1344
+ query: string;
1346
1345
  createdAt: Date;
1347
1346
  lastUpdatedAt: Date;
1348
1347
  updateUpdatedDate(): void;
@@ -1634,10 +1633,10 @@ declare class MachineStateStore extends IAbstractMachineStateStore {
1634
1633
  declare abstract class AbstractPDStore {
1635
1634
  abstract hasDefinition(args: GetDefinitionArgs): Promise<boolean>;
1636
1635
  abstract hasDefinitions(args: GetDefinitionsArgs): Promise<boolean>;
1637
- abstract getDefinition(args: GetDefinitionArgs): Promise<PresentationDefinitionItem>;
1638
- abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<PresentationDefinitionItem>>;
1639
- abstract addDefinition(args: AddDefinitionArgs): Promise<PresentationDefinitionItem>;
1640
- abstract updateDefinition(args: UpdateDefinitionArgs): Promise<PresentationDefinitionItem>;
1636
+ abstract getDefinition(args: GetDefinitionArgs): Promise<DcqlQueryItem>;
1637
+ abstract getDefinitions(args: GetDefinitionsArgs): Promise<Array<DcqlQueryItem>>;
1638
+ abstract addDefinition(args: AddDefinitionArgs): Promise<DcqlQueryItem>;
1639
+ abstract updateDefinition(args: UpdateDefinitionArgs): Promise<DcqlQueryItem>;
1641
1640
  abstract deleteDefinition(args: DeleteDefinitionArgs): Promise<void>;
1642
1641
  abstract deleteDefinitions(args: DeleteDefinitionsArgs): Promise<number>;
1643
1642
  }
@@ -1645,15 +1644,15 @@ declare abstract class AbstractPDStore {
1645
1644
  declare class PDStore extends AbstractPDStore {
1646
1645
  private readonly dbConnection;
1647
1646
  constructor(dbConnection: OrPromise<DataSource>);
1648
- getDefinition: (args: GetDefinitionArgs) => Promise<PresentationDefinitionItem>;
1647
+ getDefinition: (args: GetDefinitionArgs) => Promise<DcqlQueryItem>;
1649
1648
  hasDefinition: (args: HasDefinitionArgs) => Promise<boolean>;
1650
1649
  hasDefinitions: (args: HasDefinitionsArgs) => Promise<boolean>;
1651
- getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<PresentationDefinitionItem>>;
1652
- addDefinition: (item: NonPersistedPresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1653
- updateDefinition: (item: PresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1650
+ getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<DcqlQueryItem>>;
1651
+ addDefinition: (item: NonPersistedDcqlQueryItem) => Promise<DcqlQueryItem>;
1652
+ updateDefinition: (item: DcqlQueryItem) => Promise<DcqlQueryItem>;
1654
1653
  deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
1655
1654
  deleteDefinitions: (args: DeleteDefinitionsArgs) => Promise<number>;
1656
- findIds: (pdRepository: Repository<PresentationDefinitionItemEntity>, filter: Array<PresentationDefinitionItemFilter> | undefined) => Promise<Array<PresentationDefinitionItemEntity>>;
1655
+ findIds: (pdRepository: Repository<DcqlQueryItemEntity>, filter: Array<DcqlQueryItemFilter> | undefined) => Promise<Array<DcqlQueryItemEntity>>;
1657
1656
  }
1658
1657
 
1659
1658
  declare class CreateContacts1659463079429 implements MigrationInterface {
@@ -1792,18 +1791,18 @@ declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBr
1792
1791
  declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
1793
1792
  declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
1794
1793
 
1795
- declare const presentationDefinitionItemFrom: (entity: PresentationDefinitionItemEntity) => PresentationDefinitionItem;
1796
- declare const presentationDefinitionEntityItemFrom: (item: NonPersistedPresentationDefinitionItem) => PresentationDefinitionItemEntity;
1797
- declare function isPresentationDefinitionEqual(base: PartialPresentationDefinitionItem, compare: PartialPresentationDefinitionItem): boolean;
1794
+ declare const dcqlQueryItemFrom: (entity: DcqlQueryItemEntity) => DcqlQueryItem;
1795
+ declare const dcqlQueryEntityItemFrom: (item: NonPersistedDcqlQueryItem) => DcqlQueryItemEntity;
1796
+ declare function isPresentationDefinitionEqual(base: PartialDcqlQueryItem, compare: PartialDcqlQueryItem): boolean;
1798
1797
 
1799
1798
  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)[];
1800
1799
  declare const DataStoreOid4vcStateEntities: (typeof Oid4vcStateEntity)[];
1801
1800
  declare const DataStoreIssuanceBrandingEntities: (typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity)[];
1802
- declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
1801
+ declare const DataStorePresentationDefinitionEntities: (typeof DcqlQueryItemEntity)[];
1803
1802
  declare const DataStoreStatusListEntities: (typeof StatusListEntity | typeof StatusListEntryEntity)[];
1804
1803
  declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
1805
1804
  declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
1806
1805
  declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
1807
- declare const DataStoreEntities: (typeof BaseConfigEntity | typeof ConnectionEntity | typeof PartyEntity | typeof IdentityMetadataItemEntity | typeof CorrelationIdentifierEntity | typeof PartyRelationshipEntity | typeof PartyTypeEntity | typeof BaseContactEntity | typeof ElectronicAddressEntity | typeof PhysicalAddressEntity | typeof ContactMetadataItemEntity | typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity | typeof PresentationDefinitionItemEntity | typeof StatusListEntity | typeof StatusListEntryEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity | typeof MachineStateInfoEntity)[];
1806
+ 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)[];
1808
1807
 
1809
- export { AbstractContactStore, AbstractDigitalCredentialStore, AbstractEventLoggerStore, AbstractIssuanceBrandingStore, AbstractPDStore, type AddCredentialArgs, type AddDefinitionArgs, type AddElectronicAddressArgs, type AddIdentityArgs, type AddPartyArgs, type AddPartyTypeArgs, type AddPhysicalAddressArgs, type AddRelationshipArgs, AuditEventEntity, BackgroundAttributesEntity, BaseConfigEntity, BaseContactEntity, BaseLocaleBrandingEntity, type BitstringStatusListArgs, BitstringStatusListEntity, type BitstringStatusListEntryCredentialStatus, BitstringStatusListEntryEntity, type BitstringStatusMessage, type BitstringStatusPurpose, type Connection, type ConnectionConfig, ConnectionEntity, ConnectionType, type Contact, ContactMetadataItemEntity, ContactStore, type CorrelationIdentifier, CorrelationIdentifierEntity, CorrelationIdentifierType, CredentialBrandingEntity, CredentialClaimsEntity, CredentialCorrelationType, CredentialDocumentFormat, CredentialLocaleBrandingEntity, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, type DeleteDefinitionArgs, type DeleteDefinitionsArgs, type DidAuthConfig, DidAuthConfigEntity, type DigitalCredential, DigitalCredentialEntity, DigitalCredentialStore, DocumentType, type ElectronicAddress, ElectronicAddressEntity, type ElectronicAddressType, EventLoggerStore, type FindActivityLoggingEventArgs, type FindAuditLoggingEventArgs, type FindCredentialBrandingArgs, type FindCredentialLocaleBrandingArgs, type FindDefinitionArgs, type FindDigitalCredentialArgs, type FindElectronicAddressArgs, type FindIdentityArgs, type FindIssuerBrandingArgs, type FindIssuerLocaleBrandingArgs, type FindMachineStatesFilterArgs, type FindPartyArgs, type FindPartyTypeArgs, type FindPhysicalAddressArgs, type FindRelationshipArgs, type FindStatusListArgs, type FindStatusListEntryArgs, type GetActivityEventsArgs, type GetAuditEventsArgs, type GetCredentialArgs, type GetCredentialsArgs, type GetCredentialsResponse, type GetDefinitionArgs, type GetDefinitionsArgs, type GetElectronicAddressArgs, type GetElectronicAddressesArgs, type GetIdentitiesArgs, type GetIdentityArgs, type GetPartiesArgs, type GetPartyArgs, type GetPartyTypeArgs, type GetPartyTypesArgs, type GetPhysicalAddressArgs, type GetPhysicalAddressesArgs, type GetRelationshipArgs, type GetRelationshipsArgs, type HasDefinitionArgs, type HasDefinitionsArgs, IAbstractMachineStateStore, type IAddCredentialBrandingArgs, type IAddCredentialLocaleBrandingArgs, type IAddIssuerBrandingArgs, type IAddIssuerLocaleBrandingArgs, type IAddStatusListArgs, type IAddStatusListEntryArgs, type IBackgroundAttributes, type IBasicBackgroundAttributes, type IBasicCredentialBranding, type IBasicCredentialClaim, type IBasicCredentialLocaleBranding, type IBasicImageAttributes, type IBasicImageDimensions, type IBasicIssuerBranding, type IBasicIssuerLocaleBranding, type IBasicTextAttributes, type IBitstringStatusListArgs, type IBitstringStatusListEntity, type IBitstringStatusListEntryEntity, type ICredentialBranding, type ICredentialBrandingFilter, type ICredentialClaim, type ICredentialLocaleBranding, type ICredentialLocaleBrandingFilter, type IGetCredentialBrandingArgs, type IGetCredentialLocaleBrandingArgs, type IGetIssuerBrandingArgs, type IGetIssuerLocaleBrandingArgs, type IGetStatusListArgs, type IGetStatusListEntriesArgs, type IGetStatusListEntryByCredentialIdArgs, type IGetStatusListEntryByIndexArgs, type IGetStatusListsArgs, type IImageAttributes, type IImageDimensions, type IIssuerBranding, type IIssuerBrandingFilter, type IIssuerLocaleBranding, type IIssuerLocaleBrandingFilter, type ILocaleBranding, type IMetadataEntity, type IOAuthStatusListArgs, type IOAuthStatusListEntity, type IPartialBackgroundAttributes, type IPartialCredentialBranding, type IPartialCredentialClaim, type IPartialCredentialLocaleBranding, type IPartialImageAttributes, type IPartialImageDimensions, type IPartialIssuerBranding, type IPartialIssuerLocaleBranding, type IPartialTextAttributes, type IRemoveCredentialBrandingArgs, type IRemoveCredentialLocaleBrandingArgs, type IRemoveIssuerBrandingArgs, type IRemoveIssuerLocaleBrandingArgs, type IRemoveStatusListArgs, type IStatusList2021Args, type IStatusList2021Entity, type IStatusListEntity, type IStatusListEntryAvailableArgs, type IStatusListEntryEntity, type ITextAttributes, type IUpdateCredentialBrandingArgs, type IUpdateCredentialLocaleBrandingArgs, type IUpdateIssuerBrandingArgs, type IUpdateIssuerLocaleBrandingArgs, type IUpdateStatusListIndexArgs, type Identity, IdentityEntity, IdentityMetadataItemEntity, IdentityOrigin, ImageAttributesEntity, ImageDimensionsEntity, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, type NonPersistedPresentationDefinitionItem, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type PartialPresentationDefinitionItem, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, type PresentationDefinitionItem, PresentationDefinitionItemEntity, type PresentationDefinitionItemFilter, RegulationType, type RemoveCredentialArgs, type RemoveElectronicAddressArgs, type RemoveIdentityArgs, type RemovePartyArgs, type RemovePartyTypeArgs, type RemovePhysicalAddressArgs, type RemoveRelationshipArgs, StatusList2021Entity, StatusListEntity, StatusListEntryEntity, StatusListStore, type StoreActivityEventArgs, type StoreAuditEventArgs, type StoreFindMachineStatesArgs, type StoreMachineStateDeleteArgs, type StoreMachineStateDeleteExpiredArgs, type StoreMachineStateGetArgs, type StoreMachineStateInfo, type StoreMachineStatePersistArgs, type StoreMachineStatesFindActiveArgs, TextAttributesEntity, type UpdateCredentialStateArgs, type UpdateDefinitionArgs, type UpdateElectronicAddressArgs, type UpdateIdentityArgs, type UpdatePartyArgs, type UpdatePartyTypeArgs, type UpdatePhysicalAddressArgs, type UpdateRelationshipArgs, type ValidationConstraint, activityEventEntityFrom, activityEventFrom, auditEventEntityFrom, auditEventFrom, backgroundAttributesEntityFrom, configFrom, connectionEntityFrom, connectionFrom, contactEntityFrom, contactFrom, contactMetadataItemEntityFrom, correlationIdentifierEntityFrom, correlationIdentifierFrom, credentialBrandingEntityFrom, credentialBrandingFrom, credentialClaimsEntityFrom, credentialLocaleBrandingEntityFrom, didAuthConfigEntityFrom, didAuthConfigFrom, digitalCredentialFrom, digitalCredentialsFrom, electronicAddressEntityFrom, electronicAddressFrom, ensureRawDocument, identityEntityFrom, identityFrom, identityMetadataItemEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, isDidAuthConfig, isHex, isNaturalPerson, isOpenIdConfig, isOrganization, isPresentationDefinitionEqual, issuerBrandingEntityFrom, issuerBrandingFrom, issuerLocaleBrandingEntityFrom, localeBrandingFrom, metadataItemFrom, naturalPersonEntityFrom, naturalPersonFrom, nonPersistedDigitalCredentialEntityFromAddArgs, openIdConfigEntityFrom, openIdConfigFrom, organizationEntityFrom, organizationFrom, parseRawDocument, partyEntityFrom, partyFrom, partyRelationshipEntityFrom, partyRelationshipFrom, partyTypeEntityFrom, partyTypeFrom, physicalAddressEntityFrom, physicalAddressFrom, presentationDefinitionEntityItemFrom, presentationDefinitionItemFrom, textAttributesEntityFrom };
1808
+ export { AbstractContactStore, AbstractDigitalCredentialStore, AbstractEventLoggerStore, AbstractIssuanceBrandingStore, AbstractPDStore, type AddCredentialArgs, type AddDefinitionArgs, type AddElectronicAddressArgs, type AddIdentityArgs, type AddPartyArgs, type AddPartyTypeArgs, type AddPhysicalAddressArgs, type AddRelationshipArgs, AuditEventEntity, BackgroundAttributesEntity, BaseConfigEntity, BaseContactEntity, BaseLocaleBrandingEntity, type BitstringStatusListArgs, BitstringStatusListEntity, type BitstringStatusListEntryCredentialStatus, BitstringStatusListEntryEntity, type BitstringStatusMessage, type BitstringStatusPurpose, type Connection, type ConnectionConfig, ConnectionEntity, ConnectionType, type Contact, ContactMetadataItemEntity, ContactStore, type CorrelationIdentifier, CorrelationIdentifierEntity, CorrelationIdentifierType, CredentialBrandingEntity, CredentialClaimsEntity, CredentialCorrelationType, CredentialDocumentFormat, CredentialLocaleBrandingEntity, CredentialStateType, DataStoreContactEntities, DataStoreContactMigrations, DataStoreDigitalCredentialEntities, DataStoreDigitalCredentialMigrations, DataStoreEntities, DataStoreEventLoggerEntities, DataStoreEventLoggerMigrations, DataStoreIssuanceBrandingEntities, DataStoreIssuanceBrandingMigrations, DataStoreMachineStateEntities, DataStoreMachineStateMigrations, DataStoreMigrations, DataStoreOid4vcStateEntities, DataStorePresentationDefinitionEntities, DataStorePresentationDefinitionMigrations, DataStoreStatusListEntities, DataStoreStatusListMigrations, type DcqlQueryItem, DcqlQueryItemEntity, type DcqlQueryItemFilter, type DeleteDefinitionArgs, type DeleteDefinitionsArgs, type DidAuthConfig, DidAuthConfigEntity, type DigitalCredential, DigitalCredentialEntity, DigitalCredentialStore, DocumentType, type ElectronicAddress, ElectronicAddressEntity, type ElectronicAddressType, EventLoggerStore, type FindActivityLoggingEventArgs, type FindAuditLoggingEventArgs, type FindCredentialBrandingArgs, type FindCredentialLocaleBrandingArgs, type FindDcqlQueryArgs, type FindDigitalCredentialArgs, type FindElectronicAddressArgs, type FindIdentityArgs, type FindIssuerBrandingArgs, type FindIssuerLocaleBrandingArgs, type FindMachineStatesFilterArgs, type FindPartyArgs, type FindPartyTypeArgs, type FindPhysicalAddressArgs, type FindRelationshipArgs, type FindStatusListArgs, type FindStatusListEntryArgs, type GetActivityEventsArgs, type GetAuditEventsArgs, type GetCredentialArgs, type GetCredentialsArgs, type GetCredentialsResponse, type GetDefinitionArgs, type GetDefinitionsArgs, type GetElectronicAddressArgs, type GetElectronicAddressesArgs, type GetIdentitiesArgs, type GetIdentityArgs, type GetPartiesArgs, type GetPartyArgs, type GetPartyTypeArgs, type GetPartyTypesArgs, type GetPhysicalAddressArgs, type GetPhysicalAddressesArgs, type GetRelationshipArgs, type GetRelationshipsArgs, type HasDefinitionArgs, type HasDefinitionsArgs, IAbstractMachineStateStore, type IAddCredentialBrandingArgs, type IAddCredentialLocaleBrandingArgs, type IAddIssuerBrandingArgs, type IAddIssuerLocaleBrandingArgs, type IAddStatusListArgs, type IAddStatusListEntryArgs, type IBackgroundAttributes, type IBasicBackgroundAttributes, type IBasicCredentialBranding, type IBasicCredentialClaim, type IBasicCredentialLocaleBranding, type IBasicImageAttributes, type IBasicImageDimensions, type IBasicIssuerBranding, type IBasicIssuerLocaleBranding, type IBasicTextAttributes, type IBitstringStatusListArgs, type IBitstringStatusListEntity, type IBitstringStatusListEntryEntity, type ICredentialBranding, type ICredentialBrandingFilter, type ICredentialClaim, type ICredentialLocaleBranding, type ICredentialLocaleBrandingFilter, type IGetCredentialBrandingArgs, type IGetCredentialLocaleBrandingArgs, type IGetIssuerBrandingArgs, type IGetIssuerLocaleBrandingArgs, type IGetStatusListArgs, type IGetStatusListEntriesArgs, type IGetStatusListEntryByCredentialIdArgs, type IGetStatusListEntryByIndexArgs, type IGetStatusListsArgs, type IImageAttributes, type IImageDimensions, type IIssuerBranding, type IIssuerBrandingFilter, type IIssuerLocaleBranding, type IIssuerLocaleBrandingFilter, type ILocaleBranding, type IMetadataEntity, type IOAuthStatusListArgs, type IOAuthStatusListEntity, type IPartialBackgroundAttributes, type IPartialCredentialBranding, type IPartialCredentialClaim, type IPartialCredentialLocaleBranding, type IPartialImageAttributes, type IPartialImageDimensions, type IPartialIssuerBranding, type IPartialIssuerLocaleBranding, type IPartialTextAttributes, type IRemoveCredentialBrandingArgs, type IRemoveCredentialLocaleBrandingArgs, type IRemoveIssuerBrandingArgs, type IRemoveIssuerLocaleBrandingArgs, type IRemoveStatusListArgs, type IStatusList2021Args, type IStatusList2021Entity, type IStatusListEntity, type IStatusListEntryAvailableArgs, type IStatusListEntryEntity, type ITextAttributes, type IUpdateCredentialBrandingArgs, type IUpdateCredentialLocaleBrandingArgs, type IUpdateIssuerBrandingArgs, type IUpdateIssuerLocaleBrandingArgs, type IUpdateStatusListIndexArgs, type Identity, IdentityEntity, IdentityMetadataItemEntity, IdentityOrigin, ImageAttributesEntity, ImageDimensionsEntity, type ImportDcqlQueryItem, IssuanceBrandingStore, IssuerBrandingEntity, IssuerLocaleBrandingEntity, MachineStateInfoEntity, MachineStateStore, type MetadataItem, type MetadataTypes, type NaturalPerson, type NonPersistedActivityLoggingEvent, type NonPersistedAuditLoggingEvent, type NonPersistedConnection, type NonPersistedConnectionConfig, type NonPersistedContact, type NonPersistedCorrelationIdentifier, type NonPersistedDcqlQueryItem, type NonPersistedDidAuthConfig, type NonPersistedDigitalCredential, type NonPersistedElectronicAddress, type NonPersistedIdentity, type NonPersistedMetadataItem, type NonPersistedNaturalPerson, type NonPersistedOpenIdConfig, type NonPersistedOrganization, type NonPersistedParty, type NonPersistedPartyRelationship, type NonPersistedPartyType, type NonPersistedPhysicalAddress, OAuthStatusListEntity, Oid4vcStateEntity, type OpenIdConfig, OpenIdConfigEntity, type Organization, PDStore, type PartialConnection, type PartialConnectionConfig, type PartialContact, type PartialCorrelationIdentifier, type PartialDcqlQueryItem, type PartialDidAuthConfig, type PartialElectronicAddress, type PartialIdentity, type PartialMetadataItem, type PartialNaturalPerson, type PartialOpenIdConfig, type PartialOrganization, type PartialParty, type PartialPartyRelationship, type PartialPartyType, type PartialPhysicalAddress, type Party, PartyEntity, PartyOrigin, type PartyRelationship, type PartyType, PartyTypeType, type PhysicalAddress, PhysicalAddressEntity, type PhysicalAddressType, RegulationType, type RemoveCredentialArgs, type RemoveElectronicAddressArgs, type RemoveIdentityArgs, type RemovePartyArgs, type RemovePartyTypeArgs, type RemovePhysicalAddressArgs, type RemoveRelationshipArgs, StatusList2021Entity, StatusListEntity, StatusListEntryEntity, StatusListStore, type StoreActivityEventArgs, type StoreAuditEventArgs, type StoreFindMachineStatesArgs, type StoreMachineStateDeleteArgs, type StoreMachineStateDeleteExpiredArgs, type StoreMachineStateGetArgs, type StoreMachineStateInfo, type StoreMachineStatePersistArgs, type StoreMachineStatesFindActiveArgs, TextAttributesEntity, type UpdateCredentialStateArgs, type UpdateDefinitionArgs, type UpdateElectronicAddressArgs, type UpdateIdentityArgs, type UpdatePartyArgs, type UpdatePartyTypeArgs, type UpdatePhysicalAddressArgs, type UpdateRelationshipArgs, type ValidationConstraint, activityEventEntityFrom, activityEventFrom, auditEventEntityFrom, auditEventFrom, backgroundAttributesEntityFrom, configFrom, connectionEntityFrom, connectionFrom, contactEntityFrom, contactFrom, contactMetadataItemEntityFrom, correlationIdentifierEntityFrom, correlationIdentifierFrom, credentialBrandingEntityFrom, credentialBrandingFrom, credentialClaimsEntityFrom, credentialLocaleBrandingEntityFrom, dcqlQueryEntityItemFrom, dcqlQueryItemFrom, didAuthConfigEntityFrom, didAuthConfigFrom, digitalCredentialFrom, digitalCredentialsFrom, electronicAddressEntityFrom, electronicAddressFrom, ensureRawDocument, identityEntityFrom, identityFrom, identityMetadataItemEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, isDidAuthConfig, isHex, isNaturalPerson, isOpenIdConfig, isOrganization, isPresentationDefinitionEqual, issuerBrandingEntityFrom, issuerBrandingFrom, issuerLocaleBrandingEntityFrom, localeBrandingFrom, metadataItemFrom, naturalPersonEntityFrom, naturalPersonFrom, nonPersistedDigitalCredentialEntityFromAddArgs, openIdConfigEntityFrom, openIdConfigFrom, organizationEntityFrom, organizationFrom, parseRawDocument, partyEntityFrom, partyFrom, partyRelationshipEntityFrom, partyRelationshipFrom, partyTypeEntityFrom, partyTypeFrom, physicalAddressEntityFrom, physicalAddressFrom, textAttributesEntityFrom };