@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.57.uni.client.206 → 0.34.1-feature.SSISDK.58.host.nonce.endpoint.145

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 +174 -105
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +33 -32
  4. package/dist/index.d.ts +33 -32
  5. package/dist/index.js +174 -105
  6. package/dist/index.js.map +1 -1
  7. package/package.json +7 -7
  8. package/src/__tests__/pd-manager.entities.test.ts +69 -21
  9. package/src/__tests__/pd-manager.store.test.ts +194 -111
  10. package/src/entities/presentationDefinition/{DcqlQueryItemEntity.ts → PresentationDefinitionItemEntity.ts} +12 -8
  11. package/src/index.ts +3 -3
  12. package/src/migrations/generic/{13-CreateDcqlQueryItem.ts → 13-UpdatePresentationDefinitionItemNullable.ts} +8 -8
  13. package/src/migrations/generic/index.ts +5 -2
  14. package/src/migrations/postgres/1716475165345-CreatePresentationDefinitions.ts +1 -1
  15. package/src/migrations/postgres/1756975509000-UpdatePresentationDefinitionItemNullable.ts +15 -0
  16. package/src/migrations/sqlite/1716475165344-CreatePresentationDefinitions.ts +1 -1
  17. package/src/migrations/sqlite/1756975340000-UpdatePresentationDefinitionItemNullable.ts +77 -0
  18. package/src/presentationDefinition/AbstractPDStore.ts +5 -5
  19. package/src/presentationDefinition/PDStore.ts +45 -40
  20. package/src/types/presentationDefinition/IAbstractPDStore.ts +5 -5
  21. package/src/types/presentationDefinition/presentationDefinition.ts +9 -8
  22. package/src/utils/presentationDefinition/MappingUtils.ts +41 -21
  23. package/src/migrations/postgres/1726588800000-CreateDcqlQueryItem.ts +0 -25
  24. package/src/migrations/sqlite/1726617600000-CreateDcqlQueryItem.ts +0 -24
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, 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, 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';
5
5
  import { AuditLoggingEvent, ActivityLoggingEvent, PartialAuditLoggingEvent, PartialActivityLoggingEvent, PartyCorrelationType, CredentialType } from '@sphereon/ssi-sdk.core';
6
- import { DcqlQuery } from 'dcql';
6
+ import { IPresentationDefinition } from '@sphereon/pex';
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 DcqlQueryItem = {
558
+ type PresentationDefinitionItem = {
559
559
  id: string;
560
- queryId: string;
560
+ definitionId: string;
561
561
  tenantId?: string;
562
562
  version: string;
563
563
  name?: string;
564
564
  purpose?: string;
565
- query: DcqlQuery;
565
+ definitionPayload?: IPresentationDefinition;
566
+ dcqlPayload?: DcqlQueryPayload;
566
567
  createdAt: Date;
567
568
  lastUpdatedAt: Date;
568
569
  };
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'>>;
570
+ type NonPersistedPresentationDefinitionItem = Omit<PresentationDefinitionItem, 'id' | 'createdAt' | 'lastUpdatedAt'>;
571
+ type PartialPresentationDefinitionItem = Partial<PresentationDefinitionItem>;
572
+ type PresentationDefinitionItemFilter = Partial<Omit<PresentationDefinitionItem, 'definitionPayload' | 'dcqlPayload'>>;
573
573
 
574
- type FindDcqlQueryArgs = Array<DcqlQueryItemFilter>;
574
+ type FindDefinitionArgs = Array<PresentationDefinitionItemFilter>;
575
575
  type GetDefinitionArgs = {
576
576
  itemId: string;
577
577
  };
578
578
  type HasDefinitionArgs = GetDefinitionArgs;
579
579
  type GetDefinitionsArgs = {
580
- filter?: FindDcqlQueryArgs;
580
+ filter?: FindDefinitionArgs;
581
581
  };
582
582
  type HasDefinitionsArgs = GetDefinitionsArgs;
583
- type AddDefinitionArgs = NonPersistedDcqlQueryItem;
584
- type UpdateDefinitionArgs = DcqlQueryItem;
583
+ type AddDefinitionArgs = NonPersistedPresentationDefinitionItem;
584
+ type UpdateDefinitionArgs = PresentationDefinitionItem;
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): "mso_mdoc" | "dc+sd-jwt" | "jwt_vc_json" | "ldp_vc" | "ldp_vp" | "jwt_vp_json";
874
+ function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "dc+sd-jwt" | "mso_mdoc" | "ldp_vc" | "ldp_vp" | "jwt_vc_json" | "jwt_vp_json";
875
875
  }
876
876
  declare enum CredentialCorrelationType {
877
877
  DID = "DID",
@@ -1334,14 +1334,15 @@ declare class AuditEventEntity extends BaseEntity$8 {
1334
1334
  lastUpdatedAt: Date;
1335
1335
  }
1336
1336
 
1337
- declare class DcqlQueryItemEntity extends BaseEntity$8 {
1337
+ declare class PresentationDefinitionItemEntity extends BaseEntity$8 {
1338
1338
  id: string;
1339
- queryId: string;
1339
+ definitionId: string;
1340
1340
  version: string;
1341
1341
  tenantId?: string;
1342
1342
  purpose?: string;
1343
1343
  name?: string;
1344
- query: string;
1344
+ definitionPayload: string;
1345
+ dcqlPayload: string;
1345
1346
  createdAt: Date;
1346
1347
  lastUpdatedAt: Date;
1347
1348
  updateUpdatedDate(): void;
@@ -1633,10 +1634,10 @@ declare class MachineStateStore extends IAbstractMachineStateStore {
1633
1634
  declare abstract class AbstractPDStore {
1634
1635
  abstract hasDefinition(args: GetDefinitionArgs): Promise<boolean>;
1635
1636
  abstract hasDefinitions(args: GetDefinitionsArgs): Promise<boolean>;
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>;
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>;
1640
1641
  abstract deleteDefinition(args: DeleteDefinitionArgs): Promise<void>;
1641
1642
  abstract deleteDefinitions(args: DeleteDefinitionsArgs): Promise<number>;
1642
1643
  }
@@ -1644,15 +1645,15 @@ declare abstract class AbstractPDStore {
1644
1645
  declare class PDStore extends AbstractPDStore {
1645
1646
  private readonly dbConnection;
1646
1647
  constructor(dbConnection: OrPromise<DataSource>);
1647
- getDefinition: (args: GetDefinitionArgs) => Promise<DcqlQueryItem>;
1648
+ getDefinition: (args: GetDefinitionArgs) => Promise<PresentationDefinitionItem>;
1648
1649
  hasDefinition: (args: HasDefinitionArgs) => Promise<boolean>;
1649
1650
  hasDefinitions: (args: HasDefinitionsArgs) => Promise<boolean>;
1650
- getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<DcqlQueryItem>>;
1651
- addDefinition: (item: NonPersistedDcqlQueryItem) => Promise<DcqlQueryItem>;
1652
- updateDefinition: (item: DcqlQueryItem) => Promise<DcqlQueryItem>;
1651
+ getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<PresentationDefinitionItem>>;
1652
+ addDefinition: (item: NonPersistedPresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1653
+ updateDefinition: (item: PresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1653
1654
  deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
1654
1655
  deleteDefinitions: (args: DeleteDefinitionsArgs) => Promise<number>;
1655
- findIds: (pdRepository: Repository<DcqlQueryItemEntity>, filter: Array<DcqlQueryItemFilter> | undefined) => Promise<Array<DcqlQueryItemEntity>>;
1656
+ findIds: (pdRepository: Repository<PresentationDefinitionItemEntity>, filter: Array<PresentationDefinitionItemFilter> | undefined) => Promise<Array<PresentationDefinitionItemEntity>>;
1656
1657
  }
1657
1658
 
1658
1659
  declare class CreateContacts1659463079429 implements MigrationInterface {
@@ -1791,18 +1792,18 @@ declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBr
1791
1792
  declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
1792
1793
  declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
1793
1794
 
1794
- declare const dcqlQueryItemFrom: (entity: DcqlQueryItemEntity) => DcqlQueryItem;
1795
- declare const dcqlQueryEntityItemFrom: (item: NonPersistedDcqlQueryItem) => DcqlQueryItemEntity;
1796
- declare function isPresentationDefinitionEqual(base: PartialDcqlQueryItem, compare: PartialDcqlQueryItem): boolean;
1795
+ declare const presentationDefinitionItemFrom: (entity: PresentationDefinitionItemEntity) => PresentationDefinitionItem;
1796
+ declare const presentationDefinitionEntityItemFrom: (item: NonPersistedPresentationDefinitionItem) => PresentationDefinitionItemEntity;
1797
+ declare function isPresentationDefinitionEqual(base: PartialPresentationDefinitionItem, compare: PartialPresentationDefinitionItem): boolean;
1797
1798
 
1798
1799
  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)[];
1799
1800
  declare const DataStoreOid4vcStateEntities: (typeof Oid4vcStateEntity)[];
1800
1801
  declare const DataStoreIssuanceBrandingEntities: (typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity)[];
1801
- declare const DataStorePresentationDefinitionEntities: (typeof DcqlQueryItemEntity)[];
1802
+ declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
1802
1803
  declare const DataStoreStatusListEntities: (typeof StatusListEntity | typeof StatusListEntryEntity)[];
1803
1804
  declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
1804
1805
  declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
1805
1806
  declare const DataStoreMachineStateEntities: (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)[];
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)[];
1807
1808
 
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 };
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 };
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, 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, 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';
5
5
  import { AuditLoggingEvent, ActivityLoggingEvent, PartialAuditLoggingEvent, PartialActivityLoggingEvent, PartyCorrelationType, CredentialType } from '@sphereon/ssi-sdk.core';
6
- import { DcqlQuery } from 'dcql';
6
+ import { IPresentationDefinition } from '@sphereon/pex';
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 DcqlQueryItem = {
558
+ type PresentationDefinitionItem = {
559
559
  id: string;
560
- queryId: string;
560
+ definitionId: string;
561
561
  tenantId?: string;
562
562
  version: string;
563
563
  name?: string;
564
564
  purpose?: string;
565
- query: DcqlQuery;
565
+ definitionPayload?: IPresentationDefinition;
566
+ dcqlPayload?: DcqlQueryPayload;
566
567
  createdAt: Date;
567
568
  lastUpdatedAt: Date;
568
569
  };
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'>>;
570
+ type NonPersistedPresentationDefinitionItem = Omit<PresentationDefinitionItem, 'id' | 'createdAt' | 'lastUpdatedAt'>;
571
+ type PartialPresentationDefinitionItem = Partial<PresentationDefinitionItem>;
572
+ type PresentationDefinitionItemFilter = Partial<Omit<PresentationDefinitionItem, 'definitionPayload' | 'dcqlPayload'>>;
573
573
 
574
- type FindDcqlQueryArgs = Array<DcqlQueryItemFilter>;
574
+ type FindDefinitionArgs = Array<PresentationDefinitionItemFilter>;
575
575
  type GetDefinitionArgs = {
576
576
  itemId: string;
577
577
  };
578
578
  type HasDefinitionArgs = GetDefinitionArgs;
579
579
  type GetDefinitionsArgs = {
580
- filter?: FindDcqlQueryArgs;
580
+ filter?: FindDefinitionArgs;
581
581
  };
582
582
  type HasDefinitionsArgs = GetDefinitionsArgs;
583
- type AddDefinitionArgs = NonPersistedDcqlQueryItem;
584
- type UpdateDefinitionArgs = DcqlQueryItem;
583
+ type AddDefinitionArgs = NonPersistedPresentationDefinitionItem;
584
+ type UpdateDefinitionArgs = PresentationDefinitionItem;
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): "mso_mdoc" | "dc+sd-jwt" | "jwt_vc_json" | "ldp_vc" | "ldp_vp" | "jwt_vp_json";
874
+ function toSpecValue(documentFormat: CredentialDocumentFormat, documentType: DocumentType): "dc+sd-jwt" | "mso_mdoc" | "ldp_vc" | "ldp_vp" | "jwt_vc_json" | "jwt_vp_json";
875
875
  }
876
876
  declare enum CredentialCorrelationType {
877
877
  DID = "DID",
@@ -1334,14 +1334,15 @@ declare class AuditEventEntity extends BaseEntity$8 {
1334
1334
  lastUpdatedAt: Date;
1335
1335
  }
1336
1336
 
1337
- declare class DcqlQueryItemEntity extends BaseEntity$8 {
1337
+ declare class PresentationDefinitionItemEntity extends BaseEntity$8 {
1338
1338
  id: string;
1339
- queryId: string;
1339
+ definitionId: string;
1340
1340
  version: string;
1341
1341
  tenantId?: string;
1342
1342
  purpose?: string;
1343
1343
  name?: string;
1344
- query: string;
1344
+ definitionPayload: string;
1345
+ dcqlPayload: string;
1345
1346
  createdAt: Date;
1346
1347
  lastUpdatedAt: Date;
1347
1348
  updateUpdatedDate(): void;
@@ -1633,10 +1634,10 @@ declare class MachineStateStore extends IAbstractMachineStateStore {
1633
1634
  declare abstract class AbstractPDStore {
1634
1635
  abstract hasDefinition(args: GetDefinitionArgs): Promise<boolean>;
1635
1636
  abstract hasDefinitions(args: GetDefinitionsArgs): Promise<boolean>;
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>;
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>;
1640
1641
  abstract deleteDefinition(args: DeleteDefinitionArgs): Promise<void>;
1641
1642
  abstract deleteDefinitions(args: DeleteDefinitionsArgs): Promise<number>;
1642
1643
  }
@@ -1644,15 +1645,15 @@ declare abstract class AbstractPDStore {
1644
1645
  declare class PDStore extends AbstractPDStore {
1645
1646
  private readonly dbConnection;
1646
1647
  constructor(dbConnection: OrPromise<DataSource>);
1647
- getDefinition: (args: GetDefinitionArgs) => Promise<DcqlQueryItem>;
1648
+ getDefinition: (args: GetDefinitionArgs) => Promise<PresentationDefinitionItem>;
1648
1649
  hasDefinition: (args: HasDefinitionArgs) => Promise<boolean>;
1649
1650
  hasDefinitions: (args: HasDefinitionsArgs) => Promise<boolean>;
1650
- getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<DcqlQueryItem>>;
1651
- addDefinition: (item: NonPersistedDcqlQueryItem) => Promise<DcqlQueryItem>;
1652
- updateDefinition: (item: DcqlQueryItem) => Promise<DcqlQueryItem>;
1651
+ getDefinitions: (args: GetDefinitionsArgs) => Promise<Array<PresentationDefinitionItem>>;
1652
+ addDefinition: (item: NonPersistedPresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1653
+ updateDefinition: (item: PresentationDefinitionItem) => Promise<PresentationDefinitionItem>;
1653
1654
  deleteDefinition: (args: DeleteDefinitionArgs) => Promise<void>;
1654
1655
  deleteDefinitions: (args: DeleteDefinitionsArgs) => Promise<number>;
1655
- findIds: (pdRepository: Repository<DcqlQueryItemEntity>, filter: Array<DcqlQueryItemFilter> | undefined) => Promise<Array<DcqlQueryItemEntity>>;
1656
+ findIds: (pdRepository: Repository<PresentationDefinitionItemEntity>, filter: Array<PresentationDefinitionItemFilter> | undefined) => Promise<Array<PresentationDefinitionItemEntity>>;
1656
1657
  }
1657
1658
 
1658
1659
  declare class CreateContacts1659463079429 implements MigrationInterface {
@@ -1791,18 +1792,18 @@ declare const issuerBrandingEntityFrom: (args: IBasicIssuerBranding) => IssuerBr
1791
1792
  declare const textAttributesEntityFrom: (args: IBasicTextAttributes) => TextAttributesEntity;
1792
1793
  declare const credentialClaimsEntityFrom: (args: IBasicCredentialClaim) => CredentialClaimsEntity;
1793
1794
 
1794
- declare const dcqlQueryItemFrom: (entity: DcqlQueryItemEntity) => DcqlQueryItem;
1795
- declare const dcqlQueryEntityItemFrom: (item: NonPersistedDcqlQueryItem) => DcqlQueryItemEntity;
1796
- declare function isPresentationDefinitionEqual(base: PartialDcqlQueryItem, compare: PartialDcqlQueryItem): boolean;
1795
+ declare const presentationDefinitionItemFrom: (entity: PresentationDefinitionItemEntity) => PresentationDefinitionItem;
1796
+ declare const presentationDefinitionEntityItemFrom: (item: NonPersistedPresentationDefinitionItem) => PresentationDefinitionItemEntity;
1797
+ declare function isPresentationDefinitionEqual(base: PartialPresentationDefinitionItem, compare: PartialPresentationDefinitionItem): boolean;
1797
1798
 
1798
1799
  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)[];
1799
1800
  declare const DataStoreOid4vcStateEntities: (typeof Oid4vcStateEntity)[];
1800
1801
  declare const DataStoreIssuanceBrandingEntities: (typeof CredentialBrandingEntity | typeof ImageAttributesEntity | typeof ImageDimensionsEntity | typeof BaseLocaleBrandingEntity | typeof IssuerBrandingEntity | typeof TextAttributesEntity | typeof CredentialClaimsEntity)[];
1801
- declare const DataStorePresentationDefinitionEntities: (typeof DcqlQueryItemEntity)[];
1802
+ declare const DataStorePresentationDefinitionEntities: (typeof PresentationDefinitionItemEntity)[];
1802
1803
  declare const DataStoreStatusListEntities: (typeof StatusListEntity | typeof StatusListEntryEntity)[];
1803
1804
  declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
1804
1805
  declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
1805
1806
  declare const DataStoreMachineStateEntities: (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)[];
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)[];
1807
1808
 
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 };
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 };